diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/assets/Johnson_Electric-Logo-BL_C9Vn2.png b/assets/Johnson_Electric-Logo-BL_C9Vn2.png new file mode 100644 index 0000000..d226618 Binary files /dev/null and b/assets/Johnson_Electric-Logo-BL_C9Vn2.png differ diff --git a/assets/bg-C5B5H86r.mp4 b/assets/bg-C5B5H86r.mp4 new file mode 100644 index 0000000..b96975a Binary files /dev/null and b/assets/bg-C5B5H86r.mp4 differ diff --git a/assets/index-BVNl0FsR.css b/assets/index-BVNl0FsR.css new file mode 100644 index 0000000..306d6ab --- /dev/null +++ b/assets/index-BVNl0FsR.css @@ -0,0 +1 @@ +body{padding:0;margin:0;font-family:Roboto;background-color:#f7f7fa}.login-page-container{position:relative;width:100%;min-height:100vh;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;background-repeat:no-repeat}.login-form-container{background-color:#ffffffe6;padding:20px 40px;border-radius:10px;box-shadow:0 4px 10px #0000004d;max-width:400px;width:100%}.login-page-container video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:-1}.welcome-txt{color:#ff9100;font-size:2rem;padding:10px}.login-form-container h2{text-align:center;margin-bottom:80px;margin-top:0;padding-top:20px!important}.login-form-container h2:last-of-type{padding-top:40px}.login-form-container form{display:flex;flex-direction:column}.login-form-container input{padding:10px;border:1px solid #ccc;border-radius:5px;margin-bottom:30px;font-size:larger;text-align:center}.login-signup-btn{padding:10px;background-color:#ff9100;border:none;border-radius:5px;color:#fff;font-size:larger;cursor:pointer;transition:background-color .3s;margin:10px 0 30px;min-width:100%}.forget-password{color:inherit;text-decoration:none;font-weight:400;font-size:18px;display:flex;justify-content:end;margin-bottom:30px}.error-box{margin-bottom:20px;padding:10px;border:1px solid red;background-color:#fdd;color:red;border-radius:5px}.header-container{text-align:center;margin-bottom:20px}.header-container h2{margin:0}.login-page-container{display:flex;align-items:center;flex-direction:column}.dashboard-sidebar-container{display:flex;background-color:#e8e8e8}.dashboard-container{width:100%;display:flex;align-items:center;justify-content:center}.dashboard-grid{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:auto;grid-gap:10px 100px;justify-content:center;align-items:center;width:100%;max-width:800px}.dashboard-boxes>p{padding:50px 0!important}.card{box-shadow:0 4px 8px #0000001a;color:#000;text-align:center;width:600px;padding:0;text-transform:uppercase;letter-spacing:.4px;background-color:#e7ebee;border-style:solid;border-width:2px 2px 2px 2px;border-color:#fff5;transform:translate(0) rotate(0);transition:.2s;box-shadow:-4px -2px 16px #fff,4px 2px 16px #5f9de77a;z-index:1;border-radius:9px;display:flex;align-items:center;justify-content:center;position:relative;flex-direction:column}.card:hover{transform:translateY(-5px);box-shadow:0 10px 20px #0003}.status{font-size:26px;font-weight:bolder;margin:5px 0;white-space:nowrap}.count{margin:5px 0;font-size:20px}.upload-button{grid-column:1 / -1;justify-self:center;margin:0 auto;font-size:.8rem;font-weight:bolder;align-items:center}.upload-button .MuiSvgIcon-root{transition:transform .3s ease}.upload-button:hover .MuiSvgIcon-root{transform:rotate(45deg)}.contract-received{background:linear-gradient(135deg,#fbd38d,#f68b1f)}.ai-agent-review{background:linear-gradient(135deg,#fcc2c2,#f28a8a)}.manual-review{background:linear-gradient(135deg,#b4f8c8,#2ecc71)}.approved{background:linear-gradient(135deg,#ffeac3,#f1c40f)}@media (max-width: 1400px){.card{width:500px}.dashboard-boxes>p{padding:40px 0!important}}@media (max-width: 1200px){.card{width:380px}.dashboard-boxes>p{padding:30px 0!important}}@media (max-width: 1000px){.card{width:350px}.dashboard-boxes>p{padding:30px 0!important}}@media (max-width: 768px){.dashboard-grid{grid-template-columns:1fr}.card{width:70%;margin:0 auto}.dashboard-container{margin-top:40px}.dashboard-boxes>p{padding:15px 0!important;font-size:16px}}.sidebar-container{width:280px;height:979px;top:60px;bottom:0;height:95vh;padding:10px 15px 0;overflow:hidden;transition:width .3s ease;box-shadow:2px 1px 5px 3px #0000001a;white-space:nowrap;border-radius:0 20px 20px 0;margin-top:15px;background-color:#fff}.sidebar-container.collapsed{width:76px}.sidebar-link{display:flex;align-items:center;padding:12px 20px;margin:5px 0;color:#000;text-decoration:none;font-size:16px;transition:background-color .2s,border-radius .3s,color .3s}.nav-logo>img{height:90px;width:180px;padding:0;margin:0}.sidebar-icon{margin-right:12px;font-size:18px;padding:0 10px;border-radius:14px}.jlogo{height:35px!important;width:50px!important;margin-left:15px!important}.logo{padding-left:20px!important}.sidebar-link:hover{background-color:#f97316;border-radius:99px;text-decoration:none;color:#fff}.last-five:hover{background-color:#e4e4e4;color:#000}.sidebar-link.active .sidebar-icon{color:#fff;background-color:#f973164d;padding:5px;border-radius:40%}.sidebar-divider{margin:20px 0;height:1px;background-color:#ddd}.sidebar-heading{font-size:14px;text-transform:uppercase;font-weight:700;color:gray;margin-bottom:15px;padding-left:20px;transition:opacity .4s ease}.toggle-button{background-color:transparent;border:none;cursor:pointer;color:#333;transition:color .3s,background-color .3s;border-radius:50%;padding:0;margin:0}.last-five{font-size:14px;color:#747474}.notification{font-size:20px!important;color:#747474}.user-profile{display:flex;align-items:center;padding:10px 15px;border-radius:10px;transition:background-color .3s ease}.user-image{width:30px;height:30px;border-radius:50%;margin-left:10px}.user-info{display:flex;flex-direction:column}.welcome-text{font-size:14px;color:#6b7280}.username{font-size:16px;font-weight:700;color:#111827}.arrow-icon{margin-left:auto;font-size:16px;color:#6b7280}.user-profile:hover{background-color:#f3f4f6;cursor:pointer}.document-ingestion-container{display:flex;justify-content:center}.contract-form{padding:20px;border-radius:8px;margin:0 auto}.contract-form>h4{margin-bottom:80px}.row{display:flex;justify-content:start;flex-wrap:wrap;gap:2.5rem;margin-bottom:100px}.input-box-without-dropdown{width:300px;display:flex;flex-direction:column;padding:10px;position:relative}.input-box-without-dropdown label{margin-bottom:8px;font-size:16px;font-weight:700;color:#333}.input-box{width:400px;display:flex;flex-direction:column;padding:10px;position:relative}.input-box label{margin-bottom:8px;font-size:16px;font-weight:700;color:#333}.input-box-without-dropdown:hover input[type=text]{border-color:#ff9100}.dropdown-selected{padding:15px 20px;font-size:18px;border:1px solid #ccc;background-color:#fff;border-radius:20px;outline:none;box-shadow:3px 4px 6px #0000001a;transition:box-shadow .3s ease,border-color .3s ease}.input-box:hover input[type=text],.input-box:hover .dropdown-selected{border-color:#ff9100;box-shadow:0 4px 12px #0003;border-bottom:none}.input-box:hover input[type=text],.input-box:hover .dropdown-selected{border-radius:20px 20px 0 0}.simple-dropdown{position:relative;cursor:pointer}.dropdown-selected:after{content:"▼";position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:14px;color:#ff9100;pointer-events:none}.dropdown-options{display:none;position:absolute;width:99.6%;top:100%;left:0;background-color:#fff;border:1px solid #ccc;border-radius:0 0 10px 10px;list-style-type:none;padding:0;margin:0;z-index:100;box-shadow:0 4px 12px #0000001a}.dropdown-options li{padding:12px 20px;cursor:pointer;transition:background-color .2s}.dropdown-options li:hover{background-color:#f5f5f5;border-radius:20px}.simple-dropdown:hover .dropdown-options{display:block;border-color:#ff9100;border-bottom-left-radius:20px;border-bottom-right-radius:20px;border-top:none}.upload-container{cursor:pointer;text-align:center;margin-top:20px;font-weight:bolder;transition:background-color .3s ease;border:2px dashed #ccc;padding:20px}.upload-container.dragging{background-color:#f0f8ff;border-color:#ff9100}.upload-icon{font-size:8rem!important;color:#ff9100;margin-bottom:10px}.selected-file-display{width:700px;display:flex;align-items:center;justify-content:center;background-color:#fff;border:1px solid #ccc;border-radius:5px;padding:40px;margin:0 auto}.file-icon{margin-right:30px;font-size:1.8rem!important}.file-name{flex-grow:1;font-weight:700}.remove-file-icon{cursor:pointer;color:#ff9100;font-size:3rem}.save-button{align-items:center;text-align:center;display:flex;justify-content:center;margin:40px auto 0;padding:10px 25px;border-radius:20px;border:none;background-color:#f97416;opacity:.9;font-size:18px}.save-button:hover{background-color:#f97416ea;cursor:pointer}.MuiDialog-paper{min-width:1200px;padding:20px;border-radius:8px;box-shadow:0 4px 16px #0000001a}.MuiDialogTitle-root{font-size:24px;font-weight:700;color:#ff7f00;margin-bottom:20px;padding-bottom:10px;border-bottom:1px solid #E5E5E5}.MuiDialogContent-root{display:flex;flex-direction:column;gap:20px;padding:20px 0;font-size:16px;color:#333}.contract-field-container{display:flex;justify-content:space-between;gap:20px;margin-top:40px}.contract-field{display:flex;flex-direction:column;width:30%}.contract-field-label{font-weight:700;color:#666;margin-bottom:5px}.contract-field-value{font-size:16px;font-weight:500;color:#000;margin-bottom:15px}.uploaded-file{font-style:italic;color:#000;display:flex;align-items:center}.file-icon{margin-right:8px}.MuiDialogActions-root{justify-content:center;padding:20px 0}.MuiButton-root{background-color:#ff7f00;color:#fff;padding:10px 30px;font-size:16px;border-radius:20px}.MuiButton-root:hover{background-color:#e57300}@media (max-width: 768px){.row{flex-direction:column;align-items:center}.input-box{width:100%}}.signup-container{flex-direction:column;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;background-repeat:no-repeat;min-height:100vh}.signup-container video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:-1}.signup-welcome-text{font-size:24px;font-weight:700;color:#ff7f00;margin:0}.signup-title{font-size:28px;color:#333;margin-bottom:15px}.signup-card{background-color:#fff;padding:0 150px;border-radius:8px;box-shadow:0 4px 16px #0000004d;width:100%;max-width:400px}.signup-header{font-size:24px;margin-bottom:20px;color:#ff7f00;text-align:center}.signup-placeholder{height:90px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:30px}.profile-picture-container{display:flex;justify-content:center;margin-bottom:20px}.profile-picture{position:relative;width:100px;height:100px;border-radius:50%;background-color:#f0f0f0}.default-profile-image{width:100%;height:100%;border-radius:50%;background-color:#e0e0e0}.profile-image{width:100%;height:100%;object-fit:cover;border-radius:50%}.camera-icon-label{position:absolute;bottom:-10px;right:-5px;border-radius:50%;padding:5px;cursor:pointer}.camera-icon{color:#ff7f00;font-size:24px}.signup-form{display:flex;flex-direction:column;gap:10px}.signup-input{padding:10px;margin-bottom:5px;text-align:center;color:#000;border:1px solid #ccc;border-radius:4px;font-size:16px;outline:none}.password-instructions{font-size:16px;color:#777;margin-bottom:10px;margin-top:10px}.instruction-point{color:#ff7f00;font-size:1rem}.signup-button{background-color:#ff7f00;color:#fff;padding:10px;font-size:16px;border:none;border-radius:4px;cursor:pointer;width:150px;margin:20px auto 0}.signup-button:hover{background-color:#e57300}.divider{display:flex;align-items:center;justify-content:center;margin:20px 0}.divider-line{width:30%;height:1px;background-color:#ccc}.divider-text{padding:0 10px;font-size:14px;color:#777}.signin-button{width:100%;background-color:transparent;border:1px solid #ff7f00;color:#ff7f00;padding:10px;font-size:16px;border-radius:4px;cursor:pointer;margin-bottom:60px}.signin-button:hover{background-color:#ff7f00;color:#fff}:root{--rpv-attachment__item--hover-background-color: rgba(0, 0, 0, .1);--rpv-attachment__item-color: #000}.rpv-core__viewer--dark{--rpv-attachment__item--hover-background-color: #2566e8;--rpv-attachment__item-color: #fff}.rpv-attachment__empty{height:100%;overflow:auto;padding:.5rem 0;text-align:center;width:100%}.rpv-attachment__empty--rtl{direction:rtl}.rpv-attachment__list{display:flex;height:100%;flex-direction:column;overflow:auto;padding:.5rem 0;width:100%}.rpv-attachment__list--rtl{direction:rtl}.rpv-attachment__item{align-items:center;background-color:#0000;border:none;color:var(--rpv-attachment__item-color);cursor:pointer;display:flex;padding:.5rem;text-align:left;width:100%}.rpv-attachment__item:focus{background-color:var(--rpv-attachment__item--hover-background-color);outline:0}.rpv-attachment__item:hover{background-color:var(--rpv-attachment__item--hover-background-color)}.rpv-attachment__loader{align-items:center;display:flex;justify-content:center;height:100%;width:100%}:root{--rpv-bookmark__item--hover-background-color: rgba(0, 0, 0, .1);--rpv-bookmark__item-color: #000}.rpv-core__viewer--dark{--rpv-bookmark__item--hover-background-color: #2566e8;--rpv-bookmark__item-color: #fff}.rpv-bookmark__item{align-items:center;color:var(--rpv-bookmark__item-color);cursor:pointer;display:flex;padding-bottom:.25rem;padding-right:.25rem;padding-top:.25rem}.rpv-bookmark__item:focus{background-color:var(--rpv-bookmark__item--hover-background-color);outline:0}.rpv-bookmark__item:hover{background-color:var(--rpv-bookmark__item--hover-background-color)}.rpv-bookmark__toggle{align-items:center;display:flex;height:1rem;margin-right:.25rem;width:1rem}.rpv-bookmark__title{flex-grow:1;flex-shrink:1;text-decoration:none}.rpv-bookmark__list{list-style-type:none;overflow:auto;margin:0;padding:0}.rpv-bookmark__loader{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.rpv-bookmark__empty{height:100%;overflow:auto;padding:.5rem 0;text-align:center;width:100%}.rpv-bookmark__empty--rtl{direction:rtl}.rpv-bookmark__container{height:100%;overflow:auto;padding:.5rem 0;width:100%}.rpv-bookmark__container--rtl{direction:rtl}:root{--rpv-core__annotation--link-hover-background-color: rgba(255, 255, 0, .2);--rpv-core__annotation-popup-wrapper-background-color: #faf089;--rpv-core__annotation-popup-wrapper-box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);--rpv-core__annotation-popup-content-border-top-color: #1a202c;--rpv-core__arrow-border-color: rgba(0, 0, 0, .3);--rpv-core__asking-password-color: #000;--rpv-core__asking-password-wrapper-background-color: #fff;--rpv-core__asking-password-wrapper-border-color: rgba(0, 0, 0, .3);--rpv-core__button-background-color: rgba(0, 0, 0, .3);--rpv-core__button-color: #000;--rpv-core__doc-error-background-color: #fff;--rpv-core__doc-error-text-background-color: #c02424;--rpv-core__doc-error-text-color: #fff;--rpv-core__doc-loading-background-color: #fff;--rpv-core__full-screen-target-background-color: #fff;--rpv-core__inner-page-background-color: #fff;--rpv-core__menu-divider-border-bottom-color: rgba(0, 0, 0, .3);--rpv-core__menu-item-color: #000;--rpv-core__menu-item--hover-background-color: rgba(0, 0, 0, .1);--rpv-core__menu-item--disabled-color: rgba(0, 0, 0, .3);--rpv-core__minimal-button-color: #000;--rpv-core__minimal-button--hover-background-color: rgba(0, 0, 0, .1);--rpv-core__minimal-button--disabled-color: rgba(0, 0, 0, .3);--rpv-core__minimal-button--selected-background-color: rgba(0, 0, 0, .1);--rpv-core__modal-body-background-color: #fff;--rpv-core__modal-body-border-color: rgba(0, 0, 0, .3);--rpv-core__modal-overlay-background-color: rgba(0, 0, 0, .5);--rpv-core__page-layer-box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, .2);--rpv-core__popover-body-background-color: #fff;--rpv-core__popover-body-border-color: rgba(0, 0, 0, .3);--rpv-core__popover-body-color: #000;--rpv-core__primary-button-background-color: #2566e8;--rpv-core__primary-button-color: #fff;--rpv-core__progress-bar-background-color: rgba(0, 0, 0, .1);--rpv-core__progress-bar-progress-background-color: #2566e8;--rpv-core__progress-bar-progress-color: #fff;--rpv-core__separator-border-bottom-color: rgba(0, 0, 0, .3);--rpv-core__spinner-border-color: rgba(0, 0, 0, .4);--rpv-core__spinner-border-transparent-color: transparent;--rpv-core__splitter-background-color: transparent;--rpv-core__splitter--hover-background-color: rgba(0, 0, 0, .2);--rpv-core__text-layer-text--selection-background-color: rgb(0, 0, 255, 1);--rpv-core__text-layer-text--selection-color: transparent;--rpv-core__textbox-background-color: #fff;--rpv-core__textbox-border-color: rgba(0, 0, 0, .2);--rpv-core__textbox-color: #000;--rpv-core__tooltip-body-background-color: #000;--rpv-core__tooltip-body-color: #fff}.rpv-core__viewer--dark{--rpv-core__asking-password-background-color: #363636;--rpv-core__asking-password-color: #fff;--rpv-core__asking-password-wrapper-border-color: #191919;--rpv-core__asking-password-wrapper-background-color: #191919;--rpv-core__button-background-color: #171717;--rpv-core__button-color: #fff;--rpv-core__doc-error-background-color: #191919;--rpv-core__doc-error-text-background-color: #c02323;--rpv-core__doc-error-text-color: #fff;--rpv-core__doc-loading-background-color: #191919;--rpv-core__full-screen-target-background-color: #1a1a1a;--rpv-core__inner-page-background-color: #1a1a1a;--rpv-core__menu-divider-border-bottom-color: #000;--rpv-core__menu-item-color: #fff;--rpv-core__menu-item--hover-background-color: #2566e8;--rpv-core__menu-item--disabled-color: #5e5e5e;--rpv-core__minimal-button-color: #fff;--rpv-core__minimal-button--disabled-color: #5e5e5e;--rpv-core__minimal-button--hover-background-color: #191919;--rpv-core__minimal-button--selected-background-color: #1657bb;--rpv-core__modal-body-background-color: #363636;--rpv-core__primary-button-background-color: #2566e8;--rpv-core__popover-body-background-color: #363636;--rpv-core__popover-body-color: #fff;--rpv-core__progress-bar-background-color: #000;--rpv-core__separator-border-bottom-color: #000;--rpv-core__spinner-border-color: #fff;--rpv-core__splitter-background-color: #1a1a1a;--rpv-core__splitter--hover-background-color: #2566e8;--rpv-core__textbox-background-color: #121212;--rpv-core__textbox-border-color: #121212;--rpv-core__textbox-color: #fff;--rpv-core__tooltip-body-background-color: #414141;--rpv-core__tooltip-body-color: #fff}.rpv-core__annotation{position:absolute}.rpv-core__annotation-layer{z-index:1}.rpv-core__arrow{border-bottom:1px solid var(--rpv-core__arrow-border-color);border-left-color:var(--rpv-core__arrow-border-color);border-right:1px solid var(--rpv-core__arrow-border-color);border-top-color:var(--rpv-core__arrow-border-color);height:10px;position:absolute;width:10px;z-index:0}.rpv-core__arrow--tl{bottom:0;left:0;transform:translate(50%,50%) rotate(45deg)}.rpv-core__arrow--tc{bottom:0;left:50%;transform:translate(-50%,50%) rotate(45deg)}.rpv-core__arrow--tr{bottom:0;right:0;transform:translate(-50%,50%) rotate(45deg)}.rpv-core__arrow--rt{left:0;top:0;transform:translate(-50%,50%) rotate(135deg)}.rpv-core__arrow--rc{left:0;top:50%;transform:translate(-50%,-50%) rotate(135deg)}.rpv-core__arrow--rb{bottom:0;left:0;transform:translate(-50%,-50%) rotate(135deg)}.rpv-core__arrow--bl{left:0;top:0;transform:translate(50%,-50%) rotate(225deg)}.rpv-core__arrow--bc{left:50%;top:0;transform:translate(-50%,-50%) rotate(225deg)}.rpv-core__arrow--br{right:0;top:0;transform:translate(-50%,-50%) rotate(225deg)}.rpv-core__arrow--lt{right:0;top:0;transform:translate(50%,50%) rotate(315deg)}.rpv-core__arrow--lc{right:0;top:50%;transform:translate(50%,-50%) rotate(315deg)}.rpv-core__arrow--lb{bottom:0;right:0;transform:translate(50%,-50%) rotate(315deg)}.rpv-core__asking-password{background-color:var(--rpv-core__asking-password-background-color);border-radius:.25rem;color:var(--rpv-core__asking-password-color);padding:2rem}.rpv-core__asking-password--rtl{direction:rtl}.rpv-core__asking-password-wrapper{align-items:center;background-color:var(--rpv-core__asking-password-wrapper-background-color);border:1px solid var(--rpv-core__asking-password-wrapper-border-color);display:flex;height:100%;justify-content:center;width:100%}.rpv-core__asking-password-message{margin:.5rem 0}.rpv-core__asking-password-body{align-items:center;display:flex;justify-content:center}.rpv-core__asking-password-input{width:15rem}.rpv-core__asking-password-input--ltr{margin-right:.5rem}.rpv-core__asking-password-input--rtl{margin-left:.5rem}.rpv-core__button{background-color:var(--rpv-core__button-background-color);border:none;border-radius:.25rem;color:var(--rpv-core__button-color);cursor:pointer;height:2rem;padding:0 1rem}.rpv-core__button--rtl{direction:rtl}.rpv-core__canvas-layer{direction:ltr;left:0;position:absolute;overflow:hidden;top:0}.rpv-core__doc-error{align-items:center;background-color:var(--rpv-core__doc-error-background-color);display:flex;justify-content:center;height:100%}.rpv-core__doc-error--rtl{direction:rtl}.rpv-core__doc-error-text{background-color:var(--rpv-core__doc-error-text-background-color);border-radius:.25rem;color:var(--rpv-core__doc-error-text-color);line-height:1.5;max-width:50%;padding:.5rem}.rpv-core__doc-loading{background-color:var(--rpv-core__doc-loading-background-color);align-items:center;display:flex;justify-content:center;height:100%;width:100%;min-height:inherit}.rpv-core__doc-loading--rtl{direction:rtl}.rpv-core__icon{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1;text-align:center}.rpv-core__icon--rtl{transform:scaleX(-1)}.rpv-core__inner-container{min-height:inherit}.rpv-core__inner-pages{overflow:auto}.rpv-core__inner-pages--rtl{direction:rtl}.rpv-core__inner-pages--single{overflow:hidden}.rpv-core__inner-page-container--single{overflow:auto}.rpv-core__inner-page{background-color:var(--rpv-core__inner-page-background-color)}.rpv-core__inner-page--single{display:flex;align-items:center;justify-content:center}.rpv-core__inner-page--dual-even{display:flex;align-items:center;justify-content:flex-end}.rpv-core__inner-page--dual-odd{display:flex;align-items:center;justify-content:flex-start}.rpv-core__inner-page--dual-cover{display:flex;align-items:center;justify-content:center}.rpv-core__inner-page--dual-cover-odd{display:flex;align-items:center;justify-content:flex-end}.rpv-core__inner-page--dual-cover-even{display:flex;align-items:center;justify-content:flex-start}.rpv-core__annotation--link a{height:100%;left:0;position:absolute;top:0;width:100%}.rpv-core__annotation--link a:hover{background-color:var(--rpv-core__annotation--link-hover-background-color)}.rpv-core__menu{display:flex;flex-direction:column}.rpv-core__menu--rtl{direction:rtl;text-align:right}.rpv-core__menu-divider{border-bottom:1px solid var(--rpv-core__menu-divider-border-bottom-color);margin:.25rem 0}.rpv-core__menu-item{align-items:center;background-color:#0000;color:var(--rpv-core__menu-item-color);border:none;cursor:pointer;display:flex;justify-content:center;padding:.25rem 0;width:100%}.rpv-core__menu-item:focus{background-color:var(--rpv-core__menu-item--hover-background-color);outline:0}.rpv-core__menu-item:hover{background-color:var(--rpv-core__menu-item--hover-background-color)}.rpv-core__menu-item-icon{align-items:center;display:flex}.rpv-core__menu-item-icon--ltr{padding-left:1rem;padding-right:.5rem}.rpv-core__menu-item-icon--rtl{padding-left:.5rem;padding-right:1rem}.rpv-core__menu-item-label{flex-grow:1;flex-shrink:1;white-space:nowrap}.rpv-core__menu-item-label--ltr{padding-right:2rem}.rpv-core__menu-item-label--rtl{padding-left:2rem}.rpv-core__menu-item-check--ltr{padding-right:1rem}.rpv-core__menu-item-check--rtl{padding-left:1rem}.rpv-core__menu-item--disabled{color:var(--rpv-core__menu-item--disabled-color)}.rpv-core__menu-item--disabled:hover{background-color:#0000}.rpv-core__menu-item--ltr{text-align:left}.rpv-core__menu-item--rtl{direction:rtl;text-align:right}.rpv-core__minimal-button{background-color:#0000;border:none;border-radius:.25rem;color:var(--rpv-core__minimal-button-color);cursor:pointer;height:2rem;padding:0 .5rem}.rpv-core__minimal-button:hover{background-color:var(--rpv-core__minimal-button--hover-background-color)}.rpv-core__minimal-button--disabled{color:var(--rpv-core__minimal-button--disabled-color)}.rpv-core__minimal-button--rtl{direction:rtl}.rpv-core__minimal-button--selected{background-color:var(--rpv-core__minimal-button--selected-background-color)}.rpv-core__modal-body{background-color:var(--rpv-core__modal-body-background-color);border:1px solid var(--rpv-core__modal-body-border-color);border-radius:.25rem;margin:1rem;max-width:32rem;overflow:auto}.rpv-core__modal-body--rtl{direction:rtl}.rpv-core__modal-overlay{background-color:var(--rpv-core__modal-overlay-background-color);bottom:0;left:0;position:fixed;right:0;top:0;z-index:9999;align-items:center;display:flex;justify-content:center}.rpv-core__page-layer{align-items:center;display:flex;justify-content:center;overflow:visible;position:relative}.rpv-core__page-layer:after{content:"";position:absolute;bottom:.25rem;left:.25rem;right:.25rem;top:.25rem;box-shadow:var(--rpv-core__page-layer-box-shadow)}.rpv-core__page-layer--single{margin:0 auto}.rpv-core__page-size-calculator{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.rpv-core__popover-body{background-color:var(--rpv-core__popover-body-background-color);border:1px solid var(--rpv-core__popover-body-border-color);border-radius:.25rem;color:var(--rpv-core__popover-body-color);left:0;padding:.5rem 0;position:absolute;top:-9999px;z-index:9999}.rpv-core__popover-body-arrow{background-color:var(--rpv-core__popover-body-background-color)}.rpv-core__popover-body--rtl{direction:rtl}.rpv-core__popover-overlay{bottom:0;left:0;position:fixed;right:0;top:0}.rpv-core__annotation-popup-wrapper{background-color:var(--rpv-core__annotation-popup-wrapper-background-color);box-shadow:var(--rpv-core__annotation-popup-wrapper-box-shadow);font-size:.75rem;padding:.25rem;word-break:break-word}.rpv-core__annotation-popup-wrapper--rtl{direction:rtl}.rpv-core__annotation-popup-title{font-weight:600;margin-bottom:.25rem}.rpv-core__annotation-popup-date{font-size:.5rem}.rpv-core__annotation-popup-content{border-top:1px solid var(--rpv-core__annotation-popup-content-border-top-color);padding:.25rem;max-height:16rem;overflow:auto}.rpv-core__primary-button{background-color:var(--rpv-core__primary-button-background-color);border:none;border-radius:.25rem;color:var(--rpv-core__primary-button-color);cursor:pointer;height:2rem;padding:0 1rem}.rpv-core__primary-button--rtl{direction:rtl}.rpv-core__progress-bar{background-color:var(--rpv-core__progress-bar-background-color);border-radius:9999px;padding:.125rem}.rpv-core__progress-bar--rtl{direction:rtl}.rpv-core__progress-bar-progress{align-items:center;background-color:var(--rpv-core__progress-bar-progress-background-color);border-radius:9999px;color:var(--rpv-core__progress-bar-progress-color);display:flex;font-size:.75rem;justify-content:center;height:.75rem}.rpv-core__separator{border-bottom:1px solid var(--rpv-core__separator-border-bottom-color)}.rpv-core__spinner{border-bottom:2px solid var(--rpv-core__spinner-border-transparent-color);border-left:2px solid var(--rpv-core__spinner-border-transparent-color);border-right:2px solid var(--rpv-core__spinner-border-color);border-top:2px solid var(--rpv-core__spinner-border-color);border-radius:9999px}.rpv-core__spinner--animating{animation-duration:.4s;animation-name:rpv-core__spinner-transform;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes rpv-core__spinner-transform{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.rpv-core__splitter{background-color:var(--rpv-core__splitter-background-color);cursor:ew-resize;height:100%;width:.25rem}.rpv-core__splitter:hover,.rpv-core__splitter--resizing{cursor:col-resize;background-color:var(--rpv-core__splitter--hover-background-color)}.rpv-core__splitter-body--resizing{cursor:col-resize}.rpv-core__splitter-sibling--resizing{pointer-events:none;-webkit-user-select:none;user-select:none}.rpv-core__textbox{background-color:var(--rpv-core__textbox-background-color);border:1px solid var(--rpv-core__textbox-border-color);box-sizing:border-box;border-radius:.25rem;color:var(--rpv-core__textbox-color);padding:0 .5rem;height:2rem;width:100%}.rpv-core__textbox--rtl{direction:rtl}.rpv-core__text-layer{left:0;position:absolute;top:0;height:100%;width:100%;opacity:.2;line-height:1;z-index:1}.rpv-core__text-layer span::selection{background-color:var(--rpv-core__text-layer-text--selection-background-color);color:var(--rpv-core__text-layer-text--selection-color)}.rpv-core__text-layer br::selection{color:#0000}.rpv-core__text-layer-text{color:#0000;cursor:text;position:absolute;transform-origin:0% 0%;white-space:pre}.rpv-core__tooltip-body{background-color:var(--rpv-core__tooltip-body-background-color);border-radius:.25rem;color:var(--rpv-core__tooltip-body-color);left:0;max-width:20rem;position:absolute;text-align:center;top:-9999px;z-index:9999}.rpv-core__tooltip-body--rtl{direction:rtl}.rpv-core__tooltip-body-arrow{background-color:var(--rpv-core__tooltip-body-background-color)}.rpv-core__tooltip-body-content{padding:.5rem}.rpv-core__display--block{display:block}.rpv-core__display--hidden{display:none}@media (min-width: 640px){.rpv-core__display--hidden-small{display:none}.rpv-core__display--block-small{display:block}}@media (min-width: 768px){.rpv-core__display--hidden-medium{display:none}.rpv-core__display--block-medium{display:block}}@media (min-width: 1024px){.rpv-core__display--hidden-large{display:none}.rpv-core__display--block-large{display:block}}.rpv-core__viewer{min-height:inherit}:root{--rpv-thumbnail__container-background-color: #fff;--rpv-thumbnail__container-box-shadow: rgba(0, 0, 0, .2) 2px 2px 8px 0px;--rpv-thumbnail__item--selected-background-color: rgba(0, 0, 0, .3)}.rpv-core__viewer--dark{--rpv-thumbnail__item--selected-background-color: #2566e8}.rpv-thumbnail__cover,.rpv-thumbnail__cover-inner{align-items:center;display:flex;justify-content:center;height:100%;width:100%;min-height:inherit}.rpv-thumbnail__cover-image{max-height:100%;max-width:100%}.rpv-thumbnail__cover-loader{align-items:center;display:flex;justify-content:center;height:100%;width:100%}.rpv-thumbnail__container{align-items:center;background:var(--rpv-thumbnail__container-background-color);box-shadow:var(--rpv-thumbnail__container-box-shadow);display:flex;justify-content:center;margin:0 auto;position:relative}.rpv-thumbnail__item{cursor:pointer}.rpv-thumbnail__item--single,.rpv-thumbnail__item--dual-cover{padding:.5rem}.rpv-thumbnail__item--dual-even,.rpv-thumbnail__item--dual-cover-odd{padding:.5rem 0 .5rem .5rem}.rpv-thumbnail__item--dual-odd,.rpv-thumbnail__item--dual-cover-even{padding:.5rem .5rem .5rem 0}.rpv-thumbnail__item--single:hover,.rpv-thumbnail__item--dual-cover:hover,.rpv-thumbnail__items--dual:hover .rpv-thumbnail__item,.rpv-thumbnail__items--dual-cover:hover .rpv-thumbnail__item{background-color:var(--rpv-thumbnail__item--selected-background-color)}.rpv-thumbnail__item:focus{outline:0}.rpv-thumbnail__label{font-size:.75em;text-align:center;padding:.25rem}.rpv-thumbnail__list{overflow:auto;padding:.5rem}.rpv-thumbnail__list--rtl{direction:rtl}.rpv-thumbnail__list--horizontal{align-items:center;display:flex;flex-direction:row;width:100%}.rpv-thumbnail__list--vertical{height:100%}.rpv-thumbnail__items{align-items:center;display:flex;justify-content:center}.rpv-thumbnail__items--selected .rpv-thumbnail__item{background-color:var(--rpv-thumbnail__item--selected-background-color)}.rpv-thumbnail__list-container{height:100%;width:100%}.rpv-thumbnail__loader{align-items:center;display:flex;height:100%;justify-content:center;width:100%}:root{--rpv-drop__area-background-color: #fff;--rpv-drop__area-body-border-color: rgba(0, 0, 0, .3);--rpv-drop__area-body-color: #000}.rpv-core__viewer--dark{--rpv-drop__area-background-color: #191919;--rpv-drop__area-body-border-color: #fff;--rpv-drop__area-body-color: #fff}.rpv-drop__area{background-color:var(--rpv-drop__area-background-color);bottom:0;left:0;position:absolute;right:0;top:0;padding:.5rem;z-index:9999}.rpv-drop__area-body{border:2px dashed var(--rpv-drop__area-body-border-color);color:var(--rpv-drop__area-body-color);font-size:1.5rem;align-items:center;display:flex;justify-content:center;height:100%}.rpv-drop__area-body--rtl{direction:rtl}:root{--rpv-full-screen__overlay-background-color: #fff}.rpv-core__viewer--dark{--rpv-full-screen__overlay-background-color: #1a1a1a}.rpv-full-screen__exit-button{bottom:0;padding:.5rem;position:fixed;z-index:2}.rpv-full-screen__exit-button--ltr{right:0}.rpv-full-screen__exit-button--rtl{left:0}.rpv-full-screen__overlay{position:fixed;top:0;left:0;height:100%;width:100%;align-items:center;display:flex;justify-content:center;background-color:var(--rpv-full-screen__overlay-background-color);z-index:1}.rpv-open__input-wrapper{position:relative}.rpv-open__input{display:none;bottom:0;cursor:pointer;height:100%;left:0;opacity:0;position:absolute;right:0;top:0;width:100%}.rpv-open__input::-webkit-file-upload-button{width:0}.rpv-page-navigation__current-page-input{margin:0 .25rem;text-align:right;width:3rem}:root{--rpv-print__progress-body-background-color: #fff;--rpv-print__progress-body-border-color: rgba(0, 0, 0, .3);--rpv-print__progress-body-color: #000}.rpv-core__viewer--dark{--rpv-print__progress-body-background-color: #363636;--rpv-print__progress-body-border-color: transparent;--rpv-print__progress-body-color: #fff}.rpv-print__permission-body{padding:1rem}.rpv-print__permission-footer{display:flex;justify-content:center;padding:0 1rem 1rem 0}.rpv-print__progress{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:9999}.rpv-print__progress-body{background-color:var(--rpv-print__progress-body-background-color);border:1px solid var(--rpv-print__progress-body-border-color);border-radius:.25rem;color:var(--rpv-print__progress-body-color);padding:1.5rem;text-align:center;width:15rem}.rpv-print__progress-body--rtl{direction:rtl}.rpv-print__progress-bar{margin-bottom:1rem}.rpv-print__progress-message{margin-bottom:.5rem}.rpv-print__zone{display:none}@media print{@page{margin:0}.rpv-print__html-printing{height:100%}.rpv-print__body-printing{height:100%;margin:0}.rpv-print__body-printing *{display:none}.rpv-print__zone{display:block;height:100%}.rpv-print__page{align-items:center;display:flex;flex-direction:column;justify-content:center;height:100%;width:100%;page-break-after:always;page-break-inside:avoid}.rpv-print__page img{display:block;max-height:100%;max-width:100%}}.rpv-properties__loader{text-align:center}.rpv-properties__modal{min-height:20rem;padding:.5rem 0}.rpv-properties__modal-section{padding:0 .5rem}.rpv-properties__modal-footer{display:flex;justify-content:center;margin-top:.5rem}.rpv-properties__item{align-items:flex-start;display:flex;margin:.5rem 0}.rpv-properties__item--rtl{direction:rtl}.rpv-properties__item-label{padding-right:.5rem;width:25%}.rpv-properties__item-value{flex:1}.rpv-search__highlights{left:0;position:absolute;top:0;height:100%;width:100%}.rpv-search__highlight{background-color:var(--rpv-search__highlight-background-color);border-radius:.25rem;position:absolute;z-index:1}.rpv-search__highlight--current{background-color:var(--rpv-search__highlight--current-background-color)}.rpv-search__popover{padding:0 .5rem}.rpv-search__popover-input-counter{align-items:center;display:flex;margin-bottom:.5rem;position:relative;width:12rem}.rpv-search__popover-counter{align-items:center;bottom:0;display:flex;position:absolute;top:0}.rpv-search__popover-counter--ltr{padding-right:.25rem;right:0}.rpv-search__popover-counter--rtl{left:0;padding-left:.25rem}.rpv-search__popover-label{align-items:center;cursor:pointer;display:flex;margin-bottom:.5rem}.rpv-search__popover-label-checkbox{cursor:pointer;margin-right:.25rem}.rpv-search__popover-footer{align-items:center;display:flex}.rpv-search__popover-footer-item{padding:0 .25rem}.rpv-search__popover-footer-button--ltr{margin-left:auto}.rpv-search__popover-footer-button--rtl{margin-right:auto}:root{--rpv-search__highlight-background-color: rgba(255, 255, 0, .4);--rpv-search__highlight--current-background-color: rgba(0, 128, 0, .4)}.rpv-selection-mode__grab{cursor:grab}.rpv-selection-mode__grab :not(input),.rpv-selection-mode__grab :not(select),.rpv-selection-mode__grab :not(textarea){cursor:grab!important}.rpv-selection-mode__grabbing{cursor:grabbing}.rpv-selection-mode__grabbing :not(input),.rpv-selection-mode__grabbing :not(select),.rpv-selection-mode__grabbing :not(textarea){cursor:grabbing!important}:root{--rpv-zoom__popover-target-arrow-border-color: rgba(0, 0, 0, .6)}.rpv-core__viewer--dark{--rpv-zoom__popover-target-arrow-border-color: #fff}.rpv-zoom__popover-target{align-items:center;color:var(--rpv-zoom__popover-target-color);display:flex}.rpv-zoom__popover-target-scale--ltr{margin-right:.25rem}.rpv-zoom__popover-target-scale--rtl{margin-left:.25rem}.rpv-zoom__popover-target-arrow{border-color:var(--rpv-zoom__popover-target-arrow-border-color) rgba(0,0,0,0) rgba(0,0,0,0);border-style:solid;border-width:.5rem .25rem 0;height:0;width:0}:root{--rpv-toolbar__label--color: #000}.rpv-core__viewer--dark{--rpv-toolbar__label--color: #fff}.rpv-toolbar{align-items:center;display:flex;width:100%}.rpv-toolbar--rtl{direction:rtl}.rpv-toolbar__left{align-items:center;display:flex}.rpv-toolbar__center{align-items:center;display:flex;flex-grow:1;flex-shrink:1;justify-content:center}.rpv-toolbar__right{align-items:center;display:flex;margin-left:auto}.rpv-toolbar__item{align-items:center;display:flex;padding:0 .125rem}.rpv-toolbar__label{color:var(--rpv-toolbar__label--color)}:root{--rpv-default-layout__body-background-color: #fff;--rpv-default-layout__container-border-color: rgba(0, 0, 0, .3);--rpv-default-layout__toolbar-background-color: #eee;--rpv-default-layout__toolbar-border-bottom-color: rgba(0, 0, 0, .1);--rpv-default-layout__sidebar-border-color: rgba(0, 0, 0, .2);--rpv-default-layout__sidebar--opened-background-color: #fff;--rpv-default-layout__sidebar-headers-background-color: #eee;--rpv-default-layout__sidebar-content--opened-background-color: #fff;--rpv-default-layout__sidebar-content--opened-border-color: rgba(0, 0, 0, .2);--rpv-default-layout__sidebar-content--opened-color: #000}.rpv-core__viewer--dark{--rpv-default-layout__body-background-color: #1a1a1a;--rpv-default-layout__container-border-color: #454647;--rpv-default-layout__toolbar-background-color: #292929;--rpv-default-layout__toolbar-border-bottom-color: #000;--rpv-default-layout__sidebar-border-color: #000;--rpv-default-layout__sidebar--opened-background-color: #fff;--rpv-default-layout__sidebar-headers-background-color: #292929;--rpv-default-layout__sidebar-content--opened-background-color: #1a1a1a;--rpv-default-layout__sidebar-content--opened-border-color: #292929;--rpv-default-layout__sidebar-content--opened-color: #fff}.rpv-default-layout__container{border:1px solid var(--rpv-default-layout__container-border-color);box-sizing:border-box;height:100%;width:100%}.rpv-default-layout__toolbar{align-items:center;background-color:var(--rpv-default-layout__toolbar-background-color);border-bottom:1px solid var(--rpv-default-layout__toolbar-border-bottom-color);display:flex;left:0;position:absolute;top:0;height:2.5rem;width:100%;z-index:1}.rpv-default-layout__sidebar{display:flex;padding-top:2.5rem}.rpv-default-layout__sidebar--opened{bottom:0;left:0;position:absolute;top:0;width:12rem;background-color:var(--rpv-default-layout__sidebar--opened-background-color);z-index:1}.rpv-default-layout__sidebar--ltr{border-right:1px solid var(--rpv-default-layout__sidebar-border-color)}.rpv-default-layout__sidebar--rtl{border-left:1px solid var(--rpv-default-layout__sidebar-border-color)}.rpv-default-layout__main{display:flex;height:100%;position:relative}.rpv-default-layout__main--rtl{direction:rtl}.rpv-default-layout__body{background-color:var(--rpv-default-layout__body-background-color);flex:1;overflow:auto;padding-top:2.5rem}@media (min-width: 768px){.rpv-default-layout__sidebar--opened{width:16rem}}@media (min-width: 1024px){.rpv-default-layout__sidebar--opened{background:inherit;position:inherit;width:20rem;z-index:inherit}}.rpv-default-layout__sidebar-tabs{display:flex;height:100%;width:100%}.rpv-default-layout__sidebar-headers{background-color:var(--rpv-default-layout__sidebar-headers-background-color);padding:.25rem}.rpv-default-layout__sidebar-header{padding:.125rem}.rpv-default-layout__sidebar-content{display:none;flex-grow:1;flex-shrink:1}.rpv-default-layout__sidebar-content--opened{background-color:var(--rpv-default-layout__sidebar-content--opened-background-color);color:var(--rpv-default-layout__sidebar-content--opened-color);display:flex;overflow:hidden}.rpv-default-layout__sidebar-content--ltr{border-left:1px solid var(--rpv-default-layout__sidebar-content--opened-border-color)}.rpv-default-layout__sidebar-content--rtl{border-right:1px solid var(--rpv-default-layout__sidebar-content--opened-border-color)} diff --git a/assets/index-DTwY8RYW.js b/assets/index-DTwY8RYW.js new file mode 100644 index 0000000..be26344 --- /dev/null +++ b/assets/index-DTwY8RYW.js @@ -0,0 +1,376 @@ +var cp=Object.defineProperty;var Ul=$=>{throw TypeError($)};var up=($,_e,et)=>_e in $?cp($,_e,{enumerable:!0,configurable:!0,writable:!0,value:et}):$[_e]=et;var Gr=($,_e,et)=>up($,typeof _e!="symbol"?_e+"":_e,et),ks=($,_e,et)=>_e.has($)||Ul("Cannot "+et);var Ct=($,_e,et)=>(ks($,_e,"read from private field"),et?et.call($):_e.get($)),Sn=($,_e,et)=>_e.has($)?Ul("Cannot add the same private member more than once"):_e instanceof WeakSet?_e.add($):_e.set($,et),wn=($,_e,et,tt)=>(ks($,_e,"write to private field"),tt?tt.call($,et):_e.set($,et),et),mn=($,_e,et)=>(ks($,_e,"access private method"),et);var zo=($,_e,et,tt)=>({set _(nt){wn($,_e,nt,et)},get _(){return Ct($,_e,tt)}});function _mergeNamespaces($,_e){for(var et=0;et<_e.length;et++){const tt=_e[et];if(typeof tt!="string"&&!Array.isArray(tt)){for(const nt in tt)if(nt!=="default"&&!(nt in $)){const rt=Object.getOwnPropertyDescriptor(tt,nt);rt&&Object.defineProperty($,nt,rt.get?rt:{enumerable:!0,get:()=>tt[nt]})}}}return Object.freeze(Object.defineProperty($,Symbol.toStringTag,{value:"Module"}))}(function(){const _e=document.createElement("link").relList;if(_e&&_e.supports&&_e.supports("modulepreload"))return;for(const nt of document.querySelectorAll('link[rel="modulepreload"]'))tt(nt);new MutationObserver(nt=>{for(const rt of nt)if(rt.type==="childList")for(const ot of rt.addedNodes)ot.tagName==="LINK"&&ot.rel==="modulepreload"&&tt(ot)}).observe(document,{childList:!0,subtree:!0});function et(nt){const rt={};return nt.integrity&&(rt.integrity=nt.integrity),nt.referrerPolicy&&(rt.referrerPolicy=nt.referrerPolicy),nt.crossOrigin==="use-credentials"?rt.credentials="include":nt.crossOrigin==="anonymous"?rt.credentials="omit":rt.credentials="same-origin",rt}function tt(nt){if(nt.ep)return;nt.ep=!0;const rt=et(nt);fetch(nt.href,rt)}})();function getDefaultExportFromCjs($){return $&&$.__esModule&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$}function getAugmentedNamespace($){if($.__esModule)return $;var _e=$.default;if(typeof _e=="function"){var et=function tt(){return this instanceof tt?Reflect.construct(_e,arguments,this.constructor):_e.apply(this,arguments)};et.prototype=_e.prototype}else et={};return Object.defineProperty(et,"__esModule",{value:!0}),Object.keys($).forEach(function(tt){var nt=Object.getOwnPropertyDescriptor($,tt);Object.defineProperty(et,tt,nt.get?nt:{enumerable:!0,get:function(){return $[tt]}})}),et}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var l$h=Symbol.for("react.element"),n$i=Symbol.for("react.portal"),p$c=Symbol.for("react.fragment"),q$3=Symbol.for("react.strict_mode"),r$h=Symbol.for("react.profiler"),t$h=Symbol.for("react.provider"),u$f=Symbol.for("react.context"),v$9=Symbol.for("react.forward_ref"),w$3=Symbol.for("react.suspense"),x$3=Symbol.for("react.memo"),y$3=Symbol.for("react.lazy"),z$3=Symbol.iterator;function A$2($){return $===null||typeof $!="object"?null:($=z$3&&$[z$3]||$["@@iterator"],typeof $=="function"?$:null)}var B$1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$5=Object.assign,D$2={};function E$7($,_e,et){this.props=$,this.context=_e,this.refs=D$2,this.updater=et||B$1}E$7.prototype.isReactComponent={};E$7.prototype.setState=function($,_e){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,_e,"setState")};E$7.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function F$1(){}F$1.prototype=E$7.prototype;function G$1($,_e,et){this.props=$,this.context=_e,this.refs=D$2,this.updater=et||B$1}var H$1=G$1.prototype=new F$1;H$1.constructor=G$1;C$5(H$1,E$7.prototype);H$1.isPureReactComponent=!0;var I$4=Array.isArray,J=Object.prototype.hasOwnProperty,K$1={current:null},L$2={key:!0,ref:!0,__self:!0,__source:!0};function M$4($,_e,et){var tt,nt={},rt=null,ot=null;if(_e!=null)for(tt in _e.ref!==void 0&&(ot=_e.ref),_e.key!==void 0&&(rt=""+_e.key),_e)J.call(_e,tt)&&!L$2.hasOwnProperty(tt)&&(nt[tt]=_e[tt]);var it=arguments.length-2;if(it===1)nt.children=et;else if(1>>1,Dt=Wt[Yt];if(0>>1;Ytnt(Mt,Ft))Otnt(zt,Mt)?(Wt[Yt]=zt,Wt[Ot]=Ft,Yt=Ot):(Wt[Yt]=Mt,Wt[wt]=Ft,Yt=wt);else if(Otnt(zt,Ft))Wt[Yt]=zt,Wt[Ot]=Ft,Yt=Ot;else break e}}return It}function nt(Wt,It){var Ft=Wt.sortIndex-It.sortIndex;return Ft!==0?Ft:Wt.id-It.id}if(typeof performance=="object"&&typeof performance.now=="function"){var rt=performance;$.unstable_now=function(){return rt.now()}}else{var ot=Date,it=ot.now();$.unstable_now=function(){return ot.now()-it}}var st=[],at=[],lt=1,ht=null,pt=3,gt=!1,ft=!1,dt=!1,mt=typeof setTimeout=="function"?setTimeout:null,ct=typeof clearTimeout=="function"?clearTimeout:null,ut=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function vt(Wt){for(var It=et(at);It!==null;){if(It.callback===null)tt(at);else if(It.startTime<=Wt)tt(at),It.sortIndex=It.expirationTime,_e(st,It);else break;It=et(at)}}function bt(Wt){if(dt=!1,vt(Wt),!ft)if(et(st)!==null)ft=!0,Kt(yt);else{var It=et(at);It!==null&&Vt(bt,It.startTime-Wt)}}function yt(Wt,It){ft=!1,dt&&(dt=!1,ct(St),St=-1),gt=!0;var Ft=pt;try{for(vt(It),ht=et(st);ht!==null&&(!(ht.expirationTime>It)||Wt&&!$t());){var Yt=ht.callback;if(typeof Yt=="function"){ht.callback=null,pt=ht.priorityLevel;var Dt=Yt(ht.expirationTime<=It);It=$.unstable_now(),typeof Dt=="function"?ht.callback=Dt:ht===et(st)&&tt(st),vt(It)}else tt(st);ht=et(st)}if(ht!==null)var Rt=!0;else{var wt=et(at);wt!==null&&Vt(bt,wt.startTime-It),Rt=!1}return Rt}finally{ht=null,pt=Ft,gt=!1}}var Et=!1,xt=null,St=-1,kt=5,At=-1;function $t(){return!($.unstable_now()-AtWt||125Yt?(Wt.sortIndex=Ft,_e(at,Wt),et(st)===null&&Wt===et(at)&&(dt?(ct(St),St=-1):dt=!0,Vt(bt,Ft-Yt))):(Wt.sortIndex=Dt,_e(st,Wt),ft||gt||(ft=!0,Kt(yt))),Wt},$.unstable_shouldYield=$t,$.unstable_wrapCallback=function(Wt){var It=pt;return function(){var Ft=pt;pt=It;try{return Wt.apply(this,arguments)}finally{pt=Ft}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var aa=reactExports,ca=schedulerExports;function p$a($){for(var _e="https://reactjs.org/docs/error-decoder.html?invariant="+$,et=1;et"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,ka=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,la={},ma={};function oa($){return ja.call(ma,$)?!0:ja.call(la,$)?!1:ka.test($)?ma[$]=!0:(la[$]=!0,!1)}function pa($,_e,et,tt){if(et!==null&&et.type===0)return!1;switch(typeof _e){case"function":case"symbol":return!0;case"boolean":return tt?!1:et!==null?!et.acceptsBooleans:($=$.toLowerCase().slice(0,5),$!=="data-"&&$!=="aria-");default:return!1}}function qa($,_e,et,tt){if(_e===null||typeof _e>"u"||pa($,_e,et,tt))return!0;if(tt)return!1;if(et!==null)switch(et.type){case 3:return!_e;case 4:return _e===!1;case 5:return isNaN(_e);case 6:return isNaN(_e)||1>_e}return!1}function v$8($,_e,et,tt,nt,rt,ot){this.acceptsBooleans=_e===2||_e===3||_e===4,this.attributeName=tt,this.attributeNamespace=nt,this.mustUseProperty=et,this.propertyName=$,this.type=_e,this.sanitizeURL=rt,this.removeEmptyString=ot}var z$2={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function($){z$2[$]=new v$8($,0,!1,$,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function($){var _e=$[0];z$2[_e]=new v$8(_e,1,!1,$[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function($){z$2[$]=new v$8($,2,!1,$.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function($){z$2[$]=new v$8($,2,!1,$,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function($){z$2[$]=new v$8($,3,!1,$.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function($){z$2[$]=new v$8($,3,!0,$,null,!1,!1)});["capture","download"].forEach(function($){z$2[$]=new v$8($,4,!1,$,null,!1,!1)});["cols","rows","size","span"].forEach(function($){z$2[$]=new v$8($,6,!1,$,null,!1,!1)});["rowSpan","start"].forEach(function($){z$2[$]=new v$8($,5,!1,$.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa($){return $[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function($){var _e=$.replace(ra,sa);z$2[_e]=new v$8(_e,1,!1,$,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function($){var _e=$.replace(ra,sa);z$2[_e]=new v$8(_e,1,!1,$,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function($){var _e=$.replace(ra,sa);z$2[_e]=new v$8(_e,1,!1,$,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function($){z$2[$]=new v$8($,1,!1,$.toLowerCase(),null,!1,!1)});z$2.xlinkHref=new v$8("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function($){z$2[$]=new v$8($,1,!1,$.toLowerCase(),null,!0,!0)});function ta($,_e,et,tt){var nt=z$2.hasOwnProperty(_e)?z$2[_e]:null;(nt!==null?nt.type!==0:tt||!(2<_e.length)||_e[0]!=="o"&&_e[0]!=="O"||_e[1]!=="n"&&_e[1]!=="N")&&(qa(_e,et,nt,tt)&&(et=null),tt||nt===null?oa(_e)&&(et===null?$.removeAttribute(_e):$.setAttribute(_e,""+et)):nt.mustUseProperty?$[nt.propertyName]=et===null?nt.type===3?!1:"":et:(_e=nt.attributeName,tt=nt.attributeNamespace,et===null?$.removeAttribute(_e):(nt=nt.type,et=nt===3||nt===4&&et===!0?"":""+et,tt?$.setAttributeNS(tt,_e,et):$.setAttribute(_e,et))))}var ua=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Ha=Symbol.for("react.lazy"),Ia=Symbol.for("react.offscreen"),Ja=Symbol.iterator;function Ka($){return $===null||typeof $!="object"?null:($=Ja&&$[Ja]||$["@@iterator"],typeof $=="function"?$:null)}var A$1=Object.assign,La;function Ma($){if(La===void 0)try{throw Error()}catch(et){var _e=et.stack.trim().match(/\n( *(at )?)/);La=_e&&_e[1]||""}return` +`+La+$}var Na=!1;function Oa($,_e){if(!$||Na)return"";Na=!0;var et=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(_e)if(_e=function(){throw Error()},Object.defineProperty(_e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_e,[])}catch(at){var tt=at}Reflect.construct($,[],_e)}else{try{_e.call()}catch(at){tt=at}$.call(_e.prototype)}else{try{throw Error()}catch(at){tt=at}$()}}catch(at){if(at&&tt&&typeof at.stack=="string"){for(var nt=at.stack.split(` +`),rt=tt.stack.split(` +`),ot=nt.length-1,it=rt.length-1;1<=ot&&0<=it&&nt[ot]!==rt[it];)it--;for(;1<=ot&&0<=it;ot--,it--)if(nt[ot]!==rt[it]){if(ot!==1||it!==1)do if(ot--,it--,0>it||nt[ot]!==rt[it]){var st=` +`+nt[ot].replace(" at new "," at ");return $.displayName&&st.includes("")&&(st=st.replace("",$.displayName)),st}while(1<=ot&&0<=it);break}}}finally{Na=!1,Error.prepareStackTrace=et}return($=$?$.displayName||$.name:"")?Ma($):""}function Pa($){switch($.tag){case 5:return Ma($.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return $=Oa($.type,!1),$;case 11:return $=Oa($.type.render,!1),$;case 1:return $=Oa($.type,!0),$;default:return""}}function Qa($){if($==null)return null;if(typeof $=="function")return $.displayName||$.name||null;if(typeof $=="string")return $;switch($){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof $=="object")switch($.$$typeof){case Ca:return($.displayName||"Context")+".Consumer";case Ba:return($._context.displayName||"Context")+".Provider";case Da:var _e=$.render;return $=$.displayName,$||($=_e.displayName||_e.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case Ga:return _e=$.displayName||null,_e!==null?_e:Qa($.type)||"Memo";case Ha:_e=$._payload,$=$._init;try{return Qa($(_e))}catch{}}return null}function Ra($){var _e=$.type;switch($.tag){case 24:return"Cache";case 9:return(_e.displayName||"Context")+".Consumer";case 10:return(_e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return $=_e.render,$=$.displayName||$.name||"",_e.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 5:return _e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(_e);case 8:return _e===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof _e=="function")return _e.displayName||_e.name||null;if(typeof _e=="string")return _e}return null}function Sa($){switch(typeof $){case"boolean":case"number":case"string":case"undefined":return $;case"object":return $;default:return""}}function Ta($){var _e=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(_e==="checkbox"||_e==="radio")}function Ua($){var _e=Ta($)?"checked":"value",et=Object.getOwnPropertyDescriptor($.constructor.prototype,_e),tt=""+$[_e];if(!$.hasOwnProperty(_e)&&typeof et<"u"&&typeof et.get=="function"&&typeof et.set=="function"){var nt=et.get,rt=et.set;return Object.defineProperty($,_e,{configurable:!0,get:function(){return nt.call(this)},set:function(ot){tt=""+ot,rt.call(this,ot)}}),Object.defineProperty($,_e,{enumerable:et.enumerable}),{getValue:function(){return tt},setValue:function(ot){tt=""+ot},stopTracking:function(){$._valueTracker=null,delete $[_e]}}}}function Va($){$._valueTracker||($._valueTracker=Ua($))}function Wa($){if(!$)return!1;var _e=$._valueTracker;if(!_e)return!0;var et=_e.getValue(),tt="";return $&&(tt=Ta($)?$.checked?"true":"false":$.value),$=tt,$!==et?(_e.setValue($),!0):!1}function Xa($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch{return $.body}}function Ya($,_e){var et=_e.checked;return A$1({},_e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:et??$._wrapperState.initialChecked})}function Za($,_e){var et=_e.defaultValue==null?"":_e.defaultValue,tt=_e.checked!=null?_e.checked:_e.defaultChecked;et=Sa(_e.value!=null?_e.value:et),$._wrapperState={initialChecked:tt,initialValue:et,controlled:_e.type==="checkbox"||_e.type==="radio"?_e.checked!=null:_e.value!=null}}function ab($,_e){_e=_e.checked,_e!=null&&ta($,"checked",_e,!1)}function bb($,_e){ab($,_e);var et=Sa(_e.value),tt=_e.type;if(et!=null)tt==="number"?(et===0&&$.value===""||$.value!=et)&&($.value=""+et):$.value!==""+et&&($.value=""+et);else if(tt==="submit"||tt==="reset"){$.removeAttribute("value");return}_e.hasOwnProperty("value")?cb($,_e.type,et):_e.hasOwnProperty("defaultValue")&&cb($,_e.type,Sa(_e.defaultValue)),_e.checked==null&&_e.defaultChecked!=null&&($.defaultChecked=!!_e.defaultChecked)}function db($,_e,et){if(_e.hasOwnProperty("value")||_e.hasOwnProperty("defaultValue")){var tt=_e.type;if(!(tt!=="submit"&&tt!=="reset"||_e.value!==void 0&&_e.value!==null))return;_e=""+$._wrapperState.initialValue,et||_e===$.value||($.value=_e),$.defaultValue=_e}et=$.name,et!==""&&($.name=""),$.defaultChecked=!!$._wrapperState.initialChecked,et!==""&&($.name=et)}function cb($,_e,et){(_e!=="number"||Xa($.ownerDocument)!==$)&&(et==null?$.defaultValue=""+$._wrapperState.initialValue:$.defaultValue!==""+et&&($.defaultValue=""+et))}var eb=Array.isArray;function fb($,_e,et,tt){if($=$.options,_e){_e={};for(var nt=0;nt"+_e.valueOf().toString()+"",_e=mb.firstChild;$.firstChild;)$.removeChild($.firstChild);for(;_e.firstChild;)$.appendChild(_e.firstChild)}});function ob($,_e){if(_e){var et=$.firstChild;if(et&&et===$.lastChild&&et.nodeType===3){et.nodeValue=_e;return}}$.textContent=_e}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function($){qb.forEach(function(_e){_e=_e+$.charAt(0).toUpperCase()+$.substring(1),pb[_e]=pb[$]})});function rb($,_e,et){return _e==null||typeof _e=="boolean"||_e===""?"":et||typeof _e!="number"||_e===0||pb.hasOwnProperty($)&&pb[$]?(""+_e).trim():_e+"px"}function sb($,_e){$=$.style;for(var et in _e)if(_e.hasOwnProperty(et)){var tt=et.indexOf("--")===0,nt=rb(et,_e[et],tt);et==="float"&&(et="cssFloat"),tt?$.setProperty(et,nt):$[et]=nt}}var tb=A$1({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub($,_e){if(_e){if(tb[$]&&(_e.children!=null||_e.dangerouslySetInnerHTML!=null))throw Error(p$a(137,$));if(_e.dangerouslySetInnerHTML!=null){if(_e.children!=null)throw Error(p$a(60));if(typeof _e.dangerouslySetInnerHTML!="object"||!("__html"in _e.dangerouslySetInnerHTML))throw Error(p$a(61))}if(_e.style!=null&&typeof _e.style!="object")throw Error(p$a(62))}}function vb($,_e){if($.indexOf("-")===-1)return typeof _e.is=="string";switch($){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}var yb=null,zb=null,Ab=null;function Bb($){if($=Cb($)){if(typeof yb!="function")throw Error(p$a(280));var _e=$.stateNode;_e&&(_e=Db(_e),yb($.stateNode,$.type,_e))}}function Eb($){zb?Ab?Ab.push($):Ab=[$]:zb=$}function Fb(){if(zb){var $=zb,_e=Ab;if(Ab=zb=null,Bb($),_e)for($=0;$<_e.length;$++)Bb(_e[$])}}function Gb($,_e){return $(_e)}function Hb(){}var Ib=!1;function Jb($,_e,et){if(Ib)return $(_e,et);Ib=!0;try{return Gb($,_e,et)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb($,_e){var et=$.stateNode;if(et===null)return null;var tt=Db(et);if(tt===null)return null;et=tt[_e];e:switch(_e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(tt=!tt.disabled)||($=$.type,tt=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!tt;break e;default:$=!1}if($)return null;if(et&&typeof et!="function")throw Error(p$a(231,_e,typeof et));return et}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb($,_e,et,tt,nt,rt,ot,it,st){var at=Array.prototype.slice.call(arguments,3);try{_e.apply(et,at)}catch(lt){this.onError(lt)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function($){Ob=!0,Pb=$}};function Tb($,_e,et,tt,nt,rt,ot,it,st){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub($,_e,et,tt,nt,rt,ot,it,st){if(Tb.apply(this,arguments),Ob){if(Ob){var at=Pb;Ob=!1,Pb=null}else throw Error(p$a(198));Qb||(Qb=!0,Rb=at)}}function Vb($){var _e=$,et=$;if($.alternate)for(;_e.return;)_e=_e.return;else{$=_e;do _e=$,_e.flags&4098&&(et=_e.return),$=_e.return;while($)}return _e.tag===3?et:null}function Wb($){if($.tag===13){var _e=$.memoizedState;if(_e===null&&($=$.alternate,$!==null&&(_e=$.memoizedState)),_e!==null)return _e.dehydrated}return null}function Xb($){if(Vb($)!==$)throw Error(p$a(188))}function Yb($){var _e=$.alternate;if(!_e){if(_e=Vb($),_e===null)throw Error(p$a(188));return _e!==$?null:$}for(var et=$,tt=_e;;){var nt=et.return;if(nt===null)break;var rt=nt.alternate;if(rt===null){if(tt=nt.return,tt!==null){et=tt;continue}break}if(nt.child===rt.child){for(rt=nt.child;rt;){if(rt===et)return Xb(nt),$;if(rt===tt)return Xb(nt),_e;rt=rt.sibling}throw Error(p$a(188))}if(et.return!==tt.return)et=nt,tt=rt;else{for(var ot=!1,it=nt.child;it;){if(it===et){ot=!0,et=nt,tt=rt;break}if(it===tt){ot=!0,tt=nt,et=rt;break}it=it.sibling}if(!ot){for(it=rt.child;it;){if(it===et){ot=!0,et=rt,tt=nt;break}if(it===tt){ot=!0,tt=rt,et=nt;break}it=it.sibling}if(!ot)throw Error(p$a(189))}}if(et.alternate!==tt)throw Error(p$a(190))}if(et.tag!==3)throw Error(p$a(188));return et.stateNode.current===et?$:_e}function Zb($){return $=Yb($),$!==null?$b($):null}function $b($){if($.tag===5||$.tag===6)return $;for($=$.child;$!==null;){var _e=$b($);if(_e!==null)return _e;$=$.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc($){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,$,void 0,($.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc($){return $>>>=0,$===0?32:31-(pc($)/qc|0)|0}var rc=64,sc=4194304;function tc($){switch($&-$){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return $&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return $&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return $}}function uc($,_e){var et=$.pendingLanes;if(et===0)return 0;var tt=0,nt=$.suspendedLanes,rt=$.pingedLanes,ot=et&268435455;if(ot!==0){var it=ot&~nt;it!==0?tt=tc(it):(rt&=ot,rt!==0&&(tt=tc(rt)))}else ot=et&~nt,ot!==0?tt=tc(ot):rt!==0&&(tt=tc(rt));if(tt===0)return 0;if(_e!==0&&_e!==tt&&!(_e&nt)&&(nt=tt&-tt,rt=_e&-_e,nt>=rt||nt===16&&(rt&4194240)!==0))return _e;if(tt&4&&(tt|=et&16),_e=$.entangledLanes,_e!==0)for($=$.entanglements,_e&=tt;0<_e;)et=31-oc(_e),nt=1<et;et++)_e.push($);return _e}function Ac($,_e,et){$.pendingLanes|=_e,_e!==536870912&&($.suspendedLanes=0,$.pingedLanes=0),$=$.eventTimes,_e=31-oc(_e),$[_e]=et}function Bc($,_e){var et=$.pendingLanes&~_e;$.pendingLanes=_e,$.suspendedLanes=0,$.pingedLanes=0,$.expiredLanes&=_e,$.mutableReadLanes&=_e,$.entangledLanes&=_e,_e=$.entanglements;var tt=$.eventTimes;for($=$.expirationTimes;0=be),ee=" ",fe=!1;function ge($,_e){switch($){case"keyup":return $d.indexOf(_e.keyCode)!==-1;case"keydown":return _e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he($){return $=$.detail,typeof $=="object"&&"data"in $?$.data:null}var ie=!1;function je($,_e){switch($){case"compositionend":return he(_e);case"keypress":return _e.which!==32?null:(fe=!0,ee);case"textInput":return $=_e.data,$===ee&&fe?null:$;default:return null}}function ke($,_e){if(ie)return $==="compositionend"||!ae&&ge($,_e)?($=nd(),md=ld=kd=null,ie=!1,$):null;switch($){case"paste":return null;case"keypress":if(!(_e.ctrlKey||_e.altKey||_e.metaKey)||_e.ctrlKey&&_e.altKey){if(_e.char&&1<_e.char.length)return _e.char;if(_e.which)return String.fromCharCode(_e.which)}return null;case"compositionend":return de&&_e.locale!=="ko"?null:_e.data;default:return null}}var le={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me($){var _e=$&&$.nodeName&&$.nodeName.toLowerCase();return _e==="input"?!!le[$.type]:_e==="textarea"}function ne($,_e,et,tt){Eb(tt),_e=oe(_e,"onChange"),0<_e.length&&(et=new td("onChange","change",null,et,tt),$.push({event:et,listeners:_e}))}var pe=null,qe=null;function re($){se($,0)}function te($){var _e=ue($);if(Wa(_e))return $}function ve($,_e){if($==="change")return _e}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye=typeof ze.oninput=="function"}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9=_e)return{node:et,offset:_e-$};$=tt}e:{for(;et;){if(et.nextSibling){et=et.nextSibling;break e}et=et.parentNode}et=void 0}et=Je(et)}}function Le($,_e){return $&&_e?$===_e?!0:$&&$.nodeType===3?!1:_e&&_e.nodeType===3?Le($,_e.parentNode):"contains"in $?$.contains(_e):$.compareDocumentPosition?!!($.compareDocumentPosition(_e)&16):!1:!1}function Me(){for(var $=window,_e=Xa();_e instanceof $.HTMLIFrameElement;){try{var et=typeof _e.contentWindow.location.href=="string"}catch{et=!1}if(et)$=_e.contentWindow;else break;_e=Xa($.document)}return _e}function Ne($){var _e=$&&$.nodeName&&$.nodeName.toLowerCase();return _e&&(_e==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||_e==="textarea"||$.contentEditable==="true")}function Oe($){var _e=Me(),et=$.focusedElem,tt=$.selectionRange;if(_e!==et&&et&&et.ownerDocument&&Le(et.ownerDocument.documentElement,et)){if(tt!==null&&Ne(et)){if(_e=tt.start,$=tt.end,$===void 0&&($=_e),"selectionStart"in et)et.selectionStart=_e,et.selectionEnd=Math.min($,et.value.length);else if($=(_e=et.ownerDocument||document)&&_e.defaultView||window,$.getSelection){$=$.getSelection();var nt=et.textContent.length,rt=Math.min(tt.start,nt);tt=tt.end===void 0?rt:Math.min(tt.end,nt),!$.extend&&rt>tt&&(nt=tt,tt=rt,rt=nt),nt=Ke(et,rt);var ot=Ke(et,tt);nt&&ot&&($.rangeCount!==1||$.anchorNode!==nt.node||$.anchorOffset!==nt.offset||$.focusNode!==ot.node||$.focusOffset!==ot.offset)&&(_e=_e.createRange(),_e.setStart(nt.node,nt.offset),$.removeAllRanges(),rt>tt?($.addRange(_e),$.extend(ot.node,ot.offset)):(_e.setEnd(ot.node,ot.offset),$.addRange(_e)))}}for(_e=[],$=et;$=$.parentNode;)$.nodeType===1&&_e.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof et.focus=="function"&&et.focus(),et=0;et<_e.length;et++)$=_e[et],$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue($,_e,et){var tt=et.window===et?et.document:et.nodeType===9?et:et.ownerDocument;Te||Qe==null||Qe!==Xa(tt)||(tt=Qe,"selectionStart"in tt&&Ne(tt)?tt={start:tt.selectionStart,end:tt.selectionEnd}:(tt=(tt.ownerDocument&&tt.ownerDocument.defaultView||window).getSelection(),tt={anchorNode:tt.anchorNode,anchorOffset:tt.anchorOffset,focusNode:tt.focusNode,focusOffset:tt.focusOffset}),Se&&Ie(Se,tt)||(Se=tt,tt=oe(Re,"onSelect"),0Tf||($.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G($,_e){Tf++,Sf[Tf]=$.current,$.current=_e}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf($,_e){var et=$.type.contextTypes;if(!et)return Vf;var tt=$.stateNode;if(tt&&tt.__reactInternalMemoizedUnmaskedChildContext===_e)return tt.__reactInternalMemoizedMaskedChildContext;var nt={},rt;for(rt in et)nt[rt]=_e[rt];return tt&&($=$.stateNode,$.__reactInternalMemoizedUnmaskedChildContext=_e,$.__reactInternalMemoizedMaskedChildContext=nt),nt}function Zf($){return $=$.childContextTypes,$!=null}function $f(){E$6(Wf),E$6(H)}function ag($,_e,et){if(H.current!==Vf)throw Error(p$a(168));G(H,_e),G(Wf,et)}function bg($,_e,et){var tt=$.stateNode;if(_e=_e.childContextTypes,typeof tt.getChildContext!="function")return et;tt=tt.getChildContext();for(var nt in tt)if(!(nt in _e))throw Error(p$a(108,Ra($)||"Unknown",nt));return A$1({},et,tt)}function cg($){return $=($=$.stateNode)&&$.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,$),G(Wf,Wf.current),!0}function dg($,_e,et){var tt=$.stateNode;if(!tt)throw Error(p$a(169));et?($=bg($,_e,Xf),tt.__reactInternalMemoizedMergedChildContext=$,E$6(Wf),E$6(H),G(H,$)):E$6(Wf),G(Wf,et)}var eg=null,fg=!1,gg=!1;function hg($){eg===null?eg=[$]:eg.push($)}function ig($){fg=!0,hg($)}function jg(){if(!gg&&eg!==null){gg=!0;var $=0,_e=C$4;try{var et=eg;for(C$4=1;$>=ot,nt-=ot,rg=1<<32-oc(_e)+nt|et<St?(kt=xt,xt=null):kt=xt.sibling;var At=pt(ct,xt,vt[St],bt);if(At===null){xt===null&&(xt=kt);break}$&&xt&&At.alternate===null&&_e(ct,xt),ut=rt(At,ut,St),Et===null?yt=At:Et.sibling=At,Et=At,xt=kt}if(St===vt.length)return et(ct,xt),I$3&&tg(ct,St),yt;if(xt===null){for(;StSt?(kt=xt,xt=null):kt=xt.sibling;var $t=pt(ct,xt,At.value,bt);if($t===null){xt===null&&(xt=kt);break}$&&xt&&$t.alternate===null&&_e(ct,xt),ut=rt($t,ut,St),Et===null?yt=$t:Et.sibling=$t,Et=$t,xt=kt}if(At.done)return et(ct,xt),I$3&&tg(ct,St),yt;if(xt===null){for(;!At.done;St++,At=vt.next())At=ht(ct,At.value,bt),At!==null&&(ut=rt(At,ut,St),Et===null?yt=At:Et.sibling=At,Et=At);return I$3&&tg(ct,St),yt}for(xt=tt(ct,xt);!At.done;St++,At=vt.next())At=gt(xt,ct,St,At.value,bt),At!==null&&($&&At.alternate!==null&&xt.delete(At.key===null?St:At.key),ut=rt(At,ut,St),Et===null?yt=At:Et.sibling=At,Et=At);return $&&xt.forEach(function(Tt){return _e(ct,Tt)}),I$3&&tg(ct,St),yt}function mt(ct,ut,vt,bt){if(typeof vt=="object"&&vt!==null&&vt.type===ya&&vt.key===null&&(vt=vt.props.children),typeof vt=="object"&&vt!==null){switch(vt.$$typeof){case va:e:{for(var yt=vt.key,Et=ut;Et!==null;){if(Et.key===yt){if(yt=vt.type,yt===ya){if(Et.tag===7){et(ct,Et.sibling),ut=nt(Et,vt.props.children),ut.return=ct,ct=ut;break e}}else if(Et.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===Ha&&Ng(yt)===Et.type){et(ct,Et.sibling),ut=nt(Et,vt.props),ut.ref=Lg(ct,Et,vt),ut.return=ct,ct=ut;break e}et(ct,Et);break}else _e(ct,Et);Et=Et.sibling}vt.type===ya?(ut=Tg(vt.props.children,ct.mode,bt,vt.key),ut.return=ct,ct=ut):(bt=Rg(vt.type,vt.key,vt.props,null,ct.mode,bt),bt.ref=Lg(ct,ut,vt),bt.return=ct,ct=bt)}return ot(ct);case wa:e:{for(Et=vt.key;ut!==null;){if(ut.key===Et)if(ut.tag===4&&ut.stateNode.containerInfo===vt.containerInfo&&ut.stateNode.implementation===vt.implementation){et(ct,ut.sibling),ut=nt(ut,vt.children||[]),ut.return=ct,ct=ut;break e}else{et(ct,ut);break}else _e(ct,ut);ut=ut.sibling}ut=Sg(vt,ct.mode,bt),ut.return=ct,ct=ut}return ot(ct);case Ha:return Et=vt._init,mt(ct,ut,Et(vt._payload),bt)}if(eb(vt))return ft(ct,ut,vt,bt);if(Ka(vt))return dt(ct,ut,vt,bt);Mg(ct,vt)}return typeof vt=="string"&&vt!==""||typeof vt=="number"?(vt=""+vt,ut!==null&&ut.tag===6?(et(ct,ut.sibling),ut=nt(ut,vt),ut.return=ct,ct=ut):(et(ct,ut),ut=Qg(vt,ct.mode,bt),ut.return=ct,ct=ut),ot(ct)):et(ct,ut)}return mt}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah($){var _e=Wg.current;E$6(Wg),$._currentValue=_e}function bh($,_e,et){for(;$!==null;){var tt=$.alternate;if(($.childLanes&_e)!==_e?($.childLanes|=_e,tt!==null&&(tt.childLanes|=_e)):tt!==null&&(tt.childLanes&_e)!==_e&&(tt.childLanes|=_e),$===et)break;$=$.return}}function ch($,_e){Xg=$,Zg=Yg=null,$=$.dependencies,$!==null&&$.firstContext!==null&&($.lanes&_e&&(dh=!0),$.firstContext=null)}function eh($){var _e=$._currentValue;if(Zg!==$)if($={context:$,memoizedValue:_e,next:null},Yg===null){if(Xg===null)throw Error(p$a(308));Yg=$,Xg.dependencies={lanes:0,firstContext:$}}else Yg=Yg.next=$;return _e}var fh=null;function gh($){fh===null?fh=[$]:fh.push($)}function hh($,_e,et,tt){var nt=_e.interleaved;return nt===null?(et.next=et,gh(_e)):(et.next=nt.next,nt.next=et),_e.interleaved=et,ih($,tt)}function ih($,_e){$.lanes|=_e;var et=$.alternate;for(et!==null&&(et.lanes|=_e),et=$,$=$.return;$!==null;)$.childLanes|=_e,et=$.alternate,et!==null&&(et.childLanes|=_e),et=$,$=$.return;return et.tag===3?et.stateNode:null}var jh=!1;function kh($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh($,_e){$=$.updateQueue,_e.updateQueue===$&&(_e.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,effects:$.effects})}function mh($,_e){return{eventTime:$,lane:_e,tag:0,payload:null,callback:null,next:null}}function nh($,_e,et){var tt=$.updateQueue;if(tt===null)return null;if(tt=tt.shared,K&2){var nt=tt.pending;return nt===null?_e.next=_e:(_e.next=nt.next,nt.next=_e),tt.pending=_e,ih($,et)}return nt=tt.interleaved,nt===null?(_e.next=_e,gh(tt)):(_e.next=nt.next,nt.next=_e),tt.interleaved=_e,ih($,et)}function oh($,_e,et){if(_e=_e.updateQueue,_e!==null&&(_e=_e.shared,(et&4194240)!==0)){var tt=_e.lanes;tt&=$.pendingLanes,et|=tt,_e.lanes=et,Cc($,et)}}function ph($,_e){var et=$.updateQueue,tt=$.alternate;if(tt!==null&&(tt=tt.updateQueue,et===tt)){var nt=null,rt=null;if(et=et.firstBaseUpdate,et!==null){do{var ot={eventTime:et.eventTime,lane:et.lane,tag:et.tag,payload:et.payload,callback:et.callback,next:null};rt===null?nt=rt=ot:rt=rt.next=ot,et=et.next}while(et!==null);rt===null?nt=rt=_e:rt=rt.next=_e}else nt=rt=_e;et={baseState:tt.baseState,firstBaseUpdate:nt,lastBaseUpdate:rt,shared:tt.shared,effects:tt.effects},$.updateQueue=et;return}$=et.lastBaseUpdate,$===null?et.firstBaseUpdate=_e:$.next=_e,et.lastBaseUpdate=_e}function qh($,_e,et,tt){var nt=$.updateQueue;jh=!1;var rt=nt.firstBaseUpdate,ot=nt.lastBaseUpdate,it=nt.shared.pending;if(it!==null){nt.shared.pending=null;var st=it,at=st.next;st.next=null,ot===null?rt=at:ot.next=at,ot=st;var lt=$.alternate;lt!==null&&(lt=lt.updateQueue,it=lt.lastBaseUpdate,it!==ot&&(it===null?lt.firstBaseUpdate=at:it.next=at,lt.lastBaseUpdate=st))}if(rt!==null){var ht=nt.baseState;ot=0,lt=at=st=null,it=rt;do{var pt=it.lane,gt=it.eventTime;if((tt&pt)===pt){lt!==null&&(lt=lt.next={eventTime:gt,lane:0,tag:it.tag,payload:it.payload,callback:it.callback,next:null});e:{var ft=$,dt=it;switch(pt=_e,gt=et,dt.tag){case 1:if(ft=dt.payload,typeof ft=="function"){ht=ft.call(gt,ht,pt);break e}ht=ft;break e;case 3:ft.flags=ft.flags&-65537|128;case 0:if(ft=dt.payload,pt=typeof ft=="function"?ft.call(gt,ht,pt):ft,pt==null)break e;ht=A$1({},ht,pt);break e;case 2:jh=!0}}it.callback!==null&&it.lane!==0&&($.flags|=64,pt=nt.effects,pt===null?nt.effects=[it]:pt.push(it))}else gt={eventTime:gt,lane:pt,tag:it.tag,payload:it.payload,callback:it.callback,next:null},lt===null?(at=lt=gt,st=ht):lt=lt.next=gt,ot|=pt;if(it=it.next,it===null){if(it=nt.shared.pending,it===null)break;pt=it,it=pt.next,pt.next=null,nt.lastBaseUpdate=pt,nt.shared.pending=null}}while(!0);if(lt===null&&(st=ht),nt.baseState=st,nt.firstBaseUpdate=at,nt.lastBaseUpdate=lt,_e=nt.shared.interleaved,_e!==null){nt=_e;do ot|=nt.lane,nt=nt.next;while(nt!==_e)}else rt===null&&(nt.shared.lanes=0);rh|=ot,$.lanes=ot,$.memoizedState=ht}}function sh($,_e,et){if($=_e.effects,_e.effects=null,$!==null)for(_e=0;_e<$.length;_e++){var tt=$[_e],nt=tt.callback;if(nt!==null){if(tt.callback=null,tt=et,typeof nt!="function")throw Error(p$a(191,nt));nt.call(tt)}}}var th={},uh=Uf(th),vh=Uf(th),wh=Uf(th);function xh($){if($===th)throw Error(p$a(174));return $}function yh($,_e){switch(G(wh,_e),G(vh,$),G(uh,th),$=_e.nodeType,$){case 9:case 11:_e=(_e=_e.documentElement)?_e.namespaceURI:lb(null,"");break;default:$=$===8?_e.parentNode:_e,_e=$.namespaceURI||null,$=$.tagName,_e=lb(_e,$)}E$6(uh),G(uh,_e)}function zh(){E$6(uh),E$6(vh),E$6(wh)}function Ah($){xh(wh.current);var _e=xh(uh.current),et=lb(_e,$.type);_e!==et&&(G(vh,$),G(uh,et))}function Bh($){vh.current===$&&(E$6(uh),E$6(vh))}var L$1=Uf(0);function Ch($){for(var _e=$;_e!==null;){if(_e.tag===13){var et=_e.memoizedState;if(et!==null&&(et=et.dehydrated,et===null||et.data==="$?"||et.data==="$!"))return _e}else if(_e.tag===19&&_e.memoizedProps.revealOrder!==void 0){if(_e.flags&128)return _e}else if(_e.child!==null){_e.child.return=_e,_e=_e.child;continue}if(_e===$)break;for(;_e.sibling===null;){if(_e.return===null||_e.return===$)return null;_e=_e.return}_e.sibling.return=_e.return,_e=_e.sibling}return null}var Dh=[];function Eh(){for(var $=0;$et?et:4,$(!0);var tt=Gh.transition;Gh.transition={};try{$(!1),_e()}finally{C$4=et,Gh.transition=tt}}function wi(){return Uh().memoizedState}function xi($,_e,et){var tt=yi($);if(et={lane:tt,action:et,hasEagerState:!1,eagerState:null,next:null},zi($))Ai(_e,et);else if(et=hh($,_e,et,tt),et!==null){var nt=R();gi(et,$,tt,nt),Bi(et,_e,tt)}}function ii($,_e,et){var tt=yi($),nt={lane:tt,action:et,hasEagerState:!1,eagerState:null,next:null};if(zi($))Ai(_e,nt);else{var rt=$.alternate;if($.lanes===0&&(rt===null||rt.lanes===0)&&(rt=_e.lastRenderedReducer,rt!==null))try{var ot=_e.lastRenderedState,it=rt(ot,et);if(nt.hasEagerState=!0,nt.eagerState=it,He(it,ot)){var st=_e.interleaved;st===null?(nt.next=nt,gh(_e)):(nt.next=st.next,st.next=nt),_e.interleaved=nt;return}}catch{}finally{}et=hh($,_e,nt,tt),et!==null&&(nt=R(),gi(et,$,tt,nt),Bi(et,_e,tt))}}function zi($){var _e=$.alternate;return $===M$3||_e!==null&&_e===M$3}function Ai($,_e){Jh=Ih=!0;var et=$.pending;et===null?_e.next=_e:(_e.next=et.next,et.next=_e),$.pending=_e}function Bi($,_e,et){if(et&4194240){var tt=_e.lanes;tt&=$.pendingLanes,et|=tt,_e.lanes=et,Cc($,et)}}var Rh={readContext:eh,useCallback:P$3,useContext:P$3,useEffect:P$3,useImperativeHandle:P$3,useInsertionEffect:P$3,useLayoutEffect:P$3,useMemo:P$3,useReducer:P$3,useRef:P$3,useState:P$3,useDebugValue:P$3,useDeferredValue:P$3,useTransition:P$3,useMutableSource:P$3,useSyncExternalStore:P$3,useId:P$3,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function($,_e){return Th().memoizedState=[$,_e===void 0?null:_e],$},useContext:eh,useEffect:mi,useImperativeHandle:function($,_e,et){return et=et!=null?et.concat([$]):null,ki(4194308,4,pi.bind(null,_e,$),et)},useLayoutEffect:function($,_e){return ki(4194308,4,$,_e)},useInsertionEffect:function($,_e){return ki(4,2,$,_e)},useMemo:function($,_e){var et=Th();return _e=_e===void 0?null:_e,$=$(),et.memoizedState=[$,_e],$},useReducer:function($,_e,et){var tt=Th();return _e=et!==void 0?et(_e):_e,tt.memoizedState=tt.baseState=_e,$={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:_e},tt.queue=$,$=$.dispatch=xi.bind(null,M$3,$),[tt.memoizedState,$]},useRef:function($){var _e=Th();return $={current:$},_e.memoizedState=$},useState:hi,useDebugValue:ri,useDeferredValue:function($){return Th().memoizedState=$},useTransition:function(){var $=hi(!1),_e=$[0];return $=vi.bind(null,$[1]),Th().memoizedState=$,[_e,$]},useMutableSource:function(){},useSyncExternalStore:function($,_e,et){var tt=M$3,nt=Th();if(I$3){if(et===void 0)throw Error(p$a(407));et=et()}else{if(et=_e(),Q===null)throw Error(p$a(349));Hh&30||di(tt,_e,et)}nt.memoizedState=et;var rt={value:et,getSnapshot:_e};return nt.queue=rt,mi(ai.bind(null,tt,rt,$),[$]),tt.flags|=2048,bi(9,ci.bind(null,tt,rt,et,_e),void 0,null),et},useId:function(){var $=Th(),_e=Q.identifierPrefix;if(I$3){var et=sg,tt=rg;et=(tt&~(1<<32-oc(tt)-1)).toString(32)+et,_e=":"+_e+"R"+et,et=Kh++,0<\/script>",$=$.removeChild($.firstChild)):typeof tt.is=="string"?$=ot.createElement(et,{is:tt.is}):($=ot.createElement(et),et==="select"&&(ot=$,tt.multiple?ot.multiple=!0:tt.size&&(ot.size=tt.size))):$=ot.createElementNS($,et),$[Of]=_e,$[Pf]=tt,zj($,_e,!1,!1),_e.stateNode=$;e:{switch(ot=vb(et,tt),et){case"dialog":D$1("cancel",$),D$1("close",$),nt=tt;break;case"iframe":case"object":case"embed":D$1("load",$),nt=tt;break;case"video":case"audio":for(nt=0;ntGj&&(_e.flags|=128,tt=!0,Dj(rt,!1),_e.lanes=4194304)}else{if(!tt)if($=Ch(ot),$!==null){if(_e.flags|=128,tt=!0,et=$.updateQueue,et!==null&&(_e.updateQueue=et,_e.flags|=4),Dj(rt,!0),rt.tail===null&&rt.tailMode==="hidden"&&!ot.alternate&&!I$3)return S$5(_e),null}else 2*B()-rt.renderingStartTime>Gj&&et!==1073741824&&(_e.flags|=128,tt=!0,Dj(rt,!1),_e.lanes=4194304);rt.isBackwards?(ot.sibling=_e.child,_e.child=ot):(et=rt.last,et!==null?et.sibling=ot:_e.child=ot,rt.last=ot)}return rt.tail!==null?(_e=rt.tail,rt.rendering=_e,rt.tail=_e.sibling,rt.renderingStartTime=B(),_e.sibling=null,et=L$1.current,G(L$1,tt?et&1|2:et&1),_e):(S$5(_e),null);case 22:case 23:return Hj(),tt=_e.memoizedState!==null,$!==null&&$.memoizedState!==null!==tt&&(_e.flags|=8192),tt&&_e.mode&1?fj&1073741824&&(S$5(_e),_e.subtreeFlags&6&&(_e.flags|=8192)):S$5(_e),null;case 24:return null;case 25:return null}throw Error(p$a(156,_e.tag))}function Ij($,_e){switch(wg(_e),_e.tag){case 1:return Zf(_e.type)&&$f(),$=_e.flags,$&65536?(_e.flags=$&-65537|128,_e):null;case 3:return zh(),E$6(Wf),E$6(H),Eh(),$=_e.flags,$&65536&&!($&128)?(_e.flags=$&-65537|128,_e):null;case 5:return Bh(_e),null;case 13:if(E$6(L$1),$=_e.memoizedState,$!==null&&$.dehydrated!==null){if(_e.alternate===null)throw Error(p$a(340));Ig()}return $=_e.flags,$&65536?(_e.flags=$&-65537|128,_e):null;case 19:return E$6(L$1),null;case 4:return zh(),null;case 10:return ah(_e.type._context),null;case 22:case 23:return Hj(),null;case 24:return null;default:return null}}var Jj=!1,U=!1,Kj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Lj($,_e){var et=$.ref;if(et!==null)if(typeof et=="function")try{et(null)}catch(tt){W($,_e,tt)}else et.current=null}function Mj($,_e,et){try{et()}catch(tt){W($,_e,tt)}}var Nj=!1;function Oj($,_e){if(Cf=dd,$=Me(),Ne($)){if("selectionStart"in $)var et={start:$.selectionStart,end:$.selectionEnd};else e:{et=(et=$.ownerDocument)&&et.defaultView||window;var tt=et.getSelection&&et.getSelection();if(tt&&tt.rangeCount!==0){et=tt.anchorNode;var nt=tt.anchorOffset,rt=tt.focusNode;tt=tt.focusOffset;try{et.nodeType,rt.nodeType}catch{et=null;break e}var ot=0,it=-1,st=-1,at=0,lt=0,ht=$,pt=null;t:for(;;){for(var gt;ht!==et||nt!==0&&ht.nodeType!==3||(it=ot+nt),ht!==rt||tt!==0&&ht.nodeType!==3||(st=ot+tt),ht.nodeType===3&&(ot+=ht.nodeValue.length),(gt=ht.firstChild)!==null;)pt=ht,ht=gt;for(;;){if(ht===$)break t;if(pt===et&&++at===nt&&(it=ot),pt===rt&&++lt===tt&&(st=ot),(gt=ht.nextSibling)!==null)break;ht=pt,pt=ht.parentNode}ht=gt}et=it===-1||st===-1?null:{start:it,end:st}}else et=null}et=et||{start:0,end:0}}else et=null;for(Df={focusedElem:$,selectionRange:et},dd=!1,V=_e;V!==null;)if(_e=V,$=_e.child,(_e.subtreeFlags&1028)!==0&&$!==null)$.return=_e,V=$;else for(;V!==null;){_e=V;try{var ft=_e.alternate;if(_e.flags&1024)switch(_e.tag){case 0:case 11:case 15:break;case 1:if(ft!==null){var dt=ft.memoizedProps,mt=ft.memoizedState,ct=_e.stateNode,ut=ct.getSnapshotBeforeUpdate(_e.elementType===_e.type?dt:Ci(_e.type,dt),mt);ct.__reactInternalSnapshotBeforeUpdate=ut}break;case 3:var vt=_e.stateNode.containerInfo;vt.nodeType===1?vt.textContent="":vt.nodeType===9&&vt.documentElement&&vt.removeChild(vt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$a(163))}}catch(bt){W(_e,_e.return,bt)}if($=_e.sibling,$!==null){$.return=_e.return,V=$;break}V=_e.return}return ft=Nj,Nj=!1,ft}function Pj($,_e,et){var tt=_e.updateQueue;if(tt=tt!==null?tt.lastEffect:null,tt!==null){var nt=tt=tt.next;do{if((nt.tag&$)===$){var rt=nt.destroy;nt.destroy=void 0,rt!==void 0&&Mj(_e,et,rt)}nt=nt.next}while(nt!==tt)}}function Qj($,_e){if(_e=_e.updateQueue,_e=_e!==null?_e.lastEffect:null,_e!==null){var et=_e=_e.next;do{if((et.tag&$)===$){var tt=et.create;et.destroy=tt()}et=et.next}while(et!==_e)}}function Rj($){var _e=$.ref;if(_e!==null){var et=$.stateNode;switch($.tag){case 5:$=et;break;default:$=et}typeof _e=="function"?_e($):_e.current=$}}function Sj($){var _e=$.alternate;_e!==null&&($.alternate=null,Sj(_e)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(_e=$.stateNode,_e!==null&&(delete _e[Of],delete _e[Pf],delete _e[of],delete _e[Qf],delete _e[Rf])),$.stateNode=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function Tj($){return $.tag===5||$.tag===3||$.tag===4}function Uj($){e:for(;;){for(;$.sibling===null;){if($.return===null||Tj($.return))return null;$=$.return}for($.sibling.return=$.return,$=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.flags&2||$.child===null||$.tag===4)continue e;$.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function Vj($,_e,et){var tt=$.tag;if(tt===5||tt===6)$=$.stateNode,_e?et.nodeType===8?et.parentNode.insertBefore($,_e):et.insertBefore($,_e):(et.nodeType===8?(_e=et.parentNode,_e.insertBefore($,et)):(_e=et,_e.appendChild($)),et=et._reactRootContainer,et!=null||_e.onclick!==null||(_e.onclick=Bf));else if(tt!==4&&($=$.child,$!==null))for(Vj($,_e,et),$=$.sibling;$!==null;)Vj($,_e,et),$=$.sibling}function Wj($,_e,et){var tt=$.tag;if(tt===5||tt===6)$=$.stateNode,_e?et.insertBefore($,_e):et.appendChild($);else if(tt!==4&&($=$.child,$!==null))for(Wj($,_e,et),$=$.sibling;$!==null;)Wj($,_e,et),$=$.sibling}var X=null,Xj=!1;function Yj($,_e,et){for(et=et.child;et!==null;)Zj($,_e,et),et=et.sibling}function Zj($,_e,et){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,et)}catch{}switch(et.tag){case 5:U||Lj(et,_e);case 6:var tt=X,nt=Xj;X=null,Yj($,_e,et),X=tt,Xj=nt,X!==null&&(Xj?($=X,et=et.stateNode,$.nodeType===8?$.parentNode.removeChild(et):$.removeChild(et)):X.removeChild(et.stateNode));break;case 18:X!==null&&(Xj?($=X,et=et.stateNode,$.nodeType===8?Kf($.parentNode,et):$.nodeType===1&&Kf($,et),bd($)):Kf(X,et.stateNode));break;case 4:tt=X,nt=Xj,X=et.stateNode.containerInfo,Xj=!0,Yj($,_e,et),X=tt,Xj=nt;break;case 0:case 11:case 14:case 15:if(!U&&(tt=et.updateQueue,tt!==null&&(tt=tt.lastEffect,tt!==null))){nt=tt=tt.next;do{var rt=nt,ot=rt.destroy;rt=rt.tag,ot!==void 0&&(rt&2||rt&4)&&Mj(et,_e,ot),nt=nt.next}while(nt!==tt)}Yj($,_e,et);break;case 1:if(!U&&(Lj(et,_e),tt=et.stateNode,typeof tt.componentWillUnmount=="function"))try{tt.props=et.memoizedProps,tt.state=et.memoizedState,tt.componentWillUnmount()}catch(it){W(et,_e,it)}Yj($,_e,et);break;case 21:Yj($,_e,et);break;case 22:et.mode&1?(U=(tt=U)||et.memoizedState!==null,Yj($,_e,et),U=tt):Yj($,_e,et);break;default:Yj($,_e,et)}}function ak($){var _e=$.updateQueue;if(_e!==null){$.updateQueue=null;var et=$.stateNode;et===null&&(et=$.stateNode=new Kj),_e.forEach(function(tt){var nt=bk.bind(null,$,tt);et.has(tt)||(et.add(tt),tt.then(nt,nt))})}}function ck($,_e){var et=_e.deletions;if(et!==null)for(var tt=0;ttnt&&(nt=ot),tt&=~rt}if(tt=nt,tt=B()-tt,tt=(120>tt?120:480>tt?480:1080>tt?1080:1920>tt?1920:3e3>tt?3e3:4320>tt?4320:1960*lk(tt/1960))-tt,10$?16:$,wk===null)var tt=!1;else{if($=wk,wk=null,xk=0,K&6)throw Error(p$a(331));var nt=K;for(K|=4,V=$.current;V!==null;){var rt=V,ot=rt.child;if(V.flags&16){var it=rt.deletions;if(it!==null){for(var st=0;stB()-fk?Kk($,0):rk|=et),Dk($,_e)}function Yk($,_e){_e===0&&($.mode&1?(_e=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):_e=1);var et=R();$=ih($,_e),$!==null&&(Ac($,_e,et),Dk($,et))}function uj($){var _e=$.memoizedState,et=0;_e!==null&&(et=_e.retryLane),Yk($,et)}function bk($,_e){var et=0;switch($.tag){case 13:var tt=$.stateNode,nt=$.memoizedState;nt!==null&&(et=nt.retryLane);break;case 19:tt=$.stateNode;break;default:throw Error(p$a(314))}tt!==null&&tt.delete(_e),Yk($,et)}var Vk;Vk=function($,_e,et){if($!==null)if($.memoizedProps!==_e.pendingProps||Wf.current)dh=!0;else{if(!($.lanes&et)&&!(_e.flags&128))return dh=!1,yj($,_e,et);dh=!!($.flags&131072)}else dh=!1,I$3&&_e.flags&1048576&&ug(_e,ng,_e.index);switch(_e.lanes=0,_e.tag){case 2:var tt=_e.type;ij($,_e),$=_e.pendingProps;var nt=Yf(_e,H.current);ch(_e,et),nt=Nh(null,_e,tt,$,nt,et);var rt=Sh();return _e.flags|=1,typeof nt=="object"&&nt!==null&&typeof nt.render=="function"&&nt.$$typeof===void 0?(_e.tag=1,_e.memoizedState=null,_e.updateQueue=null,Zf(tt)?(rt=!0,cg(_e)):rt=!1,_e.memoizedState=nt.state!==null&&nt.state!==void 0?nt.state:null,kh(_e),nt.updater=Ei,_e.stateNode=nt,nt._reactInternals=_e,Ii(_e,tt,$,et),_e=jj(null,_e,tt,!0,rt,et)):(_e.tag=0,I$3&&rt&&vg(_e),Xi(null,_e,nt,et),_e=_e.child),_e;case 16:tt=_e.elementType;e:{switch(ij($,_e),$=_e.pendingProps,nt=tt._init,tt=nt(tt._payload),_e.type=tt,nt=_e.tag=Zk(tt),$=Ci(tt,$),nt){case 0:_e=cj(null,_e,tt,$,et);break e;case 1:_e=hj(null,_e,tt,$,et);break e;case 11:_e=Yi(null,_e,tt,$,et);break e;case 14:_e=$i(null,_e,tt,Ci(tt.type,$),et);break e}throw Error(p$a(306,tt,""))}return _e;case 0:return tt=_e.type,nt=_e.pendingProps,nt=_e.elementType===tt?nt:Ci(tt,nt),cj($,_e,tt,nt,et);case 1:return tt=_e.type,nt=_e.pendingProps,nt=_e.elementType===tt?nt:Ci(tt,nt),hj($,_e,tt,nt,et);case 3:e:{if(kj(_e),$===null)throw Error(p$a(387));tt=_e.pendingProps,rt=_e.memoizedState,nt=rt.element,lh($,_e),qh(_e,tt,null,et);var ot=_e.memoizedState;if(tt=ot.element,rt.isDehydrated)if(rt={element:tt,isDehydrated:!1,cache:ot.cache,pendingSuspenseBoundaries:ot.pendingSuspenseBoundaries,transitions:ot.transitions},_e.updateQueue.baseState=rt,_e.memoizedState=rt,_e.flags&256){nt=Ji(Error(p$a(423)),_e),_e=lj($,_e,tt,et,nt);break e}else if(tt!==nt){nt=Ji(Error(p$a(424)),_e),_e=lj($,_e,tt,et,nt);break e}else for(yg=Lf(_e.stateNode.containerInfo.firstChild),xg=_e,I$3=!0,zg=null,et=Vg(_e,null,tt,et),_e.child=et;et;)et.flags=et.flags&-3|4096,et=et.sibling;else{if(Ig(),tt===nt){_e=Zi($,_e,et);break e}Xi($,_e,tt,et)}_e=_e.child}return _e;case 5:return Ah(_e),$===null&&Eg(_e),tt=_e.type,nt=_e.pendingProps,rt=$!==null?$.memoizedProps:null,ot=nt.children,Ef(tt,nt)?ot=null:rt!==null&&Ef(tt,rt)&&(_e.flags|=32),gj($,_e),Xi($,_e,ot,et),_e.child;case 6:return $===null&&Eg(_e),null;case 13:return oj($,_e,et);case 4:return yh(_e,_e.stateNode.containerInfo),tt=_e.pendingProps,$===null?_e.child=Ug(_e,null,tt,et):Xi($,_e,tt,et),_e.child;case 11:return tt=_e.type,nt=_e.pendingProps,nt=_e.elementType===tt?nt:Ci(tt,nt),Yi($,_e,tt,nt,et);case 7:return Xi($,_e,_e.pendingProps,et),_e.child;case 8:return Xi($,_e,_e.pendingProps.children,et),_e.child;case 12:return Xi($,_e,_e.pendingProps.children,et),_e.child;case 10:e:{if(tt=_e.type._context,nt=_e.pendingProps,rt=_e.memoizedProps,ot=nt.value,G(Wg,tt._currentValue),tt._currentValue=ot,rt!==null)if(He(rt.value,ot)){if(rt.children===nt.children&&!Wf.current){_e=Zi($,_e,et);break e}}else for(rt=_e.child,rt!==null&&(rt.return=_e);rt!==null;){var it=rt.dependencies;if(it!==null){ot=rt.child;for(var st=it.firstContext;st!==null;){if(st.context===tt){if(rt.tag===1){st=mh(-1,et&-et),st.tag=2;var at=rt.updateQueue;if(at!==null){at=at.shared;var lt=at.pending;lt===null?st.next=st:(st.next=lt.next,lt.next=st),at.pending=st}}rt.lanes|=et,st=rt.alternate,st!==null&&(st.lanes|=et),bh(rt.return,et,_e),it.lanes|=et;break}st=st.next}}else if(rt.tag===10)ot=rt.type===_e.type?null:rt.child;else if(rt.tag===18){if(ot=rt.return,ot===null)throw Error(p$a(341));ot.lanes|=et,it=ot.alternate,it!==null&&(it.lanes|=et),bh(ot,et,_e),ot=rt.sibling}else ot=rt.child;if(ot!==null)ot.return=rt;else for(ot=rt;ot!==null;){if(ot===_e){ot=null;break}if(rt=ot.sibling,rt!==null){rt.return=ot.return,ot=rt;break}ot=ot.return}rt=ot}Xi($,_e,nt.children,et),_e=_e.child}return _e;case 9:return nt=_e.type,tt=_e.pendingProps.children,ch(_e,et),nt=eh(nt),tt=tt(nt),_e.flags|=1,Xi($,_e,tt,et),_e.child;case 14:return tt=_e.type,nt=Ci(tt,_e.pendingProps),nt=Ci(tt.type,nt),$i($,_e,tt,nt,et);case 15:return bj($,_e,_e.type,_e.pendingProps,et);case 17:return tt=_e.type,nt=_e.pendingProps,nt=_e.elementType===tt?nt:Ci(tt,nt),ij($,_e),_e.tag=1,Zf(tt)?($=!0,cg(_e)):$=!1,ch(_e,et),Gi(_e,tt,nt),Ii(_e,tt,nt,et),jj(null,_e,tt,!0,$,et);case 19:return xj($,_e,et);case 22:return dj($,_e,et)}throw Error(p$a(156,_e.tag))};function Fk($,_e){return ac($,_e)}function $k($,_e,et,tt){this.tag=$,this.key=et,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=_e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=tt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg($,_e,et,tt){return new $k($,_e,et,tt)}function aj($){return $=$.prototype,!(!$||!$.isReactComponent)}function Zk($){if(typeof $=="function")return aj($)?1:0;if($!=null){if($=$.$$typeof,$===Da)return 11;if($===Ga)return 14}return 2}function Pg($,_e){var et=$.alternate;return et===null?(et=Bg($.tag,_e,$.key,$.mode),et.elementType=$.elementType,et.type=$.type,et.stateNode=$.stateNode,et.alternate=$,$.alternate=et):(et.pendingProps=_e,et.type=$.type,et.flags=0,et.subtreeFlags=0,et.deletions=null),et.flags=$.flags&14680064,et.childLanes=$.childLanes,et.lanes=$.lanes,et.child=$.child,et.memoizedProps=$.memoizedProps,et.memoizedState=$.memoizedState,et.updateQueue=$.updateQueue,_e=$.dependencies,et.dependencies=_e===null?null:{lanes:_e.lanes,firstContext:_e.firstContext},et.sibling=$.sibling,et.index=$.index,et.ref=$.ref,et}function Rg($,_e,et,tt,nt,rt){var ot=2;if(tt=$,typeof $=="function")aj($)&&(ot=1);else if(typeof $=="string")ot=5;else e:switch($){case ya:return Tg(et.children,nt,rt,_e);case za:ot=8,nt|=8;break;case Aa:return $=Bg(12,et,_e,nt|2),$.elementType=Aa,$.lanes=rt,$;case Ea:return $=Bg(13,et,_e,nt),$.elementType=Ea,$.lanes=rt,$;case Fa:return $=Bg(19,et,_e,nt),$.elementType=Fa,$.lanes=rt,$;case Ia:return pj(et,nt,rt,_e);default:if(typeof $=="object"&&$!==null)switch($.$$typeof){case Ba:ot=10;break e;case Ca:ot=9;break e;case Da:ot=11;break e;case Ga:ot=14;break e;case Ha:ot=16,tt=null;break e}throw Error(p$a(130,$==null?$:typeof $,""))}return _e=Bg(ot,et,_e,nt),_e.elementType=$,_e.type=tt,_e.lanes=rt,_e}function Tg($,_e,et,tt){return $=Bg(7,$,tt,_e),$.lanes=et,$}function pj($,_e,et,tt){return $=Bg(22,$,tt,_e),$.elementType=Ia,$.lanes=et,$.stateNode={isHidden:!1},$}function Qg($,_e,et){return $=Bg(6,$,null,_e),$.lanes=et,$}function Sg($,_e,et){return _e=Bg(4,$.children!==null?$.children:[],$.key,_e),_e.lanes=et,_e.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},_e}function al($,_e,et,tt,nt){this.tag=_e,this.containerInfo=$,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=tt,this.onRecoverableError=nt,this.mutableSourceEagerHydrationData=null}function bl($,_e,et,tt,nt,rt,ot,it,st){return $=new al($,_e,et,it,st),_e===1?(_e=1,rt===!0&&(_e|=8)):_e=0,rt=Bg(3,null,null,_e),$.current=rt,rt.stateNode=$,rt.memoizedState={element:tt,isDehydrated:et,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(rt),$}function cl($,_e,et){var tt=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch($){console.error($)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var m$c=reactDomExports;client.createRoot=m$c.createRoot,client.hydrateRoot=m$c.hydrateRoot;/** + * @remix-run/router v1.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function($){for(var _e=1;_e"u")throw new Error(_e)}function warning($,_e){if(!$){typeof console<"u"&&console.warn(_e);try{throw new Error(_e)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState($,_e){return{usr:$.state,key:$.key,idx:_e}}function createLocation($,_e,et,tt){return et===void 0&&(et=null),_extends$4({pathname:typeof $=="string"?$:$.pathname,search:"",hash:""},typeof _e=="string"?parsePath(_e):_e,{state:et,key:_e&&_e.key||tt||createKey()})}function createPath($){let{pathname:_e="/",search:et="",hash:tt=""}=$;return et&&et!=="?"&&(_e+=et.charAt(0)==="?"?et:"?"+et),tt&&tt!=="#"&&(_e+=tt.charAt(0)==="#"?tt:"#"+tt),_e}function parsePath($){let _e={};if($){let et=$.indexOf("#");et>=0&&(_e.hash=$.substr(et),$=$.substr(0,et));let tt=$.indexOf("?");tt>=0&&(_e.search=$.substr(tt),$=$.substr(0,tt)),$&&(_e.pathname=$)}return _e}function getUrlBasedHistory($,_e,et,tt){tt===void 0&&(tt={});let{window:nt=document.defaultView,v5Compat:rt=!1}=tt,ot=nt.history,it=Action.Pop,st=null,at=lt();at==null&&(at=0,ot.replaceState(_extends$4({},ot.state,{idx:at}),""));function lt(){return(ot.state||{idx:null}).idx}function ht(){it=Action.Pop;let mt=lt(),ct=mt==null?null:mt-at;at=mt,st&&st({action:it,location:dt.location,delta:ct})}function pt(mt,ct){it=Action.Push;let ut=createLocation(dt.location,mt,ct);at=lt()+1;let vt=getHistoryState(ut,at),bt=dt.createHref(ut);try{ot.pushState(vt,"",bt)}catch(yt){if(yt instanceof DOMException&&yt.name==="DataCloneError")throw yt;nt.location.assign(bt)}rt&&st&&st({action:it,location:dt.location,delta:1})}function gt(mt,ct){it=Action.Replace;let ut=createLocation(dt.location,mt,ct);at=lt();let vt=getHistoryState(ut,at),bt=dt.createHref(ut);ot.replaceState(vt,"",bt),rt&&st&&st({action:it,location:dt.location,delta:0})}function ft(mt){let ct=nt.location.origin!=="null"?nt.location.origin:nt.location.href,ut=typeof mt=="string"?mt:createPath(mt);return ut=ut.replace(/ $/,"%20"),invariant(ct,"No window.location.(origin|href) available to create URL for href: "+ut),new URL(ut,ct)}let dt={get action(){return it},get location(){return $(nt,ot)},listen(mt){if(st)throw new Error("A history only accepts one active listener");return nt.addEventListener(PopStateEventType,ht),st=mt,()=>{nt.removeEventListener(PopStateEventType,ht),st=null}},createHref(mt){return _e(nt,mt)},createURL:ft,encodeLocation(mt){let ct=ft(mt);return{pathname:ct.pathname,search:ct.search,hash:ct.hash}},push:pt,replace:gt,go(mt){return ot.go(mt)}};return dt}var ResultType;(function($){$.data="data",$.deferred="deferred",$.redirect="redirect",$.error="error"})(ResultType||(ResultType={}));function matchRoutes($,_e,et){return et===void 0&&(et="/"),matchRoutesImpl($,_e,et,!1)}function matchRoutesImpl($,_e,et,tt){let nt=typeof _e=="string"?parsePath(_e):_e,rt=stripBasename(nt.pathname||"/",et);if(rt==null)return null;let ot=flattenRoutes($);rankRouteBranches(ot);let it=null;for(let st=0;it==null&&st{let st={relativePath:it===void 0?rt.path||"":it,caseSensitive:rt.caseSensitive===!0,childrenIndex:ot,route:rt};st.relativePath.startsWith("/")&&(invariant(st.relativePath.startsWith(tt),'Absolute route path "'+st.relativePath+'" nested under path '+('"'+tt+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),st.relativePath=st.relativePath.slice(tt.length));let at=joinPaths([tt,st.relativePath]),lt=et.concat(st);rt.children&&rt.children.length>0&&(invariant(rt.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+at+'".')),flattenRoutes(rt.children,_e,lt,at)),!(rt.path==null&&!rt.index)&&_e.push({path:at,score:computeScore(at,rt.index),routesMeta:lt})};return $.forEach((rt,ot)=>{var it;if(rt.path===""||!((it=rt.path)!=null&&it.includes("?")))nt(rt,ot);else for(let st of explodeOptionalSegments(rt.path))nt(rt,ot,st)}),_e}function explodeOptionalSegments($){let _e=$.split("/");if(_e.length===0)return[];let[et,...tt]=_e,nt=et.endsWith("?"),rt=et.replace(/\?$/,"");if(tt.length===0)return nt?[rt,""]:[rt];let ot=explodeOptionalSegments(tt.join("/")),it=[];return it.push(...ot.map(st=>st===""?rt:[rt,st].join("/"))),nt&&it.push(...ot),it.map(st=>$.startsWith("/")&&st===""?"/":st)}function rankRouteBranches($){$.sort((_e,et)=>_e.score!==et.score?et.score-_e.score:compareIndexes(_e.routesMeta.map(tt=>tt.childrenIndex),et.routesMeta.map(tt=>tt.childrenIndex)))}const paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=$=>$==="*";function computeScore($,_e){let et=$.split("/"),tt=et.length;return et.some(isSplat)&&(tt+=splatPenalty),_e&&(tt+=indexRouteValue),et.filter(nt=>!isSplat(nt)).reduce((nt,rt)=>nt+(paramRe.test(rt)?dynamicSegmentValue:rt===""?emptySegmentValue:staticSegmentValue),tt)}function compareIndexes($,_e){return $.length===_e.length&&$.slice(0,-1).every((tt,nt)=>tt===_e[nt])?$[$.length-1]-_e[_e.length-1]:0}function matchRouteBranch($,_e,et){let{routesMeta:tt}=$,nt={},rt="/",ot=[];for(let it=0;it{let{paramName:pt,isOptional:gt}=lt;if(pt==="*"){let dt=it[ht]||"";ot=rt.slice(0,rt.length-dt.length).replace(/(.)\/+$/,"$1")}const ft=it[ht];return gt&&!ft?at[pt]=void 0:at[pt]=(ft||"").replace(/%2F/g,"/"),at},{}),pathname:rt,pathnameBase:ot,pattern:$}}function compilePath($,_e,et){_e===void 0&&(_e=!1),et===void 0&&(et=!0),warning($==="*"||!$.endsWith("*")||$.endsWith("/*"),'Route path "'+$+'" will be treated as if it were '+('"'+$.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+$.replace(/\*$/,"/*")+'".'));let tt=[],nt="^"+$.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(ot,it,st)=>(tt.push({paramName:it,isOptional:st!=null}),st?"/?([^\\/]+)?":"/([^\\/]+)"));return $.endsWith("*")?(tt.push({paramName:"*"}),nt+=$==="*"||$==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):et?nt+="\\/*$":$!==""&&$!=="/"&&(nt+="(?:(?=\\/|$))"),[new RegExp(nt,_e?void 0:"i"),tt]}function decodePath($){try{return $.split("/").map(_e=>decodeURIComponent(_e).replace(/\//g,"%2F")).join("/")}catch(_e){return warning(!1,'The URL path "'+$+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+_e+").")),$}}function stripBasename($,_e){if(_e==="/")return $;if(!$.toLowerCase().startsWith(_e.toLowerCase()))return null;let et=_e.endsWith("/")?_e.length-1:_e.length,tt=$.charAt(et);return tt&&tt!=="/"?null:$.slice(et)||"/"}function resolvePath($,_e){_e===void 0&&(_e="/");let{pathname:et,search:tt="",hash:nt=""}=typeof $=="string"?parsePath($):$;return{pathname:et?et.startsWith("/")?et:resolvePathname(et,_e):_e,search:normalizeSearch(tt),hash:normalizeHash(nt)}}function resolvePathname($,_e){let et=_e.replace(/\/+$/,"").split("/");return $.split("/").forEach(nt=>{nt===".."?et.length>1&&et.pop():nt!=="."&&et.push(nt)}),et.length>1?et.join("/"):"/"}function getInvalidPathError($,_e,et,tt){return"Cannot include a '"+$+"' character in a manually specified "+("`to."+_e+"` field ["+JSON.stringify(tt)+"]. Please separate it out to the ")+("`to."+et+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches($){return $.filter((_e,et)=>et===0||_e.route.path&&_e.route.path.length>0)}function getResolveToMatches($,_e){let et=getPathContributingMatches($);return _e?et.map((tt,nt)=>nt===et.length-1?tt.pathname:tt.pathnameBase):et.map(tt=>tt.pathnameBase)}function resolveTo($,_e,et,tt){tt===void 0&&(tt=!1);let nt;typeof $=="string"?nt=parsePath($):(nt=_extends$4({},$),invariant(!nt.pathname||!nt.pathname.includes("?"),getInvalidPathError("?","pathname","search",nt)),invariant(!nt.pathname||!nt.pathname.includes("#"),getInvalidPathError("#","pathname","hash",nt)),invariant(!nt.search||!nt.search.includes("#"),getInvalidPathError("#","search","hash",nt)));let rt=$===""||nt.pathname==="",ot=rt?"/":nt.pathname,it;if(ot==null)it=et;else{let ht=_e.length-1;if(!tt&&ot.startsWith("..")){let pt=ot.split("/");for(;pt[0]==="..";)pt.shift(),ht-=1;nt.pathname=pt.join("/")}it=ht>=0?_e[ht]:"/"}let st=resolvePath(nt,it),at=ot&&ot!=="/"&&ot.endsWith("/"),lt=(rt||ot===".")&&et.endsWith("/");return!st.pathname.endsWith("/")&&(at||lt)&&(st.pathname+="/"),st}const joinPaths=$=>$.join("/").replace(/\/\/+/g,"/"),normalizePathname=$=>$.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=$=>!$||$==="?"?"":$.startsWith("?")?$:"?"+$,normalizeHash=$=>!$||$==="#"?"":$.startsWith("#")?$:"#"+$;function isRouteErrorResponse($){return $!=null&&typeof $.status=="number"&&typeof $.statusText=="string"&&typeof $.internal=="boolean"&&"data"in $}const validMutationMethodsArr=["post","put","patch","delete"];new Set(validMutationMethodsArr);const validRequestMethodsArr=["get",...validMutationMethodsArr];new Set(validRequestMethodsArr);/** + * React Router v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function($){for(var _e=1;_e{it.current=!0}),reactExports.useCallback(function(at,lt){if(lt===void 0&&(lt={}),!it.current)return;if(typeof at=="number"){tt.go(at);return}let ht=resolveTo(at,JSON.parse(ot),rt,lt.relative==="path");$==null&&_e!=="/"&&(ht.pathname=ht.pathname==="/"?_e:joinPaths([_e,ht.pathname])),(lt.replace?tt.replace:tt.push)(ht,lt.state,lt)},[_e,tt,ot,rt,$])}function useResolvedPath($,_e){let{relative:et}=_e===void 0?{}:_e,{future:tt}=reactExports.useContext(NavigationContext),{matches:nt}=reactExports.useContext(RouteContext),{pathname:rt}=useLocation(),ot=JSON.stringify(getResolveToMatches(nt,tt.v7_relativeSplatPath));return reactExports.useMemo(()=>resolveTo($,JSON.parse(ot),rt,et==="path"),[$,ot,rt,et])}function useRoutes($,_e){return useRoutesImpl($,_e)}function useRoutesImpl($,_e,et,tt){useInRouterContext()||invariant(!1);let{navigator:nt}=reactExports.useContext(NavigationContext),{matches:rt}=reactExports.useContext(RouteContext),ot=rt[rt.length-1],it=ot?ot.params:{};ot&&ot.pathname;let st=ot?ot.pathnameBase:"/";ot&&ot.route;let at=useLocation(),lt;if(_e){var ht;let mt=typeof _e=="string"?parsePath(_e):_e;st==="/"||(ht=mt.pathname)!=null&&ht.startsWith(st)||invariant(!1),lt=mt}else lt=at;let pt=lt.pathname||"/",gt=pt;if(st!=="/"){let mt=st.replace(/^\//,"").split("/");gt="/"+pt.replace(/^\//,"").split("/").slice(mt.length).join("/")}let ft=matchRoutes($,{pathname:gt}),dt=_renderMatches(ft&&ft.map(mt=>Object.assign({},mt,{params:Object.assign({},it,mt.params),pathname:joinPaths([st,nt.encodeLocation?nt.encodeLocation(mt.pathname).pathname:mt.pathname]),pathnameBase:mt.pathnameBase==="/"?st:joinPaths([st,nt.encodeLocation?nt.encodeLocation(mt.pathnameBase).pathname:mt.pathnameBase])})),rt,et,tt);return _e&&dt?reactExports.createElement(LocationContext.Provider,{value:{location:_extends$3({pathname:"/",search:"",hash:"",state:null,key:"default"},lt),navigationType:Action.Pop}},dt):dt}function DefaultErrorComponent(){let $=useRouteError(),_e=isRouteErrorResponse($)?$.status+" "+$.statusText:$ instanceof Error?$.message:JSON.stringify($),et=$ instanceof Error?$.stack:null,nt={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},_e),et?reactExports.createElement("pre",{style:nt},et):null,null)}const defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null);class RenderErrorBoundary extends reactExports.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,et){return et.location!==_e.location||et.revalidation!=="idle"&&_e.revalidation==="idle"?{error:_e.error,location:_e.location,revalidation:_e.revalidation}:{error:_e.error!==void 0?_e.error:et.error,location:et.location,revalidation:_e.revalidation||et.revalidation}}componentDidCatch(_e,et){console.error("React Router caught the following error during render",_e,et)}render(){return this.state.error!==void 0?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute($){let{routeContext:_e,match:et,children:tt}=$,nt=reactExports.useContext(DataRouterContext);return nt&&nt.static&&nt.staticContext&&(et.route.errorElement||et.route.ErrorBoundary)&&(nt.staticContext._deepestRenderedBoundaryId=et.route.id),reactExports.createElement(RouteContext.Provider,{value:_e},tt)}function _renderMatches($,_e,et,tt){var nt;if(_e===void 0&&(_e=[]),et===void 0&&(et=null),tt===void 0&&(tt=null),$==null){var rt;if(!et)return null;if(et.errors)$=et.matches;else if((rt=tt)!=null&&rt.v7_partialHydration&&_e.length===0&&!et.initialized&&et.matches.length>0)$=et.matches;else return null}let ot=$,it=(nt=et)==null?void 0:nt.errors;if(it!=null){let lt=ot.findIndex(ht=>ht.route.id&&(it==null?void 0:it[ht.route.id])!==void 0);lt>=0||invariant(!1),ot=ot.slice(0,Math.min(ot.length,lt+1))}let st=!1,at=-1;if(et&&tt&&tt.v7_partialHydration)for(let lt=0;lt=0?ot=ot.slice(0,at+1):ot=[ot[0]];break}}}return ot.reduceRight((lt,ht,pt)=>{let gt,ft=!1,dt=null,mt=null;et&&(gt=it&&ht.route.id?it[ht.route.id]:void 0,dt=ht.route.errorElement||defaultErrorElement,st&&(at<0&&pt===0?(ft=!0,mt=null):at===pt&&(ft=!0,mt=ht.route.hydrateFallbackElement||null)));let ct=_e.concat(ot.slice(0,pt+1)),ut=()=>{let vt;return gt?vt=dt:ft?vt=mt:ht.route.Component?vt=reactExports.createElement(ht.route.Component,null):ht.route.element?vt=ht.route.element:vt=lt,reactExports.createElement(RenderedRoute,{match:ht,routeContext:{outlet:lt,matches:ct,isDataRoute:et!=null},children:vt})};return et&&(ht.route.ErrorBoundary||ht.route.errorElement||pt===0)?reactExports.createElement(RenderErrorBoundary,{location:et.location,revalidation:et.revalidation,component:dt,error:gt,children:ut(),routeContext:{outlet:null,matches:ct,isDataRoute:!0}}):ut()},null)}var DataRouterHook$1=function($){return $.UseBlocker="useBlocker",$.UseRevalidator="useRevalidator",$.UseNavigateStable="useNavigate",$}(DataRouterHook$1||{}),DataRouterStateHook$1=function($){return $.UseBlocker="useBlocker",$.UseLoaderData="useLoaderData",$.UseActionData="useActionData",$.UseRouteError="useRouteError",$.UseNavigation="useNavigation",$.UseRouteLoaderData="useRouteLoaderData",$.UseMatches="useMatches",$.UseRevalidator="useRevalidator",$.UseNavigateStable="useNavigate",$.UseRouteId="useRouteId",$}(DataRouterStateHook$1||{});function useDataRouterContext$1($){let _e=reactExports.useContext(DataRouterContext);return _e||invariant(!1),_e}function useDataRouterState($){let _e=reactExports.useContext(DataRouterStateContext);return _e||invariant(!1),_e}function useRouteContext($){let _e=reactExports.useContext(RouteContext);return _e||invariant(!1),_e}function useCurrentRouteId($){let _e=useRouteContext(),et=_e.matches[_e.matches.length-1];return et.route.id||invariant(!1),et.route.id}function useRouteError(){var $;let _e=reactExports.useContext(RouteErrorContext),et=useDataRouterState(DataRouterStateHook$1.UseRouteError),tt=useCurrentRouteId(DataRouterStateHook$1.UseRouteError);return _e!==void 0?_e:($=et.errors)==null?void 0:$[tt]}function useNavigateStable(){let{router:$}=useDataRouterContext$1(DataRouterHook$1.UseNavigateStable),_e=useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable),et=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{et.current=!0}),reactExports.useCallback(function(nt,rt){rt===void 0&&(rt={}),et.current&&(typeof nt=="number"?$.navigate(nt):$.navigate(nt,_extends$3({fromRouteId:_e},rt)))},[$,_e])}function Route($){invariant(!1)}function Router($){let{basename:_e="/",children:et=null,location:tt,navigationType:nt=Action.Pop,navigator:rt,static:ot=!1,future:it}=$;useInRouterContext()&&invariant(!1);let st=_e.replace(/^\/*/,"/"),at=reactExports.useMemo(()=>({basename:st,navigator:rt,static:ot,future:_extends$3({v7_relativeSplatPath:!1},it)}),[st,it,rt,ot]);typeof tt=="string"&&(tt=parsePath(tt));let{pathname:lt="/",search:ht="",hash:pt="",state:gt=null,key:ft="default"}=tt,dt=reactExports.useMemo(()=>{let mt=stripBasename(lt,st);return mt==null?null:{location:{pathname:mt,search:ht,hash:pt,state:gt,key:ft},navigationType:nt}},[st,lt,ht,pt,gt,ft,nt]);return dt==null?null:reactExports.createElement(NavigationContext.Provider,{value:at},reactExports.createElement(LocationContext.Provider,{children:et,value:dt}))}function Routes($){let{children:_e,location:et}=$;return useRoutes(createRoutesFromChildren(_e),et)}new Promise(()=>{});function createRoutesFromChildren($,_e){_e===void 0&&(_e=[]);let et=[];return reactExports.Children.forEach($,(tt,nt)=>{if(!reactExports.isValidElement(tt))return;let rt=[..._e,nt];if(tt.type===reactExports.Fragment){et.push.apply(et,createRoutesFromChildren(tt.props.children,rt));return}tt.type!==Route&&invariant(!1),!tt.props.index||!tt.props.children||invariant(!1);let ot={id:tt.props.id||rt.join("-"),caseSensitive:tt.props.caseSensitive,element:tt.props.element,Component:tt.props.Component,index:tt.props.index,path:tt.props.path,loader:tt.props.loader,action:tt.props.action,errorElement:tt.props.errorElement,ErrorBoundary:tt.props.ErrorBoundary,hasErrorBoundary:tt.props.ErrorBoundary!=null||tt.props.errorElement!=null,shouldRevalidate:tt.props.shouldRevalidate,handle:tt.props.handle,lazy:tt.props.lazy};tt.props.children&&(ot.children=createRoutesFromChildren(tt.props.children,rt)),et.push(ot)}),et}/** + * React Router DOM v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function($){for(var _e=1;_e=0)&&(et[nt]=$[nt]);return et}function isModifiedEvent($){return!!($.metaKey||$.altKey||$.ctrlKey||$.shiftKey)}function shouldProcessLinkClick($,_e){return $.button===0&&(!_e||_e==="_self")&&!isModifiedEvent($)}const _excluded$$=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],_excluded2$5=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],REACT_ROUTER_VERSION="6";try{window.__reactRouterVersion=REACT_ROUTER_VERSION}catch{}const ViewTransitionContext=reactExports.createContext({isTransitioning:!1}),START_TRANSITION="startTransition",startTransitionImpl=React$1[START_TRANSITION];function BrowserRouter($){let{basename:_e,children:et,future:tt,window:nt}=$,rt=reactExports.useRef();rt.current==null&&(rt.current=createBrowserHistory({window:nt,v5Compat:!0}));let ot=rt.current,[it,st]=reactExports.useState({action:ot.action,location:ot.location}),{v7_startTransition:at}=tt||{},lt=reactExports.useCallback(ht=>{at&&startTransitionImpl?startTransitionImpl(()=>st(ht)):st(ht)},[st,at]);return reactExports.useLayoutEffect(()=>ot.listen(lt),[ot,lt]),reactExports.createElement(Router,{basename:_e,children:et,location:it.location,navigationType:it.action,navigator:ot,future:tt})}const isBrowser$1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link=reactExports.forwardRef(function(_e,et){let{onClick:tt,relative:nt,reloadDocument:rt,replace:ot,state:it,target:st,to:at,preventScrollReset:lt,viewTransition:ht}=_e,pt=_objectWithoutPropertiesLoose$1(_e,_excluded$$),{basename:gt}=reactExports.useContext(NavigationContext),ft,dt=!1;if(typeof at=="string"&&ABSOLUTE_URL_REGEX.test(at)&&(ft=at,isBrowser$1))try{let vt=new URL(window.location.href),bt=at.startsWith("//")?new URL(vt.protocol+at):new URL(at),yt=stripBasename(bt.pathname,gt);bt.origin===vt.origin&&yt!=null?at=yt+bt.search+bt.hash:dt=!0}catch{}let mt=useHref(at,{relative:nt}),ct=useLinkClickHandler(at,{replace:ot,state:it,target:st,preventScrollReset:lt,relative:nt,viewTransition:ht});function ut(vt){tt&&tt(vt),vt.defaultPrevented||ct(vt)}return reactExports.createElement("a",_extends$2({},pt,{href:ft||mt,onClick:dt||rt?tt:ut,ref:et,target:st}))}),NavLink=reactExports.forwardRef(function(_e,et){let{"aria-current":tt="page",caseSensitive:nt=!1,className:rt="",end:ot=!1,style:it,to:st,viewTransition:at,children:lt}=_e,ht=_objectWithoutPropertiesLoose$1(_e,_excluded2$5),pt=useResolvedPath(st,{relative:ht.relative}),gt=useLocation(),ft=reactExports.useContext(DataRouterStateContext),{navigator:dt,basename:mt}=reactExports.useContext(NavigationContext),ct=ft!=null&&useViewTransitionState(pt)&&at===!0,ut=dt.encodeLocation?dt.encodeLocation(pt).pathname:pt.pathname,vt=gt.pathname,bt=ft&&ft.navigation&&ft.navigation.location?ft.navigation.location.pathname:null;nt||(vt=vt.toLowerCase(),bt=bt?bt.toLowerCase():null,ut=ut.toLowerCase()),bt&&mt&&(bt=stripBasename(bt,mt)||bt);const yt=ut!=="/"&&ut.endsWith("/")?ut.length-1:ut.length;let Et=vt===ut||!ot&&vt.startsWith(ut)&&vt.charAt(yt)==="/",xt=bt!=null&&(bt===ut||!ot&&bt.startsWith(ut)&&bt.charAt(ut.length)==="/"),St={isActive:Et,isPending:xt,isTransitioning:ct},kt=Et?tt:void 0,At;typeof rt=="function"?At=rt(St):At=[rt,Et?"active":null,xt?"pending":null,ct?"transitioning":null].filter(Boolean).join(" ");let $t=typeof it=="function"?it(St):it;return reactExports.createElement(Link,_extends$2({},ht,{"aria-current":kt,className:At,ref:et,style:$t,to:st,viewTransition:at}),typeof lt=="function"?lt(St):lt)});var DataRouterHook;(function($){$.UseScrollRestoration="useScrollRestoration",$.UseSubmit="useSubmit",$.UseSubmitFetcher="useSubmitFetcher",$.UseFetcher="useFetcher",$.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function($){$.UseFetcher="useFetcher",$.UseFetchers="useFetchers",$.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useDataRouterContext($){let _e=reactExports.useContext(DataRouterContext);return _e||invariant(!1),_e}function useLinkClickHandler($,_e){let{target:et,replace:tt,state:nt,preventScrollReset:rt,relative:ot,viewTransition:it}=_e===void 0?{}:_e,st=useNavigate(),at=useLocation(),lt=useResolvedPath($,{relative:ot});return reactExports.useCallback(ht=>{if(shouldProcessLinkClick(ht,et)){ht.preventDefault();let pt=tt!==void 0?tt:createPath(at)===createPath(lt);st($,{replace:pt,state:nt,preventScrollReset:rt,relative:ot,viewTransition:it})}},[at,st,lt,tt,nt,et,$,rt,ot,it])}function useViewTransitionState($,_e){_e===void 0&&(_e={});let et=reactExports.useContext(ViewTransitionContext);et==null&&invariant(!1);let{basename:tt}=useDataRouterContext(DataRouterHook.useViewTransitionState),nt=useResolvedPath($,{relative:_e.relative});if(!et.isTransitioning)return!1;let rt=stripBasename(et.currentLocation.pathname,tt)||et.currentLocation.pathname,ot=stripBasename(et.nextLocation.pathname,tt)||et.nextLocation.pathname;return matchPath(nt.pathname,ot)!=null||matchPath(nt.pathname,rt)!=null}const background="/assets/bg-C5B5H86r.mp4",common={black:"#000",white:"#fff"},red={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"},purple={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"},blue={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"},lightBlue={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"},green={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"},orange={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"},grey={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"};function formatMuiErrorMessage$1($){let _e="https://mui.com/production-error/?code="+$;for(let et=1;et0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping($,_e){for(;--_e&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice($,caret()+(_e<6&&peek()==32&&next()==32))}function delimiter($){for(;next();)switch(character){case $:return position;case 34:case 39:$!==34&&$!==39&&delimiter(character);break;case 40:$===41&&delimiter($);break;case 92:next();break}return position}function commenter($,_e){for(;next()&&$+character!==57;)if($+character===84&&peek()===47)break;return"/*"+slice(_e,position-1)+"*"+from($===47?$:next())}function identifier($){for(;!token(peek());)next();return slice($,position)}function compile($){return dealloc(parse("",null,null,null,[""],$=alloc($),0,[0],$))}function parse($,_e,et,tt,nt,rt,ot,it,st){for(var at=0,lt=0,ht=ot,pt=0,gt=0,ft=0,dt=1,mt=1,ct=1,ut=0,vt="",bt=nt,yt=rt,Et=tt,xt=vt;mt;)switch(ft=ut,ut=next()){case 40:if(ft!=108&&charat(xt,ht-1)==58){indexof(xt+=replace(delimit(ut),"&","&\f"),"&\f")!=-1&&(ct=-1);break}case 34:case 39:case 91:xt+=delimit(ut);break;case 9:case 10:case 13:case 32:xt+=whitespace(ft);break;case 92:xt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),_e,et),st);break;default:xt+="/"}break;case 123*dt:it[at++]=strlen(xt)*ct;case 125*dt:case 59:case 0:switch(ut){case 0:case 125:mt=0;case 59+lt:ct==-1&&(xt=replace(xt,/\f/g,"")),gt>0&&strlen(xt)-ht&&append(gt>32?declaration(xt+";",tt,et,ht-1):declaration(replace(xt," ","")+";",tt,et,ht-2),st);break;case 59:xt+=";";default:if(append(Et=ruleset(xt,_e,et,at,lt,nt,it,vt,bt=[],yt=[],ht),rt),ut===123)if(lt===0)parse(xt,_e,Et,Et,bt,rt,ht,it,yt);else switch(pt===99&&charat(xt,3)===110?100:pt){case 100:case 108:case 109:case 115:parse($,Et,Et,tt&&append(ruleset($,Et,Et,0,0,nt,it,vt,nt,bt=[],ht),yt),nt,yt,ht,it,tt?bt:yt);break;default:parse(xt,Et,Et,Et,[""],yt,0,it,yt)}}at=lt=gt=0,dt=ct=1,vt=xt="",ht=ot;break;case 58:ht=1+strlen(xt),gt=ft;default:if(dt<1){if(ut==123)--dt;else if(ut==125&&dt++==0&&prev()==125)continue}switch(xt+=from(ut),ut*dt){case 38:ct=lt>0?1:(xt+="\f",-1);break;case 44:it[at++]=(strlen(xt)-1)*ct,ct=1;break;case 64:peek()===45&&(xt+=delimit(next())),pt=peek(),lt=ht=strlen(vt=xt+=identifier(caret())),ut++;break;case 45:ft===45&&strlen(xt)==2&&(dt=0)}}return rt}function ruleset($,_e,et,tt,nt,rt,ot,it,st,at,lt){for(var ht=nt-1,pt=nt===0?rt:[""],gt=sizeof(pt),ft=0,dt=0,mt=0;ft0?pt[ct]+" "+ut:replace(ut,/&\f/g,pt[ct])))&&(st[mt++]=vt);return node($,_e,et,nt===0?RULESET:it,st,at,lt)}function comment($,_e,et){return node($,_e,et,COMMENT,from(char()),substr($,2,-2),0)}function declaration($,_e,et,tt){return node($,_e,et,DECLARATION,substr($,0,tt),substr($,tt+1,-1),tt)}function serialize($,_e){for(var et="",tt=sizeof($),nt=0;nt6)switch(charat($,_e+1)){case 109:if(charat($,_e+4)!==45)break;case 102:return replace($,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat($,_e+3)==108?"$3":"$2-$3"))+$;case 115:return~indexof($,"stretch")?prefix(replace($,"stretch","fill-available"),_e)+$:$}break;case 4949:if(charat($,_e+1)!==115)break;case 6444:switch(charat($,strlen($)-3-(~indexof($,"!important")&&10))){case 107:return replace($,":",":"+WEBKIT)+$;case 101:return replace($,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat($,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+$}break;case 5936:switch(charat($,_e+11)){case 114:return WEBKIT+$+MS+replace($,/[svh]\w+-[tblr]{2}/,"tb")+$;case 108:return WEBKIT+$+MS+replace($,/[svh]\w+-[tblr]{2}/,"tb-rl")+$;case 45:return WEBKIT+$+MS+replace($,/[svh]\w+-[tblr]{2}/,"lr")+$}return WEBKIT+$+MS+$+$}return $}var prefixer=function(_e,et,tt,nt){if(_e.length>-1&&!_e.return)switch(_e.type){case DECLARATION:_e.return=prefix(_e.value,_e.length);break;case KEYFRAMES:return serialize([copy(_e,{value:replace(_e.value,"@","@"+WEBKIT)})],nt);case RULESET:if(_e.length)return combine(_e.props,function(rt){switch(match(rt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(_e,{props:[replace(rt,/:(read-\w+)/,":"+MOZ+"$1")]})],nt);case"::placeholder":return serialize([copy(_e,{props:[replace(rt,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(_e,{props:[replace(rt,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(_e,{props:[replace(rt,/:(plac\w+)/,MS+"input-$1")]})],nt)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(_e){var et=_e.key;if(et==="css"){var tt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(tt,function(dt){var mt=dt.getAttribute("data-emotion");mt.indexOf(" ")!==-1&&(document.head.appendChild(dt),dt.setAttribute("data-s",""))})}var nt=_e.stylisPlugins||defaultStylisPlugins,rt={},ot,it=[];ot=_e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+et+' "]'),function(dt){for(var mt=dt.getAttribute("data-emotion").split(" "),ct=1;ct=4;++tt,nt-=4)et=$.charCodeAt(tt)&255|($.charCodeAt(++tt)&255)<<8|($.charCodeAt(++tt)&255)<<16|($.charCodeAt(++tt)&255)<<24,et=(et&65535)*1540483477+((et>>>16)*59797<<16),et^=et>>>24,_e=(et&65535)*1540483477+((et>>>16)*59797<<16)^(_e&65535)*1540483477+((_e>>>16)*59797<<16);switch(nt){case 3:_e^=($.charCodeAt(tt+2)&255)<<16;case 2:_e^=($.charCodeAt(tt+1)&255)<<8;case 1:_e^=$.charCodeAt(tt)&255,_e=(_e&65535)*1540483477+((_e>>>16)*59797<<16)}return _e^=_e>>>13,_e=(_e&65535)*1540483477+((_e>>>16)*59797<<16),((_e^_e>>>15)>>>0).toString(36)}var unitlessKeys={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,scale: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},isDevelopment$1=!1,hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(_e){return _e.charCodeAt(1)===45},isProcessableValue=function(_e){return _e!=null&&typeof _e!="boolean"},processStyleName=memoize$1(function($){return isCustomProperty($)?$:$.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(_e,et){switch(_e){case"animation":case"animationName":if(typeof et=="string")return et.replace(animationRegex,function(tt,nt,rt){return cursor={name:nt,styles:rt,next:cursor},nt})}return unitlessKeys[_e]!==1&&!isCustomProperty(_e)&&typeof et=="number"&&et!==0?et+"px":et},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation($,_e,et){if(et==null)return"";var tt=et;if(tt.__emotion_styles!==void 0)return tt;switch(typeof et){case"boolean":return"";case"object":{var nt=et;if(nt.anim===1)return cursor={name:nt.name,styles:nt.styles,next:cursor},nt.name;var rt=et;if(rt.styles!==void 0){var ot=rt.next;if(ot!==void 0)for(;ot!==void 0;)cursor={name:ot.name,styles:ot.styles,next:cursor},ot=ot.next;var it=rt.styles+";";return it}return createStringFromObject($,_e,et)}case"function":{if($!==void 0){var st=cursor,at=et($);return cursor=st,handleInterpolation($,_e,at)}break}}var lt=et;if(_e==null)return lt;var ht=_e[lt];return ht!==void 0?ht:lt}function createStringFromObject($,_e,et){var tt="";if(Array.isArray(et))for(var nt=0;nt96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(_e,et,tt){var nt;if(et){var rt=et.shouldForwardProp;nt=_e.__emotion_forwardProp&&rt?function(ot){return _e.__emotion_forwardProp(ot)&&rt(ot)}:rt}return typeof nt!="function"&&tt&&(nt=_e.__emotion_forwardProp),nt},isDevelopment=!1,Insertion=function(_e){var et=_e.cache,tt=_e.serialized,nt=_e.isStringTag;return registerStyles(et,tt,nt),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(et,tt,nt)}),null},createStyled$2=function $(_e,et){var tt=_e.__emotion_real===_e,nt=tt&&_e.__emotion_base||_e,rt,ot;et!==void 0&&(rt=et.label,ot=et.target);var it=composeShouldForwardProps(_e,et,tt),st=it||getDefaultShouldForwardProp(nt),at=!st("as");return function(){var lt=arguments,ht=tt&&_e.__emotion_styles!==void 0?_e.__emotion_styles.slice(0):[];if(rt!==void 0&&ht.push("label:"+rt+";"),lt[0]==null||lt[0].raw===void 0)ht.push.apply(ht,lt);else{ht.push(lt[0][0]);for(var pt=lt.length,gt=1;gt_e(isEmpty$3(nt)?et:nt):_e;return jsxRuntimeExports.jsx(Global,{styles:tt})}function styled$1($,_e){return newStyled($,_e)}const internal_processStyles=($,_e)=>{Array.isArray($.__emotion_styles)&&($.__emotion_styles=_e($.__emotion_styles))},styledEngine=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:GlobalStyles$2,StyledEngineProvider,ThemeContext,css,default:styled$1,internal_processStyles,keyframes},Symbol.toStringTag,{value:"Module"}));function isPlainObject$1($){if(typeof $!="object"||$===null)return!1;const _e=Object.getPrototypeOf($);return(_e===null||_e===Object.prototype||Object.getPrototypeOf(_e)===null)&&!(Symbol.toStringTag in $)&&!(Symbol.iterator in $)}function deepClone($){if(!isPlainObject$1($))return $;const _e={};return Object.keys($).forEach(et=>{_e[et]=deepClone($[et])}),_e}function deepmerge$1($,_e,et={clone:!0}){const tt=et.clone?_extends$1({},$):$;return isPlainObject$1($)&&isPlainObject$1(_e)&&Object.keys(_e).forEach(nt=>{isPlainObject$1(_e[nt])&&Object.prototype.hasOwnProperty.call($,nt)&&isPlainObject$1($[nt])?tt[nt]=deepmerge$1($[nt],_e[nt],et):et.clone?tt[nt]=isPlainObject$1(_e[nt])?deepClone(_e[nt]):_e[nt]:tt[nt]=_e[nt]}),tt}const deepmerge=Object.freeze(Object.defineProperty({__proto__:null,default:deepmerge$1,isPlainObject:isPlainObject$1},Symbol.toStringTag,{value:"Module"})),_excluded$_=["values","unit","step"],sortBreakpointsValues=$=>{const _e=Object.keys($).map(et=>({key:et,val:$[et]}))||[];return _e.sort((et,tt)=>et.val-tt.val),_e.reduce((et,tt)=>_extends$1({},et,{[tt.key]:tt.val}),{})};function createBreakpoints($){const{values:_e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:et="px",step:tt=5}=$,nt=_objectWithoutPropertiesLoose($,_excluded$_),rt=sortBreakpointsValues(_e),ot=Object.keys(rt);function it(pt){return`@media (min-width:${typeof _e[pt]=="number"?_e[pt]:pt}${et})`}function st(pt){return`@media (max-width:${(typeof _e[pt]=="number"?_e[pt]:pt)-tt/100}${et})`}function at(pt,gt){const ft=ot.indexOf(gt);return`@media (min-width:${typeof _e[pt]=="number"?_e[pt]:pt}${et}) and (max-width:${(ft!==-1&&typeof _e[ot[ft]]=="number"?_e[ot[ft]]:gt)-tt/100}${et})`}function lt(pt){return ot.indexOf(pt)+1`@media (min-width:${values$1[$]}px)`};function handleBreakpoints($,_e,et){const tt=$.theme||{};if(Array.isArray(_e)){const rt=tt.breakpoints||defaultBreakpoints;return _e.reduce((ot,it,st)=>(ot[rt.up(rt.keys[st])]=et(_e[st]),ot),{})}if(typeof _e=="object"){const rt=tt.breakpoints||defaultBreakpoints;return Object.keys(_e).reduce((ot,it)=>{if(Object.keys(rt.values||values$1).indexOf(it)!==-1){const st=rt.up(it);ot[st]=et(_e[it],it)}else{const st=it;ot[st]=_e[st]}return ot},{})}return et(_e)}function createEmptyBreakpointObject($={}){var _e;return((_e=$.keys)==null?void 0:_e.reduce((tt,nt)=>{const rt=$.up(nt);return tt[rt]={},tt},{}))||{}}function removeUnusedBreakpoints($,_e){return $.reduce((et,tt)=>{const nt=et[tt];return(!nt||Object.keys(nt).length===0)&&delete et[tt],et},_e)}function computeBreakpointsBase($,_e){if(typeof $!="object")return{};const et={},tt=Object.keys(_e);return Array.isArray($)?tt.forEach((nt,rt)=>{rt<$.length&&(et[nt]=!0)}):tt.forEach(nt=>{$[nt]!=null&&(et[nt]=!0)}),et}function resolveBreakpointValues({values:$,breakpoints:_e,base:et}){const tt=et||computeBreakpointsBase($,_e),nt=Object.keys(tt);if(nt.length===0)return $;let rt;return nt.reduce((ot,it,st)=>(Array.isArray($)?(ot[it]=$[st]!=null?$[st]:$[rt],rt=st):typeof $=="object"?(ot[it]=$[it]!=null?$[it]:$[rt],rt=it):ot[it]=$,ot),{})}function capitalize$1($){if(typeof $!="string")throw new Error(formatMuiErrorMessage$1(7));return $.charAt(0).toUpperCase()+$.slice(1)}const capitalize=Object.freeze(Object.defineProperty({__proto__:null,default:capitalize$1},Symbol.toStringTag,{value:"Module"}));function getPath($,_e,et=!0){if(!_e||typeof _e!="string")return null;if($&&$.vars&&et){const tt=`vars.${_e}`.split(".").reduce((nt,rt)=>nt&&nt[rt]?nt[rt]:null,$);if(tt!=null)return tt}return _e.split(".").reduce((tt,nt)=>tt&&tt[nt]!=null?tt[nt]:null,$)}function getStyleValue$1($,_e,et,tt=et){let nt;return typeof $=="function"?nt=$(et):Array.isArray($)?nt=$[et]||tt:nt=getPath($,et)||tt,_e&&(nt=_e(nt,tt,$)),nt}function style$1($){const{prop:_e,cssProperty:et=$.prop,themeKey:tt,transform:nt}=$,rt=ot=>{if(ot[_e]==null)return null;const it=ot[_e],st=ot.theme,at=getPath(st,tt)||{};return handleBreakpoints(ot,it,ht=>{let pt=getStyleValue$1(at,nt,ht);return ht===pt&&typeof ht=="string"&&(pt=getStyleValue$1(at,nt,`${_e}${ht==="default"?"":capitalize$1(ht)}`,ht)),et===!1?pt:{[et]:pt}})};return rt.propTypes={},rt.filterProps=[_e],rt}function memoize($){const _e={};return et=>(_e[et]===void 0&&(_e[et]=$(et)),_e[et])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize($=>{if($.length>2)if(aliases[$])$=aliases[$];else return[$];const[_e,et]=$.split(""),tt=properties[_e],nt=directions[et]||"";return Array.isArray(nt)?nt.map(rt=>tt+rt):[tt+nt]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...marginKeys,...paddingKeys];function createUnaryUnit($,_e,et,tt){var nt;const rt=(nt=getPath($,_e,!1))!=null?nt:et;return typeof rt=="number"?ot=>typeof ot=="string"?ot:rt*ot:Array.isArray(rt)?ot=>typeof ot=="string"?ot:rt[ot]:typeof rt=="function"?rt:()=>{}}function createUnarySpacing($){return createUnaryUnit($,"spacing",8)}function getValue($,_e){if(typeof _e=="string"||_e==null)return _e;const et=Math.abs(_e),tt=$(et);return _e>=0?tt:typeof tt=="number"?-tt:`-${tt}`}function getStyleFromPropValue($,_e){return et=>$.reduce((tt,nt)=>(tt[nt]=getValue(_e,et),tt),{})}function resolveCssProperty($,_e,et,tt){if(_e.indexOf(et)===-1)return null;const nt=getCssProperties(et),rt=getStyleFromPropValue(nt,tt),ot=$[et];return handleBreakpoints($,ot,rt)}function style($,_e){const et=createUnarySpacing($.theme);return Object.keys($).map(tt=>resolveCssProperty($,_e,tt,et)).reduce(merge$1,{})}function margin($){return style($,marginKeys)}margin.propTypes={};margin.filterProps=marginKeys;function padding($){return style($,paddingKeys)}padding.propTypes={};padding.filterProps=paddingKeys;function createSpacing($=8){if($.mui)return $;const _e=createUnarySpacing({spacing:$}),et=(...tt)=>(tt.length===0?[1]:tt).map(rt=>{const ot=_e(rt);return typeof ot=="number"?`${ot}px`:ot}).join(" ");return et.mui=!0,et}function compose(...$){const _e=$.reduce((tt,nt)=>(nt.filterProps.forEach(rt=>{tt[rt]=nt}),tt),{}),et=tt=>Object.keys(tt).reduce((nt,rt)=>_e[rt]?merge$1(nt,_e[rt](tt)):nt,{});return et.propTypes={},et.filterProps=$.reduce((tt,nt)=>tt.concat(nt.filterProps),[]),et}function borderTransform($){return typeof $!="number"?$:`${$}px solid`}function createBorderStyle($,_e){return style$1({prop:$,themeKey:"borders",transform:_e})}const border=createBorderStyle("border",borderTransform),borderTop=createBorderStyle("borderTop",borderTransform),borderRight=createBorderStyle("borderRight",borderTransform),borderBottom=createBorderStyle("borderBottom",borderTransform),borderLeft=createBorderStyle("borderLeft",borderTransform),borderColor=createBorderStyle("borderColor"),borderTopColor=createBorderStyle("borderTopColor"),borderRightColor=createBorderStyle("borderRightColor"),borderBottomColor=createBorderStyle("borderBottomColor"),borderLeftColor=createBorderStyle("borderLeftColor"),outline=createBorderStyle("outline",borderTransform),outlineColor=createBorderStyle("outlineColor"),borderRadius=$=>{if($.borderRadius!==void 0&&$.borderRadius!==null){const _e=createUnaryUnit($.theme,"shape.borderRadius",4),et=tt=>({borderRadius:getValue(_e,tt)});return handleBreakpoints($,$.borderRadius,et)}return null};borderRadius.propTypes={};borderRadius.filterProps=["borderRadius"];compose(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius,outline,outlineColor);const gap=$=>{if($.gap!==void 0&&$.gap!==null){const _e=createUnaryUnit($.theme,"spacing",8),et=tt=>({gap:getValue(_e,tt)});return handleBreakpoints($,$.gap,et)}return null};gap.propTypes={};gap.filterProps=["gap"];const columnGap=$=>{if($.columnGap!==void 0&&$.columnGap!==null){const _e=createUnaryUnit($.theme,"spacing",8),et=tt=>({columnGap:getValue(_e,tt)});return handleBreakpoints($,$.columnGap,et)}return null};columnGap.propTypes={};columnGap.filterProps=["columnGap"];const rowGap=$=>{if($.rowGap!==void 0&&$.rowGap!==null){const _e=createUnaryUnit($.theme,"spacing",8),et=tt=>({rowGap:getValue(_e,tt)});return handleBreakpoints($,$.rowGap,et)}return null};rowGap.propTypes={};rowGap.filterProps=["rowGap"];const gridColumn=style$1({prop:"gridColumn"}),gridRow=style$1({prop:"gridRow"}),gridAutoFlow=style$1({prop:"gridAutoFlow"}),gridAutoColumns=style$1({prop:"gridAutoColumns"}),gridAutoRows=style$1({prop:"gridAutoRows"}),gridTemplateColumns=style$1({prop:"gridTemplateColumns"}),gridTemplateRows=style$1({prop:"gridTemplateRows"}),gridTemplateAreas=style$1({prop:"gridTemplateAreas"}),gridArea=style$1({prop:"gridArea"});compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform($,_e){return _e==="grey"?_e:$}const color=style$1({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$1({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$1({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose(color,bgcolor,backgroundColor);function sizingTransform($){return $<=1&&$!==0?`${$*100}%`:$}const width=style$1({prop:"width",transform:sizingTransform}),maxWidth=$=>{if($.maxWidth!==void 0&&$.maxWidth!==null){const _e=et=>{var tt,nt;const rt=((tt=$.theme)==null||(tt=tt.breakpoints)==null||(tt=tt.values)==null?void 0:tt[et])||values$1[et];return rt?((nt=$.theme)==null||(nt=nt.breakpoints)==null?void 0:nt.unit)!=="px"?{maxWidth:`${rt}${$.theme.breakpoints.unit}`}:{maxWidth:rt}:{maxWidth:sizingTransform(et)}};return handleBreakpoints($,$.maxWidth,_e)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$1({prop:"minWidth",transform:sizingTransform}),height=style$1({prop:"height",transform:sizingTransform}),maxHeight=style$1({prop:"maxHeight",transform:sizingTransform}),minHeight=style$1({prop:"minHeight",transform:sizingTransform});style$1({prop:"size",cssProperty:"width",transform:sizingTransform});style$1({prop:"size",cssProperty:"height",transform:sizingTransform});const boxSizing=style$1({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);const defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding},pt:{style:padding},pr:{style:padding},pb:{style:padding},pl:{style:padding},px:{style:padding},py:{style:padding},padding:{style:padding},paddingTop:{style:padding},paddingRight:{style:padding},paddingBottom:{style:padding},paddingLeft:{style:padding},paddingX:{style:padding},paddingY:{style:padding},paddingInline:{style:padding},paddingInlineStart:{style:padding},paddingInlineEnd:{style:padding},paddingBlock:{style:padding},paddingBlockStart:{style:padding},paddingBlockEnd:{style:padding},m:{style:margin},mt:{style:margin},mr:{style:margin},mb:{style:margin},ml:{style:margin},mx:{style:margin},my:{style:margin},margin:{style:margin},marginTop:{style:margin},marginRight:{style:margin},marginBottom:{style:margin},marginLeft:{style:margin},marginX:{style:margin},marginY:{style:margin},marginInline:{style:margin},marginInlineStart:{style:margin},marginInlineEnd:{style:margin},marginBlock:{style:margin},marginBlockStart:{style:margin},marginBlockEnd:{style:margin},displayPrint:{cssProperty:!1,transform:$=>({"@media print":{display:$}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function objectsHaveSameKeys(...$){const _e=$.reduce((tt,nt)=>tt.concat(Object.keys(nt)),[]),et=new Set(_e);return $.every(tt=>et.size===Object.keys(tt).length)}function callIfFn($,_e){return typeof $=="function"?$(_e):$}function unstable_createStyleFunctionSx(){function $(et,tt,nt,rt){const ot={[et]:tt,theme:nt},it=rt[et];if(!it)return{[et]:tt};const{cssProperty:st=et,themeKey:at,transform:lt,style:ht}=it;if(tt==null)return null;if(at==="typography"&&tt==="inherit")return{[et]:tt};const pt=getPath(nt,at)||{};return ht?ht(ot):handleBreakpoints(ot,tt,ft=>{let dt=getStyleValue$1(pt,lt,ft);return ft===dt&&typeof ft=="string"&&(dt=getStyleValue$1(pt,lt,`${et}${ft==="default"?"":capitalize$1(ft)}`,ft)),st===!1?dt:{[st]:dt}})}function _e(et){var tt;const{sx:nt,theme:rt={}}=et||{};if(!nt)return null;const ot=(tt=rt.unstable_sxConfig)!=null?tt:defaultSxConfig;function it(st){let at=st;if(typeof st=="function")at=st(rt);else if(typeof st!="object")return st;if(!at)return null;const lt=createEmptyBreakpointObject(rt.breakpoints),ht=Object.keys(lt);let pt=lt;return Object.keys(at).forEach(gt=>{const ft=callIfFn(at[gt],rt);if(ft!=null)if(typeof ft=="object")if(ot[gt])pt=merge$1(pt,$(gt,ft,rt,ot));else{const dt=handleBreakpoints({theme:rt},ft,mt=>({[gt]:mt}));objectsHaveSameKeys(dt,ft)?pt[gt]=_e({sx:ft,theme:rt}):pt=merge$1(pt,dt)}else pt=merge$1(pt,$(gt,ft,rt,ot))}),removeUnusedBreakpoints(ht,pt)}return Array.isArray(nt)?nt.map(it):it(nt)}return _e}const styleFunctionSx$1=unstable_createStyleFunctionSx();styleFunctionSx$1.filterProps=["sx"];function applyStyles($,_e){const et=this;return et.vars&&typeof et.getColorSchemeSelector=="function"?{[et.getColorSchemeSelector($).replace(/(\[[^\]]+\])/,"*:where($1)")]:_e}:et.palette.mode===$?_e:{}}const _excluded$Z=["breakpoints","palette","spacing","shape"];function createTheme$2($={},..._e){const{breakpoints:et={},palette:tt={},spacing:nt,shape:rt={}}=$,ot=_objectWithoutPropertiesLoose($,_excluded$Z),it=createBreakpoints(et),st=createSpacing(nt);let at=deepmerge$1({breakpoints:it,direction:"ltr",components:{},palette:_extends$1({mode:"light"},tt),spacing:st,shape:_extends$1({},shape,rt)},ot);return at.applyStyles=applyStyles,at=_e.reduce((lt,ht)=>deepmerge$1(lt,ht),at),at.unstable_sxConfig=_extends$1({},defaultSxConfig,ot==null?void 0:ot.unstable_sxConfig),at.unstable_sx=function(ht){return styleFunctionSx$1({sx:ht,theme:this})},at}const createTheme$1=Object.freeze(Object.defineProperty({__proto__:null,default:createTheme$2,private_createBreakpoints:createBreakpoints,unstable_applyStyles:applyStyles},Symbol.toStringTag,{value:"Module"}));function isObjectEmpty($){return Object.keys($).length===0}function useTheme$2($=null){const _e=reactExports.useContext(ThemeContext);return!_e||isObjectEmpty(_e)?$:_e}const systemDefaultTheme$1=createTheme$2();function useTheme$1($=systemDefaultTheme$1){return useTheme$2($)}function GlobalStyles$1({styles:$,themeId:_e,defaultTheme:et={}}){const tt=useTheme$1(et),nt=typeof $=="function"?$(_e&&tt[_e]||tt):$;return jsxRuntimeExports.jsx(GlobalStyles$2,{styles:nt})}const _excluded$Y=["sx"],splitProps=$=>{var _e,et;const tt={systemProps:{},otherProps:{}},nt=(_e=$==null||(et=$.theme)==null?void 0:et.unstable_sxConfig)!=null?_e:defaultSxConfig;return Object.keys($).forEach(rt=>{nt[rt]?tt.systemProps[rt]=$[rt]:tt.otherProps[rt]=$[rt]}),tt};function extendSxProp($){const{sx:_e}=$,et=_objectWithoutPropertiesLoose($,_excluded$Y),{systemProps:tt,otherProps:nt}=splitProps(et);let rt;return Array.isArray(_e)?rt=[tt,..._e]:typeof _e=="function"?rt=(...ot)=>{const it=_e(...ot);return isPlainObject$1(it)?_extends$1({},tt,it):tt}:rt=_extends$1({},tt,_e),_extends$1({},nt,{sx:rt})}const styleFunctionSx=Object.freeze(Object.defineProperty({__proto__:null,default:styleFunctionSx$1,extendSxProp,unstable_createStyleFunctionSx,unstable_defaultSxConfig:defaultSxConfig},Symbol.toStringTag,{value:"Module"})),defaultGenerator=$=>$,createClassNameGenerator=()=>{let $=defaultGenerator;return{configure(_e){$=_e},generate(_e){return $(_e)},reset(){$=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator();function r$f($){var _e,et,tt="";if(typeof $=="string"||typeof $=="number")tt+=$;else if(typeof $=="object")if(Array.isArray($)){var nt=$.length;for(_e=0;_eit!=="theme"&&it!=="sx"&&it!=="as"})(styleFunctionSx$1);return reactExports.forwardRef(function(st,at){const lt=useTheme$1(et),ht=extendSxProp(st),{className:pt,component:gt="div"}=ht,ft=_objectWithoutPropertiesLoose(ht,_excluded$X);return jsxRuntimeExports.jsx(rt,_extends$1({as:gt,ref:at,className:clsx(pt,nt?nt(tt):tt),theme:_e&<[_e]||lt},ft))})}const globalStateClasses={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 generateUtilityClass($,_e,et="Mui"){const tt=globalStateClasses[_e];return tt?`${et}-${tt}`:`${ClassNameGenerator.generate($)}-${_e}`}function generateUtilityClasses($,_e,et="Mui"){const tt={};return _e.forEach(nt=>{tt[nt]=generateUtilityClass($,nt,et)}),tt}var reactIs={exports:{}},reactIs_production_min={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var b$5=Symbol.for("react.element"),c$f=Symbol.for("react.portal"),d$a=Symbol.for("react.fragment"),e$f=Symbol.for("react.strict_mode"),f$a=Symbol.for("react.profiler"),g$6=Symbol.for("react.provider"),h$6=Symbol.for("react.context"),k$4=Symbol.for("react.server_context"),l$e=Symbol.for("react.forward_ref"),m$a=Symbol.for("react.suspense"),n$f=Symbol.for("react.suspense_list"),p$8=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t$f=Symbol.for("react.offscreen"),u$e;u$e=Symbol.for("react.module.reference");function v$6($){if(typeof $=="object"&&$!==null){var _e=$.$$typeof;switch(_e){case b$5:switch($=$.type,$){case d$a:case f$a:case e$f:case m$a:case n$f:return $;default:switch($=$&&$.$$typeof,$){case k$4:case h$6:case l$e:case q:case p$8:case g$6:return $;default:return _e}}case c$f:return _e}}}reactIs_production_min.ContextConsumer=h$6;reactIs_production_min.ContextProvider=g$6;reactIs_production_min.Element=b$5;reactIs_production_min.ForwardRef=l$e;reactIs_production_min.Fragment=d$a;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p$8;reactIs_production_min.Portal=c$f;reactIs_production_min.Profiler=f$a;reactIs_production_min.StrictMode=e$f;reactIs_production_min.Suspense=m$a;reactIs_production_min.SuspenseList=n$f;reactIs_production_min.isAsyncMode=function(){return!1};reactIs_production_min.isConcurrentMode=function(){return!1};reactIs_production_min.isContextConsumer=function($){return v$6($)===h$6};reactIs_production_min.isContextProvider=function($){return v$6($)===g$6};reactIs_production_min.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===b$5};reactIs_production_min.isForwardRef=function($){return v$6($)===l$e};reactIs_production_min.isFragment=function($){return v$6($)===d$a};reactIs_production_min.isLazy=function($){return v$6($)===q};reactIs_production_min.isMemo=function($){return v$6($)===p$8};reactIs_production_min.isPortal=function($){return v$6($)===c$f};reactIs_production_min.isProfiler=function($){return v$6($)===f$a};reactIs_production_min.isStrictMode=function($){return v$6($)===e$f};reactIs_production_min.isSuspense=function($){return v$6($)===m$a};reactIs_production_min.isSuspenseList=function($){return v$6($)===n$f};reactIs_production_min.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===d$a||$===f$a||$===e$f||$===m$a||$===n$f||$===t$f||typeof $=="object"&&$!==null&&($.$$typeof===q||$.$$typeof===p$8||$.$$typeof===g$6||$.$$typeof===h$6||$.$$typeof===l$e||$.$$typeof===u$e||$.getModuleId!==void 0)};reactIs_production_min.typeOf=v$6;reactIs.exports=reactIs_production_min;var reactIsExports=reactIs.exports;const fnNameMatchRegex=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function getFunctionName($){const _e=`${$}`.match(fnNameMatchRegex);return _e&&_e[1]||""}function getFunctionComponentName($,_e=""){return $.displayName||$.name||getFunctionName($)||_e}function getWrappedName($,_e,et){const tt=getFunctionComponentName(_e);return $.displayName||(tt!==""?`${et}(${tt})`:et)}function getDisplayName$1($){if($!=null){if(typeof $=="string")return $;if(typeof $=="function")return getFunctionComponentName($,"Component");if(typeof $=="object")switch($.$$typeof){case reactIsExports.ForwardRef:return getWrappedName($,$.render,"ForwardRef");case reactIsExports.Memo:return getWrappedName($,$.type,"memo");default:return}}}const getDisplayName=Object.freeze(Object.defineProperty({__proto__:null,default:getDisplayName$1,getFunctionName},Symbol.toStringTag,{value:"Module"}));function resolveProps($,_e){const et=_extends$1({},_e);return Object.keys($).forEach(tt=>{if(tt.toString().match(/^(components|slots)$/))et[tt]=_extends$1({},$[tt],et[tt]);else if(tt.toString().match(/^(componentsProps|slotProps)$/)){const nt=$[tt]||{},rt=_e[tt];et[tt]={},!rt||!Object.keys(rt)?et[tt]=nt:!nt||!Object.keys(nt)?et[tt]=rt:(et[tt]=_extends$1({},rt),Object.keys(nt).forEach(ot=>{et[tt][ot]=resolveProps(nt[ot],rt[ot])}))}else et[tt]===void 0&&(et[tt]=$[tt])}),et}const useEnhancedEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function clamp$1($,_e=Number.MIN_SAFE_INTEGER,et=Number.MAX_SAFE_INTEGER){return Math.max(_e,Math.min($,et))}const clamp=Object.freeze(Object.defineProperty({__proto__:null,default:clamp$1},Symbol.toStringTag,{value:"Module"}));function createChainedFunction(...$){return $.reduce((_e,et)=>et==null?_e:function(...nt){_e.apply(this,nt),et.apply(this,nt)},()=>{})}function debounce($,_e=166){let et;function tt(...nt){const rt=()=>{$.apply(this,nt)};clearTimeout(et),et=setTimeout(rt,_e)}return tt.clear=()=>{clearTimeout(et)},tt}function deprecatedPropType($,_e){return()=>null}function isMuiElement($,_e){var et,tt;return reactExports.isValidElement($)&&_e.indexOf((et=$.type.muiName)!=null?et:(tt=$.type)==null||(tt=tt._payload)==null||(tt=tt.value)==null?void 0:tt.muiName)!==-1}function ownerDocument($){return $&&$.ownerDocument||document}function ownerWindow($){return ownerDocument($).defaultView||window}function requirePropFactory($,_e){return()=>null}function setRef($,_e){typeof $=="function"?$(_e):$&&($.current=_e)}let globalId=0;function useGlobalId($){const[_e,et]=reactExports.useState($),tt=$||_e;return reactExports.useEffect(()=>{_e==null&&(globalId+=1,et(`mui-${globalId}`))},[_e]),tt}const maybeReactUseId=React$1.useId;function useId($){if(maybeReactUseId!==void 0){const _e=maybeReactUseId();return $??_e}return useGlobalId($)}function unsupportedProp($,_e,et,tt,nt){return null}function useControlled({controlled:$,default:_e,name:et,state:tt="value"}){const{current:nt}=reactExports.useRef($!==void 0),[rt,ot]=reactExports.useState(_e),it=nt?$:rt,st=reactExports.useCallback(at=>{nt||ot(at)},[]);return[it,st]}function useEventCallback($){const _e=reactExports.useRef($);return useEnhancedEffect(()=>{_e.current=$}),reactExports.useRef((...et)=>(0,_e.current)(...et)).current}function useForkRef(...$){return reactExports.useMemo(()=>$.every(_e=>_e==null)?null:_e=>{$.forEach(et=>{setRef(et,_e)})},$)}const UNINITIALIZED={};function useLazyRef($,_e){const et=reactExports.useRef(UNINITIALIZED);return et.current===UNINITIALIZED&&(et.current=$(_e)),et}const EMPTY=[];function useOnMount($){reactExports.useEffect($,EMPTY)}class Timeout{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Timeout}start(_e,et){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,et()},_e)}}function useTimeout(){const $=useLazyRef(Timeout.create).current;return useOnMount($.disposeEffect),$}let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1;const hadFocusVisibleRecentlyTimeout=new Timeout,inputTypesWhitelist={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 focusTriggersKeyboardModality($){const{type:_e,tagName:et}=$;return!!(et==="INPUT"&&inputTypesWhitelist[_e]&&!$.readOnly||et==="TEXTAREA"&&!$.readOnly||$.isContentEditable)}function handleKeyDown($){$.metaKey||$.altKey||$.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState==="hidden"&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare($){$.addEventListener("keydown",handleKeyDown,!0),$.addEventListener("mousedown",handlePointerDown,!0),$.addEventListener("pointerdown",handlePointerDown,!0),$.addEventListener("touchstart",handlePointerDown,!0),$.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible($){const{target:_e}=$;try{return _e.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(_e)}function useIsFocusVisible(){const $=reactExports.useCallback(nt=>{nt!=null&&prepare(nt.ownerDocument)},[]),_e=reactExports.useRef(!1);function et(){return _e.current?(hadFocusVisibleRecently=!0,hadFocusVisibleRecentlyTimeout.start(100,()=>{hadFocusVisibleRecently=!1}),_e.current=!1,!0):!1}function tt(nt){return isFocusVisible(nt)?(_e.current=!0,!0):!1}return{isFocusVisibleRef:_e,onFocus:tt,onBlur:et,ref:$}}function getScrollbarSize($){const _e=$.documentElement.clientWidth;return Math.abs(window.innerWidth-_e)}let cachedType;function detectScrollType(){if(cachedType)return cachedType;const $=document.createElement("div"),_e=document.createElement("div");return _e.style.width="10px",_e.style.height="1px",$.appendChild(_e),$.dir="rtl",$.style.fontSize="14px",$.style.width="4px",$.style.height="1px",$.style.position="absolute",$.style.top="-1000px",$.style.overflow="scroll",document.body.appendChild($),cachedType="reverse",$.scrollLeft>0?cachedType="default":($.scrollLeft=1,$.scrollLeft===0&&(cachedType="negative")),document.body.removeChild($),cachedType}function getNormalizedScrollLeft($,_e){const et=$.scrollLeft;if(_e!=="rtl")return et;switch(detectScrollType()){case"negative":return $.scrollWidth-$.clientWidth+et;case"reverse":return $.scrollWidth-$.clientWidth-et;default:return et}}function composeClasses($,_e,et=void 0){const tt={};return Object.keys($).forEach(nt=>{tt[nt]=$[nt].reduce((rt,ot)=>{if(ot){const it=_e(ot);it!==""&&rt.push(it),et&&et[ot]&&rt.push(et[ot])}return rt},[]).join(" ")}),tt}function isHostComponent($){return typeof $=="string"}function appendOwnerState($,_e,et){return $===void 0||isHostComponent($)?_e:_extends$1({},_e,{ownerState:_extends$1({},_e.ownerState,et)})}function extractEventHandlers($,_e=[]){if($===void 0)return{};const et={};return Object.keys($).filter(tt=>tt.match(/^on[A-Z]/)&&typeof $[tt]=="function"&&!_e.includes(tt)).forEach(tt=>{et[tt]=$[tt]}),et}function omitEventHandlers($){if($===void 0)return{};const _e={};return Object.keys($).filter(et=>!(et.match(/^on[A-Z]/)&&typeof $[et]=="function")).forEach(et=>{_e[et]=$[et]}),_e}function mergeSlotProps($){const{getSlotProps:_e,additionalProps:et,externalSlotProps:tt,externalForwardedProps:nt,className:rt}=$;if(!_e){const gt=clsx(et==null?void 0:et.className,rt,nt==null?void 0:nt.className,tt==null?void 0:tt.className),ft=_extends$1({},et==null?void 0:et.style,nt==null?void 0:nt.style,tt==null?void 0:tt.style),dt=_extends$1({},et,nt,tt);return gt.length>0&&(dt.className=gt),Object.keys(ft).length>0&&(dt.style=ft),{props:dt,internalRef:void 0}}const ot=extractEventHandlers(_extends$1({},nt,tt)),it=omitEventHandlers(tt),st=omitEventHandlers(nt),at=_e(ot),lt=clsx(at==null?void 0:at.className,et==null?void 0:et.className,rt,nt==null?void 0:nt.className,tt==null?void 0:tt.className),ht=_extends$1({},at==null?void 0:at.style,et==null?void 0:et.style,nt==null?void 0:nt.style,tt==null?void 0:tt.style),pt=_extends$1({},at,et,st,it);return lt.length>0&&(pt.className=lt),Object.keys(ht).length>0&&(pt.style=ht),{props:pt,internalRef:at.ref}}function resolveComponentProps($,_e,et){return typeof $=="function"?$(_e,et):$}const _excluded$W=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function useSlotProps($){var _e;const{elementType:et,externalSlotProps:tt,ownerState:nt,skipResolvingSlotProps:rt=!1}=$,ot=_objectWithoutPropertiesLoose($,_excluded$W),it=rt?{}:resolveComponentProps(tt,nt),{props:st,internalRef:at}=mergeSlotProps(_extends$1({},ot,{externalSlotProps:it})),lt=useForkRef(at,it==null?void 0:it.ref,(_e=$.additionalProps)==null?void 0:_e.ref);return appendOwnerState(et,_extends$1({},st,{ref:lt}),nt)}const RtlContext=reactExports.createContext(),useRtl=()=>{const $=reactExports.useContext(RtlContext);return $??!1},PropsContext=reactExports.createContext(void 0);function getThemeProps($){const{theme:_e,name:et,props:tt}=$;if(!_e||!_e.components||!_e.components[et])return tt;const nt=_e.components[et];return nt.defaultProps?resolveProps(nt.defaultProps,tt):!nt.styleOverrides&&!nt.variants?resolveProps(nt,tt):tt}function useDefaultProps$1({props:$,name:_e}){const et=reactExports.useContext(PropsContext);return getThemeProps({props:$,name:_e,theme:{components:et}})}function createMixins($,_e){return _extends$1({toolbar:{minHeight:56,[$.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[$.up("sm")]:{minHeight:64}}},_e)}var colorManipulator={},interopRequireDefault={exports:{}};(function($){function _e(et){return et&&et.__esModule?et:{default:et}}$.exports=_e,$.exports.__esModule=!0,$.exports.default=$.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports;const require$$1$1=getAugmentedNamespace(formatMuiErrorMessage),require$$2=getAugmentedNamespace(clamp);var _interopRequireDefault$h=interopRequireDefaultExports;Object.defineProperty(colorManipulator,"__esModule",{value:!0});var alpha_1=colorManipulator.alpha=alpha;colorManipulator.blend=blend;colorManipulator.colorChannel=void 0;var darken_1=colorManipulator.darken=darken;colorManipulator.decomposeColor=decomposeColor;colorManipulator.emphasize=emphasize;var getContrastRatio_1=colorManipulator.getContrastRatio=getContrastRatio;colorManipulator.getLuminance=getLuminance;colorManipulator.hexToRgb=hexToRgb;colorManipulator.hslToRgb=hslToRgb;var lighten_1=colorManipulator.lighten=lighten;colorManipulator.private_safeAlpha=private_safeAlpha;colorManipulator.private_safeColorChannel=void 0;colorManipulator.private_safeDarken=private_safeDarken;colorManipulator.private_safeEmphasize=private_safeEmphasize;colorManipulator.private_safeLighten=private_safeLighten;colorManipulator.recomposeColor=recomposeColor;colorManipulator.rgbToHex=rgbToHex;var _formatMuiErrorMessage2=_interopRequireDefault$h(require$$1$1),_clamp=_interopRequireDefault$h(require$$2);function clampWrapper($,_e=0,et=1){return(0,_clamp.default)($,_e,et)}function hexToRgb($){$=$.slice(1);const _e=new RegExp(`.{1,${$.length>=6?2:1}}`,"g");let et=$.match(_e);return et&&et[0].length===1&&(et=et.map(tt=>tt+tt)),et?`rgb${et.length===4?"a":""}(${et.map((tt,nt)=>nt<3?parseInt(tt,16):Math.round(parseInt(tt,16)/255*1e3)/1e3).join(", ")})`:""}function intToHex($){const _e=$.toString(16);return _e.length===1?`0${_e}`:_e}function decomposeColor($){if($.type)return $;if($.charAt(0)==="#")return decomposeColor(hexToRgb($));const _e=$.indexOf("("),et=$.substring(0,_e);if(["rgb","rgba","hsl","hsla","color"].indexOf(et)===-1)throw new Error((0,_formatMuiErrorMessage2.default)(9,$));let tt=$.substring(_e+1,$.length-1),nt;if(et==="color"){if(tt=tt.split(" "),nt=tt.shift(),tt.length===4&&tt[3].charAt(0)==="/"&&(tt[3]=tt[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(nt)===-1)throw new Error((0,_formatMuiErrorMessage2.default)(10,nt))}else tt=tt.split(",");return tt=tt.map(rt=>parseFloat(rt)),{type:et,values:tt,colorSpace:nt}}const colorChannel=$=>{const _e=decomposeColor($);return _e.values.slice(0,3).map((et,tt)=>_e.type.indexOf("hsl")!==-1&&tt!==0?`${et}%`:et).join(" ")};colorManipulator.colorChannel=colorChannel;const private_safeColorChannel=($,_e)=>{try{return colorChannel($)}catch{return $}};colorManipulator.private_safeColorChannel=private_safeColorChannel;function recomposeColor($){const{type:_e,colorSpace:et}=$;let{values:tt}=$;return _e.indexOf("rgb")!==-1?tt=tt.map((nt,rt)=>rt<3?parseInt(nt,10):nt):_e.indexOf("hsl")!==-1&&(tt[1]=`${tt[1]}%`,tt[2]=`${tt[2]}%`),_e.indexOf("color")!==-1?tt=`${et} ${tt.join(" ")}`:tt=`${tt.join(", ")}`,`${_e}(${tt})`}function rgbToHex($){if($.indexOf("#")===0)return $;const{values:_e}=decomposeColor($);return`#${_e.map((et,tt)=>intToHex(tt===3?Math.round(255*et):et)).join("")}`}function hslToRgb($){$=decomposeColor($);const{values:_e}=$,et=_e[0],tt=_e[1]/100,nt=_e[2]/100,rt=tt*Math.min(nt,1-nt),ot=(at,lt=(at+et/30)%12)=>nt-rt*Math.max(Math.min(lt-3,9-lt,1),-1);let it="rgb";const st=[Math.round(ot(0)*255),Math.round(ot(8)*255),Math.round(ot(4)*255)];return $.type==="hsla"&&(it+="a",st.push(_e[3])),recomposeColor({type:it,values:st})}function getLuminance($){$=decomposeColor($);let _e=$.type==="hsl"||$.type==="hsla"?decomposeColor(hslToRgb($)).values:$.values;return _e=_e.map(et=>($.type!=="color"&&(et/=255),et<=.03928?et/12.92:((et+.055)/1.055)**2.4)),Number((.2126*_e[0]+.7152*_e[1]+.0722*_e[2]).toFixed(3))}function getContrastRatio($,_e){const et=getLuminance($),tt=getLuminance(_e);return(Math.max(et,tt)+.05)/(Math.min(et,tt)+.05)}function alpha($,_e){return $=decomposeColor($),_e=clampWrapper(_e),($.type==="rgb"||$.type==="hsl")&&($.type+="a"),$.type==="color"?$.values[3]=`/${_e}`:$.values[3]=_e,recomposeColor($)}function private_safeAlpha($,_e,et){try{return alpha($,_e)}catch{return $}}function darken($,_e){if($=decomposeColor($),_e=clampWrapper(_e),$.type.indexOf("hsl")!==-1)$.values[2]*=1-_e;else if($.type.indexOf("rgb")!==-1||$.type.indexOf("color")!==-1)for(let et=0;et<3;et+=1)$.values[et]*=1-_e;return recomposeColor($)}function private_safeDarken($,_e,et){try{return darken($,_e)}catch{return $}}function lighten($,_e){if($=decomposeColor($),_e=clampWrapper(_e),$.type.indexOf("hsl")!==-1)$.values[2]+=(100-$.values[2])*_e;else if($.type.indexOf("rgb")!==-1)for(let et=0;et<3;et+=1)$.values[et]+=(255-$.values[et])*_e;else if($.type.indexOf("color")!==-1)for(let et=0;et<3;et+=1)$.values[et]+=(1-$.values[et])*_e;return recomposeColor($)}function private_safeLighten($,_e,et){try{return lighten($,_e)}catch{return $}}function emphasize($,_e=.15){return getLuminance($)>.5?darken($,_e):lighten($,_e)}function private_safeEmphasize($,_e,et){try{return emphasize($,_e)}catch{return $}}function blend($,_e,et,tt=1){const nt=(st,at)=>Math.round((st**(1/tt)*(1-et)+at**(1/tt)*et)**tt),rt=decomposeColor($),ot=decomposeColor(_e),it=[nt(rt.values[0],ot.values[0]),nt(rt.values[1],ot.values[1]),nt(rt.values[2],ot.values[2])];return recomposeColor({type:"rgb",values:it})}const _excluded$V=["mode","contrastThreshold","tonalOffset"],light={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:common.white,default:common.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}},dark={text:{primary:common.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:common.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 addLightOrDark($,_e,et,tt){const nt=tt.light||tt,rt=tt.dark||tt*1.5;$[_e]||($.hasOwnProperty(et)?$[_e]=$[et]:_e==="light"?$.light=lighten_1($.main,nt):_e==="dark"&&($.dark=darken_1($.main,rt)))}function getDefaultPrimary($="light"){return $==="dark"?{main:blue[200],light:blue[50],dark:blue[400]}:{main:blue[700],light:blue[400],dark:blue[800]}}function getDefaultSecondary($="light"){return $==="dark"?{main:purple[200],light:purple[50],dark:purple[400]}:{main:purple[500],light:purple[300],dark:purple[700]}}function getDefaultError($="light"){return $==="dark"?{main:red[500],light:red[300],dark:red[700]}:{main:red[700],light:red[400],dark:red[800]}}function getDefaultInfo($="light"){return $==="dark"?{main:lightBlue[400],light:lightBlue[300],dark:lightBlue[700]}:{main:lightBlue[700],light:lightBlue[500],dark:lightBlue[900]}}function getDefaultSuccess($="light"){return $==="dark"?{main:green[400],light:green[300],dark:green[700]}:{main:green[800],light:green[500],dark:green[900]}}function getDefaultWarning($="light"){return $==="dark"?{main:orange[400],light:orange[300],dark:orange[700]}:{main:"#ed6c02",light:orange[500],dark:orange[900]}}function createPalette($){const{mode:_e="light",contrastThreshold:et=3,tonalOffset:tt=.2}=$,nt=_objectWithoutPropertiesLoose($,_excluded$V),rt=$.primary||getDefaultPrimary(_e),ot=$.secondary||getDefaultSecondary(_e),it=$.error||getDefaultError(_e),st=$.info||getDefaultInfo(_e),at=$.success||getDefaultSuccess(_e),lt=$.warning||getDefaultWarning(_e);function ht(dt){return getContrastRatio_1(dt,dark.text.primary)>=et?dark.text.primary:light.text.primary}const pt=({color:dt,name:mt,mainShade:ct=500,lightShade:ut=300,darkShade:vt=700})=>{if(dt=_extends$1({},dt),!dt.main&&dt[ct]&&(dt.main=dt[ct]),!dt.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage$1(11,mt?` (${mt})`:"",ct));if(typeof dt.main!="string")throw new Error(formatMuiErrorMessage$1(12,mt?` (${mt})`:"",JSON.stringify(dt.main)));return addLightOrDark(dt,"light",ut,tt),addLightOrDark(dt,"dark",vt,tt),dt.contrastText||(dt.contrastText=ht(dt.main)),dt},gt={dark,light};return deepmerge$1(_extends$1({common:_extends$1({},common),mode:_e,primary:pt({color:rt,name:"primary"}),secondary:pt({color:ot,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:pt({color:it,name:"error"}),warning:pt({color:lt,name:"warning"}),info:pt({color:st,name:"info"}),success:pt({color:at,name:"success"}),grey,contrastThreshold:et,getContrastText:ht,augmentColor:pt,tonalOffset:tt},gt[_e]),nt)}const _excluded$U=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function round($){return Math.round($*1e5)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography($,_e){const et=typeof _e=="function"?_e($):_e,{fontFamily:tt=defaultFontFamily,fontSize:nt=14,fontWeightLight:rt=300,fontWeightRegular:ot=400,fontWeightMedium:it=500,fontWeightBold:st=700,htmlFontSize:at=16,allVariants:lt,pxToRem:ht}=et,pt=_objectWithoutPropertiesLoose(et,_excluded$U),gt=nt/14,ft=ht||(ct=>`${ct/at*gt}rem`),dt=(ct,ut,vt,bt,yt)=>_extends$1({fontFamily:tt,fontWeight:ct,fontSize:ft(ut),lineHeight:vt},tt===defaultFontFamily?{letterSpacing:`${round(bt/ut)}em`}:{},yt,lt),mt={h1:dt(rt,96,1.167,-1.5),h2:dt(rt,60,1.2,-.5),h3:dt(ot,48,1.167,0),h4:dt(ot,34,1.235,.25),h5:dt(ot,24,1.334,0),h6:dt(it,20,1.6,.15),subtitle1:dt(ot,16,1.75,.15),subtitle2:dt(it,14,1.57,.1),body1:dt(ot,16,1.5,.15),body2:dt(ot,14,1.43,.15),button:dt(it,14,1.75,.4,caseAllCaps),caption:dt(ot,12,1.66,.4),overline:dt(ot,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return deepmerge$1(_extends$1({htmlFontSize:at,pxToRem:ft,fontFamily:tt,fontSize:nt,fontWeightLight:rt,fontWeightRegular:ot,fontWeightMedium:it,fontWeightBold:st},mt),pt,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...$){return[`${$[0]}px ${$[1]}px ${$[2]}px ${$[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${$[4]}px ${$[5]}px ${$[6]}px ${$[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${$[8]}px ${$[9]}px ${$[10]}px ${$[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],_excluded$T=["duration","easing","delay"],easing={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)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs($){return`${Math.round($)}ms`}function getAutoHeightDuration($){if(!$)return 0;const _e=$/36;return Math.round((4+15*_e**.25+_e/5)*10)}function createTransitions($){const _e=_extends$1({},easing,$.easing),et=_extends$1({},duration,$.duration);return _extends$1({getAutoHeightDuration,create:(nt=["all"],rt={})=>{const{duration:ot=et.standard,easing:it=_e.easeInOut,delay:st=0}=rt;return _objectWithoutPropertiesLoose(rt,_excluded$T),(Array.isArray(nt)?nt:[nt]).map(at=>`${at} ${typeof ot=="string"?ot:formatMs(ot)} ${it} ${typeof st=="string"?st:formatMs(st)}`).join(",")}},$,{easing:_e,duration:et})}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},_excluded$S=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme($={},..._e){const{mixins:et={},palette:tt={},transitions:nt={},typography:rt={}}=$,ot=_objectWithoutPropertiesLoose($,_excluded$S);if($.vars)throw new Error(formatMuiErrorMessage$1(18));const it=createPalette(tt),st=createTheme$2($);let at=deepmerge$1(st,{mixins:createMixins(st.breakpoints,et),palette:it,shadows:shadows.slice(),typography:createTypography(it,rt),transitions:createTransitions(nt),zIndex:_extends$1({},zIndex)});return at=deepmerge$1(at,ot),at=_e.reduce((lt,ht)=>deepmerge$1(lt,ht),at),at.unstable_sxConfig=_extends$1({},defaultSxConfig,ot==null?void 0:ot.unstable_sxConfig),at.unstable_sx=function(ht){return styleFunctionSx$1({sx:ht,theme:this})},at}const defaultTheme$1=createTheme();function useTheme(){const $=useTheme$1(defaultTheme$1);return $[THEME_ID]||$}var createStyled$1={},objectWithoutPropertiesLoose={exports:{}},hasRequiredObjectWithoutPropertiesLoose;function requireObjectWithoutPropertiesLoose(){return hasRequiredObjectWithoutPropertiesLoose||(hasRequiredObjectWithoutPropertiesLoose=1,function($){function _e(et,tt){if(et==null)return{};var nt={};for(var rt in et)if({}.hasOwnProperty.call(et,rt)){if(tt.includes(rt))continue;nt[rt]=et[rt]}return nt}$.exports=_e,$.exports.__esModule=!0,$.exports.default=$.exports}(objectWithoutPropertiesLoose)),objectWithoutPropertiesLoose.exports}const require$$1=getAugmentedNamespace(styledEngine),require$$4=getAugmentedNamespace(deepmerge),require$$5$1=getAugmentedNamespace(capitalize),require$$6=getAugmentedNamespace(getDisplayName),require$$7=getAugmentedNamespace(createTheme$1),require$$8=getAugmentedNamespace(styleFunctionSx);var _interopRequireDefault$g=interopRequireDefaultExports;Object.defineProperty(createStyled$1,"__esModule",{value:!0});var _default=createStyled$1.default=createStyled;createStyled$1.shouldForwardProp=shouldForwardProp;createStyled$1.systemDefaultTheme=void 0;var _extends2=_interopRequireDefault$g(require_extends()),_objectWithoutPropertiesLoose2=_interopRequireDefault$g(requireObjectWithoutPropertiesLoose()),_styledEngine=_interopRequireWildcard(require$$1),_deepmerge=require$$4;_interopRequireDefault$g(require$$5$1);_interopRequireDefault$g(require$$6);var _createTheme=_interopRequireDefault$g(require$$7),_styleFunctionSx=_interopRequireDefault$g(require$$8);const _excluded$R=["ownerState"],_excluded2$4=["variants"],_excluded3$2=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _getRequireWildcardCache($){if(typeof WeakMap!="function")return null;var _e=new WeakMap,et=new WeakMap;return(_getRequireWildcardCache=function(tt){return tt?et:_e})($)}function _interopRequireWildcard($,_e){if($&&$.__esModule)return $;if($===null||typeof $!="object"&&typeof $!="function")return{default:$};var et=_getRequireWildcardCache(_e);if(et&&et.has($))return et.get($);var tt={__proto__:null},nt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var rt in $)if(rt!=="default"&&Object.prototype.hasOwnProperty.call($,rt)){var ot=nt?Object.getOwnPropertyDescriptor($,rt):null;ot&&(ot.get||ot.set)?Object.defineProperty(tt,rt,ot):tt[rt]=$[rt]}return tt.default=$,et&&et.set($,tt),tt}function isEmpty$2($){return Object.keys($).length===0}function isStringTag($){return typeof $=="string"&&$.charCodeAt(0)>96}function shouldForwardProp($){return $!=="ownerState"&&$!=="theme"&&$!=="sx"&&$!=="as"}const systemDefaultTheme=createStyled$1.systemDefaultTheme=(0,_createTheme.default)(),lowercaseFirstLetter=$=>$&&$.charAt(0).toLowerCase()+$.slice(1);function resolveTheme({defaultTheme:$,theme:_e,themeId:et}){return isEmpty$2(_e)?$:_e[et]||_e}function defaultOverridesResolver($){return $?(_e,et)=>et[$]:null}function processStyleArg($,_e){let{ownerState:et}=_e,tt=(0,_objectWithoutPropertiesLoose2.default)(_e,_excluded$R);const nt=typeof $=="function"?$((0,_extends2.default)({ownerState:et},tt)):$;if(Array.isArray(nt))return nt.flatMap(rt=>processStyleArg(rt,(0,_extends2.default)({ownerState:et},tt)));if(nt&&typeof nt=="object"&&Array.isArray(nt.variants)){const{variants:rt=[]}=nt;let it=(0,_objectWithoutPropertiesLoose2.default)(nt,_excluded2$4);return rt.forEach(st=>{let at=!0;typeof st.props=="function"?at=st.props((0,_extends2.default)({ownerState:et},tt,et)):Object.keys(st.props).forEach(lt=>{(et==null?void 0:et[lt])!==st.props[lt]&&tt[lt]!==st.props[lt]&&(at=!1)}),at&&(Array.isArray(it)||(it=[it]),it.push(typeof st.style=="function"?st.style((0,_extends2.default)({ownerState:et},tt,et)):st.style))}),it}return nt}function createStyled($={}){const{themeId:_e,defaultTheme:et=systemDefaultTheme,rootShouldForwardProp:tt=shouldForwardProp,slotShouldForwardProp:nt=shouldForwardProp}=$,rt=ot=>(0,_styleFunctionSx.default)((0,_extends2.default)({},ot,{theme:resolveTheme((0,_extends2.default)({},ot,{defaultTheme:et,themeId:_e}))}));return rt.__mui_systemSx=!0,(ot,it={})=>{(0,_styledEngine.internal_processStyles)(ot,yt=>yt.filter(Et=>!(Et!=null&&Et.__mui_systemSx)));const{name:st,slot:at,skipVariantsResolver:lt,skipSx:ht,overridesResolver:pt=defaultOverridesResolver(lowercaseFirstLetter(at))}=it,gt=(0,_objectWithoutPropertiesLoose2.default)(it,_excluded3$2),ft=lt!==void 0?lt:at&&at!=="Root"&&at!=="root"||!1,dt=ht||!1;let mt,ct=shouldForwardProp;at==="Root"||at==="root"?ct=tt:at?ct=nt:isStringTag(ot)&&(ct=void 0);const ut=(0,_styledEngine.default)(ot,(0,_extends2.default)({shouldForwardProp:ct,label:mt},gt)),vt=yt=>typeof yt=="function"&&yt.__emotion_real!==yt||(0,_deepmerge.isPlainObject)(yt)?Et=>processStyleArg(yt,(0,_extends2.default)({},Et,{theme:resolveTheme({theme:Et.theme,defaultTheme:et,themeId:_e})})):yt,bt=(yt,...Et)=>{let xt=vt(yt);const St=Et?Et.map(vt):[];st&&pt&&St.push($t=>{const Tt=resolveTheme((0,_extends2.default)({},$t,{defaultTheme:et,themeId:_e}));if(!Tt.components||!Tt.components[st]||!Tt.components[st].styleOverrides)return null;const jt=Tt.components[st].styleOverrides,Gt={};return Object.entries(jt).forEach(([Bt,Kt])=>{Gt[Bt]=processStyleArg(Kt,(0,_extends2.default)({},$t,{theme:Tt}))}),pt($t,Gt)}),st&&!ft&&St.push($t=>{var Tt;const jt=resolveTheme((0,_extends2.default)({},$t,{defaultTheme:et,themeId:_e})),Gt=jt==null||(Tt=jt.components)==null||(Tt=Tt[st])==null?void 0:Tt.variants;return processStyleArg({variants:Gt},(0,_extends2.default)({},$t,{theme:jt}))}),dt||St.push(rt);const kt=St.length-Et.length;if(Array.isArray(yt)&&kt>0){const $t=new Array(kt).fill("");xt=[...yt,...$t],xt.raw=[...yt.raw,...$t]}const At=ut(xt,...St);return ot.muiName&&(At.muiName=ot.muiName),At};return ut.withConfig&&(bt.withConfig=ut.withConfig),bt}}function slotShouldForwardProp($){return $!=="ownerState"&&$!=="theme"&&$!=="sx"&&$!=="as"}const rootShouldForwardProp=$=>slotShouldForwardProp($)&&$!=="classes",styled=_default({themeId:THEME_ID,defaultTheme:defaultTheme$1,rootShouldForwardProp}),getOverlayAlpha=$=>{let _e;return $<1?_e=5.11916*$**2:_e=4.5*Math.log($+1)+2,(_e/100).toFixed(2)};function useDefaultProps($){return useDefaultProps$1($)}function getSvgIconUtilityClass($){return generateUtilityClass("MuiSvgIcon",$)}generateUtilityClasses("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _excluded$Q=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],useUtilityClasses$I=$=>{const{color:_e,fontSize:et,classes:tt}=$,nt={root:["root",_e!=="inherit"&&`color${capitalize$1(_e)}`,`fontSize${capitalize$1(et)}`]};return composeClasses(nt,getSvgIconUtilityClass,tt)},SvgIconRoot=styled("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,et.color!=="inherit"&&_e[`color${capitalize$1(et.color)}`],_e[`fontSize${capitalize$1(et.fontSize)}`]]}})(({theme:$,ownerState:_e})=>{var et,tt,nt,rt,ot,it,st,at,lt,ht,pt,gt,ft;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:_e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(et=$.transitions)==null||(tt=et.create)==null?void 0:tt.call(et,"fill",{duration:(nt=$.transitions)==null||(nt=nt.duration)==null?void 0:nt.shorter}),fontSize:{inherit:"inherit",small:((rt=$.typography)==null||(ot=rt.pxToRem)==null?void 0:ot.call(rt,20))||"1.25rem",medium:((it=$.typography)==null||(st=it.pxToRem)==null?void 0:st.call(it,24))||"1.5rem",large:((at=$.typography)==null||(lt=at.pxToRem)==null?void 0:lt.call(at,35))||"2.1875rem"}[_e.fontSize],color:(ht=(pt=($.vars||$).palette)==null||(pt=pt[_e.color])==null?void 0:pt.main)!=null?ht:{action:(gt=($.vars||$).palette)==null||(gt=gt.action)==null?void 0:gt.active,disabled:(ft=($.vars||$).palette)==null||(ft=ft.action)==null?void 0:ft.disabled,inherit:void 0}[_e.color]}}),SvgIcon=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiSvgIcon"}),{children:nt,className:rt,color:ot="inherit",component:it="svg",fontSize:st="medium",htmlColor:at,inheritViewBox:lt=!1,titleAccess:ht,viewBox:pt="0 0 24 24"}=tt,gt=_objectWithoutPropertiesLoose(tt,_excluded$Q),ft=reactExports.isValidElement(nt)&&nt.type==="svg",dt=_extends$1({},tt,{color:ot,component:it,fontSize:st,instanceFontSize:_e.fontSize,inheritViewBox:lt,viewBox:pt,hasSvgAsChild:ft}),mt={};lt||(mt.viewBox=pt);const ct=useUtilityClasses$I(dt);return jsxRuntimeExports.jsxs(SvgIconRoot,_extends$1({as:it,className:clsx(ct.root,rt),focusable:"false",color:at,"aria-hidden":ht?void 0:!0,role:ht?"img":void 0,ref:et},mt,gt,ft&&nt.props,{ownerState:dt,children:[ft?nt.props.children:nt,ht?jsxRuntimeExports.jsx("title",{children:ht}):null]}))});SvgIcon.muiName="SvgIcon";function createSvgIcon$1($,_e){function et(tt,nt){return jsxRuntimeExports.jsx(SvgIcon,_extends$1({"data-testid":`${_e}Icon`,ref:nt},tt,{children:$}))}return et.muiName=SvgIcon.muiName,reactExports.memo(reactExports.forwardRef(et))}const unstable_ClassNameGenerator={configure:$=>{ClassNameGenerator.configure($)}},utils$2=Object.freeze(Object.defineProperty({__proto__:null,capitalize:capitalize$1,createChainedFunction,createSvgIcon:createSvgIcon$1,debounce,deprecatedPropType,isMuiElement,ownerDocument,ownerWindow,requirePropFactory,setRef,unstable_ClassNameGenerator,unstable_useEnhancedEffect:useEnhancedEffect,unstable_useId:useId,unsupportedProp,useControlled,useEventCallback,useForkRef,useIsFocusVisible},Symbol.toStringTag,{value:"Module"}));function _setPrototypeOf($,_e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(et,tt){return et.__proto__=tt,et},_setPrototypeOf($,_e)}function _inheritsLoose($,_e){$.prototype=Object.create(_e.prototype),$.prototype.constructor=$,_setPrototypeOf($,_e)}const config={disabled:!1},TransitionGroupContext=React.createContext(null);var forceReflow=function(_e){return _e.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function($){_inheritsLoose(_e,$);function _e(tt,nt){var rt;rt=$.call(this,tt,nt)||this;var ot=nt,it=ot&&!ot.isMounting?tt.enter:tt.appear,st;return rt.appearStatus=null,tt.in?it?(st=EXITED,rt.appearStatus=ENTERING):st=ENTERED:tt.unmountOnExit||tt.mountOnEnter?st=UNMOUNTED:st=EXITED,rt.state={status:st},rt.nextCallback=null,rt}_e.getDerivedStateFromProps=function(nt,rt){var ot=nt.in;return ot&&rt.status===UNMOUNTED?{status:EXITED}:null};var et=_e.prototype;return et.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},et.componentDidUpdate=function(nt){var rt=null;if(nt!==this.props){var ot=this.state.status;this.props.in?ot!==ENTERING&&ot!==ENTERED&&(rt=ENTERING):(ot===ENTERING||ot===ENTERED)&&(rt=EXITING)}this.updateStatus(!1,rt)},et.componentWillUnmount=function(){this.cancelNextCallback()},et.getTimeouts=function(){var nt=this.props.timeout,rt,ot,it;return rt=ot=it=nt,nt!=null&&typeof nt!="number"&&(rt=nt.exit,ot=nt.enter,it=nt.appear!==void 0?nt.appear:ot),{exit:rt,enter:ot,appear:it}},et.updateStatus=function(nt,rt){if(nt===void 0&&(nt=!1),rt!==null)if(this.cancelNextCallback(),rt===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var ot=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);ot&&forceReflow(ot)}this.performEnter(nt)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},et.performEnter=function(nt){var rt=this,ot=this.props.enter,it=this.context?this.context.isMounting:nt,st=this.props.nodeRef?[it]:[ReactDOM.findDOMNode(this),it],at=st[0],lt=st[1],ht=this.getTimeouts(),pt=it?ht.appear:ht.enter;if(!nt&&!ot||config.disabled){this.safeSetState({status:ENTERED},function(){rt.props.onEntered(at)});return}this.props.onEnter(at,lt),this.safeSetState({status:ENTERING},function(){rt.props.onEntering(at,lt),rt.onTransitionEnd(pt,function(){rt.safeSetState({status:ENTERED},function(){rt.props.onEntered(at,lt)})})})},et.performExit=function(){var nt=this,rt=this.props.exit,ot=this.getTimeouts(),it=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!rt||config.disabled){this.safeSetState({status:EXITED},function(){nt.props.onExited(it)});return}this.props.onExit(it),this.safeSetState({status:EXITING},function(){nt.props.onExiting(it),nt.onTransitionEnd(ot.exit,function(){nt.safeSetState({status:EXITED},function(){nt.props.onExited(it)})})})},et.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},et.safeSetState=function(nt,rt){rt=this.setNextCallback(rt),this.setState(nt,rt)},et.setNextCallback=function(nt){var rt=this,ot=!0;return this.nextCallback=function(it){ot&&(ot=!1,rt.nextCallback=null,nt(it))},this.nextCallback.cancel=function(){ot=!1},this.nextCallback},et.onTransitionEnd=function(nt,rt){this.setNextCallback(rt);var ot=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),it=nt==null&&!this.props.addEndListener;if(!ot||it){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var st=this.props.nodeRef?[this.nextCallback]:[ot,this.nextCallback],at=st[0],lt=st[1];this.props.addEndListener(at,lt)}nt!=null&&setTimeout(this.nextCallback,nt)},et.render=function(){var nt=this.state.status;if(nt===UNMOUNTED)return null;var rt=this.props,ot=rt.children;rt.in,rt.mountOnEnter,rt.unmountOnExit,rt.appear,rt.enter,rt.exit,rt.timeout,rt.addEndListener,rt.onEnter,rt.onEntering,rt.onEntered,rt.onExit,rt.onExiting,rt.onExited,rt.nodeRef;var it=_objectWithoutPropertiesLoose(rt,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React.createElement(TransitionGroupContext.Provider,{value:null},typeof ot=="function"?ot(nt,it):React.cloneElement(React.Children.only(ot),it))},_e}(React.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop$1(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$1,onEntering:noop$1,onEntered:noop$1,onExit:noop$1,onExiting:noop$1,onExited:noop$1};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;function _assertThisInitialized($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function getChildMapping($,_e){var et=function(rt){return _e&&reactExports.isValidElement(rt)?_e(rt):rt},tt=Object.create(null);return $&&reactExports.Children.map($,function(nt){return nt}).forEach(function(nt){tt[nt.key]=et(nt)}),tt}function mergeChildMappings($,_e){$=$||{},_e=_e||{};function et(lt){return lt in _e?_e[lt]:$[lt]}var tt=Object.create(null),nt=[];for(var rt in $)rt in _e?nt.length&&(tt[rt]=nt,nt=[]):nt.push(rt);var ot,it={};for(var st in _e){if(tt[st])for(ot=0;ot$.scrollTop;function getTransitionProps($,_e){var et,tt;const{timeout:nt,easing:rt,style:ot={}}=$;return{duration:(et=ot.transitionDuration)!=null?et:typeof nt=="number"?nt:nt[_e.mode]||0,easing:(tt=ot.transitionTimingFunction)!=null?tt:typeof rt=="object"?rt[_e.mode]:rt,delay:ot.transitionDelay}}function getCollapseUtilityClass($){return generateUtilityClass("MuiCollapse",$)}generateUtilityClasses("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const _excluded$P=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],useUtilityClasses$H=$=>{const{orientation:_e,classes:et}=$,tt={root:["root",`${_e}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${_e}`],wrapperInner:["wrapperInner",`${_e}`]};return composeClasses(tt,getCollapseUtilityClass,et)},CollapseRoot=styled("div",{name:"MuiCollapse",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,_e[et.orientation],et.state==="entered"&&_e.entered,et.state==="exited"&&!et.in&&et.collapsedSize==="0px"&&_e.hidden]}})(({theme:$,ownerState:_e})=>_extends$1({height:0,overflow:"hidden",transition:$.transitions.create("height")},_e.orientation==="horizontal"&&{height:"auto",width:0,transition:$.transitions.create("width")},_e.state==="entered"&&_extends$1({height:"auto",overflow:"visible"},_e.orientation==="horizontal"&&{width:"auto"}),_e.state==="exited"&&!_e.in&&_e.collapsedSize==="0px"&&{visibility:"hidden"})),CollapseWrapper=styled("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:($,_e)=>_e.wrapper})(({ownerState:$})=>_extends$1({display:"flex",width:"100%"},$.orientation==="horizontal"&&{width:"auto",height:"100%"})),CollapseWrapperInner=styled("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:($,_e)=>_e.wrapperInner})(({ownerState:$})=>_extends$1({width:"100%"},$.orientation==="horizontal"&&{width:"auto",height:"100%"})),Collapse=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiCollapse"}),{addEndListener:nt,children:rt,className:ot,collapsedSize:it="0px",component:st,easing:at,in:lt,onEnter:ht,onEntered:pt,onEntering:gt,onExit:ft,onExited:dt,onExiting:mt,orientation:ct="vertical",style:ut,timeout:vt=duration.standard,TransitionComponent:bt=Transition}=tt,yt=_objectWithoutPropertiesLoose(tt,_excluded$P),Et=_extends$1({},tt,{orientation:ct,collapsedSize:it}),xt=useUtilityClasses$H(Et),St=useTheme(),kt=useTimeout(),At=reactExports.useRef(null),$t=reactExports.useRef(),Tt=typeof it=="number"?`${it}px`:it,jt=ct==="horizontal",Gt=jt?"width":"height",Bt=reactExports.useRef(null),Kt=useForkRef(et,Bt),Vt=Ot=>zt=>{if(Ot){const Ht=Bt.current;zt===void 0?Ot(Ht):Ot(Ht,zt)}},Wt=()=>At.current?At.current[jt?"clientWidth":"clientHeight"]:0,It=Vt((Ot,zt)=>{At.current&&jt&&(At.current.style.position="absolute"),Ot.style[Gt]=Tt,ht&&ht(Ot,zt)}),Ft=Vt((Ot,zt)=>{const Ht=Wt();At.current&&jt&&(At.current.style.position="");const{duration:Jt,easing:pn}=getTransitionProps({style:ut,timeout:vt,easing:at},{mode:"enter"});if(vt==="auto"){const gn=St.transitions.getAutoHeightDuration(Ht);Ot.style.transitionDuration=`${gn}ms`,$t.current=gn}else Ot.style.transitionDuration=typeof Jt=="string"?Jt:`${Jt}ms`;Ot.style[Gt]=`${Ht}px`,Ot.style.transitionTimingFunction=pn,gt&>(Ot,zt)}),Yt=Vt((Ot,zt)=>{Ot.style[Gt]="auto",pt&&pt(Ot,zt)}),Dt=Vt(Ot=>{Ot.style[Gt]=`${Wt()}px`,ft&&ft(Ot)}),Rt=Vt(dt),wt=Vt(Ot=>{const zt=Wt(),{duration:Ht,easing:Jt}=getTransitionProps({style:ut,timeout:vt,easing:at},{mode:"exit"});if(vt==="auto"){const pn=St.transitions.getAutoHeightDuration(zt);Ot.style.transitionDuration=`${pn}ms`,$t.current=pn}else Ot.style.transitionDuration=typeof Ht=="string"?Ht:`${Ht}ms`;Ot.style[Gt]=Tt,Ot.style.transitionTimingFunction=Jt,mt&&mt(Ot)}),Mt=Ot=>{vt==="auto"&&kt.start($t.current||0,Ot),nt&&nt(Bt.current,Ot)};return jsxRuntimeExports.jsx(bt,_extends$1({in:lt,onEnter:It,onEntered:Yt,onEntering:Ft,onExit:Dt,onExited:Rt,onExiting:wt,addEndListener:Mt,nodeRef:Bt,timeout:vt==="auto"?null:vt},yt,{children:(Ot,zt)=>jsxRuntimeExports.jsx(CollapseRoot,_extends$1({as:st,className:clsx(xt.root,ot,{entered:xt.entered,exited:!lt&&Tt==="0px"&&xt.hidden}[Ot]),style:_extends$1({[jt?"minWidth":"minHeight"]:Tt},ut),ref:Kt},zt,{ownerState:_extends$1({},Et,{state:Ot}),children:jsxRuntimeExports.jsx(CollapseWrapper,{ownerState:_extends$1({},Et,{state:Ot}),className:xt.wrapper,ref:At,children:jsxRuntimeExports.jsx(CollapseWrapperInner,{ownerState:_extends$1({},Et,{state:Ot}),className:xt.wrapperInner,children:rt})})}))}))});Collapse.muiSupportAuto=!0;function getPaperUtilityClass($){return generateUtilityClass("MuiPaper",$)}generateUtilityClasses("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 _excluded$O=["className","component","elevation","square","variant"],useUtilityClasses$G=$=>{const{square:_e,elevation:et,variant:tt,classes:nt}=$,rt={root:["root",tt,!_e&&"rounded",tt==="elevation"&&`elevation${et}`]};return composeClasses(rt,getPaperUtilityClass,nt)},PaperRoot=styled("div",{name:"MuiPaper",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,_e[et.variant],!et.square&&_e.rounded,et.variant==="elevation"&&_e[`elevation${et.elevation}`]]}})(({theme:$,ownerState:_e})=>{var et;return _extends$1({backgroundColor:($.vars||$).palette.background.paper,color:($.vars||$).palette.text.primary,transition:$.transitions.create("box-shadow")},!_e.square&&{borderRadius:$.shape.borderRadius},_e.variant==="outlined"&&{border:`1px solid ${($.vars||$).palette.divider}`},_e.variant==="elevation"&&_extends$1({boxShadow:($.vars||$).shadows[_e.elevation]},!$.vars&&$.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${alpha_1("#fff",getOverlayAlpha(_e.elevation))}, ${alpha_1("#fff",getOverlayAlpha(_e.elevation))})`},$.vars&&{backgroundImage:(et=$.vars.overlays)==null?void 0:et[_e.elevation]}))}),Paper=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiPaper"}),{className:nt,component:rt="div",elevation:ot=1,square:it=!1,variant:st="elevation"}=tt,at=_objectWithoutPropertiesLoose(tt,_excluded$O),lt=_extends$1({},tt,{component:rt,elevation:ot,square:it,variant:st}),ht=useUtilityClasses$G(lt);return jsxRuntimeExports.jsx(PaperRoot,_extends$1({as:rt,ownerState:lt,className:clsx(ht.root,nt),ref:et},at))}),_excluded$N=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],_excluded2$3=["component","slots","slotProps"],_excluded3$1=["component"];function useSlot($,_e){const{className:et,elementType:tt,ownerState:nt,externalForwardedProps:rt,getSlotOwnerState:ot,internalForwardedProps:it}=_e,st=_objectWithoutPropertiesLoose(_e,_excluded$N),{component:at,slots:lt={[$]:void 0},slotProps:ht={[$]:void 0}}=rt;_objectWithoutPropertiesLoose(rt,_excluded2$3);const pt=lt[$]||tt,gt=resolveComponentProps(ht[$],nt),ft=mergeSlotProps(_extends$1({className:et},st,{externalForwardedProps:void 0,externalSlotProps:gt})),{props:{component:dt},internalRef:mt}=ft,ct=_objectWithoutPropertiesLoose(ft.props,_excluded3$1),ut=useForkRef(mt,gt==null?void 0:gt.ref,_e.ref),vt=ot?ot(ct):{},bt=_extends$1({},nt,vt),yt=dt,Et=appendOwnerState(pt,_extends$1({},$==="root",!lt[$]&&it,ct,yt&&{as:yt},{ref:ut}),bt);return Object.keys(vt).forEach(xt=>{delete Et[xt]}),[pt,Et]}function Ripple($){const{className:_e,classes:et,pulsate:tt=!1,rippleX:nt,rippleY:rt,rippleSize:ot,in:it,onExited:st,timeout:at}=$,[lt,ht]=reactExports.useState(!1),pt=clsx(_e,et.ripple,et.rippleVisible,tt&&et.ripplePulsate),gt={width:ot,height:ot,top:-(ot/2)+rt,left:-(ot/2)+nt},ft=clsx(et.child,lt&&et.childLeaving,tt&&et.childPulsate);return!it&&!lt&&ht(!0),reactExports.useEffect(()=>{if(!it&&st!=null){const dt=setTimeout(st,at);return()=>{clearTimeout(dt)}}},[st,it,at]),jsxRuntimeExports.jsx("span",{className:pt,style:gt,children:jsxRuntimeExports.jsx("span",{className:ft})})}const touchRippleClasses=generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_excluded$M=["center","classes","className"];let _$2=$=>$,_t$1,_t2$1,_t3$1,_t4$1;const DURATION=550,DELAY_RIPPLE=80,enterKeyframe=keyframes(_t$1||(_t$1=_$2` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),exitKeyframe=keyframes(_t2$1||(_t2$1=_$2` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),pulsateKeyframe=keyframes(_t3$1||(_t3$1=_$2` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),TouchRippleRoot=styled("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),TouchRippleRipple=styled(Ripple,{name:"MuiTouchRipple",slot:"Ripple"})(_t4$1||(_t4$1=_$2` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),touchRippleClasses.rippleVisible,enterKeyframe,DURATION,({theme:$})=>$.transitions.easing.easeInOut,touchRippleClasses.ripplePulsate,({theme:$})=>$.transitions.duration.shorter,touchRippleClasses.child,touchRippleClasses.childLeaving,exitKeyframe,DURATION,({theme:$})=>$.transitions.easing.easeInOut,touchRippleClasses.childPulsate,pulsateKeyframe,({theme:$})=>$.transitions.easing.easeInOut),TouchRipple=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiTouchRipple"}),{center:nt=!1,classes:rt={},className:ot}=tt,it=_objectWithoutPropertiesLoose(tt,_excluded$M),[st,at]=reactExports.useState([]),lt=reactExports.useRef(0),ht=reactExports.useRef(null);reactExports.useEffect(()=>{ht.current&&(ht.current(),ht.current=null)},[st]);const pt=reactExports.useRef(!1),gt=useTimeout(),ft=reactExports.useRef(null),dt=reactExports.useRef(null),mt=reactExports.useCallback(bt=>{const{pulsate:yt,rippleX:Et,rippleY:xt,rippleSize:St,cb:kt}=bt;at(At=>[...At,jsxRuntimeExports.jsx(TouchRippleRipple,{classes:{ripple:clsx(rt.ripple,touchRippleClasses.ripple),rippleVisible:clsx(rt.rippleVisible,touchRippleClasses.rippleVisible),ripplePulsate:clsx(rt.ripplePulsate,touchRippleClasses.ripplePulsate),child:clsx(rt.child,touchRippleClasses.child),childLeaving:clsx(rt.childLeaving,touchRippleClasses.childLeaving),childPulsate:clsx(rt.childPulsate,touchRippleClasses.childPulsate)},timeout:DURATION,pulsate:yt,rippleX:Et,rippleY:xt,rippleSize:St},lt.current)]),lt.current+=1,ht.current=kt},[rt]),ct=reactExports.useCallback((bt={},yt={},Et=()=>{})=>{const{pulsate:xt=!1,center:St=nt||yt.pulsate,fakeElement:kt=!1}=yt;if((bt==null?void 0:bt.type)==="mousedown"&&pt.current){pt.current=!1;return}(bt==null?void 0:bt.type)==="touchstart"&&(pt.current=!0);const At=kt?null:dt.current,$t=At?At.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Tt,jt,Gt;if(St||bt===void 0||bt.clientX===0&&bt.clientY===0||!bt.clientX&&!bt.touches)Tt=Math.round($t.width/2),jt=Math.round($t.height/2);else{const{clientX:Bt,clientY:Kt}=bt.touches&&bt.touches.length>0?bt.touches[0]:bt;Tt=Math.round(Bt-$t.left),jt=Math.round(Kt-$t.top)}if(St)Gt=Math.sqrt((2*$t.width**2+$t.height**2)/3),Gt%2===0&&(Gt+=1);else{const Bt=Math.max(Math.abs((At?At.clientWidth:0)-Tt),Tt)*2+2,Kt=Math.max(Math.abs((At?At.clientHeight:0)-jt),jt)*2+2;Gt=Math.sqrt(Bt**2+Kt**2)}bt!=null&&bt.touches?ft.current===null&&(ft.current=()=>{mt({pulsate:xt,rippleX:Tt,rippleY:jt,rippleSize:Gt,cb:Et})},gt.start(DELAY_RIPPLE,()=>{ft.current&&(ft.current(),ft.current=null)})):mt({pulsate:xt,rippleX:Tt,rippleY:jt,rippleSize:Gt,cb:Et})},[nt,mt,gt]),ut=reactExports.useCallback(()=>{ct({},{pulsate:!0})},[ct]),vt=reactExports.useCallback((bt,yt)=>{if(gt.clear(),(bt==null?void 0:bt.type)==="touchend"&&ft.current){ft.current(),ft.current=null,gt.start(0,()=>{vt(bt,yt)});return}ft.current=null,at(Et=>Et.length>0?Et.slice(1):Et),ht.current=yt},[gt]);return reactExports.useImperativeHandle(et,()=>({pulsate:ut,start:ct,stop:vt}),[ut,ct,vt]),jsxRuntimeExports.jsx(TouchRippleRoot,_extends$1({className:clsx(touchRippleClasses.root,rt.root,ot),ref:dt},it,{children:jsxRuntimeExports.jsx(TransitionGroup,{component:null,exit:!0,children:st})}))});function getButtonBaseUtilityClass($){return generateUtilityClass("MuiButtonBase",$)}const buttonBaseClasses=generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),_excluded$L=["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"],useUtilityClasses$F=$=>{const{disabled:_e,focusVisible:et,focusVisibleClassName:tt,classes:nt}=$,ot=composeClasses({root:["root",_e&&"disabled",et&&"focusVisible"]},getButtonBaseUtilityClass,nt);return et&&tt&&(ot.root+=` ${tt}`),ot},ButtonBaseRoot=styled("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:($,_e)=>_e.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"},[`&.${buttonBaseClasses.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ButtonBase=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiButtonBase"}),{action:nt,centerRipple:rt=!1,children:ot,className:it,component:st="button",disabled:at=!1,disableRipple:lt=!1,disableTouchRipple:ht=!1,focusRipple:pt=!1,LinkComponent:gt="a",onBlur:ft,onClick:dt,onContextMenu:mt,onDragLeave:ct,onFocus:ut,onFocusVisible:vt,onKeyDown:bt,onKeyUp:yt,onMouseDown:Et,onMouseLeave:xt,onMouseUp:St,onTouchEnd:kt,onTouchMove:At,onTouchStart:$t,tabIndex:Tt=0,TouchRippleProps:jt,touchRippleRef:Gt,type:Bt}=tt,Kt=_objectWithoutPropertiesLoose(tt,_excluded$L),Vt=reactExports.useRef(null),Wt=reactExports.useRef(null),It=useForkRef(Wt,Gt),{isFocusVisibleRef:Ft,onFocus:Yt,onBlur:Dt,ref:Rt}=useIsFocusVisible(),[wt,Mt]=reactExports.useState(!1);at&&wt&&Mt(!1),reactExports.useImperativeHandle(nt,()=>({focusVisible:()=>{Mt(!0),Vt.current.focus()}}),[]);const[Ot,zt]=reactExports.useState(!1);reactExports.useEffect(()=>{zt(!0)},[]);const Ht=Ot&&!lt&&!at;reactExports.useEffect(()=>{wt&&pt&&!lt&&Ot&&Wt.current.pulsate()},[lt,pt,wt,Ot]);function Jt(Nn,mr,Xn=ht){return useEventCallback(tr=>(mr&&mr(tr),!Xn&&Wt.current&&Wt.current[Nn](tr),!0))}const pn=Jt("start",Et),gn=Jt("stop",mt),bn=Jt("stop",ct),yn=Jt("stop",St),$n=Jt("stop",Nn=>{wt&&Nn.preventDefault(),xt&&xt(Nn)}),kn=Jt("start",$t),hn=Jt("stop",kt),un=Jt("stop",At),Lt=Jt("stop",Nn=>{Dt(Nn),Ft.current===!1&&Mt(!1),ft&&ft(Nn)},!1),Ut=useEventCallback(Nn=>{Vt.current||(Vt.current=Nn.currentTarget),Yt(Nn),Ft.current===!0&&(Mt(!0),vt&&vt(Nn)),ut&&ut(Nn)}),nn=()=>{const Nn=Vt.current;return st&&st!=="button"&&!(Nn.tagName==="A"&&Nn.href)},sn=reactExports.useRef(!1),vn=useEventCallback(Nn=>{pt&&!sn.current&&wt&&Wt.current&&Nn.key===" "&&(sn.current=!0,Wt.current.stop(Nn,()=>{Wt.current.start(Nn)})),Nn.target===Nn.currentTarget&&nn()&&Nn.key===" "&&Nn.preventDefault(),bt&&bt(Nn),Nn.target===Nn.currentTarget&&nn()&&Nn.key==="Enter"&&!at&&(Nn.preventDefault(),dt&&dt(Nn))}),Tn=useEventCallback(Nn=>{pt&&Nn.key===" "&&Wt.current&&wt&&!Nn.defaultPrevented&&(sn.current=!1,Wt.current.stop(Nn,()=>{Wt.current.pulsate(Nn)})),yt&&yt(Nn),dt&&Nn.target===Nn.currentTarget&&nn()&&Nn.key===" "&&!Nn.defaultPrevented&&dt(Nn)});let Rn=st;Rn==="button"&&(Kt.href||Kt.to)&&(Rn=gt);const on={};Rn==="button"?(on.type=Bt===void 0?"button":Bt,on.disabled=at):(!Kt.href&&!Kt.to&&(on.role="button"),at&&(on["aria-disabled"]=at));const Bn=useForkRef(et,Rt,Vt),Ln=_extends$1({},tt,{centerRipple:rt,component:st,disabled:at,disableRipple:lt,disableTouchRipple:ht,focusRipple:pt,tabIndex:Tt,focusVisible:wt}),Zn=useUtilityClasses$F(Ln);return jsxRuntimeExports.jsxs(ButtonBaseRoot,_extends$1({as:Rn,className:clsx(Zn.root,it),ownerState:Ln,onBlur:Lt,onClick:dt,onContextMenu:gn,onFocus:Ut,onKeyDown:vn,onKeyUp:Tn,onMouseDown:pn,onMouseLeave:$n,onMouseUp:yn,onDragLeave:bn,onTouchEnd:hn,onTouchMove:un,onTouchStart:kn,ref:Bn,tabIndex:at?-1:Tt,type:Bt},on,Kt,{children:[ot,Ht?jsxRuntimeExports.jsx(TouchRipple,_extends$1({ref:It,center:rt},jt)):null]}))});function getIconButtonUtilityClass($){return generateUtilityClass("MuiIconButton",$)}const iconButtonClasses=generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),_excluded$K=["edge","children","className","color","disabled","disableFocusRipple","size"],useUtilityClasses$E=$=>{const{classes:_e,disabled:et,color:tt,edge:nt,size:rt}=$,ot={root:["root",et&&"disabled",tt!=="default"&&`color${capitalize$1(tt)}`,nt&&`edge${capitalize$1(nt)}`,`size${capitalize$1(rt)}`]};return composeClasses(ot,getIconButtonUtilityClass,_e)},IconButtonRoot=styled(ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,et.color!=="default"&&_e[`color${capitalize$1(et.color)}`],et.edge&&_e[`edge${capitalize$1(et.edge)}`],_e[`size${capitalize$1(et.size)}`]]}})(({theme:$,ownerState:_e})=>_extends$1({textAlign:"center",flex:"0 0 auto",fontSize:$.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:($.vars||$).palette.action.active,transition:$.transitions.create("background-color",{duration:$.transitions.duration.shortest})},!_e.disableRipple&&{"&:hover":{backgroundColor:$.vars?`rgba(${$.vars.palette.action.activeChannel} / ${$.vars.palette.action.hoverOpacity})`:alpha_1($.palette.action.active,$.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},_e.edge==="start"&&{marginLeft:_e.size==="small"?-3:-12},_e.edge==="end"&&{marginRight:_e.size==="small"?-3:-12}),({theme:$,ownerState:_e})=>{var et;const tt=(et=($.vars||$).palette)==null?void 0:et[_e.color];return _extends$1({},_e.color==="inherit"&&{color:"inherit"},_e.color!=="inherit"&&_e.color!=="default"&&_extends$1({color:tt==null?void 0:tt.main},!_e.disableRipple&&{"&:hover":_extends$1({},tt&&{backgroundColor:$.vars?`rgba(${tt.mainChannel} / ${$.vars.palette.action.hoverOpacity})`:alpha_1(tt.main,$.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),_e.size==="small"&&{padding:5,fontSize:$.typography.pxToRem(18)},_e.size==="large"&&{padding:12,fontSize:$.typography.pxToRem(28)},{[`&.${iconButtonClasses.disabled}`]:{backgroundColor:"transparent",color:($.vars||$).palette.action.disabled}})}),IconButton=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiIconButton"}),{edge:nt=!1,children:rt,className:ot,color:it="default",disabled:st=!1,disableFocusRipple:at=!1,size:lt="medium"}=tt,ht=_objectWithoutPropertiesLoose(tt,_excluded$K),pt=_extends$1({},tt,{edge:nt,color:it,disabled:st,disableFocusRipple:at,size:lt}),gt=useUtilityClasses$E(pt);return jsxRuntimeExports.jsx(IconButtonRoot,_extends$1({className:clsx(gt.root,ot),centerRipple:!0,focusRipple:!at,disabled:st,ref:et},ht,{ownerState:pt,children:rt}))});function getTypographyUtilityClass($){return generateUtilityClass("MuiTypography",$)}generateUtilityClasses("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _excluded$J=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],useUtilityClasses$D=$=>{const{align:_e,gutterBottom:et,noWrap:tt,paragraph:nt,variant:rt,classes:ot}=$,it={root:["root",rt,$.align!=="inherit"&&`align${capitalize$1(_e)}`,et&&"gutterBottom",tt&&"noWrap",nt&&"paragraph"]};return composeClasses(it,getTypographyUtilityClass,ot)},TypographyRoot=styled("span",{name:"MuiTypography",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,et.variant&&_e[et.variant],et.align!=="inherit"&&_e[`align${capitalize$1(et.align)}`],et.noWrap&&_e.noWrap,et.gutterBottom&&_e.gutterBottom,et.paragraph&&_e.paragraph]}})(({theme:$,ownerState:_e})=>_extends$1({margin:0},_e.variant==="inherit"&&{font:"inherit"},_e.variant!=="inherit"&&$.typography[_e.variant],_e.align!=="inherit"&&{textAlign:_e.align},_e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},_e.gutterBottom&&{marginBottom:"0.35em"},_e.paragraph&&{marginBottom:16})),defaultVariantMapping={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},colorTransformations={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},transformDeprecatedColors=$=>colorTransformations[$]||$,Typography=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiTypography"}),nt=transformDeprecatedColors(tt.color),rt=extendSxProp(_extends$1({},tt,{color:nt})),{align:ot="inherit",className:it,component:st,gutterBottom:at=!1,noWrap:lt=!1,paragraph:ht=!1,variant:pt="body1",variantMapping:gt=defaultVariantMapping}=rt,ft=_objectWithoutPropertiesLoose(rt,_excluded$J),dt=_extends$1({},rt,{align:ot,color:nt,className:it,component:st,gutterBottom:at,noWrap:lt,paragraph:ht,variant:pt,variantMapping:gt}),mt=st||(ht?"p":gt[pt]||defaultVariantMapping[pt])||"span",ct=useUtilityClasses$D(dt);return jsxRuntimeExports.jsx(TypographyRoot,_extends$1({as:mt,ref:et,ownerState:dt,className:clsx(ct.root,it)},ft))});function getContainer$1($){return typeof $=="function"?$():$}const Portal=reactExports.forwardRef(function(_e,et){const{children:tt,container:nt,disablePortal:rt=!1}=_e,[ot,it]=reactExports.useState(null),st=useForkRef(reactExports.isValidElement(tt)?tt.ref:null,et);if(useEnhancedEffect(()=>{rt||it(getContainer$1(nt)||document.body)},[nt,rt]),useEnhancedEffect(()=>{if(ot&&!rt)return setRef(et,ot),()=>{setRef(et,null)}},[et,ot,rt]),rt){if(reactExports.isValidElement(tt)){const at={ref:st};return reactExports.cloneElement(tt,at)}return jsxRuntimeExports.jsx(reactExports.Fragment,{children:tt})}return jsxRuntimeExports.jsx(reactExports.Fragment,{children:ot&&reactDomExports.createPortal(tt,ot)})}),_excluded$I=["onChange","maxRows","minRows","style","value"];function getStyleValue($){return parseInt($,10)||0}const styles$3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function isEmpty$1($){return $==null||Object.keys($).length===0||$.outerHeightStyle===0&&!$.overflowing}const TextareaAutosize=reactExports.forwardRef(function(_e,et){const{onChange:tt,maxRows:nt,minRows:rt=1,style:ot,value:it}=_e,st=_objectWithoutPropertiesLoose(_e,_excluded$I),{current:at}=reactExports.useRef(it!=null),lt=reactExports.useRef(null),ht=useForkRef(et,lt),pt=reactExports.useRef(null),gt=reactExports.useRef(null),ft=reactExports.useCallback(()=>{const ct=lt.current,vt=ownerWindow(ct).getComputedStyle(ct);if(vt.width==="0px")return{outerHeightStyle:0,overflowing:!1};const bt=gt.current;bt.style.width=vt.width,bt.value=ct.value||_e.placeholder||"x",bt.value.slice(-1)===` +`&&(bt.value+=" ");const yt=vt.boxSizing,Et=getStyleValue(vt.paddingBottom)+getStyleValue(vt.paddingTop),xt=getStyleValue(vt.borderBottomWidth)+getStyleValue(vt.borderTopWidth),St=bt.scrollHeight;bt.value="x";const kt=bt.scrollHeight;let At=St;rt&&(At=Math.max(Number(rt)*kt,At)),nt&&(At=Math.min(Number(nt)*kt,At)),At=Math.max(At,kt);const $t=At+(yt==="border-box"?Et+xt:0),Tt=Math.abs(At-St)<=1;return{outerHeightStyle:$t,overflowing:Tt}},[nt,rt,_e.placeholder]),dt=reactExports.useCallback(()=>{const ct=ft();if(isEmpty$1(ct))return;const ut=ct.outerHeightStyle,vt=lt.current;pt.current!==ut&&(pt.current=ut,vt.style.height=`${ut}px`),vt.style.overflow=ct.overflowing?"hidden":""},[ft]);useEnhancedEffect(()=>{const ct=()=>{dt()};let ut;const vt=debounce(ct),bt=lt.current,yt=ownerWindow(bt);yt.addEventListener("resize",vt);let Et;return typeof ResizeObserver<"u"&&(Et=new ResizeObserver(ct),Et.observe(bt)),()=>{vt.clear(),cancelAnimationFrame(ut),yt.removeEventListener("resize",vt),Et&&Et.disconnect()}},[ft,dt]),useEnhancedEffect(()=>{dt()});const mt=ct=>{at||dt(),tt&&tt(ct)};return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("textarea",_extends$1({value:it,onChange:mt,ref:ht,rows:rt,style:ot},st)),jsxRuntimeExports.jsx("textarea",{"aria-hidden":!0,className:_e.className,readOnly:!0,ref:gt,tabIndex:-1,style:_extends$1({},styles$3.shadow,ot,{paddingTop:0,paddingBottom:0})})]})});function formControlState({props:$,states:_e,muiFormControl:et}){return _e.reduce((tt,nt)=>(tt[nt]=$[nt],et&&typeof $[nt]>"u"&&(tt[nt]=et[nt]),tt),{})}const FormControlContext=reactExports.createContext(void 0);function useFormControl(){return reactExports.useContext(FormControlContext)}function GlobalStyles($){return jsxRuntimeExports.jsx(GlobalStyles$1,_extends$1({},$,{defaultTheme:defaultTheme$1,themeId:THEME_ID}))}function hasValue($){return $!=null&&!(Array.isArray($)&&$.length===0)}function isFilled($,_e=!1){return $&&(hasValue($.value)&&$.value!==""||_e&&hasValue($.defaultValue)&&$.defaultValue!=="")}function isAdornedStart($){return $.startAdornment}function getInputBaseUtilityClass($){return generateUtilityClass("MuiInputBase",$)}const inputBaseClasses=generateUtilityClasses("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),_excluded$H=["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"],rootOverridesResolver=($,_e)=>{const{ownerState:et}=$;return[_e.root,et.formControl&&_e.formControl,et.startAdornment&&_e.adornedStart,et.endAdornment&&_e.adornedEnd,et.error&&_e.error,et.size==="small"&&_e.sizeSmall,et.multiline&&_e.multiline,et.color&&_e[`color${capitalize$1(et.color)}`],et.fullWidth&&_e.fullWidth,et.hiddenLabel&&_e.hiddenLabel]},inputOverridesResolver=($,_e)=>{const{ownerState:et}=$;return[_e.input,et.size==="small"&&_e.inputSizeSmall,et.multiline&&_e.inputMultiline,et.type==="search"&&_e.inputTypeSearch,et.startAdornment&&_e.inputAdornedStart,et.endAdornment&&_e.inputAdornedEnd,et.hiddenLabel&&_e.inputHiddenLabel]},useUtilityClasses$C=$=>{const{classes:_e,color:et,disabled:tt,error:nt,endAdornment:rt,focused:ot,formControl:it,fullWidth:st,hiddenLabel:at,multiline:lt,readOnly:ht,size:pt,startAdornment:gt,type:ft}=$,dt={root:["root",`color${capitalize$1(et)}`,tt&&"disabled",nt&&"error",st&&"fullWidth",ot&&"focused",it&&"formControl",pt&&pt!=="medium"&&`size${capitalize$1(pt)}`,lt&&"multiline",gt&&"adornedStart",rt&&"adornedEnd",at&&"hiddenLabel",ht&&"readOnly"],input:["input",tt&&"disabled",ft==="search"&&"inputTypeSearch",lt&&"inputMultiline",pt==="small"&&"inputSizeSmall",at&&"inputHiddenLabel",gt&&"inputAdornedStart",rt&&"inputAdornedEnd",ht&&"readOnly"]};return composeClasses(dt,getInputBaseUtilityClass,_e)},InputBaseRoot=styled("div",{name:"MuiInputBase",slot:"Root",overridesResolver:rootOverridesResolver})(({theme:$,ownerState:_e})=>_extends$1({},$.typography.body1,{color:($.vars||$).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${inputBaseClasses.disabled}`]:{color:($.vars||$).palette.text.disabled,cursor:"default"}},_e.multiline&&_extends$1({padding:"4px 0 5px"},_e.size==="small"&&{paddingTop:1}),_e.fullWidth&&{width:"100%"})),InputBaseComponent=styled("input",{name:"MuiInputBase",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:$,ownerState:_e})=>{const et=$.palette.mode==="light",tt=_extends$1({color:"currentColor"},$.vars?{opacity:$.vars.opacity.inputPlaceholder}:{opacity:et?.42:.5},{transition:$.transitions.create("opacity",{duration:$.transitions.duration.shorter})}),nt={opacity:"0 !important"},rt=$.vars?{opacity:$.vars.opacity.inputPlaceholder}:{opacity:et?.42:.5};return _extends$1({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":tt,"&::-moz-placeholder":tt,"&:-ms-input-placeholder":tt,"&::-ms-input-placeholder":tt,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${inputBaseClasses.formControl} &`]:{"&::-webkit-input-placeholder":nt,"&::-moz-placeholder":nt,"&:-ms-input-placeholder":nt,"&::-ms-input-placeholder":nt,"&:focus::-webkit-input-placeholder":rt,"&:focus::-moz-placeholder":rt,"&:focus:-ms-input-placeholder":rt,"&:focus::-ms-input-placeholder":rt},[`&.${inputBaseClasses.disabled}`]:{opacity:1,WebkitTextFillColor:($.vars||$).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},_e.size==="small"&&{paddingTop:1},_e.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},_e.type==="search"&&{MozAppearance:"textfield"})}),inputGlobalStyles=jsxRuntimeExports.jsx(GlobalStyles,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),InputBase=reactExports.forwardRef(function(_e,et){var tt;const nt=useDefaultProps({props:_e,name:"MuiInputBase"}),{"aria-describedby":rt,autoComplete:ot,autoFocus:it,className:st,components:at={},componentsProps:lt={},defaultValue:ht,disabled:pt,disableInjectingGlobalStyles:gt,endAdornment:ft,fullWidth:dt=!1,id:mt,inputComponent:ct="input",inputProps:ut={},inputRef:vt,maxRows:bt,minRows:yt,multiline:Et=!1,name:xt,onBlur:St,onChange:kt,onClick:At,onFocus:$t,onKeyDown:Tt,onKeyUp:jt,placeholder:Gt,readOnly:Bt,renderSuffix:Kt,rows:Vt,slotProps:Wt={},slots:It={},startAdornment:Ft,type:Yt="text",value:Dt}=nt,Rt=_objectWithoutPropertiesLoose(nt,_excluded$H),wt=ut.value!=null?ut.value:Dt,{current:Mt}=reactExports.useRef(wt!=null),Ot=reactExports.useRef(),zt=reactExports.useCallback(Zn=>{},[]),Ht=useForkRef(Ot,vt,ut.ref,zt),[Jt,pn]=reactExports.useState(!1),gn=useFormControl(),bn=formControlState({props:nt,muiFormControl:gn,states:["color","disabled","error","hiddenLabel","size","required","filled"]});bn.focused=gn?gn.focused:Jt,reactExports.useEffect(()=>{!gn&&pt&&Jt&&(pn(!1),St&&St())},[gn,pt,Jt,St]);const yn=gn&&gn.onFilled,$n=gn&&gn.onEmpty,kn=reactExports.useCallback(Zn=>{isFilled(Zn)?yn&&yn():$n&&$n()},[yn,$n]);useEnhancedEffect(()=>{Mt&&kn({value:wt})},[wt,kn,Mt]);const hn=Zn=>{if(bn.disabled){Zn.stopPropagation();return}$t&&$t(Zn),ut.onFocus&&ut.onFocus(Zn),gn&&gn.onFocus?gn.onFocus(Zn):pn(!0)},un=Zn=>{St&&St(Zn),ut.onBlur&&ut.onBlur(Zn),gn&&gn.onBlur?gn.onBlur(Zn):pn(!1)},Lt=(Zn,...Nn)=>{if(!Mt){const mr=Zn.target||Ot.current;if(mr==null)throw new Error(formatMuiErrorMessage$1(1));kn({value:mr.value})}ut.onChange&&ut.onChange(Zn,...Nn),kt&&kt(Zn,...Nn)};reactExports.useEffect(()=>{kn(Ot.current)},[]);const Ut=Zn=>{Ot.current&&Zn.currentTarget===Zn.target&&Ot.current.focus(),At&&At(Zn)};let nn=ct,sn=ut;Et&&nn==="input"&&(Vt?sn=_extends$1({type:void 0,minRows:Vt,maxRows:Vt},sn):sn=_extends$1({type:void 0,maxRows:bt,minRows:yt},sn),nn=TextareaAutosize);const vn=Zn=>{kn(Zn.animationName==="mui-auto-fill-cancel"?Ot.current:{value:"x"})};reactExports.useEffect(()=>{gn&&gn.setAdornedStart(!!Ft)},[gn,Ft]);const Tn=_extends$1({},nt,{color:bn.color||"primary",disabled:bn.disabled,endAdornment:ft,error:bn.error,focused:bn.focused,formControl:gn,fullWidth:dt,hiddenLabel:bn.hiddenLabel,multiline:Et,size:bn.size,startAdornment:Ft,type:Yt}),Rn=useUtilityClasses$C(Tn),on=It.root||at.Root||InputBaseRoot,Bn=Wt.root||lt.root||{},Ln=It.input||at.Input||InputBaseComponent;return sn=_extends$1({},sn,(tt=Wt.input)!=null?tt:lt.input),jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[!gt&&inputGlobalStyles,jsxRuntimeExports.jsxs(on,_extends$1({},Bn,!isHostComponent(on)&&{ownerState:_extends$1({},Tn,Bn.ownerState)},{ref:et,onClick:Ut},Rt,{className:clsx(Rn.root,Bn.className,st,Bt&&"MuiInputBase-readOnly"),children:[Ft,jsxRuntimeExports.jsx(FormControlContext.Provider,{value:null,children:jsxRuntimeExports.jsx(Ln,_extends$1({ownerState:Tn,"aria-invalid":bn.error,"aria-describedby":rt,autoComplete:ot,autoFocus:it,defaultValue:ht,disabled:bn.disabled,id:mt,onAnimationStart:vn,name:xt,placeholder:Gt,readOnly:Bt,required:bn.required,rows:Vt,value:wt,onKeyDown:Tt,onKeyUp:jt,type:Yt},sn,!isHostComponent(Ln)&&{as:nn,ownerState:_extends$1({},Tn,sn.ownerState)},{ref:Ht,className:clsx(Rn.input,sn.className,Bt&&"MuiInputBase-readOnly"),onBlur:un,onChange:Lt,onFocus:hn}))}),ft,Kt?Kt(_extends$1({},bn,{startAdornment:Ft})):null]}))]})});function getInputUtilityClass($){return generateUtilityClass("MuiInput",$)}const inputClasses=_extends$1({},inputBaseClasses,generateUtilityClasses("MuiInput",["root","underline","input"]));function getOutlinedInputUtilityClass($){return generateUtilityClass("MuiOutlinedInput",$)}const outlinedInputClasses=_extends$1({},inputBaseClasses,generateUtilityClasses("MuiOutlinedInput",["root","notchedOutline","input"]));function getFilledInputUtilityClass($){return generateUtilityClass("MuiFilledInput",$)}const filledInputClasses=_extends$1({},inputBaseClasses,generateUtilityClasses("MuiFilledInput",["root","underline","input"])),ArrowDropDownIcon=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Person=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function getAvatarUtilityClass($){return generateUtilityClass("MuiAvatar",$)}generateUtilityClasses("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const _excluded$G=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],useUtilityClasses$B=$=>{const{classes:_e,variant:et,colorDefault:tt}=$;return composeClasses({root:["root",et,tt&&"colorDefault"],img:["img"],fallback:["fallback"]},getAvatarUtilityClass,_e)},AvatarRoot=styled("div",{name:"MuiAvatar",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,_e[et.variant],et.colorDefault&&_e.colorDefault]}})(({theme:$})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:$.typography.fontFamily,fontSize:$.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:($.vars||$).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:_extends$1({color:($.vars||$).palette.background.default},$.vars?{backgroundColor:$.vars.palette.Avatar.defaultBg}:_extends$1({backgroundColor:$.palette.grey[400]},$.applyStyles("dark",{backgroundColor:$.palette.grey[600]})))}]})),AvatarImg=styled("img",{name:"MuiAvatar",slot:"Img",overridesResolver:($,_e)=>_e.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),AvatarFallback=styled(Person,{name:"MuiAvatar",slot:"Fallback",overridesResolver:($,_e)=>_e.fallback})({width:"75%",height:"75%"});function useLoaded({crossOrigin:$,referrerPolicy:_e,src:et,srcSet:tt}){const[nt,rt]=reactExports.useState(!1);return reactExports.useEffect(()=>{if(!et&&!tt)return;rt(!1);let ot=!0;const it=new Image;return it.onload=()=>{ot&&rt("loaded")},it.onerror=()=>{ot&&rt("error")},it.crossOrigin=$,it.referrerPolicy=_e,it.src=et,tt&&(it.srcset=tt),()=>{ot=!1}},[$,_e,et,tt]),nt}const Avatar=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiAvatar"}),{alt:nt,children:rt,className:ot,component:it="div",slots:st={},slotProps:at={},imgProps:lt,sizes:ht,src:pt,srcSet:gt,variant:ft="circular"}=tt,dt=_objectWithoutPropertiesLoose(tt,_excluded$G);let mt=null;const ct=useLoaded(_extends$1({},lt,{src:pt,srcSet:gt})),ut=pt||gt,vt=ut&&ct!=="error",bt=_extends$1({},tt,{colorDefault:!vt,component:it,variant:ft}),yt=useUtilityClasses$B(bt),[Et,xt]=useSlot("img",{className:yt.img,elementType:AvatarImg,externalForwardedProps:{slots:st,slotProps:{img:_extends$1({},lt,at.img)}},additionalProps:{alt:nt,src:pt,srcSet:gt,sizes:ht},ownerState:bt});return vt?mt=jsxRuntimeExports.jsx(Et,_extends$1({},xt)):rt||rt===0?mt=rt:ut&&nt?mt=nt[0]:mt=jsxRuntimeExports.jsx(AvatarFallback,{ownerState:bt,className:yt.fallback}),jsxRuntimeExports.jsx(AvatarRoot,_extends$1({as:it,ownerState:bt,className:clsx(yt.root,ot),ref:et},dt,{children:mt}))}),_excluded$F=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],styles$2={entering:{opacity:1},entered:{opacity:1}},Fade=reactExports.forwardRef(function(_e,et){const tt=useTheme(),nt={enter:tt.transitions.duration.enteringScreen,exit:tt.transitions.duration.leavingScreen},{addEndListener:rt,appear:ot=!0,children:it,easing:st,in:at,onEnter:lt,onEntered:ht,onEntering:pt,onExit:gt,onExited:ft,onExiting:dt,style:mt,timeout:ct=nt,TransitionComponent:ut=Transition}=_e,vt=_objectWithoutPropertiesLoose(_e,_excluded$F),bt=reactExports.useRef(null),yt=useForkRef(bt,it.ref,et),Et=Gt=>Bt=>{if(Gt){const Kt=bt.current;Bt===void 0?Gt(Kt):Gt(Kt,Bt)}},xt=Et(pt),St=Et((Gt,Bt)=>{reflow(Gt);const Kt=getTransitionProps({style:mt,timeout:ct,easing:st},{mode:"enter"});Gt.style.webkitTransition=tt.transitions.create("opacity",Kt),Gt.style.transition=tt.transitions.create("opacity",Kt),lt&<(Gt,Bt)}),kt=Et(ht),At=Et(dt),$t=Et(Gt=>{const Bt=getTransitionProps({style:mt,timeout:ct,easing:st},{mode:"exit"});Gt.style.webkitTransition=tt.transitions.create("opacity",Bt),Gt.style.transition=tt.transitions.create("opacity",Bt),gt&>(Gt)}),Tt=Et(ft),jt=Gt=>{rt&&rt(bt.current,Gt)};return jsxRuntimeExports.jsx(ut,_extends$1({appear:ot,in:at,nodeRef:bt,onEnter:St,onEntered:kt,onEntering:xt,onExit:$t,onExited:Tt,onExiting:At,addEndListener:jt,timeout:ct},vt,{children:(Gt,Bt)=>reactExports.cloneElement(it,_extends$1({style:_extends$1({opacity:0,visibility:Gt==="exited"&&!at?"hidden":void 0},styles$2[Gt],mt,it.props.style),ref:yt},Bt))}))});function getBackdropUtilityClass($){return generateUtilityClass("MuiBackdrop",$)}generateUtilityClasses("MuiBackdrop",["root","invisible"]);const _excluded$E=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],useUtilityClasses$A=$=>{const{classes:_e,invisible:et}=$;return composeClasses({root:["root",et&&"invisible"]},getBackdropUtilityClass,_e)},BackdropRoot=styled("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,et.invisible&&_e.invisible]}})(({ownerState:$})=>_extends$1({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"},$.invisible&&{backgroundColor:"transparent"})),Backdrop=reactExports.forwardRef(function(_e,et){var tt,nt,rt;const ot=useDefaultProps({props:_e,name:"MuiBackdrop"}),{children:it,className:st,component:at="div",components:lt={},componentsProps:ht={},invisible:pt=!1,open:gt,slotProps:ft={},slots:dt={},TransitionComponent:mt=Fade,transitionDuration:ct}=ot,ut=_objectWithoutPropertiesLoose(ot,_excluded$E),vt=_extends$1({},ot,{component:at,invisible:pt}),bt=useUtilityClasses$A(vt),yt=(tt=ft.root)!=null?tt:ht.root;return jsxRuntimeExports.jsx(mt,_extends$1({in:gt,timeout:ct},ut,{children:jsxRuntimeExports.jsx(BackdropRoot,_extends$1({"aria-hidden":!0},yt,{as:(nt=(rt=dt.root)!=null?rt:lt.Root)!=null?nt:at,className:clsx(bt.root,st,yt==null?void 0:yt.className),ownerState:_extends$1({},vt,yt==null?void 0:yt.ownerState),classes:bt,ref:et,children:it}))}))}),boxClasses=generateUtilityClasses("MuiBox",["root"]),defaultTheme=createTheme(),Box=createBox({themeId:THEME_ID,defaultTheme,defaultClassName:boxClasses.root,generateClassName:ClassNameGenerator.generate});function getButtonUtilityClass($){return generateUtilityClass("MuiButton",$)}const buttonClasses=generateUtilityClasses("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),ButtonGroupContext=reactExports.createContext({}),ButtonGroupButtonContext=reactExports.createContext(void 0),_excluded$D=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],useUtilityClasses$z=$=>{const{color:_e,disableElevation:et,fullWidth:tt,size:nt,variant:rt,classes:ot}=$,it={root:["root",rt,`${rt}${capitalize$1(_e)}`,`size${capitalize$1(nt)}`,`${rt}Size${capitalize$1(nt)}`,`color${capitalize$1(_e)}`,et&&"disableElevation",tt&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${capitalize$1(nt)}`],endIcon:["icon","endIcon",`iconSize${capitalize$1(nt)}`]},st=composeClasses(it,getButtonUtilityClass,ot);return _extends$1({},ot,st)},commonIconStyles=$=>_extends$1({},$.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},$.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},$.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),ButtonRoot=styled(ButtonBase,{shouldForwardProp:$=>rootShouldForwardProp($)||$==="classes",name:"MuiButton",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,_e[et.variant],_e[`${et.variant}${capitalize$1(et.color)}`],_e[`size${capitalize$1(et.size)}`],_e[`${et.variant}Size${capitalize$1(et.size)}`],et.color==="inherit"&&_e.colorInherit,et.disableElevation&&_e.disableElevation,et.fullWidth&&_e.fullWidth]}})(({theme:$,ownerState:_e})=>{var et,tt;const nt=$.palette.mode==="light"?$.palette.grey[300]:$.palette.grey[800],rt=$.palette.mode==="light"?$.palette.grey.A100:$.palette.grey[700];return _extends$1({},$.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:($.vars||$).shape.borderRadius,transition:$.transitions.create(["background-color","box-shadow","border-color","color"],{duration:$.transitions.duration.short}),"&:hover":_extends$1({textDecoration:"none",backgroundColor:$.vars?`rgba(${$.vars.palette.text.primaryChannel} / ${$.vars.palette.action.hoverOpacity})`:alpha_1($.palette.text.primary,$.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},_e.variant==="text"&&_e.color!=="inherit"&&{backgroundColor:$.vars?`rgba(${$.vars.palette[_e.color].mainChannel} / ${$.vars.palette.action.hoverOpacity})`:alpha_1($.palette[_e.color].main,$.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},_e.variant==="outlined"&&_e.color!=="inherit"&&{border:`1px solid ${($.vars||$).palette[_e.color].main}`,backgroundColor:$.vars?`rgba(${$.vars.palette[_e.color].mainChannel} / ${$.vars.palette.action.hoverOpacity})`:alpha_1($.palette[_e.color].main,$.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},_e.variant==="contained"&&{backgroundColor:$.vars?$.vars.palette.Button.inheritContainedHoverBg:rt,boxShadow:($.vars||$).shadows[4],"@media (hover: none)":{boxShadow:($.vars||$).shadows[2],backgroundColor:($.vars||$).palette.grey[300]}},_e.variant==="contained"&&_e.color!=="inherit"&&{backgroundColor:($.vars||$).palette[_e.color].dark,"@media (hover: none)":{backgroundColor:($.vars||$).palette[_e.color].main}}),"&:active":_extends$1({},_e.variant==="contained"&&{boxShadow:($.vars||$).shadows[8]}),[`&.${buttonClasses.focusVisible}`]:_extends$1({},_e.variant==="contained"&&{boxShadow:($.vars||$).shadows[6]}),[`&.${buttonClasses.disabled}`]:_extends$1({color:($.vars||$).palette.action.disabled},_e.variant==="outlined"&&{border:`1px solid ${($.vars||$).palette.action.disabledBackground}`},_e.variant==="contained"&&{color:($.vars||$).palette.action.disabled,boxShadow:($.vars||$).shadows[0],backgroundColor:($.vars||$).palette.action.disabledBackground})},_e.variant==="text"&&{padding:"6px 8px"},_e.variant==="text"&&_e.color!=="inherit"&&{color:($.vars||$).palette[_e.color].main},_e.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},_e.variant==="outlined"&&_e.color!=="inherit"&&{color:($.vars||$).palette[_e.color].main,border:$.vars?`1px solid rgba(${$.vars.palette[_e.color].mainChannel} / 0.5)`:`1px solid ${alpha_1($.palette[_e.color].main,.5)}`},_e.variant==="contained"&&{color:$.vars?$.vars.palette.text.primary:(et=(tt=$.palette).getContrastText)==null?void 0:et.call(tt,$.palette.grey[300]),backgroundColor:$.vars?$.vars.palette.Button.inheritContainedBg:nt,boxShadow:($.vars||$).shadows[2]},_e.variant==="contained"&&_e.color!=="inherit"&&{color:($.vars||$).palette[_e.color].contrastText,backgroundColor:($.vars||$).palette[_e.color].main},_e.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},_e.size==="small"&&_e.variant==="text"&&{padding:"4px 5px",fontSize:$.typography.pxToRem(13)},_e.size==="large"&&_e.variant==="text"&&{padding:"8px 11px",fontSize:$.typography.pxToRem(15)},_e.size==="small"&&_e.variant==="outlined"&&{padding:"3px 9px",fontSize:$.typography.pxToRem(13)},_e.size==="large"&&_e.variant==="outlined"&&{padding:"7px 21px",fontSize:$.typography.pxToRem(15)},_e.size==="small"&&_e.variant==="contained"&&{padding:"4px 10px",fontSize:$.typography.pxToRem(13)},_e.size==="large"&&_e.variant==="contained"&&{padding:"8px 22px",fontSize:$.typography.pxToRem(15)},_e.fullWidth&&{width:"100%"})},({ownerState:$})=>$.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${buttonClasses.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${buttonClasses.disabled}`]:{boxShadow:"none"}}),ButtonStartIcon=styled("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.startIcon,_e[`iconSize${capitalize$1(et.size)}`]]}})(({ownerState:$})=>_extends$1({display:"inherit",marginRight:8,marginLeft:-4},$.size==="small"&&{marginLeft:-2},commonIconStyles($))),ButtonEndIcon=styled("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.endIcon,_e[`iconSize${capitalize$1(et.size)}`]]}})(({ownerState:$})=>_extends$1({display:"inherit",marginRight:-4,marginLeft:8},$.size==="small"&&{marginRight:-2},commonIconStyles($))),Button=reactExports.forwardRef(function(_e,et){const tt=reactExports.useContext(ButtonGroupContext),nt=reactExports.useContext(ButtonGroupButtonContext),rt=resolveProps(tt,_e),ot=useDefaultProps({props:rt,name:"MuiButton"}),{children:it,color:st="primary",component:at="button",className:lt,disabled:ht=!1,disableElevation:pt=!1,disableFocusRipple:gt=!1,endIcon:ft,focusVisibleClassName:dt,fullWidth:mt=!1,size:ct="medium",startIcon:ut,type:vt,variant:bt="text"}=ot,yt=_objectWithoutPropertiesLoose(ot,_excluded$D),Et=_extends$1({},ot,{color:st,component:at,disabled:ht,disableElevation:pt,disableFocusRipple:gt,fullWidth:mt,size:ct,type:vt,variant:bt}),xt=useUtilityClasses$z(Et),St=ut&&jsxRuntimeExports.jsx(ButtonStartIcon,{className:xt.startIcon,ownerState:Et,children:ut}),kt=ft&&jsxRuntimeExports.jsx(ButtonEndIcon,{className:xt.endIcon,ownerState:Et,children:ft}),At=nt||"";return jsxRuntimeExports.jsxs(ButtonRoot,_extends$1({ownerState:Et,className:clsx(tt.className,xt.root,lt,At),component:at,disabled:ht,focusRipple:!gt,focusVisibleClassName:clsx(xt.focusVisible,dt),ref:et,type:vt},yt,{classes:xt,children:[St,it,kt]}))});function getCardUtilityClass($){return generateUtilityClass("MuiCard",$)}generateUtilityClasses("MuiCard",["root"]);const _excluded$C=["className","raised"],useUtilityClasses$y=$=>{const{classes:_e}=$;return composeClasses({root:["root"]},getCardUtilityClass,_e)},CardRoot=styled(Paper,{name:"MuiCard",slot:"Root",overridesResolver:($,_e)=>_e.root})(()=>({overflow:"hidden"})),Card=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiCard"}),{className:nt,raised:rt=!1}=tt,ot=_objectWithoutPropertiesLoose(tt,_excluded$C),it=_extends$1({},tt,{raised:rt}),st=useUtilityClasses$y(it);return jsxRuntimeExports.jsx(CardRoot,_extends$1({className:clsx(st.root,nt),elevation:rt?8:void 0,ref:et,ownerState:it},ot))});function getCardContentUtilityClass($){return generateUtilityClass("MuiCardContent",$)}generateUtilityClasses("MuiCardContent",["root"]);const _excluded$B=["className","component"],useUtilityClasses$x=$=>{const{classes:_e}=$;return composeClasses({root:["root"]},getCardContentUtilityClass,_e)},CardContentRoot=styled("div",{name:"MuiCardContent",slot:"Root",overridesResolver:($,_e)=>_e.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),CardContent=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiCardContent"}),{className:nt,component:rt="div"}=tt,ot=_objectWithoutPropertiesLoose(tt,_excluded$B),it=_extends$1({},tt,{component:rt}),st=useUtilityClasses$x(it);return jsxRuntimeExports.jsx(CardContentRoot,_extends$1({as:rt,className:clsx(st.root,nt),ownerState:it,ref:et},ot))});function getCircularProgressUtilityClass($){return generateUtilityClass("MuiCircularProgress",$)}generateUtilityClasses("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const _excluded$A=["className","color","disableShrink","size","style","thickness","value","variant"];let _$1=$=>$,_t,_t2,_t3,_t4;const SIZE=44,circularRotateKeyframe=keyframes(_t||(_t=_$1` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),circularDashKeyframe=keyframes(_t2||(_t2=_$1` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),useUtilityClasses$w=$=>{const{classes:_e,variant:et,color:tt,disableShrink:nt}=$,rt={root:["root",et,`color${capitalize$1(tt)}`],svg:["svg"],circle:["circle",`circle${capitalize$1(et)}`,nt&&"circleDisableShrink"]};return composeClasses(rt,getCircularProgressUtilityClass,_e)},CircularProgressRoot=styled("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,_e[et.variant],_e[`color${capitalize$1(et.color)}`]]}})(({ownerState:$,theme:_e})=>_extends$1({display:"inline-block"},$.variant==="determinate"&&{transition:_e.transitions.create("transform")},$.color!=="inherit"&&{color:(_e.vars||_e).palette[$.color].main}),({ownerState:$})=>$.variant==="indeterminate"&&css(_t3||(_t3=_$1` + animation: ${0} 1.4s linear infinite; + `),circularRotateKeyframe)),CircularProgressSVG=styled("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:($,_e)=>_e.svg})({display:"block"}),CircularProgressCircle=styled("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.circle,_e[`circle${capitalize$1(et.variant)}`],et.disableShrink&&_e.circleDisableShrink]}})(({ownerState:$,theme:_e})=>_extends$1({stroke:"currentColor"},$.variant==="determinate"&&{transition:_e.transitions.create("stroke-dashoffset")},$.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:$})=>$.variant==="indeterminate"&&!$.disableShrink&&css(_t4||(_t4=_$1` + animation: ${0} 1.4s ease-in-out infinite; + `),circularDashKeyframe)),CircularProgress=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiCircularProgress"}),{className:nt,color:rt="primary",disableShrink:ot=!1,size:it=40,style:st,thickness:at=3.6,value:lt=0,variant:ht="indeterminate"}=tt,pt=_objectWithoutPropertiesLoose(tt,_excluded$A),gt=_extends$1({},tt,{color:rt,disableShrink:ot,size:it,thickness:at,value:lt,variant:ht}),ft=useUtilityClasses$w(gt),dt={},mt={},ct={};if(ht==="determinate"){const ut=2*Math.PI*((SIZE-at)/2);dt.strokeDasharray=ut.toFixed(3),ct["aria-valuenow"]=Math.round(lt),dt.strokeDashoffset=`${((100-lt)/100*ut).toFixed(3)}px`,mt.transform="rotate(-90deg)"}return jsxRuntimeExports.jsx(CircularProgressRoot,_extends$1({className:clsx(ft.root,nt),style:_extends$1({width:it,height:it},mt,st),ownerState:gt,ref:et,role:"progressbar"},ct,pt,{children:jsxRuntimeExports.jsx(CircularProgressSVG,{className:ft.svg,ownerState:gt,viewBox:`${SIZE/2} ${SIZE/2} ${SIZE} ${SIZE}`,children:jsxRuntimeExports.jsx(CircularProgressCircle,{className:ft.circle,style:dt,ownerState:gt,cx:SIZE,cy:SIZE,r:(SIZE-at)/2,fill:"none",strokeWidth:at})})}))});function isOverflowing($){const _e=ownerDocument($);return _e.body===$?ownerWindow($).innerWidth>_e.documentElement.clientWidth:$.scrollHeight>$.clientHeight}function ariaHidden($,_e){_e?$.setAttribute("aria-hidden","true"):$.removeAttribute("aria-hidden")}function getPaddingRight($){return parseInt(ownerWindow($).getComputedStyle($).paddingRight,10)||0}function isAriaHiddenForbiddenOnElement($){const et=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf($.tagName)!==-1,tt=$.tagName==="INPUT"&&$.getAttribute("type")==="hidden";return et||tt}function ariaHiddenSiblings($,_e,et,tt,nt){const rt=[_e,et,...tt];[].forEach.call($.children,ot=>{const it=rt.indexOf(ot)===-1,st=!isAriaHiddenForbiddenOnElement(ot);it&&st&&ariaHidden(ot,nt)})}function findIndexOf($,_e){let et=-1;return $.some((tt,nt)=>_e(tt)?(et=nt,!0):!1),et}function handleContainer($,_e){const et=[],tt=$.container;if(!_e.disableScrollLock){if(isOverflowing(tt)){const ot=getScrollbarSize(ownerDocument(tt));et.push({value:tt.style.paddingRight,property:"padding-right",el:tt}),tt.style.paddingRight=`${getPaddingRight(tt)+ot}px`;const it=ownerDocument(tt).querySelectorAll(".mui-fixed");[].forEach.call(it,st=>{et.push({value:st.style.paddingRight,property:"padding-right",el:st}),st.style.paddingRight=`${getPaddingRight(st)+ot}px`})}let rt;if(tt.parentNode instanceof DocumentFragment)rt=ownerDocument(tt).body;else{const ot=tt.parentElement,it=ownerWindow(tt);rt=(ot==null?void 0:ot.nodeName)==="HTML"&&it.getComputedStyle(ot).overflowY==="scroll"?ot:tt}et.push({value:rt.style.overflow,property:"overflow",el:rt},{value:rt.style.overflowX,property:"overflow-x",el:rt},{value:rt.style.overflowY,property:"overflow-y",el:rt}),rt.style.overflow="hidden"}return()=>{et.forEach(({value:rt,el:ot,property:it})=>{rt?ot.style.setProperty(it,rt):ot.style.removeProperty(it)})}}function getHiddenSiblings($){const _e=[];return[].forEach.call($.children,et=>{et.getAttribute("aria-hidden")==="true"&&_e.push(et)}),_e}class ModalManager{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(_e,et){let tt=this.modals.indexOf(_e);if(tt!==-1)return tt;tt=this.modals.length,this.modals.push(_e),_e.modalRef&&ariaHidden(_e.modalRef,!1);const nt=getHiddenSiblings(et);ariaHiddenSiblings(et,_e.mount,_e.modalRef,nt,!0);const rt=findIndexOf(this.containers,ot=>ot.container===et);return rt!==-1?(this.containers[rt].modals.push(_e),tt):(this.containers.push({modals:[_e],container:et,restore:null,hiddenSiblings:nt}),tt)}mount(_e,et){const tt=findIndexOf(this.containers,rt=>rt.modals.indexOf(_e)!==-1),nt=this.containers[tt];nt.restore||(nt.restore=handleContainer(nt,et))}remove(_e,et=!0){const tt=this.modals.indexOf(_e);if(tt===-1)return tt;const nt=findIndexOf(this.containers,ot=>ot.modals.indexOf(_e)!==-1),rt=this.containers[nt];if(rt.modals.splice(rt.modals.indexOf(_e),1),this.modals.splice(tt,1),rt.modals.length===0)rt.restore&&rt.restore(),_e.modalRef&&ariaHidden(_e.modalRef,et),ariaHiddenSiblings(rt.container,_e.mount,_e.modalRef,rt.hiddenSiblings,!1),this.containers.splice(nt,1);else{const ot=rt.modals[rt.modals.length-1];ot.modalRef&&ariaHidden(ot.modalRef,!1)}return tt}isTopModal(_e){return this.modals.length>0&&this.modals[this.modals.length-1]===_e}}const candidatesSelector=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function getTabIndex($){const _e=parseInt($.getAttribute("tabindex")||"",10);return Number.isNaN(_e)?$.contentEditable==="true"||($.nodeName==="AUDIO"||$.nodeName==="VIDEO"||$.nodeName==="DETAILS")&&$.getAttribute("tabindex")===null?0:$.tabIndex:_e}function isNonTabbableRadio($){if($.tagName!=="INPUT"||$.type!=="radio"||!$.name)return!1;const _e=tt=>$.ownerDocument.querySelector(`input[type="radio"]${tt}`);let et=_e(`[name="${$.name}"]:checked`);return et||(et=_e(`[name="${$.name}"]`)),et!==$}function isNodeMatchingSelectorFocusable($){return!($.disabled||$.tagName==="INPUT"&&$.type==="hidden"||isNonTabbableRadio($))}function defaultGetTabbable($){const _e=[],et=[];return Array.from($.querySelectorAll(candidatesSelector)).forEach((tt,nt)=>{const rt=getTabIndex(tt);rt===-1||!isNodeMatchingSelectorFocusable(tt)||(rt===0?_e.push(tt):et.push({documentOrder:nt,tabIndex:rt,node:tt}))}),et.sort((tt,nt)=>tt.tabIndex===nt.tabIndex?tt.documentOrder-nt.documentOrder:tt.tabIndex-nt.tabIndex).map(tt=>tt.node).concat(_e)}function defaultIsEnabled(){return!0}function FocusTrap($){const{children:_e,disableAutoFocus:et=!1,disableEnforceFocus:tt=!1,disableRestoreFocus:nt=!1,getTabbable:rt=defaultGetTabbable,isEnabled:ot=defaultIsEnabled,open:it}=$,st=reactExports.useRef(!1),at=reactExports.useRef(null),lt=reactExports.useRef(null),ht=reactExports.useRef(null),pt=reactExports.useRef(null),gt=reactExports.useRef(!1),ft=reactExports.useRef(null),dt=useForkRef(_e.ref,ft),mt=reactExports.useRef(null);reactExports.useEffect(()=>{!it||!ft.current||(gt.current=!et)},[et,it]),reactExports.useEffect(()=>{if(!it||!ft.current)return;const vt=ownerDocument(ft.current);return ft.current.contains(vt.activeElement)||(ft.current.hasAttribute("tabIndex")||ft.current.setAttribute("tabIndex","-1"),gt.current&&ft.current.focus()),()=>{nt||(ht.current&&ht.current.focus&&(st.current=!0,ht.current.focus()),ht.current=null)}},[it]),reactExports.useEffect(()=>{if(!it||!ft.current)return;const vt=ownerDocument(ft.current),bt=xt=>{mt.current=xt,!(tt||!ot()||xt.key!=="Tab")&&vt.activeElement===ft.current&&xt.shiftKey&&(st.current=!0,lt.current&<.current.focus())},yt=()=>{const xt=ft.current;if(xt===null)return;if(!vt.hasFocus()||!ot()||st.current){st.current=!1;return}if(xt.contains(vt.activeElement)||tt&&vt.activeElement!==at.current&&vt.activeElement!==lt.current)return;if(vt.activeElement!==pt.current)pt.current=null;else if(pt.current!==null)return;if(!gt.current)return;let St=[];if((vt.activeElement===at.current||vt.activeElement===lt.current)&&(St=rt(ft.current)),St.length>0){var kt,At;const $t=!!((kt=mt.current)!=null&&kt.shiftKey&&((At=mt.current)==null?void 0:At.key)==="Tab"),Tt=St[0],jt=St[St.length-1];typeof Tt!="string"&&typeof jt!="string"&&($t?jt.focus():Tt.focus())}else xt.focus()};vt.addEventListener("focusin",yt),vt.addEventListener("keydown",bt,!0);const Et=setInterval(()=>{vt.activeElement&&vt.activeElement.tagName==="BODY"&&yt()},50);return()=>{clearInterval(Et),vt.removeEventListener("focusin",yt),vt.removeEventListener("keydown",bt,!0)}},[et,tt,nt,ot,it,rt]);const ct=vt=>{ht.current===null&&(ht.current=vt.relatedTarget),gt.current=!0,pt.current=vt.target;const bt=_e.props.onFocus;bt&&bt(vt)},ut=vt=>{ht.current===null&&(ht.current=vt.relatedTarget),gt.current=!0};return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{tabIndex:it?0:-1,onFocus:ut,ref:at,"data-testid":"sentinelStart"}),reactExports.cloneElement(_e,{ref:dt,onFocus:ct}),jsxRuntimeExports.jsx("div",{tabIndex:it?0:-1,onFocus:ut,ref:lt,"data-testid":"sentinelEnd"})]})}function getContainer($){return typeof $=="function"?$():$}function getHasTransition($){return $?$.props.hasOwnProperty("in"):!1}const defaultManager=new ModalManager;function useModal($){const{container:_e,disableEscapeKeyDown:et=!1,disableScrollLock:tt=!1,manager:nt=defaultManager,closeAfterTransition:rt=!1,onTransitionEnter:ot,onTransitionExited:it,children:st,onClose:at,open:lt,rootRef:ht}=$,pt=reactExports.useRef({}),gt=reactExports.useRef(null),ft=reactExports.useRef(null),dt=useForkRef(ft,ht),[mt,ct]=reactExports.useState(!lt),ut=getHasTransition(st);let vt=!0;($["aria-hidden"]==="false"||$["aria-hidden"]===!1)&&(vt=!1);const bt=()=>ownerDocument(gt.current),yt=()=>(pt.current.modalRef=ft.current,pt.current.mount=gt.current,pt.current),Et=()=>{nt.mount(yt(),{disableScrollLock:tt}),ft.current&&(ft.current.scrollTop=0)},xt=useEventCallback(()=>{const Kt=getContainer(_e)||bt().body;nt.add(yt(),Kt),ft.current&&Et()}),St=reactExports.useCallback(()=>nt.isTopModal(yt()),[nt]),kt=useEventCallback(Kt=>{gt.current=Kt,Kt&&(lt&&St()?Et():ft.current&&ariaHidden(ft.current,vt))}),At=reactExports.useCallback(()=>{nt.remove(yt(),vt)},[vt,nt]);reactExports.useEffect(()=>()=>{At()},[At]),reactExports.useEffect(()=>{lt?xt():(!ut||!rt)&&At()},[lt,At,ut,rt,xt]);const $t=Kt=>Vt=>{var Wt;(Wt=Kt.onKeyDown)==null||Wt.call(Kt,Vt),!(Vt.key!=="Escape"||Vt.which===229||!St())&&(et||(Vt.stopPropagation(),at&&at(Vt,"escapeKeyDown")))},Tt=Kt=>Vt=>{var Wt;(Wt=Kt.onClick)==null||Wt.call(Kt,Vt),Vt.target===Vt.currentTarget&&at&&at(Vt,"backdropClick")};return{getRootProps:(Kt={})=>{const Vt=extractEventHandlers($);delete Vt.onTransitionEnter,delete Vt.onTransitionExited;const Wt=_extends$1({},Vt,Kt);return _extends$1({role:"presentation"},Wt,{onKeyDown:$t(Wt),ref:dt})},getBackdropProps:(Kt={})=>{const Vt=Kt;return _extends$1({"aria-hidden":!0},Vt,{onClick:Tt(Vt),open:lt})},getTransitionProps:()=>{const Kt=()=>{ct(!1),ot&&ot()},Vt=()=>{ct(!0),it&&it(),rt&&At()};return{onEnter:createChainedFunction(Kt,st==null?void 0:st.props.onEnter),onExited:createChainedFunction(Vt,st==null?void 0:st.props.onExited)}},rootRef:dt,portalRef:kt,isTopModal:St,exited:mt,hasTransition:ut}}function getModalUtilityClass($){return generateUtilityClass("MuiModal",$)}generateUtilityClasses("MuiModal",["root","hidden","backdrop"]);const _excluded$z=["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"],useUtilityClasses$v=$=>{const{open:_e,exited:et,classes:tt}=$;return composeClasses({root:["root",!_e&&et&&"hidden"],backdrop:["backdrop"]},getModalUtilityClass,tt)},ModalRoot=styled("div",{name:"MuiModal",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,!et.open&&et.exited&&_e.hidden]}})(({theme:$,ownerState:_e})=>_extends$1({position:"fixed",zIndex:($.vars||$).zIndex.modal,right:0,bottom:0,top:0,left:0},!_e.open&&_e.exited&&{visibility:"hidden"})),ModalBackdrop=styled(Backdrop,{name:"MuiModal",slot:"Backdrop",overridesResolver:($,_e)=>_e.backdrop})({zIndex:-1}),Modal=reactExports.forwardRef(function(_e,et){var tt,nt,rt,ot,it,st;const at=useDefaultProps({name:"MuiModal",props:_e}),{BackdropComponent:lt=ModalBackdrop,BackdropProps:ht,className:pt,closeAfterTransition:gt=!1,children:ft,container:dt,component:mt,components:ct={},componentsProps:ut={},disableAutoFocus:vt=!1,disableEnforceFocus:bt=!1,disableEscapeKeyDown:yt=!1,disablePortal:Et=!1,disableRestoreFocus:xt=!1,disableScrollLock:St=!1,hideBackdrop:kt=!1,keepMounted:At=!1,onBackdropClick:$t,open:Tt,slotProps:jt,slots:Gt}=at,Bt=_objectWithoutPropertiesLoose(at,_excluded$z),Kt=_extends$1({},at,{closeAfterTransition:gt,disableAutoFocus:vt,disableEnforceFocus:bt,disableEscapeKeyDown:yt,disablePortal:Et,disableRestoreFocus:xt,disableScrollLock:St,hideBackdrop:kt,keepMounted:At}),{getRootProps:Vt,getBackdropProps:Wt,getTransitionProps:It,portalRef:Ft,isTopModal:Yt,exited:Dt,hasTransition:Rt}=useModal(_extends$1({},Kt,{rootRef:et})),wt=_extends$1({},Kt,{exited:Dt}),Mt=useUtilityClasses$v(wt),Ot={};if(ft.props.tabIndex===void 0&&(Ot.tabIndex="-1"),Rt){const{onEnter:yn,onExited:$n}=It();Ot.onEnter=yn,Ot.onExited=$n}const zt=(tt=(nt=Gt==null?void 0:Gt.root)!=null?nt:ct.Root)!=null?tt:ModalRoot,Ht=(rt=(ot=Gt==null?void 0:Gt.backdrop)!=null?ot:ct.Backdrop)!=null?rt:lt,Jt=(it=jt==null?void 0:jt.root)!=null?it:ut.root,pn=(st=jt==null?void 0:jt.backdrop)!=null?st:ut.backdrop,gn=useSlotProps({elementType:zt,externalSlotProps:Jt,externalForwardedProps:Bt,getSlotProps:Vt,additionalProps:{ref:et,as:mt},ownerState:wt,className:clsx(pt,Jt==null?void 0:Jt.className,Mt==null?void 0:Mt.root,!wt.open&&wt.exited&&(Mt==null?void 0:Mt.hidden))}),bn=useSlotProps({elementType:Ht,externalSlotProps:pn,additionalProps:ht,getSlotProps:yn=>Wt(_extends$1({},yn,{onClick:$n=>{$t&&$t($n),yn!=null&&yn.onClick&&yn.onClick($n)}})),className:clsx(pn==null?void 0:pn.className,ht==null?void 0:ht.className,Mt==null?void 0:Mt.backdrop),ownerState:wt});return!At&&!Tt&&(!Rt||Dt)?null:jsxRuntimeExports.jsx(Portal,{ref:Ft,container:dt,disablePortal:Et,children:jsxRuntimeExports.jsxs(zt,_extends$1({},gn,{children:[!kt&<?jsxRuntimeExports.jsx(Ht,_extends$1({},bn)):null,jsxRuntimeExports.jsx(FocusTrap,{disableEnforceFocus:bt,disableAutoFocus:vt,disableRestoreFocus:xt,isEnabled:Yt,open:Tt,children:reactExports.cloneElement(ft,Ot)})]}))})});function getDialogUtilityClass($){return generateUtilityClass("MuiDialog",$)}const dialogClasses=generateUtilityClasses("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),DialogContext=reactExports.createContext({}),_excluded$y=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],DialogBackdrop=styled(Backdrop,{name:"MuiDialog",slot:"Backdrop",overrides:($,_e)=>_e.backdrop})({zIndex:-1}),useUtilityClasses$u=$=>{const{classes:_e,scroll:et,maxWidth:tt,fullWidth:nt,fullScreen:rt}=$,ot={root:["root"],container:["container",`scroll${capitalize$1(et)}`],paper:["paper",`paperScroll${capitalize$1(et)}`,`paperWidth${capitalize$1(String(tt))}`,nt&&"paperFullWidth",rt&&"paperFullScreen"]};return composeClasses(ot,getDialogUtilityClass,_e)},DialogRoot=styled(Modal,{name:"MuiDialog",slot:"Root",overridesResolver:($,_e)=>_e.root})({"@media print":{position:"absolute !important"}}),DialogContainer=styled("div",{name:"MuiDialog",slot:"Container",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.container,_e[`scroll${capitalize$1(et.scroll)}`]]}})(({ownerState:$})=>_extends$1({height:"100%","@media print":{height:"auto"},outline:0},$.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},$.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),DialogPaper=styled(Paper,{name:"MuiDialog",slot:"Paper",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.paper,_e[`scrollPaper${capitalize$1(et.scroll)}`],_e[`paperWidth${capitalize$1(String(et.maxWidth))}`],et.fullWidth&&_e.paperFullWidth,et.fullScreen&&_e.paperFullScreen]}})(({theme:$,ownerState:_e})=>_extends$1({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},_e.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},_e.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!_e.maxWidth&&{maxWidth:"calc(100% - 64px)"},_e.maxWidth==="xs"&&{maxWidth:$.breakpoints.unit==="px"?Math.max($.breakpoints.values.xs,444):`max(${$.breakpoints.values.xs}${$.breakpoints.unit}, 444px)`,[`&.${dialogClasses.paperScrollBody}`]:{[$.breakpoints.down(Math.max($.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},_e.maxWidth&&_e.maxWidth!=="xs"&&{maxWidth:`${$.breakpoints.values[_e.maxWidth]}${$.breakpoints.unit}`,[`&.${dialogClasses.paperScrollBody}`]:{[$.breakpoints.down($.breakpoints.values[_e.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},_e.fullWidth&&{width:"calc(100% - 64px)"},_e.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${dialogClasses.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Dialog=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiDialog"}),nt=useTheme(),rt={enter:nt.transitions.duration.enteringScreen,exit:nt.transitions.duration.leavingScreen},{"aria-describedby":ot,"aria-labelledby":it,BackdropComponent:st,BackdropProps:at,children:lt,className:ht,disableEscapeKeyDown:pt=!1,fullScreen:gt=!1,fullWidth:ft=!1,maxWidth:dt="sm",onBackdropClick:mt,onClick:ct,onClose:ut,open:vt,PaperComponent:bt=Paper,PaperProps:yt={},scroll:Et="paper",TransitionComponent:xt=Fade,transitionDuration:St=rt,TransitionProps:kt}=tt,At=_objectWithoutPropertiesLoose(tt,_excluded$y),$t=_extends$1({},tt,{disableEscapeKeyDown:pt,fullScreen:gt,fullWidth:ft,maxWidth:dt,scroll:Et}),Tt=useUtilityClasses$u($t),jt=reactExports.useRef(),Gt=Wt=>{jt.current=Wt.target===Wt.currentTarget},Bt=Wt=>{ct&&ct(Wt),jt.current&&(jt.current=null,mt&&mt(Wt),ut&&ut(Wt,"backdropClick"))},Kt=useId(it),Vt=reactExports.useMemo(()=>({titleId:Kt}),[Kt]);return jsxRuntimeExports.jsx(DialogRoot,_extends$1({className:clsx(Tt.root,ht),closeAfterTransition:!0,components:{Backdrop:DialogBackdrop},componentsProps:{backdrop:_extends$1({transitionDuration:St,as:st},at)},disableEscapeKeyDown:pt,onClose:ut,open:vt,ref:et,onClick:Bt,ownerState:$t},At,{children:jsxRuntimeExports.jsx(xt,_extends$1({appear:!0,in:vt,timeout:St,role:"presentation"},kt,{children:jsxRuntimeExports.jsx(DialogContainer,{className:clsx(Tt.container),onMouseDown:Gt,ownerState:$t,children:jsxRuntimeExports.jsx(DialogPaper,_extends$1({as:bt,elevation:24,role:"dialog","aria-describedby":ot,"aria-labelledby":Kt},yt,{className:clsx(Tt.paper,yt.className),ownerState:$t,children:jsxRuntimeExports.jsx(DialogContext.Provider,{value:Vt,children:lt})}))})}))}))});function getDialogActionsUtilityClass($){return generateUtilityClass("MuiDialogActions",$)}generateUtilityClasses("MuiDialogActions",["root","spacing"]);const _excluded$x=["className","disableSpacing"],useUtilityClasses$t=$=>{const{classes:_e,disableSpacing:et}=$;return composeClasses({root:["root",!et&&"spacing"]},getDialogActionsUtilityClass,_e)},DialogActionsRoot=styled("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,!et.disableSpacing&&_e.spacing]}})(({ownerState:$})=>_extends$1({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!$.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),DialogActions=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiDialogActions"}),{className:nt,disableSpacing:rt=!1}=tt,ot=_objectWithoutPropertiesLoose(tt,_excluded$x),it=_extends$1({},tt,{disableSpacing:rt}),st=useUtilityClasses$t(it);return jsxRuntimeExports.jsx(DialogActionsRoot,_extends$1({className:clsx(st.root,nt),ownerState:it,ref:et},ot))});function getDialogContentUtilityClass($){return generateUtilityClass("MuiDialogContent",$)}generateUtilityClasses("MuiDialogContent",["root","dividers"]);function getDialogTitleUtilityClass($){return generateUtilityClass("MuiDialogTitle",$)}const dialogTitleClasses=generateUtilityClasses("MuiDialogTitle",["root"]),_excluded$w=["className","dividers"],useUtilityClasses$s=$=>{const{classes:_e,dividers:et}=$;return composeClasses({root:["root",et&&"dividers"]},getDialogContentUtilityClass,_e)},DialogContentRoot=styled("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,et.dividers&&_e.dividers]}})(({theme:$,ownerState:_e})=>_extends$1({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},_e.dividers?{padding:"16px 24px",borderTop:`1px solid ${($.vars||$).palette.divider}`,borderBottom:`1px solid ${($.vars||$).palette.divider}`}:{[`.${dialogTitleClasses.root} + &`]:{paddingTop:0}})),DialogContent=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiDialogContent"}),{className:nt,dividers:rt=!1}=tt,ot=_objectWithoutPropertiesLoose(tt,_excluded$w),it=_extends$1({},tt,{dividers:rt}),st=useUtilityClasses$s(it);return jsxRuntimeExports.jsx(DialogContentRoot,_extends$1({className:clsx(st.root,nt),ownerState:it,ref:et},ot))}),_excluded$v=["className","id"],useUtilityClasses$r=$=>{const{classes:_e}=$;return composeClasses({root:["root"]},getDialogTitleUtilityClass,_e)},DialogTitleRoot=styled(Typography,{name:"MuiDialogTitle",slot:"Root",overridesResolver:($,_e)=>_e.root})({padding:"16px 24px",flex:"0 0 auto"}),DialogTitle=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiDialogTitle"}),{className:nt,id:rt}=tt,ot=_objectWithoutPropertiesLoose(tt,_excluded$v),it=tt,st=useUtilityClasses$r(it),{titleId:at=rt}=reactExports.useContext(DialogContext);return jsxRuntimeExports.jsx(DialogTitleRoot,_extends$1({component:"h2",className:clsx(st.root,nt),ownerState:it,ref:et,variant:"h6",id:rt??at},ot))});function getDividerUtilityClass($){return generateUtilityClass("MuiDivider",$)}const dividerClasses=generateUtilityClasses("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),_excluded$u=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],useUtilityClasses$q=$=>{const{absolute:_e,children:et,classes:tt,flexItem:nt,light:rt,orientation:ot,textAlign:it,variant:st}=$;return composeClasses({root:["root",_e&&"absolute",st,rt&&"light",ot==="vertical"&&"vertical",nt&&"flexItem",et&&"withChildren",et&&ot==="vertical"&&"withChildrenVertical",it==="right"&&ot!=="vertical"&&"textAlignRight",it==="left"&&ot!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",ot==="vertical"&&"wrapperVertical"]},getDividerUtilityClass,tt)},DividerRoot=styled("div",{name:"MuiDivider",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,et.absolute&&_e.absolute,_e[et.variant],et.light&&_e.light,et.orientation==="vertical"&&_e.vertical,et.flexItem&&_e.flexItem,et.children&&_e.withChildren,et.children&&et.orientation==="vertical"&&_e.withChildrenVertical,et.textAlign==="right"&&et.orientation!=="vertical"&&_e.textAlignRight,et.textAlign==="left"&&et.orientation!=="vertical"&&_e.textAlignLeft]}})(({theme:$,ownerState:_e})=>_extends$1({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:($.vars||$).palette.divider,borderBottomWidth:"thin"},_e.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},_e.light&&{borderColor:$.vars?`rgba(${$.vars.palette.dividerChannel} / 0.08)`:alpha_1($.palette.divider,.08)},_e.variant==="inset"&&{marginLeft:72},_e.variant==="middle"&&_e.orientation==="horizontal"&&{marginLeft:$.spacing(2),marginRight:$.spacing(2)},_e.variant==="middle"&&_e.orientation==="vertical"&&{marginTop:$.spacing(1),marginBottom:$.spacing(1)},_e.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},_e.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:$})=>_extends$1({},$.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:$,ownerState:_e})=>_extends$1({},_e.children&&_e.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${($.vars||$).palette.divider}`,borderTopStyle:"inherit"}}),({theme:$,ownerState:_e})=>_extends$1({},_e.children&&_e.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${($.vars||$).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:$})=>_extends$1({},$.textAlign==="right"&&$.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},$.textAlign==="left"&&$.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),DividerWrapper=styled("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.wrapper,et.orientation==="vertical"&&_e.wrapperVertical]}})(({theme:$,ownerState:_e})=>_extends$1({display:"inline-block",paddingLeft:`calc(${$.spacing(1)} * 1.2)`,paddingRight:`calc(${$.spacing(1)} * 1.2)`},_e.orientation==="vertical"&&{paddingTop:`calc(${$.spacing(1)} * 1.2)`,paddingBottom:`calc(${$.spacing(1)} * 1.2)`})),Divider=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiDivider"}),{absolute:nt=!1,children:rt,className:ot,component:it=rt?"div":"hr",flexItem:st=!1,light:at=!1,orientation:lt="horizontal",role:ht=it!=="hr"?"separator":void 0,textAlign:pt="center",variant:gt="fullWidth"}=tt,ft=_objectWithoutPropertiesLoose(tt,_excluded$u),dt=_extends$1({},tt,{absolute:nt,component:it,flexItem:st,light:at,orientation:lt,role:ht,textAlign:pt,variant:gt}),mt=useUtilityClasses$q(dt);return jsxRuntimeExports.jsx(DividerRoot,_extends$1({as:it,className:clsx(mt.root,ot),role:ht,ref:et,ownerState:dt},ft,{children:rt?jsxRuntimeExports.jsx(DividerWrapper,{className:mt.wrapper,ownerState:dt,children:rt}):null}))});Divider.muiSkipListHighlight=!0;const _excluded$t=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],useUtilityClasses$p=$=>{const{classes:_e,disableUnderline:et}=$,nt=composeClasses({root:["root",!et&&"underline"],input:["input"]},getFilledInputUtilityClass,_e);return _extends$1({},_e,nt)},FilledInputRoot=styled(InputBaseRoot,{shouldForwardProp:$=>rootShouldForwardProp($)||$==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[...rootOverridesResolver($,_e),!et.disableUnderline&&_e.underline]}})(({theme:$,ownerState:_e})=>{var et;const tt=$.palette.mode==="light",nt=tt?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",rt=tt?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",ot=tt?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",it=tt?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return _extends$1({position:"relative",backgroundColor:$.vars?$.vars.palette.FilledInput.bg:rt,borderTopLeftRadius:($.vars||$).shape.borderRadius,borderTopRightRadius:($.vars||$).shape.borderRadius,transition:$.transitions.create("background-color",{duration:$.transitions.duration.shorter,easing:$.transitions.easing.easeOut}),"&:hover":{backgroundColor:$.vars?$.vars.palette.FilledInput.hoverBg:ot,"@media (hover: none)":{backgroundColor:$.vars?$.vars.palette.FilledInput.bg:rt}},[`&.${filledInputClasses.focused}`]:{backgroundColor:$.vars?$.vars.palette.FilledInput.bg:rt},[`&.${filledInputClasses.disabled}`]:{backgroundColor:$.vars?$.vars.palette.FilledInput.disabledBg:it}},!_e.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(et=($.vars||$).palette[_e.color||"primary"])==null?void 0:et.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:$.transitions.create("transform",{duration:$.transitions.duration.shorter,easing:$.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${filledInputClasses.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${filledInputClasses.error}`]:{"&::before, &::after":{borderBottomColor:($.vars||$).palette.error.main}},"&::before":{borderBottom:`1px solid ${$.vars?`rgba(${$.vars.palette.common.onBackgroundChannel} / ${$.vars.opacity.inputUnderline})`:nt}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:$.transitions.create("border-bottom-color",{duration:$.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${filledInputClasses.disabled}, .${filledInputClasses.error}):before`]:{borderBottom:`1px solid ${($.vars||$).palette.text.primary}`},[`&.${filledInputClasses.disabled}:before`]:{borderBottomStyle:"dotted"}},_e.startAdornment&&{paddingLeft:12},_e.endAdornment&&{paddingRight:12},_e.multiline&&_extends$1({padding:"25px 12px 8px"},_e.size==="small"&&{paddingTop:21,paddingBottom:4},_e.hiddenLabel&&{paddingTop:16,paddingBottom:17},_e.hiddenLabel&&_e.size==="small"&&{paddingTop:8,paddingBottom:9}))}),FilledInputInput=styled(InputBaseComponent,{name:"MuiFilledInput",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:$,ownerState:_e})=>_extends$1({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!$.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:$.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:$.palette.mode==="light"?null:"#fff",caretColor:$.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},$.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[$.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},_e.size==="small"&&{paddingTop:21,paddingBottom:4},_e.hiddenLabel&&{paddingTop:16,paddingBottom:17},_e.startAdornment&&{paddingLeft:0},_e.endAdornment&&{paddingRight:0},_e.hiddenLabel&&_e.size==="small"&&{paddingTop:8,paddingBottom:9},_e.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),FilledInput=reactExports.forwardRef(function(_e,et){var tt,nt,rt,ot;const it=useDefaultProps({props:_e,name:"MuiFilledInput"}),{components:st={},componentsProps:at,fullWidth:lt=!1,inputComponent:ht="input",multiline:pt=!1,slotProps:gt,slots:ft={},type:dt="text"}=it,mt=_objectWithoutPropertiesLoose(it,_excluded$t),ct=_extends$1({},it,{fullWidth:lt,inputComponent:ht,multiline:pt,type:dt}),ut=useUtilityClasses$p(it),vt={root:{ownerState:ct},input:{ownerState:ct}},bt=gt??at?deepmerge$1(vt,gt??at):vt,yt=(tt=(nt=ft.root)!=null?nt:st.Root)!=null?tt:FilledInputRoot,Et=(rt=(ot=ft.input)!=null?ot:st.Input)!=null?rt:FilledInputInput;return jsxRuntimeExports.jsx(InputBase,_extends$1({slots:{root:yt,input:Et},componentsProps:bt,fullWidth:lt,inputComponent:ht,multiline:pt,ref:et,type:dt},mt,{classes:ut}))});FilledInput.muiName="Input";function getFormControlUtilityClasses($){return generateUtilityClass("MuiFormControl",$)}generateUtilityClasses("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const _excluded$s=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],useUtilityClasses$o=$=>{const{classes:_e,margin:et,fullWidth:tt}=$,nt={root:["root",et!=="none"&&`margin${capitalize$1(et)}`,tt&&"fullWidth"]};return composeClasses(nt,getFormControlUtilityClasses,_e)},FormControlRoot=styled("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:$},_e)=>_extends$1({},_e.root,_e[`margin${capitalize$1($.margin)}`],$.fullWidth&&_e.fullWidth)})(({ownerState:$})=>_extends$1({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},$.margin==="normal"&&{marginTop:16,marginBottom:8},$.margin==="dense"&&{marginTop:8,marginBottom:4},$.fullWidth&&{width:"100%"})),FormControl=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiFormControl"}),{children:nt,className:rt,color:ot="primary",component:it="div",disabled:st=!1,error:at=!1,focused:lt,fullWidth:ht=!1,hiddenLabel:pt=!1,margin:gt="none",required:ft=!1,size:dt="medium",variant:mt="outlined"}=tt,ct=_objectWithoutPropertiesLoose(tt,_excluded$s),ut=_extends$1({},tt,{color:ot,component:it,disabled:st,error:at,fullWidth:ht,hiddenLabel:pt,margin:gt,required:ft,size:dt,variant:mt}),vt=useUtilityClasses$o(ut),[bt,yt]=reactExports.useState(()=>{let jt=!1;return nt&&reactExports.Children.forEach(nt,Gt=>{if(!isMuiElement(Gt,["Input","Select"]))return;const Bt=isMuiElement(Gt,["Select"])?Gt.props.input:Gt;Bt&&isAdornedStart(Bt.props)&&(jt=!0)}),jt}),[Et,xt]=reactExports.useState(()=>{let jt=!1;return nt&&reactExports.Children.forEach(nt,Gt=>{isMuiElement(Gt,["Input","Select"])&&(isFilled(Gt.props,!0)||isFilled(Gt.props.inputProps,!0))&&(jt=!0)}),jt}),[St,kt]=reactExports.useState(!1);st&&St&&kt(!1);const At=lt!==void 0&&!st?lt:St;let $t;const Tt=reactExports.useMemo(()=>({adornedStart:bt,setAdornedStart:yt,color:ot,disabled:st,error:at,filled:Et,focused:At,fullWidth:ht,hiddenLabel:pt,size:dt,onBlur:()=>{kt(!1)},onEmpty:()=>{xt(!1)},onFilled:()=>{xt(!0)},onFocus:()=>{kt(!0)},registerEffect:$t,required:ft,variant:mt}),[bt,ot,st,at,Et,At,ht,pt,$t,ft,dt,mt]);return jsxRuntimeExports.jsx(FormControlContext.Provider,{value:Tt,children:jsxRuntimeExports.jsx(FormControlRoot,_extends$1({as:it,ownerState:ut,className:clsx(vt.root,rt),ref:et},ct,{children:nt}))})});function getFormHelperTextUtilityClasses($){return generateUtilityClass("MuiFormHelperText",$)}const formHelperTextClasses=generateUtilityClasses("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var _span$3;const _excluded$r=["children","className","component","disabled","error","filled","focused","margin","required","variant"],useUtilityClasses$n=$=>{const{classes:_e,contained:et,size:tt,disabled:nt,error:rt,filled:ot,focused:it,required:st}=$,at={root:["root",nt&&"disabled",rt&&"error",tt&&`size${capitalize$1(tt)}`,et&&"contained",it&&"focused",ot&&"filled",st&&"required"]};return composeClasses(at,getFormHelperTextUtilityClasses,_e)},FormHelperTextRoot=styled("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,et.size&&_e[`size${capitalize$1(et.size)}`],et.contained&&_e.contained,et.filled&&_e.filled]}})(({theme:$,ownerState:_e})=>_extends$1({color:($.vars||$).palette.text.secondary},$.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${formHelperTextClasses.disabled}`]:{color:($.vars||$).palette.text.disabled},[`&.${formHelperTextClasses.error}`]:{color:($.vars||$).palette.error.main}},_e.size==="small"&&{marginTop:4},_e.contained&&{marginLeft:14,marginRight:14})),FormHelperText=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiFormHelperText"}),{children:nt,className:rt,component:ot="p"}=tt,it=_objectWithoutPropertiesLoose(tt,_excluded$r),st=useFormControl(),at=formControlState({props:tt,muiFormControl:st,states:["variant","size","disabled","error","filled","focused","required"]}),lt=_extends$1({},tt,{component:ot,contained:at.variant==="filled"||at.variant==="outlined",variant:at.variant,size:at.size,disabled:at.disabled,error:at.error,filled:at.filled,focused:at.focused,required:at.required}),ht=useUtilityClasses$n(lt);return jsxRuntimeExports.jsx(FormHelperTextRoot,_extends$1({as:ot,ownerState:lt,className:clsx(ht.root,rt),ref:et},it,{children:nt===" "?_span$3||(_span$3=jsxRuntimeExports.jsx("span",{className:"notranslate",children:"​"})):nt}))});function getFormLabelUtilityClasses($){return generateUtilityClass("MuiFormLabel",$)}const formLabelClasses=generateUtilityClasses("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),_excluded$q=["children","className","color","component","disabled","error","filled","focused","required"],useUtilityClasses$m=$=>{const{classes:_e,color:et,focused:tt,disabled:nt,error:rt,filled:ot,required:it}=$,st={root:["root",`color${capitalize$1(et)}`,nt&&"disabled",rt&&"error",ot&&"filled",tt&&"focused",it&&"required"],asterisk:["asterisk",rt&&"error"]};return composeClasses(st,getFormLabelUtilityClasses,_e)},FormLabelRoot=styled("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:$},_e)=>_extends$1({},_e.root,$.color==="secondary"&&_e.colorSecondary,$.filled&&_e.filled)})(({theme:$,ownerState:_e})=>_extends$1({color:($.vars||$).palette.text.secondary},$.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${formLabelClasses.focused}`]:{color:($.vars||$).palette[_e.color].main},[`&.${formLabelClasses.disabled}`]:{color:($.vars||$).palette.text.disabled},[`&.${formLabelClasses.error}`]:{color:($.vars||$).palette.error.main}})),AsteriskComponent=styled("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:($,_e)=>_e.asterisk})(({theme:$})=>({[`&.${formLabelClasses.error}`]:{color:($.vars||$).palette.error.main}})),FormLabel=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiFormLabel"}),{children:nt,className:rt,component:ot="label"}=tt,it=_objectWithoutPropertiesLoose(tt,_excluded$q),st=useFormControl(),at=formControlState({props:tt,muiFormControl:st,states:["color","required","focused","disabled","error","filled"]}),lt=_extends$1({},tt,{color:at.color||"primary",component:ot,disabled:at.disabled,error:at.error,filled:at.filled,focused:at.focused,required:at.required}),ht=useUtilityClasses$m(lt);return jsxRuntimeExports.jsxs(FormLabelRoot,_extends$1({as:ot,ownerState:lt,className:clsx(ht.root,rt),ref:et},it,{children:[nt,at.required&&jsxRuntimeExports.jsxs(AsteriskComponent,{ownerState:lt,"aria-hidden":!0,className:ht.asterisk,children:[" ","*"]})]}))}),GridContext=reactExports.createContext();function getGridUtilityClass($){return generateUtilityClass("MuiGrid",$)}const SPACINGS=[0,1,2,3,4,5,6,7,8,9,10],DIRECTIONS=["column-reverse","column","row-reverse","row"],WRAPS=["nowrap","wrap-reverse","wrap"],GRID_SIZES=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],gridClasses=generateUtilityClasses("MuiGrid",["root","container","item","zeroMinWidth",...SPACINGS.map($=>`spacing-xs-${$}`),...DIRECTIONS.map($=>`direction-xs-${$}`),...WRAPS.map($=>`wrap-xs-${$}`),...GRID_SIZES.map($=>`grid-xs-${$}`),...GRID_SIZES.map($=>`grid-sm-${$}`),...GRID_SIZES.map($=>`grid-md-${$}`),...GRID_SIZES.map($=>`grid-lg-${$}`),...GRID_SIZES.map($=>`grid-xl-${$}`)]),_excluded$p=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function getOffset($){const _e=parseFloat($);return`${_e}${String($).replace(String(_e),"")||"px"}`}function generateGrid({theme:$,ownerState:_e}){let et;return $.breakpoints.keys.reduce((tt,nt)=>{let rt={};if(_e[nt]&&(et=_e[nt]),!et)return tt;if(et===!0)rt={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(et==="auto")rt={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const ot=resolveBreakpointValues({values:_e.columns,breakpoints:$.breakpoints.values}),it=typeof ot=="object"?ot[nt]:ot;if(it==null)return tt;const st=`${Math.round(et/it*1e8)/1e6}%`;let at={};if(_e.container&&_e.item&&_e.columnSpacing!==0){const lt=$.spacing(_e.columnSpacing);if(lt!=="0px"){const ht=`calc(${st} + ${getOffset(lt)})`;at={flexBasis:ht,maxWidth:ht}}}rt=_extends$1({flexBasis:st,flexGrow:0,maxWidth:st},at)}return $.breakpoints.values[nt]===0?Object.assign(tt,rt):tt[$.breakpoints.up(nt)]=rt,tt},{})}function generateDirection({theme:$,ownerState:_e}){const et=resolveBreakpointValues({values:_e.direction,breakpoints:$.breakpoints.values});return handleBreakpoints({theme:$},et,tt=>{const nt={flexDirection:tt};return tt.indexOf("column")===0&&(nt[`& > .${gridClasses.item}`]={maxWidth:"none"}),nt})}function extractZeroValueBreakpointKeys({breakpoints:$,values:_e}){let et="";Object.keys(_e).forEach(nt=>{et===""&&_e[nt]!==0&&(et=nt)});const tt=Object.keys($).sort((nt,rt)=>$[nt]-$[rt]);return tt.slice(0,tt.indexOf(et))}function generateRowGap({theme:$,ownerState:_e}){const{container:et,rowSpacing:tt}=_e;let nt={};if(et&&tt!==0){const rt=resolveBreakpointValues({values:tt,breakpoints:$.breakpoints.values});let ot;typeof rt=="object"&&(ot=extractZeroValueBreakpointKeys({breakpoints:$.breakpoints.values,values:rt})),nt=handleBreakpoints({theme:$},rt,(it,st)=>{var at;const lt=$.spacing(it);return lt!=="0px"?{marginTop:`-${getOffset(lt)}`,[`& > .${gridClasses.item}`]:{paddingTop:getOffset(lt)}}:(at=ot)!=null&&at.includes(st)?{}:{marginTop:0,[`& > .${gridClasses.item}`]:{paddingTop:0}}})}return nt}function generateColumnGap({theme:$,ownerState:_e}){const{container:et,columnSpacing:tt}=_e;let nt={};if(et&&tt!==0){const rt=resolveBreakpointValues({values:tt,breakpoints:$.breakpoints.values});let ot;typeof rt=="object"&&(ot=extractZeroValueBreakpointKeys({breakpoints:$.breakpoints.values,values:rt})),nt=handleBreakpoints({theme:$},rt,(it,st)=>{var at;const lt=$.spacing(it);return lt!=="0px"?{width:`calc(100% + ${getOffset(lt)})`,marginLeft:`-${getOffset(lt)}`,[`& > .${gridClasses.item}`]:{paddingLeft:getOffset(lt)}}:(at=ot)!=null&&at.includes(st)?{}:{width:"100%",marginLeft:0,[`& > .${gridClasses.item}`]:{paddingLeft:0}}})}return nt}function resolveSpacingStyles($,_e,et={}){if(!$||$<=0)return[];if(typeof $=="string"&&!Number.isNaN(Number($))||typeof $=="number")return[et[`spacing-xs-${String($)}`]];const tt=[];return _e.forEach(nt=>{const rt=$[nt];Number(rt)>0&&tt.push(et[`spacing-${nt}-${String(rt)}`])}),tt}const GridRoot=styled("div",{name:"MuiGrid",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$,{container:tt,direction:nt,item:rt,spacing:ot,wrap:it,zeroMinWidth:st,breakpoints:at}=et;let lt=[];tt&&(lt=resolveSpacingStyles(ot,at,_e));const ht=[];return at.forEach(pt=>{const gt=et[pt];gt&&ht.push(_e[`grid-${pt}-${String(gt)}`])}),[_e.root,tt&&_e.container,rt&&_e.item,st&&_e.zeroMinWidth,...lt,nt!=="row"&&_e[`direction-xs-${String(nt)}`],it!=="wrap"&&_e[`wrap-xs-${String(it)}`],...ht]}})(({ownerState:$})=>_extends$1({boxSizing:"border-box"},$.container&&{display:"flex",flexWrap:"wrap",width:"100%"},$.item&&{margin:0},$.zeroMinWidth&&{minWidth:0},$.wrap!=="wrap"&&{flexWrap:$.wrap}),generateDirection,generateRowGap,generateColumnGap,generateGrid);function resolveSpacingClasses($,_e){if(!$||$<=0)return[];if(typeof $=="string"&&!Number.isNaN(Number($))||typeof $=="number")return[`spacing-xs-${String($)}`];const et=[];return _e.forEach(tt=>{const nt=$[tt];if(Number(nt)>0){const rt=`spacing-${tt}-${String(nt)}`;et.push(rt)}}),et}const useUtilityClasses$l=$=>{const{classes:_e,container:et,direction:tt,item:nt,spacing:rt,wrap:ot,zeroMinWidth:it,breakpoints:st}=$;let at=[];et&&(at=resolveSpacingClasses(rt,st));const lt=[];st.forEach(pt=>{const gt=$[pt];gt&<.push(`grid-${pt}-${String(gt)}`)});const ht={root:["root",et&&"container",nt&&"item",it&&"zeroMinWidth",...at,tt!=="row"&&`direction-xs-${String(tt)}`,ot!=="wrap"&&`wrap-xs-${String(ot)}`,...lt]};return composeClasses(ht,getGridUtilityClass,_e)},Grid=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiGrid"}),{breakpoints:nt}=useTheme(),rt=extendSxProp(tt),{className:ot,columns:it,columnSpacing:st,component:at="div",container:lt=!1,direction:ht="row",item:pt=!1,rowSpacing:gt,spacing:ft=0,wrap:dt="wrap",zeroMinWidth:mt=!1}=rt,ct=_objectWithoutPropertiesLoose(rt,_excluded$p),ut=gt||ft,vt=st||ft,bt=reactExports.useContext(GridContext),yt=lt?it||12:bt,Et={},xt=_extends$1({},ct);nt.keys.forEach(At=>{ct[At]!=null&&(Et[At]=ct[At],delete xt[At])});const St=_extends$1({},rt,{columns:yt,container:lt,direction:ht,item:pt,rowSpacing:ut,columnSpacing:vt,wrap:dt,zeroMinWidth:mt,spacing:ft},Et,{breakpoints:nt.keys}),kt=useUtilityClasses$l(St);return jsxRuntimeExports.jsx(GridContext.Provider,{value:yt,children:jsxRuntimeExports.jsx(GridRoot,_extends$1({ownerState:St,className:clsx(kt.root,ot),as:at,ref:et},xt))})}),_excluded$o=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function getScale($){return`scale(${$}, ${$**2})`}const styles$1={entering:{opacity:1,transform:getScale(1)},entered:{opacity:1,transform:"none"}},isWebKit154=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Grow=reactExports.forwardRef(function(_e,et){const{addEndListener:tt,appear:nt=!0,children:rt,easing:ot,in:it,onEnter:st,onEntered:at,onEntering:lt,onExit:ht,onExited:pt,onExiting:gt,style:ft,timeout:dt="auto",TransitionComponent:mt=Transition}=_e,ct=_objectWithoutPropertiesLoose(_e,_excluded$o),ut=useTimeout(),vt=reactExports.useRef(),bt=useTheme(),yt=reactExports.useRef(null),Et=useForkRef(yt,rt.ref,et),xt=Bt=>Kt=>{if(Bt){const Vt=yt.current;Kt===void 0?Bt(Vt):Bt(Vt,Kt)}},St=xt(lt),kt=xt((Bt,Kt)=>{reflow(Bt);const{duration:Vt,delay:Wt,easing:It}=getTransitionProps({style:ft,timeout:dt,easing:ot},{mode:"enter"});let Ft;dt==="auto"?(Ft=bt.transitions.getAutoHeightDuration(Bt.clientHeight),vt.current=Ft):Ft=Vt,Bt.style.transition=[bt.transitions.create("opacity",{duration:Ft,delay:Wt}),bt.transitions.create("transform",{duration:isWebKit154?Ft:Ft*.666,delay:Wt,easing:It})].join(","),st&&st(Bt,Kt)}),At=xt(at),$t=xt(gt),Tt=xt(Bt=>{const{duration:Kt,delay:Vt,easing:Wt}=getTransitionProps({style:ft,timeout:dt,easing:ot},{mode:"exit"});let It;dt==="auto"?(It=bt.transitions.getAutoHeightDuration(Bt.clientHeight),vt.current=It):It=Kt,Bt.style.transition=[bt.transitions.create("opacity",{duration:It,delay:Vt}),bt.transitions.create("transform",{duration:isWebKit154?It:It*.666,delay:isWebKit154?Vt:Vt||It*.333,easing:Wt})].join(","),Bt.style.opacity=0,Bt.style.transform=getScale(.75),ht&&ht(Bt)}),jt=xt(pt),Gt=Bt=>{dt==="auto"&&ut.start(vt.current||0,Bt),tt&&tt(yt.current,Bt)};return jsxRuntimeExports.jsx(mt,_extends$1({appear:nt,in:it,nodeRef:yt,onEnter:kt,onEntered:At,onEntering:St,onExit:Tt,onExited:jt,onExiting:$t,addEndListener:Gt,timeout:dt==="auto"?null:dt},ct,{children:(Bt,Kt)=>reactExports.cloneElement(rt,_extends$1({style:_extends$1({opacity:0,transform:getScale(.75),visibility:Bt==="exited"&&!it?"hidden":void 0},styles$1[Bt],ft,rt.props.style),ref:Et},Kt))}))});Grow.muiSupportAuto=!0;const _excluded$n=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],useUtilityClasses$k=$=>{const{classes:_e,disableUnderline:et}=$,nt=composeClasses({root:["root",!et&&"underline"],input:["input"]},getInputUtilityClass,_e);return _extends$1({},_e,nt)},InputRoot=styled(InputBaseRoot,{shouldForwardProp:$=>rootShouldForwardProp($)||$==="classes",name:"MuiInput",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[...rootOverridesResolver($,_e),!et.disableUnderline&&_e.underline]}})(({theme:$,ownerState:_e})=>{let tt=$.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return $.vars&&(tt=`rgba(${$.vars.palette.common.onBackgroundChannel} / ${$.vars.opacity.inputUnderline})`),_extends$1({position:"relative"},_e.formControl&&{"label + &":{marginTop:16}},!_e.disableUnderline&&{"&::after":{borderBottom:`2px solid ${($.vars||$).palette[_e.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:$.transitions.create("transform",{duration:$.transitions.duration.shorter,easing:$.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${inputClasses.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${inputClasses.error}`]:{"&::before, &::after":{borderBottomColor:($.vars||$).palette.error.main}},"&::before":{borderBottom:`1px solid ${tt}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:$.transitions.create("border-bottom-color",{duration:$.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}):before`]:{borderBottom:`2px solid ${($.vars||$).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${tt}`}},[`&.${inputClasses.disabled}:before`]:{borderBottomStyle:"dotted"}})}),InputInput=styled(InputBaseComponent,{name:"MuiInput",slot:"Input",overridesResolver:inputOverridesResolver})({}),Input=reactExports.forwardRef(function(_e,et){var tt,nt,rt,ot;const it=useDefaultProps({props:_e,name:"MuiInput"}),{disableUnderline:st,components:at={},componentsProps:lt,fullWidth:ht=!1,inputComponent:pt="input",multiline:gt=!1,slotProps:ft,slots:dt={},type:mt="text"}=it,ct=_objectWithoutPropertiesLoose(it,_excluded$n),ut=useUtilityClasses$k(it),bt={root:{ownerState:{disableUnderline:st}}},yt=ft??lt?deepmerge$1(ft??lt,bt):bt,Et=(tt=(nt=dt.root)!=null?nt:at.Root)!=null?tt:InputRoot,xt=(rt=(ot=dt.input)!=null?ot:at.Input)!=null?rt:InputInput;return jsxRuntimeExports.jsx(InputBase,_extends$1({slots:{root:Et,input:xt},slotProps:yt,fullWidth:ht,inputComponent:pt,multiline:gt,ref:et,type:mt},ct,{classes:ut}))});Input.muiName="Input";function getInputAdornmentUtilityClass($){return generateUtilityClass("MuiInputAdornment",$)}const inputAdornmentClasses=generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var _span$2;const _excluded$m=["children","className","component","disablePointerEvents","disableTypography","position","variant"],overridesResolver$1=($,_e)=>{const{ownerState:et}=$;return[_e.root,_e[`position${capitalize$1(et.position)}`],et.disablePointerEvents===!0&&_e.disablePointerEvents,_e[et.variant]]},useUtilityClasses$j=$=>{const{classes:_e,disablePointerEvents:et,hiddenLabel:tt,position:nt,size:rt,variant:ot}=$,it={root:["root",et&&"disablePointerEvents",nt&&`position${capitalize$1(nt)}`,ot,tt&&"hiddenLabel",rt&&`size${capitalize$1(rt)}`]};return composeClasses(it,getInputAdornmentUtilityClass,_e)},InputAdornmentRoot=styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:overridesResolver$1})(({theme:$,ownerState:_e})=>_extends$1({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:($.vars||$).palette.action.active},_e.variant==="filled"&&{[`&.${inputAdornmentClasses.positionStart}&:not(.${inputAdornmentClasses.hiddenLabel})`]:{marginTop:16}},_e.position==="start"&&{marginRight:8},_e.position==="end"&&{marginLeft:8},_e.disablePointerEvents===!0&&{pointerEvents:"none"})),InputAdornment=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiInputAdornment"}),{children:nt,className:rt,component:ot="div",disablePointerEvents:it=!1,disableTypography:st=!1,position:at,variant:lt}=tt,ht=_objectWithoutPropertiesLoose(tt,_excluded$m),pt=useFormControl()||{};let gt=lt;lt&&pt.variant,pt&&!gt&&(gt=pt.variant);const ft=_extends$1({},tt,{hiddenLabel:pt.hiddenLabel,size:pt.size,disablePointerEvents:it,position:at,variant:gt}),dt=useUtilityClasses$j(ft);return jsxRuntimeExports.jsx(FormControlContext.Provider,{value:null,children:jsxRuntimeExports.jsx(InputAdornmentRoot,_extends$1({as:ot,ownerState:ft,className:clsx(dt.root,rt),ref:et},ht,{children:typeof nt=="string"&&!st?jsxRuntimeExports.jsx(Typography,{color:"text.secondary",children:nt}):jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[at==="start"?_span$2||(_span$2=jsxRuntimeExports.jsx("span",{className:"notranslate",children:"​"})):null,nt]})}))})});function getInputLabelUtilityClasses($){return generateUtilityClass("MuiInputLabel",$)}generateUtilityClasses("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const _excluded$l=["disableAnimation","margin","shrink","variant","className"],useUtilityClasses$i=$=>{const{classes:_e,formControl:et,size:tt,shrink:nt,disableAnimation:rt,variant:ot,required:it}=$,st={root:["root",et&&"formControl",!rt&&"animated",nt&&"shrink",tt&&tt!=="normal"&&`size${capitalize$1(tt)}`,ot],asterisk:[it&&"asterisk"]},at=composeClasses(st,getInputLabelUtilityClasses,_e);return _extends$1({},_e,at)},InputLabelRoot=styled(FormLabel,{shouldForwardProp:$=>rootShouldForwardProp($)||$==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[{[`& .${formLabelClasses.asterisk}`]:_e.asterisk},_e.root,et.formControl&&_e.formControl,et.size==="small"&&_e.sizeSmall,et.shrink&&_e.shrink,!et.disableAnimation&&_e.animated,et.focused&&_e.focused,_e[et.variant]]}})(({theme:$,ownerState:_e})=>_extends$1({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},_e.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},_e.size==="small"&&{transform:"translate(0, 17px) scale(1)"},_e.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!_e.disableAnimation&&{transition:$.transitions.create(["color","transform","max-width"],{duration:$.transitions.duration.shorter,easing:$.transitions.easing.easeOut})},_e.variant==="filled"&&_extends$1({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},_e.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},_e.shrink&&_extends$1({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},_e.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),_e.variant==="outlined"&&_extends$1({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},_e.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},_e.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),InputLabel=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({name:"MuiInputLabel",props:_e}),{disableAnimation:nt=!1,shrink:rt,className:ot}=tt,it=_objectWithoutPropertiesLoose(tt,_excluded$l),st=useFormControl();let at=rt;typeof at>"u"&&st&&(at=st.filled||st.focused||st.adornedStart);const lt=formControlState({props:tt,muiFormControl:st,states:["size","variant","required","focused"]}),ht=_extends$1({},tt,{disableAnimation:nt,formControl:st,shrink:at,size:lt.size,variant:lt.variant,required:lt.required,focused:lt.focused}),pt=useUtilityClasses$i(ht);return jsxRuntimeExports.jsx(InputLabelRoot,_extends$1({"data-shrink":at,ownerState:ht,ref:et,className:clsx(pt.root,ot)},it,{classes:pt}))}),ListContext=reactExports.createContext({});function getListUtilityClass($){return generateUtilityClass("MuiList",$)}generateUtilityClasses("MuiList",["root","padding","dense","subheader"]);const _excluded$k=["children","className","component","dense","disablePadding","subheader"],useUtilityClasses$h=$=>{const{classes:_e,disablePadding:et,dense:tt,subheader:nt}=$;return composeClasses({root:["root",!et&&"padding",tt&&"dense",nt&&"subheader"]},getListUtilityClass,_e)},ListRoot=styled("ul",{name:"MuiList",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,!et.disablePadding&&_e.padding,et.dense&&_e.dense,et.subheader&&_e.subheader]}})(({ownerState:$})=>_extends$1({listStyle:"none",margin:0,padding:0,position:"relative"},!$.disablePadding&&{paddingTop:8,paddingBottom:8},$.subheader&&{paddingTop:0})),List=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiList"}),{children:nt,className:rt,component:ot="ul",dense:it=!1,disablePadding:st=!1,subheader:at}=tt,lt=_objectWithoutPropertiesLoose(tt,_excluded$k),ht=reactExports.useMemo(()=>({dense:it}),[it]),pt=_extends$1({},tt,{component:ot,dense:it,disablePadding:st}),gt=useUtilityClasses$h(pt);return jsxRuntimeExports.jsx(ListContext.Provider,{value:ht,children:jsxRuntimeExports.jsxs(ListRoot,_extends$1({as:ot,className:clsx(gt.root,rt),ref:et,ownerState:pt},lt,{children:[at,nt]}))})}),listItemIconClasses=generateUtilityClasses("MuiListItemIcon",["root","alignItemsFlexStart"]),listItemTextClasses=generateUtilityClasses("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),_excluded$j=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function nextItem$1($,_e,et){return $===_e?$.firstChild:_e&&_e.nextElementSibling?_e.nextElementSibling:et?null:$.firstChild}function previousItem$1($,_e,et){return $===_e?et?$.firstChild:$.lastChild:_e&&_e.previousElementSibling?_e.previousElementSibling:et?null:$.lastChild}function textCriteriaMatches($,_e){if(_e===void 0)return!0;let et=$.innerText;return et===void 0&&(et=$.textContent),et=et.trim().toLowerCase(),et.length===0?!1:_e.repeating?et[0]===_e.keys[0]:et.indexOf(_e.keys.join(""))===0}function moveFocus$1($,_e,et,tt,nt,rt){let ot=!1,it=nt($,_e,_e?et:!1);for(;it;){if(it===$.firstChild){if(ot)return!1;ot=!0}const st=tt?!1:it.disabled||it.getAttribute("aria-disabled")==="true";if(!it.hasAttribute("tabindex")||!textCriteriaMatches(it,rt)||st)it=nt($,it,et);else return it.focus(),!0}return!1}const MenuList=reactExports.forwardRef(function(_e,et){const{actions:tt,autoFocus:nt=!1,autoFocusItem:rt=!1,children:ot,className:it,disabledItemsFocusable:st=!1,disableListWrap:at=!1,onKeyDown:lt,variant:ht="selectedMenu"}=_e,pt=_objectWithoutPropertiesLoose(_e,_excluded$j),gt=reactExports.useRef(null),ft=reactExports.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});useEnhancedEffect(()=>{nt&>.current.focus()},[nt]),reactExports.useImperativeHandle(tt,()=>({adjustStyleForScrollbar:(vt,{direction:bt})=>{const yt=!gt.current.style.width;if(vt.clientHeight{const bt=gt.current,yt=vt.key,Et=ownerDocument(bt).activeElement;if(yt==="ArrowDown")vt.preventDefault(),moveFocus$1(bt,Et,at,st,nextItem$1);else if(yt==="ArrowUp")vt.preventDefault(),moveFocus$1(bt,Et,at,st,previousItem$1);else if(yt==="Home")vt.preventDefault(),moveFocus$1(bt,null,at,st,nextItem$1);else if(yt==="End")vt.preventDefault(),moveFocus$1(bt,null,at,st,previousItem$1);else if(yt.length===1){const xt=ft.current,St=yt.toLowerCase(),kt=performance.now();xt.keys.length>0&&(kt-xt.lastTime>500?(xt.keys=[],xt.repeating=!0,xt.previousKeyMatched=!0):xt.repeating&&St!==xt.keys[0]&&(xt.repeating=!1)),xt.lastTime=kt,xt.keys.push(St);const At=Et&&!xt.repeating&&textCriteriaMatches(Et,xt);xt.previousKeyMatched&&(At||moveFocus$1(bt,Et,!1,st,nextItem$1,xt))?vt.preventDefault():xt.previousKeyMatched=!1}lt&<(vt)},mt=useForkRef(gt,et);let ct=-1;reactExports.Children.forEach(ot,(vt,bt)=>{if(!reactExports.isValidElement(vt)){ct===bt&&(ct+=1,ct>=ot.length&&(ct=-1));return}vt.props.disabled||(ht==="selectedMenu"&&vt.props.selected||ct===-1)&&(ct=bt),ct===bt&&(vt.props.disabled||vt.props.muiSkipListHighlight||vt.type.muiSkipListHighlight)&&(ct+=1,ct>=ot.length&&(ct=-1))});const ut=reactExports.Children.map(ot,(vt,bt)=>{if(bt===ct){const yt={};return rt&&(yt.autoFocus=!0),vt.props.tabIndex===void 0&&ht==="selectedMenu"&&(yt.tabIndex=0),reactExports.cloneElement(vt,yt)}return vt});return jsxRuntimeExports.jsx(List,_extends$1({role:"menu",ref:mt,className:it,onKeyDown:dt,tabIndex:nt?0:-1},pt,{children:ut}))});function getPopoverUtilityClass($){return generateUtilityClass("MuiPopover",$)}generateUtilityClasses("MuiPopover",["root","paper"]);const _excluded$i=["onEntering"],_excluded2$2=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],_excluded3=["slotProps"];function getOffsetTop($,_e){let et=0;return typeof _e=="number"?et=_e:_e==="center"?et=$.height/2:_e==="bottom"&&(et=$.height),et}function getOffsetLeft($,_e){let et=0;return typeof _e=="number"?et=_e:_e==="center"?et=$.width/2:_e==="right"&&(et=$.width),et}function getTransformOriginValue($){return[$.horizontal,$.vertical].map(_e=>typeof _e=="number"?`${_e}px`:_e).join(" ")}function resolveAnchorEl($){return typeof $=="function"?$():$}const useUtilityClasses$g=$=>{const{classes:_e}=$;return composeClasses({root:["root"],paper:["paper"]},getPopoverUtilityClass,_e)},PopoverRoot=styled(Modal,{name:"MuiPopover",slot:"Root",overridesResolver:($,_e)=>_e.root})({}),PopoverPaper=styled(Paper,{name:"MuiPopover",slot:"Paper",overridesResolver:($,_e)=>_e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Popover=reactExports.forwardRef(function(_e,et){var tt,nt,rt;const ot=useDefaultProps({props:_e,name:"MuiPopover"}),{action:it,anchorEl:st,anchorOrigin:at={vertical:"top",horizontal:"left"},anchorPosition:lt,anchorReference:ht="anchorEl",children:pt,className:gt,container:ft,elevation:dt=8,marginThreshold:mt=16,open:ct,PaperProps:ut={},slots:vt,slotProps:bt,transformOrigin:yt={vertical:"top",horizontal:"left"},TransitionComponent:Et=Grow,transitionDuration:xt="auto",TransitionProps:{onEntering:St}={},disableScrollLock:kt=!1}=ot,At=_objectWithoutPropertiesLoose(ot.TransitionProps,_excluded$i),$t=_objectWithoutPropertiesLoose(ot,_excluded2$2),Tt=(tt=bt==null?void 0:bt.paper)!=null?tt:ut,jt=reactExports.useRef(),Gt=useForkRef(jt,Tt.ref),Bt=_extends$1({},ot,{anchorOrigin:at,anchorReference:ht,elevation:dt,marginThreshold:mt,externalPaperSlotProps:Tt,transformOrigin:yt,TransitionComponent:Et,transitionDuration:xt,TransitionProps:At}),Kt=useUtilityClasses$g(Bt),Vt=reactExports.useCallback(()=>{if(ht==="anchorPosition")return lt;const yn=resolveAnchorEl(st),kn=(yn&&yn.nodeType===1?yn:ownerDocument(jt.current).body).getBoundingClientRect();return{top:kn.top+getOffsetTop(kn,at.vertical),left:kn.left+getOffsetLeft(kn,at.horizontal)}},[st,at.horizontal,at.vertical,lt,ht]),Wt=reactExports.useCallback(yn=>({vertical:getOffsetTop(yn,yt.vertical),horizontal:getOffsetLeft(yn,yt.horizontal)}),[yt.horizontal,yt.vertical]),It=reactExports.useCallback(yn=>{const $n={width:yn.offsetWidth,height:yn.offsetHeight},kn=Wt($n);if(ht==="none")return{top:null,left:null,transformOrigin:getTransformOriginValue(kn)};const hn=Vt();let un=hn.top-kn.vertical,Lt=hn.left-kn.horizontal;const Ut=un+$n.height,nn=Lt+$n.width,sn=ownerWindow(resolveAnchorEl(st)),vn=sn.innerHeight-mt,Tn=sn.innerWidth-mt;if(mt!==null&&unvn){const Rn=Ut-vn;un-=Rn,kn.vertical+=Rn}if(mt!==null&&LtTn){const Rn=nn-Tn;Lt-=Rn,kn.horizontal+=Rn}return{top:`${Math.round(un)}px`,left:`${Math.round(Lt)}px`,transformOrigin:getTransformOriginValue(kn)}},[st,ht,Vt,Wt,mt]),[Ft,Yt]=reactExports.useState(ct),Dt=reactExports.useCallback(()=>{const yn=jt.current;if(!yn)return;const $n=It(yn);$n.top!==null&&(yn.style.top=$n.top),$n.left!==null&&(yn.style.left=$n.left),yn.style.transformOrigin=$n.transformOrigin,Yt(!0)},[It]);reactExports.useEffect(()=>(kt&&window.addEventListener("scroll",Dt),()=>window.removeEventListener("scroll",Dt)),[st,kt,Dt]);const Rt=(yn,$n)=>{St&&St(yn,$n),Dt()},wt=()=>{Yt(!1)};reactExports.useEffect(()=>{ct&&Dt()}),reactExports.useImperativeHandle(it,()=>ct?{updatePosition:()=>{Dt()}}:null,[ct,Dt]),reactExports.useEffect(()=>{if(!ct)return;const yn=debounce(()=>{Dt()}),$n=ownerWindow(st);return $n.addEventListener("resize",yn),()=>{yn.clear(),$n.removeEventListener("resize",yn)}},[st,ct,Dt]);let Mt=xt;xt==="auto"&&!Et.muiSupportAuto&&(Mt=void 0);const Ot=ft||(st?ownerDocument(resolveAnchorEl(st)).body:void 0),zt=(nt=vt==null?void 0:vt.root)!=null?nt:PopoverRoot,Ht=(rt=vt==null?void 0:vt.paper)!=null?rt:PopoverPaper,Jt=useSlotProps({elementType:Ht,externalSlotProps:_extends$1({},Tt,{style:Ft?Tt.style:_extends$1({},Tt.style,{opacity:0})}),additionalProps:{elevation:dt,ref:Gt},ownerState:Bt,className:clsx(Kt.paper,Tt==null?void 0:Tt.className)}),pn=useSlotProps({elementType:zt,externalSlotProps:(bt==null?void 0:bt.root)||{},externalForwardedProps:$t,additionalProps:{ref:et,slotProps:{backdrop:{invisible:!0}},container:Ot,open:ct},ownerState:Bt,className:clsx(Kt.root,gt)}),{slotProps:gn}=pn,bn=_objectWithoutPropertiesLoose(pn,_excluded3);return jsxRuntimeExports.jsx(zt,_extends$1({},bn,!isHostComponent(zt)&&{slotProps:gn,disableScrollLock:kt},{children:jsxRuntimeExports.jsx(Et,_extends$1({appear:!0,in:ct,onEntering:Rt,onExited:wt,timeout:Mt},At,{children:jsxRuntimeExports.jsx(Ht,_extends$1({},Jt,{children:pt}))}))}))});function getMenuUtilityClass($){return generateUtilityClass("MuiMenu",$)}generateUtilityClasses("MuiMenu",["root","paper","list"]);const _excluded$h=["onEntering"],_excluded2$1=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],RTL_ORIGIN={vertical:"top",horizontal:"right"},LTR_ORIGIN={vertical:"top",horizontal:"left"},useUtilityClasses$f=$=>{const{classes:_e}=$;return composeClasses({root:["root"],paper:["paper"],list:["list"]},getMenuUtilityClass,_e)},MenuRoot=styled(Popover,{shouldForwardProp:$=>rootShouldForwardProp($)||$==="classes",name:"MuiMenu",slot:"Root",overridesResolver:($,_e)=>_e.root})({}),MenuPaper=styled(PopoverPaper,{name:"MuiMenu",slot:"Paper",overridesResolver:($,_e)=>_e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),MenuMenuList=styled(MenuList,{name:"MuiMenu",slot:"List",overridesResolver:($,_e)=>_e.list})({outline:0}),Menu=reactExports.forwardRef(function(_e,et){var tt,nt;const rt=useDefaultProps({props:_e,name:"MuiMenu"}),{autoFocus:ot=!0,children:it,className:st,disableAutoFocusItem:at=!1,MenuListProps:lt={},onClose:ht,open:pt,PaperProps:gt={},PopoverClasses:ft,transitionDuration:dt="auto",TransitionProps:{onEntering:mt}={},variant:ct="selectedMenu",slots:ut={},slotProps:vt={}}=rt,bt=_objectWithoutPropertiesLoose(rt.TransitionProps,_excluded$h),yt=_objectWithoutPropertiesLoose(rt,_excluded2$1),Et=useRtl(),xt=_extends$1({},rt,{autoFocus:ot,disableAutoFocusItem:at,MenuListProps:lt,onEntering:mt,PaperProps:gt,transitionDuration:dt,TransitionProps:bt,variant:ct}),St=useUtilityClasses$f(xt),kt=ot&&!at&&pt,At=reactExports.useRef(null),$t=(Wt,It)=>{At.current&&At.current.adjustStyleForScrollbar(Wt,{direction:Et?"rtl":"ltr"}),mt&&mt(Wt,It)},Tt=Wt=>{Wt.key==="Tab"&&(Wt.preventDefault(),ht&&ht(Wt,"tabKeyDown"))};let jt=-1;reactExports.Children.map(it,(Wt,It)=>{reactExports.isValidElement(Wt)&&(Wt.props.disabled||(ct==="selectedMenu"&&Wt.props.selected||jt===-1)&&(jt=It))});const Gt=(tt=ut.paper)!=null?tt:MenuPaper,Bt=(nt=vt.paper)!=null?nt:gt,Kt=useSlotProps({elementType:ut.root,externalSlotProps:vt.root,ownerState:xt,className:[St.root,st]}),Vt=useSlotProps({elementType:Gt,externalSlotProps:Bt,ownerState:xt,className:St.paper});return jsxRuntimeExports.jsx(MenuRoot,_extends$1({onClose:ht,anchorOrigin:{vertical:"bottom",horizontal:Et?"right":"left"},transformOrigin:Et?RTL_ORIGIN:LTR_ORIGIN,slots:{paper:Gt,root:ut.root},slotProps:{root:Kt,paper:Vt},open:pt,ref:et,transitionDuration:dt,TransitionProps:_extends$1({onEntering:$t},bt),ownerState:xt},yt,{classes:ft,children:jsxRuntimeExports.jsx(MenuMenuList,_extends$1({onKeyDown:Tt,actions:At,autoFocus:ot&&(jt===-1||at),autoFocusItem:kt,variant:ct},lt,{className:clsx(St.list,lt.className),children:it}))}))});function getMenuItemUtilityClass($){return generateUtilityClass("MuiMenuItem",$)}const menuItemClasses=generateUtilityClasses("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),_excluded$g=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],overridesResolver=($,_e)=>{const{ownerState:et}=$;return[_e.root,et.dense&&_e.dense,et.divider&&_e.divider,!et.disableGutters&&_e.gutters]},useUtilityClasses$e=$=>{const{disabled:_e,dense:et,divider:tt,disableGutters:nt,selected:rt,classes:ot}=$,st=composeClasses({root:["root",et&&"dense",_e&&"disabled",!nt&&"gutters",tt&&"divider",rt&&"selected"]},getMenuItemUtilityClass,ot);return _extends$1({},ot,st)},MenuItemRoot=styled(ButtonBase,{shouldForwardProp:$=>rootShouldForwardProp($)||$==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver})(({theme:$,ownerState:_e})=>_extends$1({},$.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!_e.disableGutters&&{paddingLeft:16,paddingRight:16},_e.divider&&{borderBottom:`1px solid ${($.vars||$).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:($.vars||$).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${menuItemClasses.selected}`]:{backgroundColor:$.vars?`rgba(${$.vars.palette.primary.mainChannel} / ${$.vars.palette.action.selectedOpacity})`:alpha_1($.palette.primary.main,$.palette.action.selectedOpacity),[`&.${menuItemClasses.focusVisible}`]:{backgroundColor:$.vars?`rgba(${$.vars.palette.primary.mainChannel} / calc(${$.vars.palette.action.selectedOpacity} + ${$.vars.palette.action.focusOpacity}))`:alpha_1($.palette.primary.main,$.palette.action.selectedOpacity+$.palette.action.focusOpacity)}},[`&.${menuItemClasses.selected}:hover`]:{backgroundColor:$.vars?`rgba(${$.vars.palette.primary.mainChannel} / calc(${$.vars.palette.action.selectedOpacity} + ${$.vars.palette.action.hoverOpacity}))`:alpha_1($.palette.primary.main,$.palette.action.selectedOpacity+$.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:$.vars?`rgba(${$.vars.palette.primary.mainChannel} / ${$.vars.palette.action.selectedOpacity})`:alpha_1($.palette.primary.main,$.palette.action.selectedOpacity)}},[`&.${menuItemClasses.focusVisible}`]:{backgroundColor:($.vars||$).palette.action.focus},[`&.${menuItemClasses.disabled}`]:{opacity:($.vars||$).palette.action.disabledOpacity},[`& + .${dividerClasses.root}`]:{marginTop:$.spacing(1),marginBottom:$.spacing(1)},[`& + .${dividerClasses.inset}`]:{marginLeft:52},[`& .${listItemTextClasses.root}`]:{marginTop:0,marginBottom:0},[`& .${listItemTextClasses.inset}`]:{paddingLeft:36},[`& .${listItemIconClasses.root}`]:{minWidth:36}},!_e.dense&&{[$.breakpoints.up("sm")]:{minHeight:"auto"}},_e.dense&&_extends$1({minHeight:32,paddingTop:4,paddingBottom:4},$.typography.body2,{[`& .${listItemIconClasses.root} svg`]:{fontSize:"1.25rem"}}))),MenuItem=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiMenuItem"}),{autoFocus:nt=!1,component:rt="li",dense:ot=!1,divider:it=!1,disableGutters:st=!1,focusVisibleClassName:at,role:lt="menuitem",tabIndex:ht,className:pt}=tt,gt=_objectWithoutPropertiesLoose(tt,_excluded$g),ft=reactExports.useContext(ListContext),dt=reactExports.useMemo(()=>({dense:ot||ft.dense||!1,disableGutters:st}),[ft.dense,ot,st]),mt=reactExports.useRef(null);useEnhancedEffect(()=>{nt&&mt.current&&mt.current.focus()},[nt]);const ct=_extends$1({},tt,{dense:dt.dense,divider:it,disableGutters:st}),ut=useUtilityClasses$e(tt),vt=useForkRef(mt,et);let bt;return tt.disabled||(bt=ht!==void 0?ht:-1),jsxRuntimeExports.jsx(ListContext.Provider,{value:dt,children:jsxRuntimeExports.jsx(MenuItemRoot,_extends$1({ref:vt,role:lt,tabIndex:bt,component:rt,focusVisibleClassName:clsx(ut.focusVisible,at),className:clsx(ut.root,pt)},gt,{ownerState:ct,classes:ut}))})});function getNativeSelectUtilityClasses($){return generateUtilityClass("MuiNativeSelect",$)}const nativeSelectClasses=generateUtilityClasses("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),_excluded$f=["className","disabled","error","IconComponent","inputRef","variant"],useUtilityClasses$d=$=>{const{classes:_e,variant:et,disabled:tt,multiple:nt,open:rt,error:ot}=$,it={select:["select",et,tt&&"disabled",nt&&"multiple",ot&&"error"],icon:["icon",`icon${capitalize$1(et)}`,rt&&"iconOpen",tt&&"disabled"]};return composeClasses(it,getNativeSelectUtilityClasses,_e)},nativeSelectSelectStyles=({ownerState:$,theme:_e})=>_extends$1({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":_extends$1({},_e.vars?{backgroundColor:`rgba(${_e.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:_e.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${nativeSelectClasses.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(_e.vars||_e).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},$.variant==="filled"&&{"&&&":{paddingRight:32}},$.variant==="outlined"&&{borderRadius:(_e.vars||_e).shape.borderRadius,"&:focus":{borderRadius:(_e.vars||_e).shape.borderRadius},"&&&":{paddingRight:32}}),NativeSelectSelect=styled("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:rootShouldForwardProp,overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.select,_e[et.variant],et.error&&_e.error,{[`&.${nativeSelectClasses.multiple}`]:_e.multiple}]}})(nativeSelectSelectStyles),nativeSelectIconStyles=({ownerState:$,theme:_e})=>_extends$1({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(_e.vars||_e).palette.action.active,[`&.${nativeSelectClasses.disabled}`]:{color:(_e.vars||_e).palette.action.disabled}},$.open&&{transform:"rotate(180deg)"},$.variant==="filled"&&{right:7},$.variant==="outlined"&&{right:7}),NativeSelectIcon=styled("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.icon,et.variant&&_e[`icon${capitalize$1(et.variant)}`],et.open&&_e.iconOpen]}})(nativeSelectIconStyles),NativeSelectInput=reactExports.forwardRef(function(_e,et){const{className:tt,disabled:nt,error:rt,IconComponent:ot,inputRef:it,variant:st="standard"}=_e,at=_objectWithoutPropertiesLoose(_e,_excluded$f),lt=_extends$1({},_e,{disabled:nt,variant:st,error:rt}),ht=useUtilityClasses$d(lt);return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(NativeSelectSelect,_extends$1({ownerState:lt,className:clsx(ht.select,tt),disabled:nt,ref:it||et},at)),_e.multiple?null:jsxRuntimeExports.jsx(NativeSelectIcon,{as:ot,ownerState:lt,className:ht.icon})]})});var _span$1;const _excluded$e=["children","classes","className","label","notched"],NotchedOutlineRoot$1=styled("fieldset",{shouldForwardProp:rootShouldForwardProp})({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%"}),NotchedOutlineLegend=styled("legend",{shouldForwardProp:rootShouldForwardProp})(({ownerState:$,theme:_e})=>_extends$1({float:"unset",width:"auto",overflow:"hidden"},!$.withLabel&&{padding:0,lineHeight:"11px",transition:_e.transitions.create("width",{duration:150,easing:_e.transitions.easing.easeOut})},$.withLabel&&_extends$1({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:_e.transitions.create("max-width",{duration:50,easing:_e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},$.notched&&{maxWidth:"100%",transition:_e.transitions.create("max-width",{duration:100,easing:_e.transitions.easing.easeOut,delay:50})})));function NotchedOutline($){const{className:_e,label:et,notched:tt}=$,nt=_objectWithoutPropertiesLoose($,_excluded$e),rt=et!=null&&et!=="",ot=_extends$1({},$,{notched:tt,withLabel:rt});return jsxRuntimeExports.jsx(NotchedOutlineRoot$1,_extends$1({"aria-hidden":!0,className:_e,ownerState:ot},nt,{children:jsxRuntimeExports.jsx(NotchedOutlineLegend,{ownerState:ot,children:rt?jsxRuntimeExports.jsx("span",{children:et}):_span$1||(_span$1=jsxRuntimeExports.jsx("span",{className:"notranslate",children:"​"}))})}))}const _excluded$d=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],useUtilityClasses$c=$=>{const{classes:_e}=$,tt=composeClasses({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},getOutlinedInputUtilityClass,_e);return _extends$1({},_e,tt)},OutlinedInputRoot=styled(InputBaseRoot,{shouldForwardProp:$=>rootShouldForwardProp($)||$==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:rootOverridesResolver})(({theme:$,ownerState:_e})=>{const et=$.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return _extends$1({position:"relative",borderRadius:($.vars||$).shape.borderRadius,[`&:hover .${outlinedInputClasses.notchedOutline}`]:{borderColor:($.vars||$).palette.text.primary},"@media (hover: none)":{[`&:hover .${outlinedInputClasses.notchedOutline}`]:{borderColor:$.vars?`rgba(${$.vars.palette.common.onBackgroundChannel} / 0.23)`:et}},[`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]:{borderColor:($.vars||$).palette[_e.color].main,borderWidth:2},[`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]:{borderColor:($.vars||$).palette.error.main},[`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]:{borderColor:($.vars||$).palette.action.disabled}},_e.startAdornment&&{paddingLeft:14},_e.endAdornment&&{paddingRight:14},_e.multiline&&_extends$1({padding:"16.5px 14px"},_e.size==="small"&&{padding:"8.5px 14px"}))}),NotchedOutlineRoot=styled(NotchedOutline,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:($,_e)=>_e.notchedOutline})(({theme:$})=>{const _e=$.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:$.vars?`rgba(${$.vars.palette.common.onBackgroundChannel} / 0.23)`:_e}}),OutlinedInputInput=styled(InputBaseComponent,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:inputOverridesResolver})(({theme:$,ownerState:_e})=>_extends$1({padding:"16.5px 14px"},!$.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:$.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:$.palette.mode==="light"?null:"#fff",caretColor:$.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},$.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[$.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},_e.size==="small"&&{padding:"8.5px 14px"},_e.multiline&&{padding:0},_e.startAdornment&&{paddingLeft:0},_e.endAdornment&&{paddingRight:0})),OutlinedInput=reactExports.forwardRef(function(_e,et){var tt,nt,rt,ot,it;const st=useDefaultProps({props:_e,name:"MuiOutlinedInput"}),{components:at={},fullWidth:lt=!1,inputComponent:ht="input",label:pt,multiline:gt=!1,notched:ft,slots:dt={},type:mt="text"}=st,ct=_objectWithoutPropertiesLoose(st,_excluded$d),ut=useUtilityClasses$c(st),vt=useFormControl(),bt=formControlState({props:st,muiFormControl:vt,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),yt=_extends$1({},st,{color:bt.color||"primary",disabled:bt.disabled,error:bt.error,focused:bt.focused,formControl:vt,fullWidth:lt,hiddenLabel:bt.hiddenLabel,multiline:gt,size:bt.size,type:mt}),Et=(tt=(nt=dt.root)!=null?nt:at.Root)!=null?tt:OutlinedInputRoot,xt=(rt=(ot=dt.input)!=null?ot:at.Input)!=null?rt:OutlinedInputInput;return jsxRuntimeExports.jsx(InputBase,_extends$1({slots:{root:Et,input:xt},renderSuffix:St=>jsxRuntimeExports.jsx(NotchedOutlineRoot,{ownerState:yt,className:ut.notchedOutline,label:pt!=null&&pt!==""&&bt.required?it||(it=jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[pt," ","*"]})):pt,notched:typeof ft<"u"?ft:!!(St.startAdornment||St.filled||St.focused)}),fullWidth:lt,inputComponent:ht,multiline:gt,ref:et,type:mt},ct,{classes:_extends$1({},ut,{notchedOutline:null})}))});OutlinedInput.muiName="Input";function getSelectUtilityClasses($){return generateUtilityClass("MuiSelect",$)}const selectClasses=generateUtilityClasses("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _span;const _excluded$c=["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"],SelectSelect=styled("div",{name:"MuiSelect",slot:"Select",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[{[`&.${selectClasses.select}`]:_e.select},{[`&.${selectClasses.select}`]:_e[et.variant]},{[`&.${selectClasses.error}`]:_e.error},{[`&.${selectClasses.multiple}`]:_e.multiple}]}})(nativeSelectSelectStyles,{[`&.${selectClasses.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SelectIcon=styled("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.icon,et.variant&&_e[`icon${capitalize$1(et.variant)}`],et.open&&_e.iconOpen]}})(nativeSelectIconStyles),SelectNativeInput=styled("input",{shouldForwardProp:$=>slotShouldForwardProp($)&&$!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:($,_e)=>_e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function areEqualValues($,_e){return typeof _e=="object"&&_e!==null?$===_e:String($)===String(_e)}function isEmpty($){return $==null||typeof $=="string"&&!$.trim()}const useUtilityClasses$b=$=>{const{classes:_e,variant:et,disabled:tt,multiple:nt,open:rt,error:ot}=$,it={select:["select",et,tt&&"disabled",nt&&"multiple",ot&&"error"],icon:["icon",`icon${capitalize$1(et)}`,rt&&"iconOpen",tt&&"disabled"],nativeInput:["nativeInput"]};return composeClasses(it,getSelectUtilityClasses,_e)},SelectInput=reactExports.forwardRef(function(_e,et){var tt;const{"aria-describedby":nt,"aria-label":rt,autoFocus:ot,autoWidth:it,children:st,className:at,defaultOpen:lt,defaultValue:ht,disabled:pt,displayEmpty:gt,error:ft=!1,IconComponent:dt,inputRef:mt,labelId:ct,MenuProps:ut={},multiple:vt,name:bt,onBlur:yt,onChange:Et,onClose:xt,onFocus:St,onOpen:kt,open:At,readOnly:$t,renderValue:Tt,SelectDisplayProps:jt={},tabIndex:Gt,value:Bt,variant:Kt="standard"}=_e,Vt=_objectWithoutPropertiesLoose(_e,_excluded$c),[Wt,It]=useControlled({controlled:Bt,default:ht,name:"Select"}),[Ft,Yt]=useControlled({controlled:At,default:lt,name:"Select"}),Dt=reactExports.useRef(null),Rt=reactExports.useRef(null),[wt,Mt]=reactExports.useState(null),{current:Ot}=reactExports.useRef(At!=null),[zt,Ht]=reactExports.useState(),Jt=useForkRef(et,mt),pn=reactExports.useCallback(Wn=>{Rt.current=Wn,Wn&&Mt(Wn)},[]),gn=wt==null?void 0:wt.parentNode;reactExports.useImperativeHandle(Jt,()=>({focus:()=>{Rt.current.focus()},node:Dt.current,value:Wt}),[Wt]),reactExports.useEffect(()=>{lt&&Ft&&wt&&!Ot&&(Ht(it?null:gn.clientWidth),Rt.current.focus())},[wt,it]),reactExports.useEffect(()=>{ot&&Rt.current.focus()},[ot]),reactExports.useEffect(()=>{if(!ct)return;const Wn=ownerDocument(Rt.current).getElementById(ct);if(Wn){const cr=()=>{getSelection().isCollapsed&&Rt.current.focus()};return Wn.addEventListener("click",cr),()=>{Wn.removeEventListener("click",cr)}}},[ct]);const bn=(Wn,cr)=>{Wn?kt&&kt(cr):xt&&xt(cr),Ot||(Ht(it?null:gn.clientWidth),Yt(Wn))},yn=Wn=>{Wn.button===0&&(Wn.preventDefault(),Rt.current.focus(),bn(!0,Wn))},$n=Wn=>{bn(!1,Wn)},kn=reactExports.Children.toArray(st),hn=Wn=>{const cr=kn.find(fn=>fn.props.value===Wn.target.value);cr!==void 0&&(It(cr.props.value),Et&&Et(Wn,cr))},un=Wn=>cr=>{let fn;if(cr.currentTarget.hasAttribute("tabindex")){if(vt){fn=Array.isArray(Wt)?Wt.slice():[];const en=Wt.indexOf(Wn.props.value);en===-1?fn.push(Wn.props.value):fn.splice(en,1)}else fn=Wn.props.value;if(Wn.props.onClick&&Wn.props.onClick(cr),Wt!==fn&&(It(fn),Et)){const en=cr.nativeEvent||cr,an=new en.constructor(en.type,en);Object.defineProperty(an,"target",{writable:!0,value:{value:fn,name:bt}}),Et(an,Wn)}vt||bn(!1,cr)}},Lt=Wn=>{$t||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Wn.key)!==-1&&(Wn.preventDefault(),bn(!0,Wn))},Ut=wt!==null&&Ft,nn=Wn=>{!Ut&&yt&&(Object.defineProperty(Wn,"target",{writable:!0,value:{value:Wt,name:bt}}),yt(Wn))};delete Vt["aria-invalid"];let sn,vn;const Tn=[];let Rn=!1;(isFilled({value:Wt})||gt)&&(Tt?sn=Tt(Wt):Rn=!0);const on=kn.map(Wn=>{if(!reactExports.isValidElement(Wn))return null;let cr;if(vt){if(!Array.isArray(Wt))throw new Error(formatMuiErrorMessage$1(2));cr=Wt.some(fn=>areEqualValues(fn,Wn.props.value)),cr&&Rn&&Tn.push(Wn.props.children)}else cr=areEqualValues(Wt,Wn.props.value),cr&&Rn&&(vn=Wn.props.children);return reactExports.cloneElement(Wn,{"aria-selected":cr?"true":"false",onClick:un(Wn),onKeyUp:fn=>{fn.key===" "&&fn.preventDefault(),Wn.props.onKeyUp&&Wn.props.onKeyUp(fn)},role:"option",selected:cr,value:void 0,"data-value":Wn.props.value})});Rn&&(vt?Tn.length===0?sn=null:sn=Tn.reduce((Wn,cr,fn)=>(Wn.push(cr),fn{const{classes:_e}=$;return _e},styledRootConfig={name:"MuiSelect",overridesResolver:($,_e)=>_e.root,shouldForwardProp:$=>rootShouldForwardProp($)&&$!=="variant",slot:"Root"},StyledInput=styled(Input,styledRootConfig)(""),StyledOutlinedInput=styled(OutlinedInput,styledRootConfig)(""),StyledFilledInput=styled(FilledInput,styledRootConfig)(""),Select=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({name:"MuiSelect",props:_e}),{autoWidth:nt=!1,children:rt,classes:ot={},className:it,defaultOpen:st=!1,displayEmpty:at=!1,IconComponent:lt=ArrowDropDownIcon,id:ht,input:pt,inputProps:gt,label:ft,labelId:dt,MenuProps:mt,multiple:ct=!1,native:ut=!1,onClose:vt,onOpen:bt,open:yt,renderValue:Et,SelectDisplayProps:xt,variant:St="outlined"}=tt,kt=_objectWithoutPropertiesLoose(tt,_excluded$b),At=ut?NativeSelectInput:SelectInput,$t=useFormControl(),Tt=formControlState({props:tt,muiFormControl:$t,states:["variant","error"]}),jt=Tt.variant||St,Gt=_extends$1({},tt,{variant:jt,classes:ot}),Bt=useUtilityClasses$a(Gt),Kt=_objectWithoutPropertiesLoose(Bt,_excluded2),Vt=pt||{standard:jsxRuntimeExports.jsx(StyledInput,{ownerState:Gt}),outlined:jsxRuntimeExports.jsx(StyledOutlinedInput,{label:ft,ownerState:Gt}),filled:jsxRuntimeExports.jsx(StyledFilledInput,{ownerState:Gt})}[jt],Wt=useForkRef(et,Vt.ref);return jsxRuntimeExports.jsx(reactExports.Fragment,{children:reactExports.cloneElement(Vt,_extends$1({inputComponent:At,inputProps:_extends$1({children:rt,error:Tt.error,IconComponent:lt,variant:jt,type:void 0,multiple:ct},ut?{id:ht}:{autoWidth:nt,defaultOpen:st,displayEmpty:at,labelId:dt,MenuProps:mt,onClose:vt,onOpen:bt,open:yt,renderValue:Et,SelectDisplayProps:_extends$1({id:ht},xt)},gt,{classes:gt?deepmerge$1(Kt,gt.classes):Kt},pt?pt.props.inputProps:{})},(ct&&ut||at)&&jt==="outlined"?{notched:!0}:{},{ref:Wt,className:clsx(Vt.props.className,it,Bt.root)},!pt&&{variant:jt},kt))})});Select.muiName="Select";function getTabUtilityClass($){return generateUtilityClass("MuiTab",$)}const tabClasses=generateUtilityClasses("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),_excluded$a=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],useUtilityClasses$9=$=>{const{classes:_e,textColor:et,fullWidth:tt,wrapped:nt,icon:rt,label:ot,selected:it,disabled:st}=$,at={root:["root",rt&&ot&&"labelIcon",`textColor${capitalize$1(et)}`,tt&&"fullWidth",nt&&"wrapped",it&&"selected",st&&"disabled"],iconWrapper:["iconWrapper"]};return composeClasses(at,getTabUtilityClass,_e)},TabRoot=styled(ButtonBase,{name:"MuiTab",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,et.label&&et.icon&&_e.labelIcon,_e[`textColor${capitalize$1(et.textColor)}`],et.fullWidth&&_e.fullWidth,et.wrapped&&_e.wrapped,{[`& .${tabClasses.iconWrapper}`]:_e.iconWrapper}]}})(({theme:$,ownerState:_e})=>_extends$1({},$.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},_e.label&&{flexDirection:_e.iconPosition==="top"||_e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},_e.icon&&_e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${tabClasses.iconWrapper}`]:_extends$1({},_e.iconPosition==="top"&&{marginBottom:6},_e.iconPosition==="bottom"&&{marginTop:6},_e.iconPosition==="start"&&{marginRight:$.spacing(1)},_e.iconPosition==="end"&&{marginLeft:$.spacing(1)})},_e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${tabClasses.selected}`]:{opacity:1},[`&.${tabClasses.disabled}`]:{opacity:($.vars||$).palette.action.disabledOpacity}},_e.textColor==="primary"&&{color:($.vars||$).palette.text.secondary,[`&.${tabClasses.selected}`]:{color:($.vars||$).palette.primary.main},[`&.${tabClasses.disabled}`]:{color:($.vars||$).palette.text.disabled}},_e.textColor==="secondary"&&{color:($.vars||$).palette.text.secondary,[`&.${tabClasses.selected}`]:{color:($.vars||$).palette.secondary.main},[`&.${tabClasses.disabled}`]:{color:($.vars||$).palette.text.disabled}},_e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},_e.wrapped&&{fontSize:$.typography.pxToRem(12)})),Tab=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiTab"}),{className:nt,disabled:rt=!1,disableFocusRipple:ot=!1,fullWidth:it,icon:st,iconPosition:at="top",indicator:lt,label:ht,onChange:pt,onClick:gt,onFocus:ft,selected:dt,selectionFollowsFocus:mt,textColor:ct="inherit",value:ut,wrapped:vt=!1}=tt,bt=_objectWithoutPropertiesLoose(tt,_excluded$a),yt=_extends$1({},tt,{disabled:rt,disableFocusRipple:ot,selected:dt,icon:!!st,iconPosition:at,label:!!ht,fullWidth:it,textColor:ct,wrapped:vt}),Et=useUtilityClasses$9(yt),xt=st&&ht&&reactExports.isValidElement(st)?reactExports.cloneElement(st,{className:clsx(Et.iconWrapper,st.props.className)}):st,St=At=>{!dt&&pt&&pt(At,ut),gt&>(At)},kt=At=>{mt&&!dt&&pt&&pt(At,ut),ft&&ft(At)};return jsxRuntimeExports.jsxs(TabRoot,_extends$1({focusRipple:!ot,className:clsx(Et.root,nt),ref:et,role:"tab","aria-selected":dt,disabled:rt,onClick:St,onFocus:kt,ownerState:yt,tabIndex:dt?0:-1},bt,{children:[at==="top"||at==="start"?jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[xt,ht]}):jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[ht,xt]}),lt]}))}),TableContext=reactExports.createContext();function getTableUtilityClass($){return generateUtilityClass("MuiTable",$)}generateUtilityClasses("MuiTable",["root","stickyHeader"]);const _excluded$9=["className","component","padding","size","stickyHeader"],useUtilityClasses$8=$=>{const{classes:_e,stickyHeader:et}=$;return composeClasses({root:["root",et&&"stickyHeader"]},getTableUtilityClass,_e)},TableRoot=styled("table",{name:"MuiTable",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,et.stickyHeader&&_e.stickyHeader]}})(({theme:$,ownerState:_e})=>_extends$1({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":_extends$1({},$.typography.body2,{padding:$.spacing(2),color:($.vars||$).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},_e.stickyHeader&&{borderCollapse:"separate"})),defaultComponent$3="table",Table=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiTable"}),{className:nt,component:rt=defaultComponent$3,padding:ot="normal",size:it="medium",stickyHeader:st=!1}=tt,at=_objectWithoutPropertiesLoose(tt,_excluded$9),lt=_extends$1({},tt,{component:rt,padding:ot,size:it,stickyHeader:st}),ht=useUtilityClasses$8(lt),pt=reactExports.useMemo(()=>({padding:ot,size:it,stickyHeader:st}),[ot,it,st]);return jsxRuntimeExports.jsx(TableContext.Provider,{value:pt,children:jsxRuntimeExports.jsx(TableRoot,_extends$1({as:rt,role:rt===defaultComponent$3?null:"table",ref:et,className:clsx(ht.root,nt),ownerState:lt},at))})}),Tablelvl2Context=reactExports.createContext();function getTableBodyUtilityClass($){return generateUtilityClass("MuiTableBody",$)}generateUtilityClasses("MuiTableBody",["root"]);const _excluded$8=["className","component"],useUtilityClasses$7=$=>{const{classes:_e}=$;return composeClasses({root:["root"]},getTableBodyUtilityClass,_e)},TableBodyRoot=styled("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:($,_e)=>_e.root})({display:"table-row-group"}),tablelvl2$1={variant:"body"},defaultComponent$2="tbody",TableBody=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiTableBody"}),{className:nt,component:rt=defaultComponent$2}=tt,ot=_objectWithoutPropertiesLoose(tt,_excluded$8),it=_extends$1({},tt,{component:rt}),st=useUtilityClasses$7(it);return jsxRuntimeExports.jsx(Tablelvl2Context.Provider,{value:tablelvl2$1,children:jsxRuntimeExports.jsx(TableBodyRoot,_extends$1({className:clsx(st.root,nt),as:rt,ref:et,role:rt===defaultComponent$2?null:"rowgroup",ownerState:it},ot))})});function getTableCellUtilityClass($){return generateUtilityClass("MuiTableCell",$)}const tableCellClasses=generateUtilityClasses("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),_excluded$7=["align","className","component","padding","scope","size","sortDirection","variant"],useUtilityClasses$6=$=>{const{classes:_e,variant:et,align:tt,padding:nt,size:rt,stickyHeader:ot}=$,it={root:["root",et,ot&&"stickyHeader",tt!=="inherit"&&`align${capitalize$1(tt)}`,nt!=="normal"&&`padding${capitalize$1(nt)}`,`size${capitalize$1(rt)}`]};return composeClasses(it,getTableCellUtilityClass,_e)},TableCellRoot=styled("td",{name:"MuiTableCell",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,_e[et.variant],_e[`size${capitalize$1(et.size)}`],et.padding!=="normal"&&_e[`padding${capitalize$1(et.padding)}`],et.align!=="inherit"&&_e[`align${capitalize$1(et.align)}`],et.stickyHeader&&_e.stickyHeader]}})(({theme:$,ownerState:_e})=>_extends$1({},$.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:$.vars?`1px solid ${$.vars.palette.TableCell.border}`:`1px solid + ${$.palette.mode==="light"?lighten_1(alpha_1($.palette.divider,1),.88):darken_1(alpha_1($.palette.divider,1),.68)}`,textAlign:"left",padding:16},_e.variant==="head"&&{color:($.vars||$).palette.text.primary,lineHeight:$.typography.pxToRem(24),fontWeight:$.typography.fontWeightMedium},_e.variant==="body"&&{color:($.vars||$).palette.text.primary},_e.variant==="footer"&&{color:($.vars||$).palette.text.secondary,lineHeight:$.typography.pxToRem(21),fontSize:$.typography.pxToRem(12)},_e.size==="small"&&{padding:"6px 16px",[`&.${tableCellClasses.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},_e.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},_e.padding==="none"&&{padding:0},_e.align==="left"&&{textAlign:"left"},_e.align==="center"&&{textAlign:"center"},_e.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},_e.align==="justify"&&{textAlign:"justify"},_e.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:($.vars||$).palette.background.default})),TableCell=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiTableCell"}),{align:nt="inherit",className:rt,component:ot,padding:it,scope:st,size:at,sortDirection:lt,variant:ht}=tt,pt=_objectWithoutPropertiesLoose(tt,_excluded$7),gt=reactExports.useContext(TableContext),ft=reactExports.useContext(Tablelvl2Context),dt=ft&&ft.variant==="head";let mt;ot?mt=ot:mt=dt?"th":"td";let ct=st;mt==="td"?ct=void 0:!ct&&dt&&(ct="col");const ut=ht||ft&&ft.variant,vt=_extends$1({},tt,{align:nt,component:mt,padding:it||(gt&>.padding?gt.padding:"normal"),size:at||(gt&>.size?gt.size:"medium"),sortDirection:lt,stickyHeader:ut==="head"&>&>.stickyHeader,variant:ut}),bt=useUtilityClasses$6(vt);let yt=null;return lt&&(yt=lt==="asc"?"ascending":"descending"),jsxRuntimeExports.jsx(TableCellRoot,_extends$1({as:mt,ref:et,className:clsx(bt.root,rt),"aria-sort":yt,scope:ct,ownerState:vt},pt))});function getTableContainerUtilityClass($){return generateUtilityClass("MuiTableContainer",$)}generateUtilityClasses("MuiTableContainer",["root"]);const _excluded$6=["className","component"],useUtilityClasses$5=$=>{const{classes:_e}=$;return composeClasses({root:["root"]},getTableContainerUtilityClass,_e)},TableContainerRoot=styled("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:($,_e)=>_e.root})({width:"100%",overflowX:"auto"}),TableContainer=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiTableContainer"}),{className:nt,component:rt="div"}=tt,ot=_objectWithoutPropertiesLoose(tt,_excluded$6),it=_extends$1({},tt,{component:rt}),st=useUtilityClasses$5(it);return jsxRuntimeExports.jsx(TableContainerRoot,_extends$1({ref:et,as:rt,className:clsx(st.root,nt),ownerState:it},ot))});function getTableHeadUtilityClass($){return generateUtilityClass("MuiTableHead",$)}generateUtilityClasses("MuiTableHead",["root"]);const _excluded$5=["className","component"],useUtilityClasses$4=$=>{const{classes:_e}=$;return composeClasses({root:["root"]},getTableHeadUtilityClass,_e)},TableHeadRoot=styled("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:($,_e)=>_e.root})({display:"table-header-group"}),tablelvl2={variant:"head"},defaultComponent$1="thead",TableHead=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiTableHead"}),{className:nt,component:rt=defaultComponent$1}=tt,ot=_objectWithoutPropertiesLoose(tt,_excluded$5),it=_extends$1({},tt,{component:rt}),st=useUtilityClasses$4(it);return jsxRuntimeExports.jsx(Tablelvl2Context.Provider,{value:tablelvl2,children:jsxRuntimeExports.jsx(TableHeadRoot,_extends$1({as:rt,className:clsx(st.root,nt),ref:et,role:rt===defaultComponent$1?null:"rowgroup",ownerState:it},ot))})}),KeyboardArrowLeft=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),KeyboardArrowRight=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function getTableRowUtilityClass($){return generateUtilityClass("MuiTableRow",$)}const tableRowClasses=generateUtilityClasses("MuiTableRow",["root","selected","hover","head","footer"]),_excluded$4=["className","component","hover","selected"],useUtilityClasses$3=$=>{const{classes:_e,selected:et,hover:tt,head:nt,footer:rt}=$;return composeClasses({root:["root",et&&"selected",tt&&"hover",nt&&"head",rt&&"footer"]},getTableRowUtilityClass,_e)},TableRowRoot=styled("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,et.head&&_e.head,et.footer&&_e.footer]}})(({theme:$})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${tableRowClasses.hover}:hover`]:{backgroundColor:($.vars||$).palette.action.hover},[`&.${tableRowClasses.selected}`]:{backgroundColor:$.vars?`rgba(${$.vars.palette.primary.mainChannel} / ${$.vars.palette.action.selectedOpacity})`:alpha_1($.palette.primary.main,$.palette.action.selectedOpacity),"&:hover":{backgroundColor:$.vars?`rgba(${$.vars.palette.primary.mainChannel} / calc(${$.vars.palette.action.selectedOpacity} + ${$.vars.palette.action.hoverOpacity}))`:alpha_1($.palette.primary.main,$.palette.action.selectedOpacity+$.palette.action.hoverOpacity)}}})),defaultComponent="tr",TableRow=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiTableRow"}),{className:nt,component:rt=defaultComponent,hover:ot=!1,selected:it=!1}=tt,st=_objectWithoutPropertiesLoose(tt,_excluded$4),at=reactExports.useContext(Tablelvl2Context),lt=_extends$1({},tt,{component:rt,hover:ot,selected:it,head:at&&at.variant==="head",footer:at&&at.variant==="footer"}),ht=useUtilityClasses$3(lt);return jsxRuntimeExports.jsx(TableRowRoot,_extends$1({as:rt,ref:et,className:clsx(ht.root,nt),role:rt===defaultComponent?null:"row",ownerState:lt},st))});function easeInOutSin($){return(1+Math.sin(Math.PI*$-Math.PI/2))/2}function animate($,_e,et,tt={},nt=()=>{}){const{ease:rt=easeInOutSin,duration:ot=300}=tt;let it=null;const st=_e[$];let at=!1;const lt=()=>{at=!0},ht=pt=>{if(at){nt(new Error("Animation cancelled"));return}it===null&&(it=pt);const gt=Math.min(1,(pt-it)/ot);if(_e[$]=rt(gt)*(et-st)+st,gt>=1){requestAnimationFrame(()=>{nt(null)});return}requestAnimationFrame(ht)};return st===et?(nt(new Error("Element already at target position")),lt):(requestAnimationFrame(ht),lt)}const _excluded$3=["onChange"],styles={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ScrollbarSize($){const{onChange:_e}=$,et=_objectWithoutPropertiesLoose($,_excluded$3),tt=reactExports.useRef(),nt=reactExports.useRef(null),rt=()=>{tt.current=nt.current.offsetHeight-nt.current.clientHeight};return useEnhancedEffect(()=>{const ot=debounce(()=>{const st=tt.current;rt(),st!==tt.current&&_e(tt.current)}),it=ownerWindow(nt.current);return it.addEventListener("resize",ot),()=>{ot.clear(),it.removeEventListener("resize",ot)}},[_e]),reactExports.useEffect(()=>{rt(),_e(tt.current)},[_e]),jsxRuntimeExports.jsx("div",_extends$1({style:styles,ref:nt},et))}function getTabScrollButtonUtilityClass($){return generateUtilityClass("MuiTabScrollButton",$)}const tabScrollButtonClasses=generateUtilityClasses("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),_excluded$2=["className","slots","slotProps","direction","orientation","disabled"],useUtilityClasses$2=$=>{const{classes:_e,orientation:et,disabled:tt}=$;return composeClasses({root:["root",et,tt&&"disabled"]},getTabScrollButtonUtilityClass,_e)},TabScrollButtonRoot=styled(ButtonBase,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.root,et.orientation&&_e[et.orientation]]}})(({ownerState:$})=>_extends$1({width:40,flexShrink:0,opacity:.8,[`&.${tabScrollButtonClasses.disabled}`]:{opacity:0}},$.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${$.isRtl?-90:90}deg)`}})),TabScrollButton=reactExports.forwardRef(function(_e,et){var tt,nt;const rt=useDefaultProps({props:_e,name:"MuiTabScrollButton"}),{className:ot,slots:it={},slotProps:st={},direction:at}=rt,lt=_objectWithoutPropertiesLoose(rt,_excluded$2),ht=useRtl(),pt=_extends$1({isRtl:ht},rt),gt=useUtilityClasses$2(pt),ft=(tt=it.StartScrollButtonIcon)!=null?tt:KeyboardArrowLeft,dt=(nt=it.EndScrollButtonIcon)!=null?nt:KeyboardArrowRight,mt=useSlotProps({elementType:ft,externalSlotProps:st.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:pt}),ct=useSlotProps({elementType:dt,externalSlotProps:st.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:pt});return jsxRuntimeExports.jsx(TabScrollButtonRoot,_extends$1({component:"div",className:clsx(gt.root,ot),ref:et,role:null,ownerState:pt,tabIndex:null},lt,{children:at==="left"?jsxRuntimeExports.jsx(ft,_extends$1({},mt)):jsxRuntimeExports.jsx(dt,_extends$1({},ct))}))});function getTabsUtilityClass($){return generateUtilityClass("MuiTabs",$)}const tabsClasses=generateUtilityClasses("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),_excluded$1=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],nextItem=($,_e)=>$===_e?$.firstChild:_e&&_e.nextElementSibling?_e.nextElementSibling:$.firstChild,previousItem=($,_e)=>$===_e?$.lastChild:_e&&_e.previousElementSibling?_e.previousElementSibling:$.lastChild,moveFocus=($,_e,et)=>{let tt=!1,nt=et($,_e);for(;nt;){if(nt===$.firstChild){if(tt)return;tt=!0}const rt=nt.disabled||nt.getAttribute("aria-disabled")==="true";if(!nt.hasAttribute("tabindex")||rt)nt=et($,nt);else{nt.focus();return}}},useUtilityClasses$1=$=>{const{vertical:_e,fixed:et,hideScrollbar:tt,scrollableX:nt,scrollableY:rt,centered:ot,scrollButtonsHideMobile:it,classes:st}=$;return composeClasses({root:["root",_e&&"vertical"],scroller:["scroller",et&&"fixed",tt&&"hideScrollbar",nt&&"scrollableX",rt&&"scrollableY"],flexContainer:["flexContainer",_e&&"flexContainerVertical",ot&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",it&&"scrollButtonsHideMobile"],scrollableX:[nt&&"scrollableX"],hideScrollbar:[tt&&"hideScrollbar"]},getTabsUtilityClass,st)},TabsRoot=styled("div",{name:"MuiTabs",slot:"Root",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[{[`& .${tabsClasses.scrollButtons}`]:_e.scrollButtons},{[`& .${tabsClasses.scrollButtons}`]:et.scrollButtonsHideMobile&&_e.scrollButtonsHideMobile},_e.root,et.vertical&&_e.vertical]}})(({ownerState:$,theme:_e})=>_extends$1({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},$.vertical&&{flexDirection:"column"},$.scrollButtonsHideMobile&&{[`& .${tabsClasses.scrollButtons}`]:{[_e.breakpoints.down("sm")]:{display:"none"}}})),TabsScroller=styled("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.scroller,et.fixed&&_e.fixed,et.hideScrollbar&&_e.hideScrollbar,et.scrollableX&&_e.scrollableX,et.scrollableY&&_e.scrollableY]}})(({ownerState:$})=>_extends$1({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},$.fixed&&{overflowX:"hidden",width:"100%"},$.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},$.scrollableX&&{overflowX:"auto",overflowY:"hidden"},$.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),FlexContainer=styled("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:($,_e)=>{const{ownerState:et}=$;return[_e.flexContainer,et.vertical&&_e.flexContainerVertical,et.centered&&_e.centered]}})(({ownerState:$})=>_extends$1({display:"flex"},$.vertical&&{flexDirection:"column"},$.centered&&{justifyContent:"center"})),TabsIndicator=styled("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:($,_e)=>_e.indicator})(({ownerState:$,theme:_e})=>_extends$1({position:"absolute",height:2,bottom:0,width:"100%",transition:_e.transitions.create()},$.indicatorColor==="primary"&&{backgroundColor:(_e.vars||_e).palette.primary.main},$.indicatorColor==="secondary"&&{backgroundColor:(_e.vars||_e).palette.secondary.main},$.vertical&&{height:"100%",width:2,right:0})),TabsScrollbarSize=styled(ScrollbarSize)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),defaultIndicatorStyle={},Tabs=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiTabs"}),nt=useTheme(),rt=useRtl(),{"aria-label":ot,"aria-labelledby":it,action:st,centered:at=!1,children:lt,className:ht,component:pt="div",allowScrollButtonsMobile:gt=!1,indicatorColor:ft="primary",onChange:dt,orientation:mt="horizontal",ScrollButtonComponent:ct=TabScrollButton,scrollButtons:ut="auto",selectionFollowsFocus:vt,slots:bt={},slotProps:yt={},TabIndicatorProps:Et={},TabScrollButtonProps:xt={},textColor:St="primary",value:kt,variant:At="standard",visibleScrollbar:$t=!1}=tt,Tt=_objectWithoutPropertiesLoose(tt,_excluded$1),jt=At==="scrollable",Gt=mt==="vertical",Bt=Gt?"scrollTop":"scrollLeft",Kt=Gt?"top":"left",Vt=Gt?"bottom":"right",Wt=Gt?"clientHeight":"clientWidth",It=Gt?"height":"width",Ft=_extends$1({},tt,{component:pt,allowScrollButtonsMobile:gt,indicatorColor:ft,orientation:mt,vertical:Gt,scrollButtons:ut,textColor:St,variant:At,visibleScrollbar:$t,fixed:!jt,hideScrollbar:jt&&!$t,scrollableX:jt&&!Gt,scrollableY:jt&&Gt,centered:at&&!jt,scrollButtonsHideMobile:!gt}),Yt=useUtilityClasses$1(Ft),Dt=useSlotProps({elementType:bt.StartScrollButtonIcon,externalSlotProps:yt.startScrollButtonIcon,ownerState:Ft}),Rt=useSlotProps({elementType:bt.EndScrollButtonIcon,externalSlotProps:yt.endScrollButtonIcon,ownerState:Ft}),[wt,Mt]=reactExports.useState(!1),[Ot,zt]=reactExports.useState(defaultIndicatorStyle),[Ht,Jt]=reactExports.useState(!1),[pn,gn]=reactExports.useState(!1),[bn,yn]=reactExports.useState(!1),[$n,kn]=reactExports.useState({overflow:"hidden",scrollbarWidth:0}),hn=new Map,un=reactExports.useRef(null),Lt=reactExports.useRef(null),Ut=()=>{const fn=un.current;let en;if(fn){const zn=fn.getBoundingClientRect();en={clientWidth:fn.clientWidth,scrollLeft:fn.scrollLeft,scrollTop:fn.scrollTop,scrollLeftNormalized:getNormalizedScrollLeft(fn,rt?"rtl":"ltr"),scrollWidth:fn.scrollWidth,top:zn.top,bottom:zn.bottom,left:zn.left,right:zn.right}}let an;if(fn&&kt!==!1){const zn=Lt.current.children;if(zn.length>0){const qn=zn[hn.get(kt)];an=qn?qn.getBoundingClientRect():null}}return{tabsMeta:en,tabMeta:an}},nn=useEventCallback(()=>{const{tabsMeta:fn,tabMeta:en}=Ut();let an=0,zn;if(Gt)zn="top",en&&fn&&(an=en.top-fn.top+fn.scrollTop);else if(zn=rt?"right":"left",en&&fn){const Jn=rt?fn.scrollLeftNormalized+fn.clientWidth-fn.scrollWidth:fn.scrollLeft;an=(rt?-1:1)*(en[zn]-fn[zn]+Jn)}const qn={[zn]:an,[It]:en?en[It]:0};if(isNaN(Ot[zn])||isNaN(Ot[It]))zt(qn);else{const Jn=Math.abs(Ot[zn]-qn[zn]),Zt=Math.abs(Ot[It]-qn[It]);(Jn>=1||Zt>=1)&&zt(qn)}}),sn=(fn,{animation:en=!0}={})=>{en?animate(Bt,un.current,fn,{duration:nt.transitions.duration.standard}):un.current[Bt]=fn},vn=fn=>{let en=un.current[Bt];Gt?en+=fn:(en+=fn*(rt?-1:1),en*=rt&&detectScrollType()==="reverse"?-1:1),sn(en)},Tn=()=>{const fn=un.current[Wt];let en=0;const an=Array.from(Lt.current.children);for(let zn=0;znfn){zn===0&&(en=fn);break}en+=qn[Wt]}return en},Rn=()=>{vn(-1*Tn())},on=()=>{vn(Tn())},Bn=reactExports.useCallback(fn=>{kn({overflow:null,scrollbarWidth:fn})},[]),Ln=()=>{const fn={};fn.scrollbarSizeListener=jt?jsxRuntimeExports.jsx(TabsScrollbarSize,{onChange:Bn,className:clsx(Yt.scrollableX,Yt.hideScrollbar)}):null;const an=jt&&(ut==="auto"&&(Ht||pn)||ut===!0);return fn.scrollButtonStart=an?jsxRuntimeExports.jsx(ct,_extends$1({slots:{StartScrollButtonIcon:bt.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Dt},orientation:mt,direction:rt?"right":"left",onClick:Rn,disabled:!Ht},xt,{className:clsx(Yt.scrollButtons,xt.className)})):null,fn.scrollButtonEnd=an?jsxRuntimeExports.jsx(ct,_extends$1({slots:{EndScrollButtonIcon:bt.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Rt},orientation:mt,direction:rt?"left":"right",onClick:on,disabled:!pn},xt,{className:clsx(Yt.scrollButtons,xt.className)})):null,fn},Zn=useEventCallback(fn=>{const{tabsMeta:en,tabMeta:an}=Ut();if(!(!an||!en)){if(an[Kt]en[Vt]){const zn=en[Bt]+(an[Vt]-en[Vt]);sn(zn,{animation:fn})}}}),Nn=useEventCallback(()=>{jt&&ut!==!1&&yn(!bn)});reactExports.useEffect(()=>{const fn=debounce(()=>{un.current&&nn()});let en;const an=Jn=>{Jn.forEach(Zt=>{Zt.removedNodes.forEach(Mn=>{var Un;(Un=en)==null||Un.unobserve(Mn)}),Zt.addedNodes.forEach(Mn=>{var Un;(Un=en)==null||Un.observe(Mn)})}),fn(),Nn()},zn=ownerWindow(un.current);zn.addEventListener("resize",fn);let qn;return typeof ResizeObserver<"u"&&(en=new ResizeObserver(fn),Array.from(Lt.current.children).forEach(Jn=>{en.observe(Jn)})),typeof MutationObserver<"u"&&(qn=new MutationObserver(an),qn.observe(Lt.current,{childList:!0})),()=>{var Jn,Zt;fn.clear(),zn.removeEventListener("resize",fn),(Jn=qn)==null||Jn.disconnect(),(Zt=en)==null||Zt.disconnect()}},[nn,Nn]),reactExports.useEffect(()=>{const fn=Array.from(Lt.current.children),en=fn.length;if(typeof IntersectionObserver<"u"&&en>0&&jt&&ut!==!1){const an=fn[0],zn=fn[en-1],qn={root:un.current,threshold:.99},Jn=er=>{Jt(!er[0].isIntersecting)},Zt=new IntersectionObserver(Jn,qn);Zt.observe(an);const Mn=er=>{gn(!er[0].isIntersecting)},Un=new IntersectionObserver(Mn,qn);return Un.observe(zn),()=>{Zt.disconnect(),Un.disconnect()}}},[jt,ut,bn,lt==null?void 0:lt.length]),reactExports.useEffect(()=>{Mt(!0)},[]),reactExports.useEffect(()=>{nn()}),reactExports.useEffect(()=>{Zn(defaultIndicatorStyle!==Ot)},[Zn,Ot]),reactExports.useImperativeHandle(st,()=>({updateIndicator:nn,updateScrollButtons:Nn}),[nn,Nn]);const mr=jsxRuntimeExports.jsx(TabsIndicator,_extends$1({},Et,{className:clsx(Yt.indicator,Et.className),ownerState:Ft,style:_extends$1({},Ot,Et.style)}));let Xn=0;const tr=reactExports.Children.map(lt,fn=>{if(!reactExports.isValidElement(fn))return null;const en=fn.props.value===void 0?Xn:fn.props.value;hn.set(en,Xn);const an=en===kt;return Xn+=1,reactExports.cloneElement(fn,_extends$1({fullWidth:At==="fullWidth",indicator:an&&!wt&&mr,selected:an,selectionFollowsFocus:vt,onChange:dt,textColor:St,value:en},Xn===1&&kt===!1&&!fn.props.tabIndex?{tabIndex:0}:{}))}),Wn=fn=>{const en=Lt.current,an=ownerDocument(en).activeElement;if(an.getAttribute("role")!=="tab")return;let qn=mt==="horizontal"?"ArrowLeft":"ArrowUp",Jn=mt==="horizontal"?"ArrowRight":"ArrowDown";switch(mt==="horizontal"&&rt&&(qn="ArrowRight",Jn="ArrowLeft"),fn.key){case qn:fn.preventDefault(),moveFocus(en,an,previousItem);break;case Jn:fn.preventDefault(),moveFocus(en,an,nextItem);break;case"Home":fn.preventDefault(),moveFocus(en,null,nextItem);break;case"End":fn.preventDefault(),moveFocus(en,null,previousItem);break}},cr=Ln();return jsxRuntimeExports.jsxs(TabsRoot,_extends$1({className:clsx(Yt.root,ht),ownerState:Ft,ref:et,as:pt},Tt,{children:[cr.scrollButtonStart,cr.scrollbarSizeListener,jsxRuntimeExports.jsxs(TabsScroller,{className:Yt.scroller,ownerState:Ft,style:{overflow:$n.overflow,[Gt?`margin${rt?"Left":"Right"}`:"marginBottom"]:$t?void 0:-$n.scrollbarWidth},ref:un,children:[jsxRuntimeExports.jsx(FlexContainer,{"aria-label":ot,"aria-labelledby":it,"aria-orientation":mt==="vertical"?"vertical":null,className:Yt.flexContainer,ownerState:Ft,onKeyDown:Wn,ref:Lt,role:"tablist",children:tr}),wt&&mr]}),cr.scrollButtonEnd]}))});function getTextFieldUtilityClass($){return generateUtilityClass("MuiTextField",$)}generateUtilityClasses("MuiTextField",["root"]);const _excluded=["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"],variantComponent={standard:Input,filled:FilledInput,outlined:OutlinedInput},useUtilityClasses=$=>{const{classes:_e}=$;return composeClasses({root:["root"]},getTextFieldUtilityClass,_e)},TextFieldRoot=styled(FormControl,{name:"MuiTextField",slot:"Root",overridesResolver:($,_e)=>_e.root})({}),TextField=reactExports.forwardRef(function(_e,et){const tt=useDefaultProps({props:_e,name:"MuiTextField"}),{autoComplete:nt,autoFocus:rt=!1,children:ot,className:it,color:st="primary",defaultValue:at,disabled:lt=!1,error:ht=!1,FormHelperTextProps:pt,fullWidth:gt=!1,helperText:ft,id:dt,InputLabelProps:mt,inputProps:ct,InputProps:ut,inputRef:vt,label:bt,maxRows:yt,minRows:Et,multiline:xt=!1,name:St,onBlur:kt,onChange:At,onFocus:$t,placeholder:Tt,required:jt=!1,rows:Gt,select:Bt=!1,SelectProps:Kt,type:Vt,value:Wt,variant:It="outlined"}=tt,Ft=_objectWithoutPropertiesLoose(tt,_excluded),Yt=_extends$1({},tt,{autoFocus:rt,color:st,disabled:lt,error:ht,fullWidth:gt,multiline:xt,required:jt,select:Bt,variant:It}),Dt=useUtilityClasses(Yt),Rt={};It==="outlined"&&(mt&&typeof mt.shrink<"u"&&(Rt.notched=mt.shrink),Rt.label=bt),Bt&&((!Kt||!Kt.native)&&(Rt.id=void 0),Rt["aria-describedby"]=void 0);const wt=useId(dt),Mt=ft&&wt?`${wt}-helper-text`:void 0,Ot=bt&&wt?`${wt}-label`:void 0,zt=variantComponent[It],Ht=jsxRuntimeExports.jsx(zt,_extends$1({"aria-describedby":Mt,autoComplete:nt,autoFocus:rt,defaultValue:at,fullWidth:gt,multiline:xt,name:St,rows:Gt,maxRows:yt,minRows:Et,type:Vt,value:Wt,id:wt,inputRef:vt,onBlur:kt,onChange:At,onFocus:$t,placeholder:Tt,inputProps:ct},Rt,ut));return jsxRuntimeExports.jsxs(TextFieldRoot,_extends$1({className:clsx(Dt.root,it),disabled:lt,error:ht,fullWidth:gt,ref:et,required:jt,color:st,variant:It,ownerState:Yt},Ft,{children:[bt!=null&&bt!==""&&jsxRuntimeExports.jsx(InputLabel,_extends$1({htmlFor:wt,id:Ot},mt,{children:bt})),Bt?jsxRuntimeExports.jsx(Select,_extends$1({"aria-describedby":Mt,id:wt,labelId:Ot,value:Wt,input:Ht},Kt,{children:ot})):Ht,ft&&jsxRuntimeExports.jsx(FormHelperText,_extends$1({id:Mt},pt,{children:ft}))]}))}),Login=()=>{const[$,_e]=reactExports.useState({email:"",password:""}),[et,tt]=reactExports.useState(""),nt=useNavigate();function rt(st){const{name:at,value:lt}=st.target;_e({...$,[at]:lt})}const ot=st=>/^(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*()])(?=.*\d).{8,}$/.test(st),it=async st=>{st.preventDefault();try{if(!ot($.password)){tt("Invalid Email or Password.");return;//! we can give swal msg (Invalid password) +}//! if (role===admin) navigate('/admin') else navigate('/user') +console.log($),nt("/dashboard"),tt("")}catch(at){console.log(at)}};return jsxRuntimeExports.jsx(React.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"login-page-container",children:[jsxRuntimeExports.jsx("video",{src:background,width:"600",height:"400",loop:!0,autoPlay:!0,muted:!0}),jsxRuntimeExports.jsxs("div",{className:"header-container",children:[jsxRuntimeExports.jsx("h2",{className:"welcome-txt",children:"Welcome"}),jsxRuntimeExports.jsx("h2",{children:"Contract Negotiation.Ai"})]}),jsxRuntimeExports.jsxs("div",{className:"login-form-container",children:[jsxRuntimeExports.jsx("h2",{children:"Sign In"}),jsxRuntimeExports.jsxs("form",{onSubmit:it,children:[jsxRuntimeExports.jsx("input",{type:"email",name:"email",onChange:rt,placeholder:"Email",required:!0}),jsxRuntimeExports.jsx("input",{type:"password",name:"password",onChange:rt,placeholder:"Password",title:"Password must be at least 8 characters long, contain at least one lowercase letter, one uppercase letter, one number, and one special character (!@#$%^&*()).",required:!0}),et&&jsxRuntimeExports.jsx("div",{className:"error-box",children:et}),jsxRuntimeExports.jsx("button",{className:"login-signup-btn",type:"submit",children:"Login"})]}),jsxRuntimeExports.jsx(Link,{to:"/forgetpassword",className:"forget-password",children:"Forget Password?"}),jsxRuntimeExports.jsx(Divider,{children:jsxRuntimeExports.jsx(Typography,{variant:"body1",style:{backgroundColor:"#fff",padding:"0 10px"},children:"OR"})}),jsxRuntimeExports.jsx("button",{className:"login-signup-btn",onClick:()=>nt("/signup"),children:"SignUp"})]})]})})};var createSvgIcon={};const require$$0=getAugmentedNamespace(utils$2);var hasRequiredCreateSvgIcon;function requireCreateSvgIcon(){return hasRequiredCreateSvgIcon||(hasRequiredCreateSvgIcon=1,function($){"use client";Object.defineProperty($,"__esModule",{value:!0}),Object.defineProperty($,"default",{enumerable:!0,get:function(){return _e.createSvgIcon}});var _e=require$$0}(createSvgIcon)),createSvgIcon}var NotificationsNone={},_interopRequireDefault$f=interopRequireDefaultExports;Object.defineProperty(NotificationsNone,"__esModule",{value:!0});var default_1$f=NotificationsNone.default=void 0,_createSvgIcon$f=_interopRequireDefault$f(requireCreateSvgIcon()),_jsxRuntime$f=jsxRuntimeExports;default_1$f=NotificationsNone.default=(0,_createSvgIcon$f.default)((0,_jsxRuntime$f.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"}),"NotificationsNone");var ArrowForwardIos={},_interopRequireDefault$e=interopRequireDefaultExports;Object.defineProperty(ArrowForwardIos,"__esModule",{value:!0});var default_1$e=ArrowForwardIos.default=void 0,_createSvgIcon$e=_interopRequireDefault$e(requireCreateSvgIcon()),_jsxRuntime$e=jsxRuntimeExports;default_1$e=ArrowForwardIos.default=(0,_createSvgIcon$e.default)((0,_jsxRuntime$e.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos");const AccountCircle=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle"),Done=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),ErrorOutline=createSvgIcon$1(jsxRuntimeExports.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),logo="/assets/Johnson_Electric-Logo-BL_C9Vn2.png",jlogo="/assets/jlogo-Dx61QuEK.jpg",dashboardSvg="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20d='M14%2012C14%2013.019%2013.692%2013.964%2013.168%2014.754L10.293%2011.879C10.105%2011.691%2010%2011.437%2010%2011.172V7.101C12.282%207.564%2014%209.581%2014%2012ZM8%2011.586V7.101C5.45%207.619%203.604%2010.077%204.073%2012.868C4.398%2014.802%205.893%2016.411%207.802%2016.86C9.272%2017.205%2010.662%2016.893%2011.754%2016.169L8.585%2013C8.21%2012.625%208%2012.116%208%2011.586ZM19%207H17C16.447%207%2016%207.448%2016%208C16%208.552%2016.447%209%2017%209H19C19.553%209%2020%208.552%2020%208C20%207.448%2019.553%207%2019%207ZM19%2011H17C16.447%2011%2016%2011.448%2016%2012C16%2012.552%2016.447%2013%2017%2013H19C19.553%2013%2020%2012.552%2020%2012C20%2011.448%2019.553%2011%2019%2011ZM19%2015H17C16.447%2015%2016%2015.448%2016%2016C16%2016.552%2016.447%2017%2017%2017H19C19.553%2017%2020%2016.552%2020%2016C20%2015.448%2019.553%2015%2019%2015ZM24%208V16C24%2018.757%2021.757%2021%2019%2021H5C2.243%2021%200%2018.757%200%2016V8C0%205.243%202.243%203%205%203H19C21.757%203%2024%205.243%2024%208ZM22%208C22%206.346%2020.654%205%2019%205H5C3.346%205%202%206.346%202%208V16C2%2017.654%203.346%2019%205%2019H19C20.654%2019%2022%2017.654%2022%2016V8Z'%20fill='black'/%3e%3c/svg%3e",digitalLibrarySvg="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_407_1747)'%3e%3cpath%20d='M13%2011H21C22.654%2011%2024%209.654%2024%208V5C24%203.346%2022.654%202%2021%202H18.414L17%200.586C16.622%200.208%2016.12%200%2015.586%200H13C11.346%200%2010%201.346%2010%203V5H2V1C2%200.447%201.552%200%201%200C0.448%200%200%200.447%200%201V15C0%2017.757%202.243%2020%205%2020H10V21C10%2022.654%2011.346%2024%2013%2024H21C22.654%2024%2024%2022.654%2024%2021V18C24%2016.346%2022.654%2015%2021%2015H18.414L17%2013.586C16.622%2013.208%2016.12%2013%2015.586%2013H13C11.346%2013%2010%2014.346%2010%2016V18H5C3.346%2018%202%2016.654%202%2015V7H10V8C10%209.654%2011.346%2011%2013%2011ZM12%2016C12%2015.448%2012.449%2015%2013%2015H15.586L17%2016.414C17.378%2016.792%2017.88%2017%2018.414%2017H21C21.551%2017%2022%2017.448%2022%2018V21C22%2021.552%2021.551%2022%2021%2022H13C12.449%2022%2012%2021.552%2012%2021V16ZM12%203C12%202.448%2012.449%202%2013%202H15.586L17%203.414C17.378%203.792%2017.88%204%2018.414%204H21C21.551%204%2022%204.448%2022%205V8C22%208.552%2021.551%209%2021%209H13C12.449%209%2012%208.552%2012%208V3Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_407_1747'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Workflow$1="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cg%20clip-path='url(%23clip0_548_1443)'%3e%3cpath%20d='M3%2017C3.553%2017%204%2016.553%204%2016C4%2015.447%204.448%2015%205%2015H11V16C11%2016.553%2011.447%2017%2012%2017C12.553%2017%2013%2016.553%2013%2016V15H19C19.552%2015%2020%2015.448%2020%2016C20%2016.552%2020.447%2017%2021%2017C21.553%2017%2022%2016.553%2022%2016C22%2014.346%2020.654%2013%2019%2013H13V11.899C14.08%2011.679%2015.035%2011.109%2015.74%2010.314L16.696%2010.866C16.853%2010.957%2017.025%2011%2017.195%2011C17.541%2011%2017.877%2010.821%2018.062%2010.5C18.338%2010.021%2018.174%209.40995%2017.696%209.13395L16.743%208.58395C16.91%208.08595%2017%207.55395%2017%207.00095C17%206.44795%2016.909%205.91495%2016.743%205.41795L17.696%204.86795C18.175%204.59195%2018.339%203.97995%2018.062%203.50195C17.785%203.02295%2017.172%202.85895%2016.696%203.13595L15.74%203.68795C15.034%202.89295%2014.08%202.32295%2013%202.10295V1.00195C13%200.449953%2012.553%200.00195312%2012%200.00195312C11.447%200.00195312%2011%200.449953%2011%201.00195V2.10295C9.92%202.32295%208.965%202.89295%208.26%203.68795L7.304%203.13595C6.825%202.85895%206.214%203.02295%205.938%203.50195C5.662%203.98095%205.826%204.59195%206.304%204.86795L7.257%205.41795C7.09%205.91595%207%206.44795%207%207.00095C7%207.55395%207.091%208.08695%207.257%208.58395L6.304%209.13395C5.825%209.40995%205.661%2010.022%205.938%2010.5C6.124%2010.821%206.459%2011%206.805%2011C6.975%2011%207.147%2010.957%207.304%2010.866L8.26%2010.314C8.966%2011.109%209.92%2011.679%2011%2011.899V13H5C3.346%2013%202%2014.346%202%2016C2%2016.553%202.447%2017%203%2017ZM9%206.99995C9%205.34595%2010.346%203.99995%2012%203.99995C13.654%203.99995%2015%205.34595%2015%206.99995C15%208.65395%2013.654%209.99995%2012%209.99995C10.346%209.99995%209%208.65395%209%206.99995ZM13%2018H11C9.897%2018%209%2018.897%209%2020V22C9%2023.103%209.897%2024%2011%2024H13C14.103%2024%2015%2023.103%2015%2022V20C15%2018.897%2014.103%2018%2013%2018ZM13%2022H11V20H13V22ZM22%2018H20C18.897%2018%2018%2018.897%2018%2020V22C18%2023.103%2018.897%2024%2020%2024H22C23.103%2024%2024%2023.103%2024%2022V20C24%2018.897%2023.103%2018%2022%2018ZM22%2022H20V20H22V22ZM4%2018H2C0.897%2018%200%2018.897%200%2020V22C0%2023.103%200.897%2024%202%2024H4C5.103%2024%206%2023.103%206%2022V20C6%2018.897%205.103%2018%204%2018ZM4%2022H2V20H4V22Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_548_1443'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",DocumentIngestion$1="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19%203.00095H12.472C12.318%203.00095%2012.162%202.96495%2012.025%202.89595L8.872%201.31995C8.457%201.11195%207.993%201.00195%207.528%201.00195H5C2.243%201.00095%200%203.24395%200%206.00095V18.001C0%2020.758%202.243%2023.001%205%2023.001H8C8.552%2023.001%209%2022.554%209%2022.001C9%2021.448%208.552%2021.001%208%2021.001H5C3.346%2021.001%202%2019.655%202%2018.001V9.00095H22V18.001C22%2019.655%2020.654%2021.001%2019%2021.001H16C15.448%2021.001%2015%2021.448%2015%2022.001C15%2022.554%2015.448%2023.001%2016%2023.001H19C21.757%2023.001%2024%2020.758%2024%2018.001V8.00095C24%205.24395%2021.757%203.00095%2019%203.00095ZM2%206.00095C2%204.34695%203.346%203.00095%205%203.00095H7.528C7.682%203.00095%207.836%203.03695%207.975%203.10695L11.131%204.68395C11.546%204.89095%2012.009%204.99995%2012.472%204.99995H19C20.302%204.99995%2021.402%205.83895%2021.816%206.99995H2V6.00095ZM14.293%2015.897L13%2014.604V22.001C13%2022.554%2012.552%2023.001%2012%2023.001C11.448%2023.001%2011%2022.554%2011%2022.001V14.604L9.707%2015.897C9.512%2016.092%209.256%2016.19%209%2016.19C8.744%2016.19%208.488%2016.092%208.293%2015.897C7.902%2015.506%207.902%2014.874%208.293%2014.483L9.906%2012.87C11.024%2011.751%2012.975%2011.751%2014.094%2012.87L15.707%2014.483C16.098%2014.874%2016.098%2015.506%2015.707%2015.897C15.316%2016.288%2014.684%2016.288%2014.293%2015.897Z'%20fill='black'/%3e%3c/svg%3e";var DescriptionOutlined={},_interopRequireDefault$d=interopRequireDefaultExports;Object.defineProperty(DescriptionOutlined,"__esModule",{value:!0});var default_1$d=DescriptionOutlined.default=void 0,_createSvgIcon$d=_interopRequireDefault$d(requireCreateSvgIcon()),_jsxRuntime$d=jsxRuntimeExports;default_1$d=DescriptionOutlined.default=(0,_createSvgIcon$d.default)((0,_jsxRuntime$d.jsx)("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"}),"DescriptionOutlined");const support="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M10.8333%2013.3333H10V10H9.16667M10%206.66667H10.0083M17.5%2010C17.5%2014.1421%2014.1421%2017.5%2010%2017.5C5.85786%2017.5%202.5%2014.1421%202.5%2010C2.5%205.85786%205.85786%202.5%2010%202.5C14.1421%202.5%2017.5%205.85786%2017.5%2010Z'%20stroke='%2364748B'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",setting="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M8.60386%203.59776C8.95919%202.13408%2011.0408%202.13408%2011.3961%203.59776C11.6257%204.54327%2012.709%204.99198%2013.5398%204.48571C14.8261%203.70199%2016.298%205.17392%2015.5143%206.46015C15.008%207.29105%2015.4567%208.37431%2016.4022%208.60386C17.8659%208.95919%2017.8659%2011.0408%2016.4022%2011.3961C15.4567%2011.6257%2015.008%2012.709%2015.5143%2013.5398C16.298%2014.8261%2014.8261%2016.298%2013.5398%2015.5143C12.709%2015.008%2011.6257%2015.4567%2011.3961%2016.4022C11.0408%2017.8659%208.95919%2017.8659%208.60386%2016.4022C8.37431%2015.4567%207.29105%2015.008%206.46016%2015.5143C5.17392%2016.298%203.70199%2014.8261%204.48571%2013.5398C4.99198%2012.709%204.54327%2011.6257%203.59776%2011.3961C2.13408%2011.0408%202.13408%208.95919%203.59776%208.60386C4.54327%208.37431%204.99198%207.29105%204.48571%206.46015C3.70199%205.17392%205.17392%203.70199%206.46015%204.48571C7.29105%204.99198%208.37431%204.54327%208.60386%203.59776Z'%20stroke='%2364748B'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.5%2010C12.5%2011.3807%2011.3807%2012.5%2010%2012.5C8.61929%2012.5%207.5%2011.3807%207.5%2010C7.5%208.61929%208.61929%207.5%2010%207.5C11.3807%207.5%2012.5%208.61929%2012.5%2010Z'%20stroke='%2364748B'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",chatbox="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19.0254%2012V18C19.0254%2018.552%2018.5774%2019%2018.0254%2019C17.4734%2019%2017.0254%2018.552%2017.0254%2018V12C17.0254%2011.448%2017.4734%2011%2018.0254%2011C18.5774%2011%2019.0254%2011.448%2019.0254%2012ZM11.6054%206.717L14.6764%2017.746C14.8514%2018.376%2014.3784%2019%2013.7234%2019C13.2804%2019%2012.8924%2018.706%2012.7714%2018.28L12.1284%2016H6.92239L6.27939%2018.28C6.15939%2018.706%205.77039%2019%205.32739%2019C4.67339%2019%204.19939%2018.376%204.37439%2017.746L7.46539%206.638C7.60639%206.03%208.00639%205.518%208.56339%205.233C9.13139%204.941%209.78339%204.923%2010.4024%205.183C10.9894%205.429%2011.4394%206%2011.6064%206.718L11.6054%206.717ZM11.5644%2014L9.63539%207.165C9.60639%207.051%209.44439%207.051%209.41639%207.165L7.48739%2014H11.5644ZM23.0264%2010C22.4744%2010%2022.0264%2010.448%2022.0264%2011V19C22.0264%2020.654%2020.6804%2022%2019.0264%2022H5.02539C3.37139%2022%202.02539%2020.654%202.02539%2019V5C2.02539%203.346%203.37139%202%205.02539%202H13.0254C13.5774%202%2014.0254%201.552%2014.0254%201C14.0254%200.448%2013.5774%200%2013.0254%200H5.02539C2.26839%200%200.0253906%202.243%200.0253906%205V19C0.0253906%2021.757%202.26839%2024%205.02539%2024H19.0254C21.7824%2024%2024.0254%2021.757%2024.0254%2019V11C24.0254%2010.448%2023.5774%2010%2023.0254%2010H23.0264ZM16.1764%205.18L18.0444%205.967L18.7894%207.832C18.9504%208.236%2019.3414%208.5%2019.7764%208.5C20.2114%208.5%2020.6014%208.235%2020.7634%207.832L21.5044%205.978L23.3584%205.237C23.7624%205.076%2024.0264%204.685%2024.0264%204.25C24.0264%203.815%2023.7614%203.425%2023.3584%203.263L21.5044%202.522L20.7634%200.668C20.6004%200.265%2020.2094%200%2019.7754%200C19.3414%200%2018.9504%200.265%2018.7884%200.668L18.0514%202.511L16.2114%203.208C15.8054%203.362%2015.5334%203.748%2015.5254%204.182C15.5174%204.617%2015.7754%205.012%2016.1754%205.181L16.1764%205.18Z'%20fill='black'/%3e%3c/svg%3e",Sidebar=()=>{const[$,_e]=reactExports.useState(!0),et=()=>{_e(!1)},tt=()=>{_e(!0)};return jsxRuntimeExports.jsx(React.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:`sidebar-container ${$?"collapsed":""}`,onMouseEnter:et,onMouseLeave:tt,children:[jsxRuntimeExports.jsxs("div",{className:"nav-logo",children:[$?jsxRuntimeExports.jsx("img",{src:jlogo,className:"jlogo",alt:"logo"}):jsxRuntimeExports.jsx("img",{src:logo,alt:"logo",className:"logo"}),!$&&jsxRuntimeExports.jsx("p",{style:{color:"#F97316",fontWeight:"bolder",padding:"0",margin:"0 0px 0 30px"},children:"Contract Negotiation.Ai"})]}),jsxRuntimeExports.jsxs(NavLink,{to:"/dashboard",className:"sidebar-link",children:[jsxRuntimeExports.jsx("img",{src:dashboardSvg,alt:"My SVG",className:"sidebar-icon"}),!$&&"Dashboard"]}),jsxRuntimeExports.jsxs(NavLink,{to:"/document-ingestion",className:"sidebar-link",children:[jsxRuntimeExports.jsx("img",{src:DocumentIngestion$1,alt:"My SVG",className:"sidebar-icon"}),!$&&"Document Ingestion"]}),jsxRuntimeExports.jsxs(NavLink,{to:"/Workflow",className:"sidebar-link",children:[jsxRuntimeExports.jsx("img",{src:Workflow$1,alt:"My SVG",className:"sidebar-icon"}),!$&&"Workflow"]}),jsxRuntimeExports.jsxs(NavLink,{to:"/digital-library",className:"sidebar-link",children:[jsxRuntimeExports.jsx("img",{src:digitalLibrarySvg,alt:"My SVG",className:"sidebar-icon"}),!$&&"Digital library"]}),jsxRuntimeExports.jsxs(NavLink,{to:"/chat-box",className:"sidebar-link",children:[jsxRuntimeExports.jsx("img",{src:chatbox,alt:"My SVG",className:"sidebar-icon"}),!$&&"Chat Box"]}),jsxRuntimeExports.jsxs(NavLink,{to:"/upload-doc",className:"sidebar-link",children:[jsxRuntimeExports.jsx(default_1$d,{alt:"My SVG",className:"sidebar-icon"}),!$&&"Contract Negotiation"]}),jsxRuntimeExports.jsx("div",{className:`sidebar-divider ${$?"collapsed":""}`}),jsxRuntimeExports.jsxs(NavLink,{to:"/notifications",className:"sidebar-link last-five",children:[jsxRuntimeExports.jsx(default_1$f,{className:"sidebar-icon notification"}),!$&&"Notifications"]}),jsxRuntimeExports.jsxs(NavLink,{to:"/settings",className:"sidebar-link last-five",children:[jsxRuntimeExports.jsx("img",{src:setting,alt:"My SVG",className:"sidebar-icon "}),!$&&"Settings"]}),jsxRuntimeExports.jsxs(NavLink,{to:"/support",className:"sidebar-link last-five",children:[jsxRuntimeExports.jsx("img",{src:support,alt:"My SVG",className:"sidebar-icon "}),!$&&"Support"]}),jsxRuntimeExports.jsxs(NavLink,{to:"/",className:"sidebar-link last-five",children:[jsxRuntimeExports.jsx("img",{src:support,alt:"My SVG",className:"sidebar-icon "}),!$&&"Logout"]}),jsxRuntimeExports.jsxs(NavLink,{to:"/admin",className:"sidebar-link last-five",children:[jsxRuntimeExports.jsx("img",{src:support,alt:"My SVG",className:"sidebar-icon "}),!$&&"Admin"]}),jsxRuntimeExports.jsx("div",{className:`sidebar-divider ${$?"collapsed":""}`}),jsxRuntimeExports.jsxs("div",{className:"user-profile",children:[jsxRuntimeExports.jsx(AccountCircle,{className:"user-image"})," ",!$&&jsxRuntimeExports.jsxs("div",{className:"user-info",children:[jsxRuntimeExports.jsx("span",{className:"welcome-text",children:"Welcome back 👋"}),jsxRuntimeExports.jsx("span",{className:"username",children:"Johnathan"})]}),!$&&jsxRuntimeExports.jsx(default_1$e,{className:"arrow-icon"})]})]})})};var Add={},_interopRequireDefault$c=interopRequireDefaultExports;Object.defineProperty(Add,"__esModule",{value:!0});var default_1$c=Add.default=void 0,_createSvgIcon$c=_interopRequireDefault$c(requireCreateSvgIcon()),_jsxRuntime$c=jsxRuntimeExports;default_1$c=Add.default=(0,_createSvgIcon$c.default)((0,_jsxRuntime$c.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");const AiAgent="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M30.1245%2019V28.5C30.1245%2029.374%2029.4152%2030.0833%2028.5412%2030.0833C27.6672%2030.0833%2026.9578%2029.374%2026.9578%2028.5V19C26.9578%2018.126%2027.6672%2017.4167%2028.5412%2017.4167C29.4152%2017.4167%2030.1245%2018.126%2030.1245%2019ZM18.3762%2010.6353L23.2386%2028.0978C23.5157%2029.0953%2022.7668%2030.0833%2021.7297%2030.0833C21.0283%2030.0833%2020.4139%2029.6178%2020.2223%2028.9433L19.2043%2025.3333H10.9614L9.94334%2028.9433C9.75333%2029.6178%209.13742%2030.0833%208.436%2030.0833C7.4005%2030.0833%206.65%2029.0953%206.92708%2028.0978L11.8212%2010.5102C12.0444%209.5475%2012.6778%208.73683%2013.5597%208.28558C14.459%207.82325%2015.4913%207.79475%2016.4714%208.20642C17.4008%208.59592%2018.1133%209.5%2018.3778%2010.6368L18.3762%2010.6353ZM18.3113%2022.1667L15.257%2011.3446C15.2111%2011.1641%2014.9546%2011.1641%2014.9103%2011.3446L11.856%2022.1667H18.3113ZM36.4594%2015.8333C35.5854%2015.8333%2034.8761%2016.5427%2034.8761%2017.4167V30.0833C34.8761%2032.7022%2032.7449%2034.8333%2030.1261%2034.8333H7.95784C5.339%2034.8333%203.20783%2032.7022%203.20783%2030.0833V7.91667C3.20783%205.29783%205.339%203.16667%207.95784%203.16667H20.6245C21.4985%203.16667%2022.2078%202.45733%2022.2078%201.58333C22.2078%200.709333%2021.4985%200%2020.6245%200H7.95784C3.59259%200%200.0411682%203.55142%200.0411682%207.91667V30.0833C0.0411682%2034.4486%203.59259%2038%207.95784%2038H30.1245C34.4898%2038%2038.0412%2034.4486%2038.0412%2030.0833V17.4167C38.0412%2016.5427%2037.3318%2015.8333%2036.4578%2015.8333H36.4594ZM25.6136%208.20167L28.5713%209.44775L29.7508%2012.4007C30.0058%2013.0403%2030.6248%2013.4583%2031.3136%2013.4583C32.0023%2013.4583%2032.6198%2013.0387%2032.8763%2012.4007L34.0496%209.46517L36.9851%208.29192C37.6248%208.037%2038.0428%207.41792%2038.0428%206.72917C38.0428%206.04042%2037.6232%205.42292%2036.9851%205.16642L34.0496%203.99317L32.8763%201.05767C32.6183%200.419583%2031.9992%200%2031.312%200C30.6248%200%2030.0058%200.419583%2029.7493%201.05767L28.5823%203.97575L25.669%205.07933C25.0262%205.32317%2024.5955%205.93433%2024.5828%206.6215C24.5702%207.31025%2024.9787%207.93567%2025.612%208.20325L25.6136%208.20167Z'%20fill='%23FF0404'/%3e%3c/svg%3e",manualReview="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_382_16)'%3e%3cpath%20d='M18.2084%2010.2917C18.2084%208.10508%2019.9801%206.33333%2022.1667%206.33333C24.3533%206.33333%2026.125%208.10508%2026.125%2010.2917C26.125%2012.4783%2024.3533%2014.25%2022.1667%2014.25C19.9801%2014.25%2018.2084%2012.4783%2018.2084%2010.2917ZM15.6814%2021.9371C16.4287%2022.3915%2017.404%2022.1524%2017.8569%2021.4051C18.7419%2019.9453%2020.4329%2019%2022.1667%2019C23.9004%2019%2025.5914%2019.9437%2026.4765%2021.4051C26.7742%2021.8959%2027.2983%2022.1667%2027.8319%2022.1667C28.1121%2022.1667%2028.3939%2022.0922%2028.652%2021.9371C29.3994%2021.4842%2029.6384%2020.5105%2029.1856%2019.7616C27.7147%2017.3375%2025.0262%2015.8333%2022.1667%2015.8333C19.3072%2015.8333%2016.6187%2017.3391%2015.1478%2019.7616C14.6949%2020.5105%2014.934%2021.4827%2015.6814%2021.9371ZM34.8334%207.91667V30.0833C34.8334%2034.4486%2031.2819%2038%2026.9167%2038H9.50002C6.00719%2038%203.16669%2035.1595%203.16669%2031.6667V7.91667C3.16669%203.55142%206.7181%200%2011.0834%200H26.9167C31.2819%200%2034.8334%203.55142%2034.8334%207.91667ZM26.9167%203.16667H12.6667V25.3333H31.6667V7.91667C31.6667%205.29783%2029.5355%203.16667%2026.9167%203.16667ZM6.33335%207.91667V26.2137C7.2691%2025.669%208.34102%2025.3333%209.50002%2025.3333V3.458C7.66177%204.1135%206.33335%205.85517%206.33335%207.91667ZM31.6667%2030.0833V28.5H9.50002C7.7536%2028.5%206.33335%2029.9202%206.33335%2031.6667C6.33335%2033.4131%207.7536%2034.8333%209.50002%2034.8333H26.9167C29.5355%2034.8333%2031.6667%2032.7022%2031.6667%2030.0833Z'%20fill='%23007F26'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_382_16'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",appproved="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.9692%2038H0V4.75C0%202.13117%202.13117%200%204.75%200H23.75C26.3688%200%2028.5%202.13117%2028.5%204.75V12.7601C27.9791%2012.7031%2027.4518%2012.6667%2026.9167%2012.6667C26.3815%2012.6667%2025.8542%2012.7015%2025.3333%2012.7601V4.75C25.3333%203.876%2024.624%203.16667%2023.75%203.16667H4.75C3.876%203.16667%203.16667%203.876%203.16667%204.75V34.8333H15.0702C15.8713%2036.0303%2016.8514%2037.0959%2017.9692%2038ZM17.9692%2015.8333H6.33333V19H15.0702C15.8713%2017.803%2016.8514%2016.7374%2017.9692%2015.8333ZM6.33333%2026.9167H12.6667C12.6667%2025.8273%2012.7997%2024.7697%2013.0324%2023.75H6.33333V26.9167ZM38%2026.9167C38%2033.0268%2033.0268%2038%2026.9167%2038C20.8066%2038%2015.8333%2033.0268%2015.8333%2026.9167C15.8333%2020.8066%2020.8066%2015.8333%2026.9167%2015.8333C33.0268%2015.8333%2038%2020.8066%2038%2026.9167ZM34.8333%2026.9167C34.8333%2022.5514%2031.2819%2019%2026.9167%2019C22.5514%2019%2019%2022.5514%2019%2026.9167C19%2031.2819%2022.5514%2034.8333%2026.9167%2034.8333C31.2819%2034.8333%2034.8333%2031.2819%2034.8333%2026.9167ZM22.1667%207.91667H6.33333V11.0833H22.1667V7.91667ZM31.0159%2023.2623L25.9049%2028.2894L23.3241%2025.7878L21.1185%2028.0614L24.0397%2030.8924C24.5369%2031.3912%2025.2003%2031.6667%2025.9065%2031.6667C26.6127%2031.6667%2027.2761%2031.3912%2027.7638%2030.9035L33.2357%2025.5217L31.0159%2023.2623Z'%20fill='%23FF8A00'/%3e%3c/svg%3e",downloadIcon="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M33.25%2019H28.5C26.7536%2019%2025.3333%2020.4202%2025.3333%2022.1667C25.3333%2023.9131%2023.9131%2025.3333%2022.1667%2025.3333H15.8333C14.0869%2025.3333%2012.6667%2023.9131%2012.6667%2022.1667C12.6667%2020.4202%2011.2464%2019%209.5%2019H4.75C2.13117%2019%200%2021.1312%200%2023.75V30.0833C0%2034.4486%203.55142%2038%207.91667%2038H30.0833C34.4486%2038%2038%2034.4486%2038%2030.0833V23.75C38%2021.1312%2035.8688%2019%2033.25%2019ZM34.8333%2030.0833C34.8333%2032.7022%2032.7022%2034.8333%2030.0833%2034.8333H7.91667C5.29783%2034.8333%203.16667%2032.7022%203.16667%2030.0833V23.75C3.16667%2022.876%203.876%2022.1667%204.75%2022.1667L9.5%2022.1635V22.1667C9.5%2025.6595%2012.3405%2028.5%2015.8333%2028.5H22.1667C25.6595%2028.5%2028.5%2025.6595%2028.5%2022.1667H33.25C34.124%2022.1667%2034.8333%2022.876%2034.8333%2023.75V30.0833ZM11.5473%2011.2749C10.9282%2010.6558%2010.9282%209.65517%2011.5473%209.03608C12.1663%208.417%2013.167%208.417%2013.7861%209.03608L17.4167%2012.6667V1.58333C17.4167%200.70775%2018.1244%200%2019%200C19.8756%200%2020.5833%200.70775%2020.5833%201.58333V12.6667L24.2139%209.03608C24.833%208.417%2025.8337%208.417%2026.4528%209.03608C27.0718%209.65517%2027.0718%2010.6558%2026.4528%2011.2749L21.2388%2016.4888C20.6261%2017.1016%2019.8202%2017.4103%2019.0142%2017.4135L19%2017.4167L18.9858%2017.4135C18.1798%2017.4103%2017.3739%2017.1016%2016.7612%2016.4888L11.5473%2011.2749Z'%20fill='black'/%3e%3c/svg%3e";function Dashboard(){const $=useNavigate();return jsxRuntimeExports.jsxs("div",{className:"dashboard-sidebar-container",children:[jsxRuntimeExports.jsx(Sidebar,{}),jsxRuntimeExports.jsx("div",{className:"dashboard-container",children:jsxRuntimeExports.jsxs("div",{className:"dashboard-grid",children:[jsxRuntimeExports.jsxs("div",{className:"card contract-received dashboard-boxes",children:[jsxRuntimeExports.jsx("p",{className:"status",children:"Contract Received"}),jsxRuntimeExports.jsx("img",{src:downloadIcon,alt:"My SVG"}),jsxRuntimeExports.jsx("p",{className:"count",style:{color:"#FF6000"},children:"201 Received"})]}),jsxRuntimeExports.jsxs("div",{className:"card ai-agent-review dashboard-boxes",children:[jsxRuntimeExports.jsx("p",{className:"status",children:"AI Agent Review"}),jsxRuntimeExports.jsx("img",{src:AiAgent,alt:"My SVG"}),jsxRuntimeExports.jsx("p",{className:"count",style:{color:"#FF0404"},children:"12 AI Agent"})]}),jsxRuntimeExports.jsx(default_1$c,{className:"upload-button",style:{fontSize:"4rem",color:"#ff9100",cursor:"pointer"},onClick:()=>$("/document-ingestion")}),jsxRuntimeExports.jsx("span",{className:"upload-button",children:"Upload Document"}),jsxRuntimeExports.jsxs("div",{className:"card manual-review dashboard-boxes",children:[jsxRuntimeExports.jsx("p",{className:"status",children:"Manual Review"}),jsxRuntimeExports.jsx("img",{src:manualReview,alt:"My SVG"}),jsxRuntimeExports.jsx("p",{className:"count",style:{color:"#00491e"},children:"13 Review"})]}),jsxRuntimeExports.jsxs("div",{className:"card approved dashboard-boxes",children:[jsxRuntimeExports.jsx("p",{className:"status",children:"Approved"}),jsxRuntimeExports.jsx("img",{src:appproved,alt:"My SVG"}),jsxRuntimeExports.jsx("p",{className:"count",style:{color:"#695400"},children:"13 Approved"})]})]})})]})}var DriveFolderUpload={},_interopRequireDefault$b=interopRequireDefaultExports;Object.defineProperty(DriveFolderUpload,"__esModule",{value:!0});var default_1$b=DriveFolderUpload.default=void 0,_createSvgIcon$b=_interopRequireDefault$b(requireCreateSvgIcon()),_jsxRuntime$b=jsxRuntimeExports;default_1$b=DriveFolderUpload.default=(0,_createSvgIcon$b.default)((0,_jsxRuntime$b.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16zM8 13.01l1.41 1.41L11 12.84V17h2v-4.16l1.59 1.59L16 13.01 12.01 9z"}),"DriveFolderUpload");var Close={},_interopRequireDefault$a=interopRequireDefaultExports;Object.defineProperty(Close,"__esModule",{value:!0});var default_1$a=Close.default=void 0,_createSvgIcon$a=_interopRequireDefault$a(requireCreateSvgIcon()),_jsxRuntime$a=jsxRuntimeExports;default_1$a=Close.default=(0,_createSvgIcon$a.default)((0,_jsxRuntime$a.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");var DocumentScanner={},_interopRequireDefault$9=interopRequireDefaultExports;Object.defineProperty(DocumentScanner,"__esModule",{value:!0});var default_1$9=DocumentScanner.default=void 0,_createSvgIcon$9=_interopRequireDefault$9(requireCreateSvgIcon()),_jsxRuntime$9=jsxRuntimeExports;default_1$9=DocumentScanner.default=(0,_createSvgIcon$9.default)((0,_jsxRuntime$9.jsx)("path",{d:"M7 3H4v3H2V1h5zm15 3V1h-5v2h3v3zM7 21H4v-3H2v5h5zm13-3v3h-3v2h5v-5zm-1 0c0 1.1-.9 2-2 2H7c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2zM15 8H9v2h6zm0 3H9v2h6zm0 3H9v2h6z"}),"DocumentScanner");function bind($,_e){return function(){return $.apply(_e,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=($=>_e=>{const et=toString.call(_e);return $[et]||($[et]=et.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=$=>($=$.toLowerCase(),_e=>kindOf(_e)===$),typeOfTest=$=>_e=>typeof _e===$,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer($){return $!==null&&!isUndefined($)&&$.constructor!==null&&!isUndefined($.constructor)&&isFunction($.constructor.isBuffer)&&$.constructor.isBuffer($)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView($){let _e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?_e=ArrayBuffer.isView($):_e=$&&$.buffer&&isArrayBuffer($.buffer),_e}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=$=>$!==null&&typeof $=="object",isBoolean=$=>$===!0||$===!1,isPlainObject=$=>{if(kindOf($)!=="object")return!1;const _e=getPrototypeOf($);return(_e===null||_e===Object.prototype||Object.getPrototypeOf(_e)===null)&&!(Symbol.toStringTag in $)&&!(Symbol.iterator in $)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=$=>isObject($)&&isFunction($.pipe),isFormData=$=>{let _e;return $&&(typeof FormData=="function"&&$ instanceof FormData||isFunction($.append)&&((_e=kindOf($))==="formdata"||_e==="object"&&isFunction($.toString)&&$.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=$=>$.trim?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach($,_e,{allOwnKeys:et=!1}={}){if($===null||typeof $>"u")return;let tt,nt;if(typeof $!="object"&&($=[$]),isArray($))for(tt=0,nt=$.length;tt0;)if(nt=et[tt],_e===nt.toLowerCase())return nt;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=$=>!isUndefined($)&&$!==_global;function merge(){const{caseless:$}=isContextDefined(this)&&this||{},_e={},et=(tt,nt)=>{const rt=$&&findKey(_e,nt)||nt;isPlainObject(_e[rt])&&isPlainObject(tt)?_e[rt]=merge(_e[rt],tt):isPlainObject(tt)?_e[rt]=merge({},tt):isArray(tt)?_e[rt]=tt.slice():_e[rt]=tt};for(let tt=0,nt=arguments.length;tt(forEach(_e,(nt,rt)=>{et&&isFunction(nt)?$[rt]=bind(nt,et):$[rt]=nt},{allOwnKeys:tt}),$),stripBOM=$=>($.charCodeAt(0)===65279&&($=$.slice(1)),$),inherits=($,_e,et,tt)=>{$.prototype=Object.create(_e.prototype,tt),$.prototype.constructor=$,Object.defineProperty($,"super",{value:_e.prototype}),et&&Object.assign($.prototype,et)},toFlatObject=($,_e,et,tt)=>{let nt,rt,ot;const it={};if(_e=_e||{},$==null)return _e;do{for(nt=Object.getOwnPropertyNames($),rt=nt.length;rt-- >0;)ot=nt[rt],(!tt||tt(ot,$,_e))&&!it[ot]&&(_e[ot]=$[ot],it[ot]=!0);$=et!==!1&&getPrototypeOf($)}while($&&(!et||et($,_e))&&$!==Object.prototype);return _e},endsWith=($,_e,et)=>{$=String($),(et===void 0||et>$.length)&&(et=$.length),et-=_e.length;const tt=$.indexOf(_e,et);return tt!==-1&&tt===et},toArray=$=>{if(!$)return null;if(isArray($))return $;let _e=$.length;if(!isNumber(_e))return null;const et=new Array(_e);for(;_e-- >0;)et[_e]=$[_e];return et},isTypedArray=($=>_e=>$&&_e instanceof $)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=($,_e)=>{const tt=($&&$[Symbol.iterator]).call($);let nt;for(;(nt=tt.next())&&!nt.done;){const rt=nt.value;_e.call($,rt[0],rt[1])}},matchAll=($,_e)=>{let et;const tt=[];for(;(et=$.exec(_e))!==null;)tt.push(et);return tt},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=$=>$.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(et,tt,nt){return tt.toUpperCase()+nt}),hasOwnProperty=(({hasOwnProperty:$})=>(_e,et)=>$.call(_e,et))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=($,_e)=>{const et=Object.getOwnPropertyDescriptors($),tt={};forEach(et,(nt,rt)=>{let ot;(ot=_e(nt,rt,$))!==!1&&(tt[rt]=ot||nt)}),Object.defineProperties($,tt)},freezeMethods=$=>{reduceDescriptors($,(_e,et)=>{if(isFunction($)&&["arguments","caller","callee"].indexOf(et)!==-1)return!1;const tt=$[et];if(isFunction(tt)){if(_e.enumerable=!1,"writable"in _e){_e.writable=!1;return}_e.set||(_e.set=()=>{throw Error("Can not rewrite read-only method '"+et+"'")})}})},toObjectSet=($,_e)=>{const et={},tt=nt=>{nt.forEach(rt=>{et[rt]=!0})};return isArray($)?tt($):tt(String($).split(_e)),et},noop=()=>{},toFiniteNumber=($,_e)=>$!=null&&Number.isFinite($=+$)?$:_e,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=($=16,_e=ALPHABET.ALPHA_DIGIT)=>{let et="";const{length:tt}=_e;for(;$--;)et+=_e[Math.random()*tt|0];return et};function isSpecCompliantForm($){return!!($&&isFunction($.append)&&$[Symbol.toStringTag]==="FormData"&&$[Symbol.iterator])}const toJSONObject=$=>{const _e=new Array(10),et=(tt,nt)=>{if(isObject(tt)){if(_e.indexOf(tt)>=0)return;if(!("toJSON"in tt)){_e[nt]=tt;const rt=isArray(tt)?[]:{};return forEach(tt,(ot,it)=>{const st=et(ot,nt+1);!isUndefined(st)&&(rt[it]=st)}),_e[nt]=void 0,rt}}return tt};return et($,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=$=>$&&(isObject($)||isFunction($))&&isFunction($.then)&&isFunction($.catch),_setImmediate=(($,_e)=>$?setImmediate:_e?((et,tt)=>(_global.addEventListener("message",({source:nt,data:rt})=>{nt===_global&&rt===et&&tt.length&&tt.shift()()},!1),nt=>{tt.push(nt),_global.postMessage(et,"*")}))(`axios@${Math.random()}`,[]):et=>setTimeout(et))(typeof setImmediate=="function",isFunction(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError($,_e,et,tt,nt){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=$,this.name="AxiosError",_e&&(this.code=_e),et&&(this.config=et),tt&&(this.request=tt),nt&&(this.response=nt,this.status=nt.status?nt.status:null)}utils$1.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach($=>{descriptors[$]={value:$}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=($,_e,et,tt,nt,rt)=>{const ot=Object.create(prototype$1);return utils$1.toFlatObject($,ot,function(st){return st!==Error.prototype},it=>it!=="isAxiosError"),AxiosError.call(ot,$.message,_e,et,tt,nt),ot.cause=$,ot.name=$.name,rt&&Object.assign(ot,rt),ot};const httpAdapter=null;function isVisitable($){return utils$1.isPlainObject($)||utils$1.isArray($)}function removeBrackets($){return utils$1.endsWith($,"[]")?$.slice(0,-2):$}function renderKey($,_e,et){return $?$.concat(_e).map(function(nt,rt){return nt=removeBrackets(nt),!et&&rt?"["+nt+"]":nt}).join(et?".":""):_e}function isFlatArray($){return utils$1.isArray($)&&!$.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(_e){return/^is[A-Z]/.test(_e)});function toFormData($,_e,et){if(!utils$1.isObject($))throw new TypeError("target must be an object");_e=_e||new FormData,et=utils$1.toFlatObject(et,{metaTokens:!0,dots:!1,indexes:!1},!1,function(dt,mt){return!utils$1.isUndefined(mt[dt])});const tt=et.metaTokens,nt=et.visitor||lt,rt=et.dots,ot=et.indexes,st=(et.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(_e);if(!utils$1.isFunction(nt))throw new TypeError("visitor must be a function");function at(ft){if(ft===null)return"";if(utils$1.isDate(ft))return ft.toISOString();if(!st&&utils$1.isBlob(ft))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(ft)||utils$1.isTypedArray(ft)?st&&typeof Blob=="function"?new Blob([ft]):Buffer.from(ft):ft}function lt(ft,dt,mt){let ct=ft;if(ft&&!mt&&typeof ft=="object"){if(utils$1.endsWith(dt,"{}"))dt=tt?dt:dt.slice(0,-2),ft=JSON.stringify(ft);else if(utils$1.isArray(ft)&&isFlatArray(ft)||(utils$1.isFileList(ft)||utils$1.endsWith(dt,"[]"))&&(ct=utils$1.toArray(ft)))return dt=removeBrackets(dt),ct.forEach(function(vt,bt){!(utils$1.isUndefined(vt)||vt===null)&&_e.append(ot===!0?renderKey([dt],bt,rt):ot===null?dt:dt+"[]",at(vt))}),!1}return isVisitable(ft)?!0:(_e.append(renderKey(mt,dt,rt),at(ft)),!1)}const ht=[],pt=Object.assign(predicates,{defaultVisitor:lt,convertValue:at,isVisitable});function gt(ft,dt){if(!utils$1.isUndefined(ft)){if(ht.indexOf(ft)!==-1)throw Error("Circular reference detected in "+dt.join("."));ht.push(ft),utils$1.forEach(ft,function(ct,ut){(!(utils$1.isUndefined(ct)||ct===null)&&nt.call(_e,ct,utils$1.isString(ut)?ut.trim():ut,dt,pt))===!0&>(ct,dt?dt.concat(ut):[ut])}),ht.pop()}}if(!utils$1.isObject($))throw new TypeError("data must be an object");return gt($),_e}function encode$1($){const _e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent($).replace(/[!'()~]|%20|%00/g,function(tt){return _e[tt]})}function AxiosURLSearchParams($,_e){this._pairs=[],$&&toFormData($,this,_e)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(_e,et){this._pairs.push([_e,et])};prototype.toString=function(_e){const et=_e?function(tt){return _e.call(this,tt,encode$1)}:encode$1;return this._pairs.map(function(nt){return et(nt[0])+"="+et(nt[1])},"").join("&")};function encode($){return encodeURIComponent($).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL($,_e,et){if(!_e)return $;const tt=et&&et.encode||encode,nt=et&&et.serialize;let rt;if(nt?rt=nt(_e,et):rt=utils$1.isURLSearchParams(_e)?_e.toString():new AxiosURLSearchParams(_e,et).toString(tt),rt){const ot=$.indexOf("#");ot!==-1&&($=$.slice(0,ot)),$+=($.indexOf("?")===-1?"?":"&")+rt}return $}class InterceptorManager{constructor(){this.handlers=[]}use(_e,et,tt){return this.handlers.push({fulfilled:_e,rejected:et,synchronous:tt?tt.synchronous:!1,runWhen:tt?tt.runWhen:null}),this.handlers.length-1}eject(_e){this.handlers[_e]&&(this.handlers[_e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(_e){utils$1.forEach(this.handlers,function(tt){tt!==null&&_e(tt)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm($,_e){return toFormData($,new platform.classes.URLSearchParams,Object.assign({visitor:function(et,tt,nt,rt){return platform.isNode&&utils$1.isBuffer(et)?(this.append(tt,et.toString("base64")),!1):rt.defaultVisitor.apply(this,arguments)}},_e))}function parsePropPath($){return utils$1.matchAll(/\w+|\[(\w*)]/g,$).map(_e=>_e[0]==="[]"?"":_e[1]||_e[0])}function arrayToObject($){const _e={},et=Object.keys($);let tt;const nt=et.length;let rt;for(tt=0;tt=et.length;return ot=!ot&&utils$1.isArray(nt)?nt.length:ot,st?(utils$1.hasOwnProp(nt,ot)?nt[ot]=[nt[ot],tt]:nt[ot]=tt,!it):((!nt[ot]||!utils$1.isObject(nt[ot]))&&(nt[ot]=[]),_e(et,tt,nt[ot],rt)&&utils$1.isArray(nt[ot])&&(nt[ot]=arrayToObject(nt[ot])),!it)}if(utils$1.isFormData($)&&utils$1.isFunction($.entries)){const et={};return utils$1.forEachEntry($,(tt,nt)=>{_e(parsePropPath(tt),nt,et,0)}),et}return null}function stringifySafely($,_e,et){if(utils$1.isString($))try{return(_e||JSON.parse)($),utils$1.trim($)}catch(tt){if(tt.name!=="SyntaxError")throw tt}return(0,JSON.stringify)($)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(_e,et){const tt=et.getContentType()||"",nt=tt.indexOf("application/json")>-1,rt=utils$1.isObject(_e);if(rt&&utils$1.isHTMLForm(_e)&&(_e=new FormData(_e)),utils$1.isFormData(_e))return nt?JSON.stringify(formDataToJSON(_e)):_e;if(utils$1.isArrayBuffer(_e)||utils$1.isBuffer(_e)||utils$1.isStream(_e)||utils$1.isFile(_e)||utils$1.isBlob(_e)||utils$1.isReadableStream(_e))return _e;if(utils$1.isArrayBufferView(_e))return _e.buffer;if(utils$1.isURLSearchParams(_e))return et.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),_e.toString();let it;if(rt){if(tt.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(_e,this.formSerializer).toString();if((it=utils$1.isFileList(_e))||tt.indexOf("multipart/form-data")>-1){const st=this.env&&this.env.FormData;return toFormData(it?{"files[]":_e}:_e,st&&new st,this.formSerializer)}}return rt||nt?(et.setContentType("application/json",!1),stringifySafely(_e)):_e}],transformResponse:[function(_e){const et=this.transitional||defaults.transitional,tt=et&&et.forcedJSONParsing,nt=this.responseType==="json";if(utils$1.isResponse(_e)||utils$1.isReadableStream(_e))return _e;if(_e&&utils$1.isString(_e)&&(tt&&!this.responseType||nt)){const ot=!(et&&et.silentJSONParsing)&&nt;try{return JSON.parse(_e)}catch(it){if(ot)throw it.name==="SyntaxError"?AxiosError.from(it,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):it}}return _e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(_e){return _e>=200&&_e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],$=>{defaults.headers[$]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=$=>{const _e={};let et,tt,nt;return $&&$.split(` +`).forEach(function(ot){nt=ot.indexOf(":"),et=ot.substring(0,nt).trim().toLowerCase(),tt=ot.substring(nt+1).trim(),!(!et||_e[et]&&ignoreDuplicateOf[et])&&(et==="set-cookie"?_e[et]?_e[et].push(tt):_e[et]=[tt]:_e[et]=_e[et]?_e[et]+", "+tt:tt)}),_e},$internals=Symbol("internals");function normalizeHeader($){return $&&String($).trim().toLowerCase()}function normalizeValue($){return $===!1||$==null?$:utils$1.isArray($)?$.map(normalizeValue):String($)}function parseTokens($){const _e=Object.create(null),et=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let tt;for(;tt=et.exec($);)_e[tt[1]]=tt[2];return _e}const isValidHeaderName=$=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test($.trim());function matchHeaderValue($,_e,et,tt,nt){if(utils$1.isFunction(tt))return tt.call(this,_e,et);if(nt&&(_e=et),!!utils$1.isString(_e)){if(utils$1.isString(tt))return _e.indexOf(tt)!==-1;if(utils$1.isRegExp(tt))return tt.test(_e)}}function formatHeader($){return $.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(_e,et,tt)=>et.toUpperCase()+tt)}function buildAccessors($,_e){const et=utils$1.toCamelCase(" "+_e);["get","set","has"].forEach(tt=>{Object.defineProperty($,tt+et,{value:function(nt,rt,ot){return this[tt].call(this,_e,nt,rt,ot)},configurable:!0})})}class AxiosHeaders{constructor(_e){_e&&this.set(_e)}set(_e,et,tt){const nt=this;function rt(it,st,at){const lt=normalizeHeader(st);if(!lt)throw new Error("header name must be a non-empty string");const ht=utils$1.findKey(nt,lt);(!ht||nt[ht]===void 0||at===!0||at===void 0&&nt[ht]!==!1)&&(nt[ht||st]=normalizeValue(it))}const ot=(it,st)=>utils$1.forEach(it,(at,lt)=>rt(at,lt,st));if(utils$1.isPlainObject(_e)||_e instanceof this.constructor)ot(_e,et);else if(utils$1.isString(_e)&&(_e=_e.trim())&&!isValidHeaderName(_e))ot(parseHeaders(_e),et);else if(utils$1.isHeaders(_e))for(const[it,st]of _e.entries())rt(st,it,tt);else _e!=null&&rt(et,_e,tt);return this}get(_e,et){if(_e=normalizeHeader(_e),_e){const tt=utils$1.findKey(this,_e);if(tt){const nt=this[tt];if(!et)return nt;if(et===!0)return parseTokens(nt);if(utils$1.isFunction(et))return et.call(this,nt,tt);if(utils$1.isRegExp(et))return et.exec(nt);throw new TypeError("parser must be boolean|regexp|function")}}}has(_e,et){if(_e=normalizeHeader(_e),_e){const tt=utils$1.findKey(this,_e);return!!(tt&&this[tt]!==void 0&&(!et||matchHeaderValue(this,this[tt],tt,et)))}return!1}delete(_e,et){const tt=this;let nt=!1;function rt(ot){if(ot=normalizeHeader(ot),ot){const it=utils$1.findKey(tt,ot);it&&(!et||matchHeaderValue(tt,tt[it],it,et))&&(delete tt[it],nt=!0)}}return utils$1.isArray(_e)?_e.forEach(rt):rt(_e),nt}clear(_e){const et=Object.keys(this);let tt=et.length,nt=!1;for(;tt--;){const rt=et[tt];(!_e||matchHeaderValue(this,this[rt],rt,_e,!0))&&(delete this[rt],nt=!0)}return nt}normalize(_e){const et=this,tt={};return utils$1.forEach(this,(nt,rt)=>{const ot=utils$1.findKey(tt,rt);if(ot){et[ot]=normalizeValue(nt),delete et[rt];return}const it=_e?formatHeader(rt):String(rt).trim();it!==rt&&delete et[rt],et[it]=normalizeValue(nt),tt[it]=!0}),this}concat(..._e){return this.constructor.concat(this,..._e)}toJSON(_e){const et=Object.create(null);return utils$1.forEach(this,(tt,nt)=>{tt!=null&&tt!==!1&&(et[nt]=_e&&utils$1.isArray(tt)?tt.join(", "):tt)}),et}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([_e,et])=>_e+": "+et).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(_e){return _e instanceof this?_e:new this(_e)}static concat(_e,...et){const tt=new this(_e);return et.forEach(nt=>tt.set(nt)),tt}static accessor(_e){const tt=(this[$internals]=this[$internals]={accessors:{}}).accessors,nt=this.prototype;function rt(ot){const it=normalizeHeader(ot);tt[it]||(buildAccessors(nt,ot),tt[it]=!0)}return utils$1.isArray(_e)?_e.forEach(rt):rt(_e),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:$},_e)=>{let et=_e[0].toUpperCase()+_e.slice(1);return{get:()=>$,set(tt){this[et]=tt}}});utils$1.freezeMethods(AxiosHeaders);function transformData($,_e){const et=this||defaults,tt=_e||et,nt=AxiosHeaders.from(tt.headers);let rt=tt.data;return utils$1.forEach($,function(it){rt=it.call(et,rt,nt.normalize(),_e?_e.status:void 0)}),nt.normalize(),rt}function isCancel($){return!!($&&$.__CANCEL__)}function CanceledError($,_e,et){AxiosError.call(this,$??"canceled",AxiosError.ERR_CANCELED,_e,et),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle($,_e,et){const tt=et.config.validateStatus;!et.status||!tt||tt(et.status)?$(et):_e(new AxiosError("Request failed with status code "+et.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(et.status/100)-4],et.config,et.request,et))}function parseProtocol($){const _e=/^([-+\w]{1,25})(:?\/\/|:)/.exec($);return _e&&_e[1]||""}function speedometer($,_e){$=$||10;const et=new Array($),tt=new Array($);let nt=0,rt=0,ot;return _e=_e!==void 0?_e:1e3,function(st){const at=Date.now(),lt=tt[rt];ot||(ot=at),et[nt]=st,tt[nt]=at;let ht=rt,pt=0;for(;ht!==nt;)pt+=et[ht++],ht=ht%$;if(nt=(nt+1)%$,nt===rt&&(rt=(rt+1)%$),at-ot<_e)return;const gt=lt&&at-lt;return gt?Math.round(pt*1e3/gt):void 0}}function throttle($,_e){let et=0,tt=1e3/_e,nt,rt;const ot=(at,lt=Date.now())=>{et=lt,nt=null,rt&&(clearTimeout(rt),rt=null),$.apply(null,at)};return[(...at)=>{const lt=Date.now(),ht=lt-et;ht>=tt?ot(at,lt):(nt=at,rt||(rt=setTimeout(()=>{rt=null,ot(nt)},tt-ht)))},()=>nt&&ot(nt)]}const progressEventReducer=($,_e,et=3)=>{let tt=0;const nt=speedometer(50,250);return throttle(rt=>{const ot=rt.loaded,it=rt.lengthComputable?rt.total:void 0,st=ot-tt,at=nt(st),lt=ot<=it;tt=ot;const ht={loaded:ot,total:it,progress:it?ot/it:void 0,bytes:st,rate:at||void 0,estimated:at&&it&<?(it-ot)/at:void 0,event:rt,lengthComputable:it!=null,[_e?"download":"upload"]:!0};$(ht)},et)},progressEventDecorator=($,_e)=>{const et=$!=null;return[tt=>_e[0]({lengthComputable:et,total:$,loaded:tt}),_e[1]]},asyncDecorator=$=>(..._e)=>utils$1.asap(()=>$(..._e)),isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const _e=platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent),et=document.createElement("a");let tt;function nt(rt){let ot=rt;return _e&&(et.setAttribute("href",ot),ot=et.href),et.setAttribute("href",ot),{href:et.href,protocol:et.protocol?et.protocol.replace(/:$/,""):"",host:et.host,search:et.search?et.search.replace(/^\?/,""):"",hash:et.hash?et.hash.replace(/^#/,""):"",hostname:et.hostname,port:et.port,pathname:et.pathname.charAt(0)==="/"?et.pathname:"/"+et.pathname}}return tt=nt(window.location.href),function(ot){const it=utils$1.isString(ot)?nt(ot):ot;return it.protocol===tt.protocol&&it.host===tt.host}}():function(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write($,_e,et,tt,nt,rt){const ot=[$+"="+encodeURIComponent(_e)];utils$1.isNumber(et)&&ot.push("expires="+new Date(et).toGMTString()),utils$1.isString(tt)&&ot.push("path="+tt),utils$1.isString(nt)&&ot.push("domain="+nt),rt===!0&&ot.push("secure"),document.cookie=ot.join("; ")},read($){const _e=document.cookie.match(new RegExp("(^|;\\s*)("+$+")=([^;]*)"));return _e?decodeURIComponent(_e[3]):null},remove($){this.write($,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL($){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test($)}function combineURLs($,_e){return _e?$.replace(/\/?\/$/,"")+"/"+_e.replace(/^\/+/,""):$}function buildFullPath($,_e){return $&&!isAbsoluteURL(_e)?combineURLs($,_e):_e}const headersToObject=$=>$ instanceof AxiosHeaders?{...$}:$;function mergeConfig($,_e){_e=_e||{};const et={};function tt(at,lt,ht){return utils$1.isPlainObject(at)&&utils$1.isPlainObject(lt)?utils$1.merge.call({caseless:ht},at,lt):utils$1.isPlainObject(lt)?utils$1.merge({},lt):utils$1.isArray(lt)?lt.slice():lt}function nt(at,lt,ht){if(utils$1.isUndefined(lt)){if(!utils$1.isUndefined(at))return tt(void 0,at,ht)}else return tt(at,lt,ht)}function rt(at,lt){if(!utils$1.isUndefined(lt))return tt(void 0,lt)}function ot(at,lt){if(utils$1.isUndefined(lt)){if(!utils$1.isUndefined(at))return tt(void 0,at)}else return tt(void 0,lt)}function it(at,lt,ht){if(ht in _e)return tt(at,lt);if(ht in $)return tt(void 0,at)}const st={url:rt,method:rt,data:rt,baseURL:ot,transformRequest:ot,transformResponse:ot,paramsSerializer:ot,timeout:ot,timeoutMessage:ot,withCredentials:ot,withXSRFToken:ot,adapter:ot,responseType:ot,xsrfCookieName:ot,xsrfHeaderName:ot,onUploadProgress:ot,onDownloadProgress:ot,decompress:ot,maxContentLength:ot,maxBodyLength:ot,beforeRedirect:ot,transport:ot,httpAgent:ot,httpsAgent:ot,cancelToken:ot,socketPath:ot,responseEncoding:ot,validateStatus:it,headers:(at,lt)=>nt(headersToObject(at),headersToObject(lt),!0)};return utils$1.forEach(Object.keys(Object.assign({},$,_e)),function(lt){const ht=st[lt]||nt,pt=ht($[lt],_e[lt],lt);utils$1.isUndefined(pt)&&ht!==it||(et[lt]=pt)}),et}const resolveConfig=$=>{const _e=mergeConfig({},$);let{data:et,withXSRFToken:tt,xsrfHeaderName:nt,xsrfCookieName:rt,headers:ot,auth:it}=_e;_e.headers=ot=AxiosHeaders.from(ot),_e.url=buildURL(buildFullPath(_e.baseURL,_e.url),$.params,$.paramsSerializer),it&&ot.set("Authorization","Basic "+btoa((it.username||"")+":"+(it.password?unescape(encodeURIComponent(it.password)):"")));let st;if(utils$1.isFormData(et)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)ot.setContentType(void 0);else if((st=ot.getContentType())!==!1){const[at,...lt]=st?st.split(";").map(ht=>ht.trim()).filter(Boolean):[];ot.setContentType([at||"multipart/form-data",...lt].join("; "))}}if(platform.hasStandardBrowserEnv&&(tt&&utils$1.isFunction(tt)&&(tt=tt(_e)),tt||tt!==!1&&isURLSameOrigin(_e.url))){const at=nt&&rt&&cookies.read(rt);at&&ot.set(nt,at)}return _e},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function($){return new Promise(function(et,tt){const nt=resolveConfig($);let rt=nt.data;const ot=AxiosHeaders.from(nt.headers).normalize();let{responseType:it,onUploadProgress:st,onDownloadProgress:at}=nt,lt,ht,pt,gt,ft;function dt(){gt&>(),ft&&ft(),nt.cancelToken&&nt.cancelToken.unsubscribe(lt),nt.signal&&nt.signal.removeEventListener("abort",lt)}let mt=new XMLHttpRequest;mt.open(nt.method.toUpperCase(),nt.url,!0),mt.timeout=nt.timeout;function ct(){if(!mt)return;const vt=AxiosHeaders.from("getAllResponseHeaders"in mt&&mt.getAllResponseHeaders()),yt={data:!it||it==="text"||it==="json"?mt.responseText:mt.response,status:mt.status,statusText:mt.statusText,headers:vt,config:$,request:mt};settle(function(xt){et(xt),dt()},function(xt){tt(xt),dt()},yt),mt=null}"onloadend"in mt?mt.onloadend=ct:mt.onreadystatechange=function(){!mt||mt.readyState!==4||mt.status===0&&!(mt.responseURL&&mt.responseURL.indexOf("file:")===0)||setTimeout(ct)},mt.onabort=function(){mt&&(tt(new AxiosError("Request aborted",AxiosError.ECONNABORTED,$,mt)),mt=null)},mt.onerror=function(){tt(new AxiosError("Network Error",AxiosError.ERR_NETWORK,$,mt)),mt=null},mt.ontimeout=function(){let bt=nt.timeout?"timeout of "+nt.timeout+"ms exceeded":"timeout exceeded";const yt=nt.transitional||transitionalDefaults;nt.timeoutErrorMessage&&(bt=nt.timeoutErrorMessage),tt(new AxiosError(bt,yt.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,$,mt)),mt=null},rt===void 0&&ot.setContentType(null),"setRequestHeader"in mt&&utils$1.forEach(ot.toJSON(),function(bt,yt){mt.setRequestHeader(yt,bt)}),utils$1.isUndefined(nt.withCredentials)||(mt.withCredentials=!!nt.withCredentials),it&&it!=="json"&&(mt.responseType=nt.responseType),at&&([pt,ft]=progressEventReducer(at,!0),mt.addEventListener("progress",pt)),st&&mt.upload&&([ht,gt]=progressEventReducer(st),mt.upload.addEventListener("progress",ht),mt.upload.addEventListener("loadend",gt)),(nt.cancelToken||nt.signal)&&(lt=vt=>{mt&&(tt(!vt||vt.type?new CanceledError(null,$,mt):vt),mt.abort(),mt=null)},nt.cancelToken&&nt.cancelToken.subscribe(lt),nt.signal&&(nt.signal.aborted?lt():nt.signal.addEventListener("abort",lt)));const ut=parseProtocol(nt.url);if(ut&&platform.protocols.indexOf(ut)===-1){tt(new AxiosError("Unsupported protocol "+ut+":",AxiosError.ERR_BAD_REQUEST,$));return}mt.send(rt||null)})},composeSignals=($,_e)=>{const{length:et}=$=$?$.filter(Boolean):[];if(_e||et){let tt=new AbortController,nt;const rt=function(at){if(!nt){nt=!0,it();const lt=at instanceof Error?at:this.reason;tt.abort(lt instanceof AxiosError?lt:new CanceledError(lt instanceof Error?lt.message:lt))}};let ot=_e&&setTimeout(()=>{ot=null,rt(new AxiosError(`timeout ${_e} of ms exceeded`,AxiosError.ETIMEDOUT))},_e);const it=()=>{$&&(ot&&clearTimeout(ot),ot=null,$.forEach(at=>{at.unsubscribe?at.unsubscribe(rt):at.removeEventListener("abort",rt)}),$=null)};$.forEach(at=>at.addEventListener("abort",rt));const{signal:st}=tt;return st.unsubscribe=()=>utils$1.asap(it),st}},streamChunk=function*($,_e){let et=$.byteLength;if(et<_e){yield $;return}let tt=0,nt;for(;tt{const nt=readBytes($,_e);let rt=0,ot,it=st=>{ot||(ot=!0,tt&&tt(st))};return new ReadableStream({async pull(st){try{const{done:at,value:lt}=await nt.next();if(at){it(),st.close();return}let ht=lt.byteLength;if(et){let pt=rt+=ht;et(pt)}st.enqueue(new Uint8Array(lt))}catch(at){throw it(at),at}},cancel(st){return it(st),nt.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?($=>_e=>$.encode(_e))(new TextEncoder):async $=>new Uint8Array(await new Response($).arrayBuffer())),test=($,..._e)=>{try{return!!$(..._e)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let $=!1;const _e=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return $=!0,"half"}}).headers.has("Content-Type");return $&&!_e}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$1.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&($=>$.body)};isFetchSupported&&($=>{["text","arrayBuffer","blob","formData","stream"].forEach(_e=>{!resolvers[_e]&&(resolvers[_e]=utils$1.isFunction($[_e])?et=>et[_e]():(et,tt)=>{throw new AxiosError(`Response type '${_e}' is not supported`,AxiosError.ERR_NOT_SUPPORT,tt)})})})(new Response);const getBodyLength=async $=>{if($==null)return 0;if(utils$1.isBlob($))return $.size;if(utils$1.isSpecCompliantForm($))return(await new Request(platform.origin,{method:"POST",body:$}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView($)||utils$1.isArrayBuffer($))return $.byteLength;if(utils$1.isURLSearchParams($)&&($=$+""),utils$1.isString($))return(await encodeText($)).byteLength},resolveBodyLength=async($,_e)=>{const et=utils$1.toFiniteNumber($.getContentLength());return et??getBodyLength(_e)},fetchAdapter=isFetchSupported&&(async $=>{let{url:_e,method:et,data:tt,signal:nt,cancelToken:rt,timeout:ot,onDownloadProgress:it,onUploadProgress:st,responseType:at,headers:lt,withCredentials:ht="same-origin",fetchOptions:pt}=resolveConfig($);at=at?(at+"").toLowerCase():"text";let gt=composeSignals([nt,rt&&rt.toAbortSignal()],ot),ft;const dt=gt&>.unsubscribe&&(()=>{gt.unsubscribe()});let mt;try{if(st&&supportsRequestStream&&et!=="get"&&et!=="head"&&(mt=await resolveBodyLength(lt,tt))!==0){let yt=new Request(_e,{method:"POST",body:tt,duplex:"half"}),Et;if(utils$1.isFormData(tt)&&(Et=yt.headers.get("content-type"))&<.setContentType(Et),yt.body){const[xt,St]=progressEventDecorator(mt,progressEventReducer(asyncDecorator(st)));tt=trackStream(yt.body,DEFAULT_CHUNK_SIZE,xt,St)}}utils$1.isString(ht)||(ht=ht?"include":"omit");const ct="credentials"in Request.prototype;ft=new Request(_e,{...pt,signal:gt,method:et.toUpperCase(),headers:lt.normalize().toJSON(),body:tt,duplex:"half",credentials:ct?ht:void 0});let ut=await fetch(ft);const vt=supportsResponseStream&&(at==="stream"||at==="response");if(supportsResponseStream&&(it||vt&&dt)){const yt={};["status","statusText","headers"].forEach(kt=>{yt[kt]=ut[kt]});const Et=utils$1.toFiniteNumber(ut.headers.get("content-length")),[xt,St]=it&&progressEventDecorator(Et,progressEventReducer(asyncDecorator(it),!0))||[];ut=new Response(trackStream(ut.body,DEFAULT_CHUNK_SIZE,xt,()=>{St&&St(),dt&&dt()}),yt)}at=at||"text";let bt=await resolvers[utils$1.findKey(resolvers,at)||"text"](ut,$);return!vt&&dt&&dt(),await new Promise((yt,Et)=>{settle(yt,Et,{data:bt,headers:AxiosHeaders.from(ut.headers),status:ut.status,statusText:ut.statusText,config:$,request:ft})})}catch(ct){throw dt&&dt(),ct&&ct.name==="TypeError"&&/fetch/i.test(ct.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,$,ft),{cause:ct.cause||ct}):AxiosError.from(ct,ct&&ct.code,$,ft)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,($,_e)=>{if($){try{Object.defineProperty($,"name",{value:_e})}catch{}Object.defineProperty($,"adapterName",{value:_e})}});const renderReason=$=>`- ${$}`,isResolvedHandle=$=>utils$1.isFunction($)||$===null||$===!1,adapters={getAdapter:$=>{$=utils$1.isArray($)?$:[$];const{length:_e}=$;let et,tt;const nt={};for(let rt=0;rt<_e;rt++){et=$[rt];let ot;if(tt=et,!isResolvedHandle(et)&&(tt=knownAdapters[(ot=String(et)).toLowerCase()],tt===void 0))throw new AxiosError(`Unknown adapter '${ot}'`);if(tt)break;nt[ot||"#"+rt]=tt}if(!tt){const rt=Object.entries(nt).map(([it,st])=>`adapter ${it} `+(st===!1?"is not supported by the environment":"is not available in the build"));let ot=_e?rt.length>1?`since : +`+rt.map(renderReason).join(` +`):" "+renderReason(rt[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+ot,"ERR_NOT_SUPPORT")}return tt},adapters:knownAdapters};function throwIfCancellationRequested($){if($.cancelToken&&$.cancelToken.throwIfRequested(),$.signal&&$.signal.aborted)throw new CanceledError(null,$)}function dispatchRequest($){return throwIfCancellationRequested($),$.headers=AxiosHeaders.from($.headers),$.data=transformData.call($,$.transformRequest),["post","put","patch"].indexOf($.method)!==-1&&$.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter($.adapter||defaults.adapter)($).then(function(tt){return throwIfCancellationRequested($),tt.data=transformData.call($,$.transformResponse,tt),tt.headers=AxiosHeaders.from(tt.headers),tt},function(tt){return isCancel(tt)||(throwIfCancellationRequested($),tt&&tt.response&&(tt.response.data=transformData.call($,$.transformResponse,tt.response),tt.response.headers=AxiosHeaders.from(tt.response.headers))),Promise.reject(tt)})}const VERSION="1.7.7",validators$1={};["object","boolean","number","function","string","symbol"].forEach(($,_e)=>{validators$1[$]=function(tt){return typeof tt===$||"a"+(_e<1?"n ":" ")+$}});const deprecatedWarnings={};validators$1.transitional=function(_e,et,tt){function nt(rt,ot){return"[Axios v"+VERSION+"] Transitional option '"+rt+"'"+ot+(tt?". "+tt:"")}return(rt,ot,it)=>{if(_e===!1)throw new AxiosError(nt(ot," has been removed"+(et?" in "+et:"")),AxiosError.ERR_DEPRECATED);return et&&!deprecatedWarnings[ot]&&(deprecatedWarnings[ot]=!0,console.warn(nt(ot," has been deprecated since v"+et+" and will be removed in the near future"))),_e?_e(rt,ot,it):!0}};function assertOptions($,_e,et){if(typeof $!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const tt=Object.keys($);let nt=tt.length;for(;nt-- >0;){const rt=tt[nt],ot=_e[rt];if(ot){const it=$[rt],st=it===void 0||ot(it,rt,$);if(st!==!0)throw new AxiosError("option "+rt+" must be "+st,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(et!==!0)throw new AxiosError("Unknown option "+rt,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(_e){this.defaults=_e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(_e,et){try{return await this._request(_e,et)}catch(tt){if(tt instanceof Error){let nt;Error.captureStackTrace?Error.captureStackTrace(nt={}):nt=new Error;const rt=nt.stack?nt.stack.replace(/^.+\n/,""):"";try{tt.stack?rt&&!String(tt.stack).endsWith(rt.replace(/^.+\n.+\n/,""))&&(tt.stack+=` +`+rt):tt.stack=rt}catch{}}throw tt}}_request(_e,et){typeof _e=="string"?(et=et||{},et.url=_e):et=_e||{},et=mergeConfig(this.defaults,et);const{transitional:tt,paramsSerializer:nt,headers:rt}=et;tt!==void 0&&validator.assertOptions(tt,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),nt!=null&&(utils$1.isFunction(nt)?et.paramsSerializer={serialize:nt}:validator.assertOptions(nt,{encode:validators.function,serialize:validators.function},!0)),et.method=(et.method||this.defaults.method||"get").toLowerCase();let ot=rt&&utils$1.merge(rt.common,rt[et.method]);rt&&utils$1.forEach(["delete","get","head","post","put","patch","common"],ft=>{delete rt[ft]}),et.headers=AxiosHeaders.concat(ot,rt);const it=[];let st=!0;this.interceptors.request.forEach(function(dt){typeof dt.runWhen=="function"&&dt.runWhen(et)===!1||(st=st&&dt.synchronous,it.unshift(dt.fulfilled,dt.rejected))});const at=[];this.interceptors.response.forEach(function(dt){at.push(dt.fulfilled,dt.rejected)});let lt,ht=0,pt;if(!st){const ft=[dispatchRequest.bind(this),void 0];for(ft.unshift.apply(ft,it),ft.push.apply(ft,at),pt=ft.length,lt=Promise.resolve(et);ht{if(!tt._listeners)return;let rt=tt._listeners.length;for(;rt-- >0;)tt._listeners[rt](nt);tt._listeners=null}),this.promise.then=nt=>{let rt;const ot=new Promise(it=>{tt.subscribe(it),rt=it}).then(nt);return ot.cancel=function(){tt.unsubscribe(rt)},ot},_e(function(rt,ot,it){tt.reason||(tt.reason=new CanceledError(rt,ot,it),et(tt.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(_e){if(this.reason){_e(this.reason);return}this._listeners?this._listeners.push(_e):this._listeners=[_e]}unsubscribe(_e){if(!this._listeners)return;const et=this._listeners.indexOf(_e);et!==-1&&this._listeners.splice(et,1)}toAbortSignal(){const _e=new AbortController,et=tt=>{_e.abort(tt)};return this.subscribe(et),_e.signal.unsubscribe=()=>this.unsubscribe(et),_e.signal}static source(){let _e;return{token:new CancelToken(function(nt){_e=nt}),cancel:_e}}}function spread($){return function(et){return $.apply(null,et)}}function isAxiosError($){return utils$1.isObject($)&&$.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([$,_e])=>{HttpStatusCode[_e]=$});function createInstance($){const _e=new Axios($),et=bind(Axios.prototype.request,_e);return utils$1.extend(et,Axios.prototype,_e,{allOwnKeys:!0}),utils$1.extend(et,_e,null,{allOwnKeys:!0}),et.create=function(nt){return createInstance(mergeConfig($,nt))},et}const axios=createInstance(defaults);axios.Axios=Axios;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(_e){return Promise.all(_e)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders;axios.formToJSON=$=>formDataToJSON(utils$1.isHTMLForm($)?new FormData($):$);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode;axios.default=axios;const API_BASE_URL="http://68.183.91.97:8000",DocumentIngestion=()=>{const[$,_e]=reactExports.useState("-- Select Contract Type --"),[et,tt]=reactExports.useState("-- Select Product Type --"),[nt,rt]=reactExports.useState("-- Select Contract Category --"),[ot,it]=reactExports.useState("-- Select Counter Party Name --"),[st,at]=reactExports.useState(!1),[lt,ht]=reactExports.useState(null),[pt,gt]=reactExports.useState(null),[ft,dt]=reactExports.useState(null),mt=useNavigate(),[ct,ut]=reactExports.useState(!1),vt=Tt=>{const jt=Tt.target.files;jt.length>0&&(ht(jt[0].name),gt(jt[0]))},bt=Tt=>{Tt.preventDefault(),at(!1);const jt=Tt.dataTransfer.files;jt.length>0&&(ht(jt[0].name),gt(jt[0]))},yt=Tt=>{Tt.preventDefault(),at(!0)},Et=()=>{at(!1)},xt=(Tt,jt)=>()=>{Tt(jt)},St=()=>{ht(null),gt(null)},kt=async()=>{if(!$||!et||!nt||!ot||!pt){console.error("All fields are required");return}let Tt={contractType:$,productGroup:et,contractCategory:nt,counterPartyName:ot,file:pt};dt(Tt),console.log(Tt),ut(!0)};async function At(){console.log(ft);try{const Tt=await axios.post(`${API_BASE_URL}/data_Ingest`,ft,{headers:{"Content-Type":"multipart/form-data"}});Tt.status===200?(console.log("Success:",Tt),mt("/chat-box")):console.error("Error:",Tt.statusText,Tt)}catch(Tt){console.error("Error:",Tt)}ut(!1),ht(null),gt(null),dt(null)}const $t=()=>{ut(!1)};return jsxRuntimeExports.jsxs("div",{className:"document-ingestion-container",children:[jsxRuntimeExports.jsx(Sidebar,{}),jsxRuntimeExports.jsxs("div",{className:"contract-form",children:[jsxRuntimeExports.jsx("h4",{children:"Document Ingestion"}),jsxRuntimeExports.jsxs("div",{className:"row",children:[jsxRuntimeExports.jsxs("div",{className:"input-box",children:[jsxRuntimeExports.jsx("label",{children:"Contract Type"}),jsxRuntimeExports.jsxs("div",{className:"simple-dropdown",children:[jsxRuntimeExports.jsx("div",{className:"dropdown-selected",children:$}),jsxRuntimeExports.jsxs("ul",{className:"dropdown-options",children:[jsxRuntimeExports.jsx("li",{onClick:xt(_e,"Standard clause"),children:"Standard clause"}),jsxRuntimeExports.jsx("li",{onClick:xt(_e,"Non-standard clause"),children:"Non-standard clause"})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"input-box",children:[jsxRuntimeExports.jsx("label",{children:"Product Group"}),jsxRuntimeExports.jsxs("div",{className:"simple-dropdown",children:[jsxRuntimeExports.jsx("div",{className:"dropdown-selected",children:et}),jsxRuntimeExports.jsxs("ul",{className:"dropdown-options",children:[jsxRuntimeExports.jsx("li",{onClick:xt(tt,"APG"),children:"APG"}),jsxRuntimeExports.jsx("li",{onClick:xt(tt,"IPG"),children:"IPG"})]})]})]}),jsxRuntimeExports.jsxs("div",{className:"input-box",children:[jsxRuntimeExports.jsx("label",{children:"Contract Categories"}),jsxRuntimeExports.jsxs("div",{className:"simple-dropdown",children:[jsxRuntimeExports.jsx("div",{className:"dropdown-selected",children:nt}),jsxRuntimeExports.jsxs("ul",{className:"dropdown-options",children:[jsxRuntimeExports.jsx("li",{onClick:xt(rt,"Customer Agreement"),children:"Customer Agreement"}),jsxRuntimeExports.jsx("li",{onClick:xt(rt,"Seller Agreement"),children:"Seller Agreement"})]})]})]})]}),jsxRuntimeExports.jsx("div",{className:"row",children:jsxRuntimeExports.jsxs("div",{className:"input-box",children:[jsxRuntimeExports.jsx("label",{children:"Counter Party Name"}),jsxRuntimeExports.jsxs("div",{className:"simple-dropdown",children:[jsxRuntimeExports.jsx("div",{className:"dropdown-selected",children:ot}),jsxRuntimeExports.jsxs("ul",{className:"dropdown-options",children:[jsxRuntimeExports.jsx("li",{onClick:xt(it,"FORD MOTOR COMPANY"),children:"FORD MOTOR COMPANY"}),jsxRuntimeExports.jsx("li",{onClick:xt(it,"D2UX"),children:"D2UX"})]})]})]})}),lt?null:jsxRuntimeExports.jsxs("div",{className:`upload-container ${st?"dragging":""}`,onClick:()=>document.getElementById("file-input").click(),onDrop:bt,onDragOver:yt,onDragLeave:Et,children:[jsxRuntimeExports.jsx(default_1$b,{className:"upload-icon"}),jsxRuntimeExports.jsx("p",{children:"Upload Your Document"}),jsxRuntimeExports.jsx("small",{children:"(Docs, PDF, Word)"}),jsxRuntimeExports.jsx("input",{id:"file-input",type:"file",accept:".doc,.docx,.pdf,",style:{display:"none"},onChange:vt})]}),lt&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"selected-file-display",children:[jsxRuntimeExports.jsx(default_1$9,{className:"file-icon"}),jsxRuntimeExports.jsx("span",{className:"file-name",children:lt}),jsxRuntimeExports.jsx(default_1$a,{className:"remove-file-icon",onClick:St})]}),jsxRuntimeExports.jsx("button",{className:"save-button",onClick:kt,children:"Save"})]}),jsxRuntimeExports.jsxs(Dialog,{open:ct,onClose:$t,children:[jsxRuntimeExports.jsx(DialogTitle,{children:"Manage Documents"}),jsxRuntimeExports.jsx(DialogContent,{children:jsxRuntimeExports.jsxs("div",{className:"contract-field-container",children:[jsxRuntimeExports.jsxs("div",{className:"contract-field",children:[jsxRuntimeExports.jsx(Typography,{className:"contract-field-label",children:"Contract Type:"}),jsxRuntimeExports.jsx(Typography,{className:"contract-field-value",children:$})]}),jsxRuntimeExports.jsxs("div",{className:"contract-field",children:[jsxRuntimeExports.jsx(Typography,{className:"contract-field-label",children:"Product Group:"}),jsxRuntimeExports.jsx(Typography,{className:"contract-field-value",children:et})]}),jsxRuntimeExports.jsxs("div",{className:"contract-field",children:[jsxRuntimeExports.jsx(Typography,{className:"contract-field-label",children:"Contract Categories:"}),jsxRuntimeExports.jsx(Typography,{className:"contract-field-value",children:nt})]}),jsxRuntimeExports.jsxs("div",{className:"contract-field",children:[jsxRuntimeExports.jsx(Typography,{className:"contract-field-label",children:"Counter Party Name:"}),jsxRuntimeExports.jsx(Typography,{className:"contract-field-value",children:ot})]}),jsxRuntimeExports.jsxs("div",{className:"contract-field",children:[jsxRuntimeExports.jsx(Typography,{className:"contract-field-label",children:"Uploaded File:"}),jsxRuntimeExports.jsxs(Typography,{className:"uploaded-file",children:[jsxRuntimeExports.jsx(default_1$9,{className:"file-icon"})," ",lt]})]})]})}),jsxRuntimeExports.jsx(DialogActions,{children:jsxRuntimeExports.jsx("button",{className:"save-button",onClick:At,children:"Save"})})]})]})]})};var CameraAlt={},_interopRequireDefault$8=interopRequireDefaultExports;Object.defineProperty(CameraAlt,"__esModule",{value:!0});var default_1$8=CameraAlt.default=void 0,_createSvgIcon$8=_interopRequireDefault$8(requireCreateSvgIcon()),_jsxRuntime$8=jsxRuntimeExports;default_1$8=CameraAlt.default=(0,_createSvgIcon$8.default)([(0,_jsxRuntime$8.jsx)("circle",{cx:"12",cy:"12",r:"3.2"},"0"),(0,_jsxRuntime$8.jsx)("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")],"CameraAlt");const Signup=()=>{const[$,_e]=reactExports.useState(null),et=useNavigate(),tt=nt=>{const rt=nt.target.files[0];if(rt){const ot=new FileReader;ot.onloadend=()=>{_e(ot.result)},ot.readAsDataURL(rt)}};return jsxRuntimeExports.jsxs("div",{className:"signup-container",style:{},children:[jsxRuntimeExports.jsx("video",{src:background,width:"600",height:"400",loop:!0,autoPlay:!0,muted:!0}),jsxRuntimeExports.jsx("h1",{className:"signup-welcome-text",children:"Welcome"}),jsxRuntimeExports.jsx("h2",{className:"signup-title",children:"Contract Negotiation.AI"}),jsxRuntimeExports.jsxs("div",{className:"signup-card",children:[jsxRuntimeExports.jsx("h2",{className:"signup-header",children:"Sign Up"}),jsxRuntimeExports.jsx("div",{className:"profile-picture-container",children:jsxRuntimeExports.jsxs("div",{className:"profile-picture",children:[$?jsxRuntimeExports.jsx("img",{src:$,alt:"Profile",className:"profile-image"}):jsxRuntimeExports.jsx("div",{className:"signup-placeholder",children:jsxRuntimeExports.jsx("span",{className:"signup-placeholder-icon",children:"👤"})}),jsxRuntimeExports.jsx("label",{htmlFor:"upload-photo",className:"camera-icon-label",children:jsxRuntimeExports.jsx(default_1$8,{className:"camera-icon"})}),jsxRuntimeExports.jsx("input",{type:"file",id:"upload-photo",style:{display:"none"},onChange:tt})]})}),jsxRuntimeExports.jsxs("form",{className:"signup-form",children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Name",className:"signup-input"}),jsxRuntimeExports.jsx("input",{type:"email",placeholder:"Email Id",className:"signup-input"}),jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Mobile Number",className:"signup-input"}),jsxRuntimeExports.jsx("input",{type:"password",placeholder:"Password",className:"signup-input"}),jsxRuntimeExports.jsxs("small",{className:"password-instructions",children:["Must have at least 6 characters. ",jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("span",{className:"instruction-point",children:"• Upper & Lower Case Letter"}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("span",{className:"instruction-point",children:"• A Symbol($#@)"}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("span",{className:"instruction-point",children:"• A Longer Password"})]}),jsxRuntimeExports.jsx("input",{type:"password",placeholder:"Confirm Password",className:"signup-input"}),jsxRuntimeExports.jsx("button",{type:"submit",className:"signup-button",children:"Sign Up"})]}),jsxRuntimeExports.jsxs("div",{className:"divider",children:[jsxRuntimeExports.jsx("span",{className:"divider-line"}),jsxRuntimeExports.jsx("span",{className:"divider-text",children:"Or"}),jsxRuntimeExports.jsx("span",{className:"divider-line"})]}),jsxRuntimeExports.jsx("button",{className:"signin-button",onClick:()=>et("/"),children:"Sign In"})]})]})};var FilterList={},_interopRequireDefault$7=interopRequireDefaultExports;Object.defineProperty(FilterList,"__esModule",{value:!0});var default_1$7=FilterList.default=void 0,_createSvgIcon$7=_interopRequireDefault$7(requireCreateSvgIcon()),_jsxRuntime$7=jsxRuntimeExports;default_1$7=FilterList.default=(0,_createSvgIcon$7.default)((0,_jsxRuntime$7.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");const contracts=[{id:"AZ341945",name:"Audi",stage:2,status:"In Progress",turn:"John Doe. 2Hr",assignee:["AB","CD"],latestActivity:"Document review 2 hr ago",date:"2024-08-03"},{id:"AZ341946",name:"Mercedes",stage:1,status:"Pending",turn:"Alice Smith. 1Hr",assignee:["EF","GH"],latestActivity:"Initial contact 1 hr ago",date:"2024-08-04"},{id:"AZ341947",name:"Tesla",stage:4,status:"Completed",turn:"Bob Johnson. 4Hr",assignee:["IJ","KL"],latestActivity:"Final approval 4 hr ago",date:"2024-08-05"},{id:"AZ341948",name:"Toyota",stage:3,status:"In Progress",turn:"Charlie Brown. 3Hr",assignee:["MN","OP"],latestActivity:"Signature request 3 hr ago",date:"2024-08-06"},{id:"AZ341949",name:"Honda",stage:2,status:"Pending",turn:"Diana Prince. 2Hr",assignee:["QR","ST"],latestActivity:"Document review 2 hr ago",date:"2024-08-07"},{id:"AZ341944",name:"BMW",stage:4,status:"Completed",turn:"Jane Cooper. 3Hr",assignee:["JS","MV"],latestActivity:"Signature request 3 hr ago",date:"2024-08-02"}],Workflow=()=>{const[$,_e]=reactExports.useState(0),[et,tt]=reactExports.useState(""),[nt,rt]=reactExports.useState(""),[ot,it]=reactExports.useState(!1),st=mt=>{_e(mt)},at=mt=>{tt(mt.target.value)},lt=mt=>{rt(mt.target.value)},ht=()=>{it(mt=>!mt)},pt=()=>{tt(""),rt("")},gt=mt=>mt.filter(ct=>{const ut=ct.id.toLowerCase().includes(et.toLowerCase())||ct.name.toLowerCase().includes(et.toLowerCase())||ct.date.includes(et),vt=!nt||ct.date===nt;return ut&&vt}),ft=mt=>{const ct=$===1?mt+1:mt;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Box,{display:"flex",justifyContent:"flex-start",children:Array.from({length:4}).map((ut,vt)=>jsxRuntimeExports.jsx("span",{style:{height:"10px",width:"10px",margin:"0 4px",backgroundColor:vtet&&(mt.id.toLowerCase().includes(et.toLowerCase())||mt.name.toLowerCase().includes(et.toLowerCase())||mt.date.includes(et));return jsxRuntimeExports.jsxs("div",{className:"workflow-design-container",style:{display:"flex"},children:[jsxRuntimeExports.jsx(Sidebar,{}),jsxRuntimeExports.jsxs("div",{style:{paddingTop:"50px",margin:"0 auto",width:"80%"},children:[jsxRuntimeExports.jsx(Typography,{style:{fontWeight:"bold"},children:"Workflow"}),jsxRuntimeExports.jsxs(Box,{display:"flex",justifyContent:"center",alignItems:"center",mb:6,maxWidth:"100%",children:[jsxRuntimeExports.jsx(TextField,{placeholder:"Search Contract ID or Name..",value:et,onChange:at,InputProps:{disableUnderline:!0,style:{textAlign:"center",borderRadius:"20px",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)"}},inputProps:{style:{textAlign:"center"}},style:{width:"650px",marginRight:"10px",backgroundColor:"white",borderRadius:"20px"}}),jsxRuntimeExports.jsx(IconButton,{onClick:ht,style:{marginLeft:"10px"},children:jsxRuntimeExports.jsx(default_1$7,{})}),ot&&jsxRuntimeExports.jsx(Box,{display:"flex",justifyContent:"center",alignItems:"center",children:jsxRuntimeExports.jsx("input",{type:"date",value:nt,onChange:lt,style:{padding:"10px",borderRadius:"4px",border:"1px solid #ccc",marginLeft:"10px",width:"150px",textTransform:"uppercase"}})}),jsxRuntimeExports.jsx(Button,{onClick:pt,variant:"contained",style:{marginLeft:"20px",backgroundColor:"#FF6600",color:"#FFF"},children:"Reset Filters"})]}),jsxRuntimeExports.jsx(Box,{display:"flex",justifyContent:"flex-start",mb:3,children:["Assign to me","In progress","Completed"].map((mt,ct)=>jsxRuntimeExports.jsx(Box,{onClick:()=>st(ct),sx:{cursor:"pointer",padding:"30px 40px",marginRight:"10px",backgroundColor:$===ct?"#FF6600":"#FFF",color:$===ct?"#FFF":"grey",borderRadius:"20px",border:$===ct?"1px solid #FF6600":"1px solid grey",textAlign:"center",transition:"all 0.5s ease-in-out","&:hover":{backgroundColor:$===ct?"#FF6600":"#f0f0f0"}},children:jsxRuntimeExports.jsx(Typography,{children:mt})},ct))}),jsxRuntimeExports.jsxs(Typography,{variant:"h6",style:{marginBottom:"20px"},children:[$===0&&"Assign to me",$===1&&"In progress",$===2&&"Completed"]}),jsxRuntimeExports.jsx(Paper,{style:{padding:"10px",marginBottom:"10px",backgroundColor:"#fff",padding:"20px",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)"},children:jsxRuntimeExports.jsxs(Grid,{container:!0,spacing:1,children:[" ",jsxRuntimeExports.jsxs(Grid,{item:!0,xs:1.5,children:[" ",jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontWeight:"bold",fontSize:"20px"},children:"Contract ID"})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:2,children:[" ",jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontWeight:"bold",fontSize:"20px"},children:"Name"})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:1.5,children:[" ",jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontWeight:"bold",fontSize:"20px"},children:"Stage"})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:2,children:[" ",jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontWeight:"bold",fontSize:"20px"},children:"Turn"})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:1.5,children:[" ",jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontWeight:"bold",fontSize:"20px"},children:"Assignee"})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:2,children:[" ",jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontWeight:"bold",fontSize:"20px"},children:"Latest Activity"})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:1,children:[" ",jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontWeight:"bold",fontSize:"20px"},children:"Date"})]})]})}),jsxRuntimeExports.jsx("div",{style:{maxHeight:"450px",overflowY:"auto"},children:gt(contracts).map(mt=>jsxRuntimeExports.jsx(Paper,{style:{margin:"16px 0",padding:"16px",borderRadius:"8px",backgroundColor:dt(mt)?"#ffebcd":"#fff"},children:jsxRuntimeExports.jsxs(Grid,{container:!0,spacing:1,alignItems:"center",children:[" ",jsxRuntimeExports.jsxs(Grid,{item:!0,xs:1.5,children:[" ",jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontSize:"20px"},children:mt.id})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:2,children:[" ",jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontSize:"20px"},children:mt.name})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:1.5,children:[" ",ft(mt.stage),jsxRuntimeExports.jsx(Typography,{variant:"body2",style:{marginTop:"5px",fontStyle:"italic"},children:mt.status})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:2,children:[" ",jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontSize:"20px"},children:mt.turn})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:1.5,children:[" ",jsxRuntimeExports.jsx(Box,{display:"flex",children:mt.assignee.map(ct=>jsxRuntimeExports.jsx(Avatar,{style:{marginRight:"4px",backgroundColor:"#FF6600"},children:ct},ct))})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:2,children:[" ",jsxRuntimeExports.jsx(Typography,{variant:"body2",style:{fontSize:"20px"},children:mt.latestActivity})]}),jsxRuntimeExports.jsxs(Grid,{item:!0,xs:1,children:[" ",jsxRuntimeExports.jsx(Typography,{variant:"body2",style:{fontSize:"20px"},children:mt.date})]})]})},mt.id))})]})]})};var FileUploadOutlined={},_interopRequireDefault$6=interopRequireDefaultExports;Object.defineProperty(FileUploadOutlined,"__esModule",{value:!0});var default_1$6=FileUploadOutlined.default=void 0,_createSvgIcon$6=_interopRequireDefault$6(requireCreateSvgIcon()),_jsxRuntime$6=jsxRuntimeExports;default_1$6=FileUploadOutlined.default=(0,_createSvgIcon$6.default)((0,_jsxRuntime$6.jsx)("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"}),"FileUploadOutlined");var FilterListOutlined={},_interopRequireDefault$5=interopRequireDefaultExports;Object.defineProperty(FilterListOutlined,"__esModule",{value:!0});var default_1$5=FilterListOutlined.default=void 0,_createSvgIcon$5=_interopRequireDefault$5(requireCreateSvgIcon()),_jsxRuntime$5=jsxRuntimeExports;default_1$5=FilterListOutlined.default=(0,_createSvgIcon$5.default)((0,_jsxRuntime$5.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterListOutlined");const dummyData=[{indexNo:"TB241954",recordName:"Ford Motor Company.PDF",counterPartyName:"FORD MOTOR COMPANY",recordType:"Mutual NDA",agreementDate:"April 11, 2019"},{indexNo:"TB241955",recordName:"Tesla Motors.PDF",counterPartyName:"TESLA INC.",recordType:"Confidential Agreement",agreementDate:"May 1, 2020"},{indexNo:"TB241956",recordName:"GM Partnership.PDF",counterPartyName:"GENERAL MOTORS",recordType:"Partnership Agreement",agreementDate:"June 15, 2021"},{indexNo:"TB241957",recordName:"Volkswagen Agreement.PDF",counterPartyName:"VOLKSWAGEN AG",recordType:"Joint Venture",agreementDate:"July 30, 2022"},{indexNo:"TB241958",recordName:"Honda Agreement.PDF",counterPartyName:"HONDA MOTOR CO.",recordType:"Non-Disclosure Agreement",agreementDate:"August 20, 2023"}],DigitalLibrary=()=>{const[$,_e]=reactExports.useState(!1),[et,tt]=reactExports.useState(""),[nt,rt]=reactExports.useState(dummyData),ot=dt=>{const mt=dt.target.value.toLowerCase();tt(mt);const ct=dummyData.filter(ut=>ut.recordName.toLowerCase().includes(mt));rt(ct)},[it,st]=reactExports.useState(""),[at,lt]=reactExports.useState(""),[ht,pt]=reactExports.useState(""),[gt,ft]=reactExports.useState("");return jsxRuntimeExports.jsxs("div",{className:"workflow-design-container",style:{display:"flex"},children:[jsxRuntimeExports.jsx(Sidebar,{}),jsxRuntimeExports.jsxs("div",{style:{paddingTop:"50px",margin:"0 auto",width:"80%"},children:[jsxRuntimeExports.jsx(Typography,{style:{fontWeight:"bold",marginBottom:"20px"},children:"Digital Library"}),jsxRuntimeExports.jsxs(Box,{mb:6,children:[jsxRuntimeExports.jsxs(Box,{display:"flex",justifyContent:"center",alignItems:"center",mb:6,maxWidth:"100%",children:[jsxRuntimeExports.jsx(TextField,{placeholder:"Search Completed",value:et,onChange:ot,InputProps:{disableUnderline:!0,style:{textAlign:"center",borderRadius:"20px",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)"}},inputProps:{style:{textAlign:"center"}},style:{width:"700px",marginRight:"40px",backgroundColor:"white",borderRadius:"20px"}}),jsxRuntimeExports.jsxs(Button,{variant:"outlined",style:{backgroundColor:"#ff9100",color:"white",border:"none",padding:"10px 10px"},children:["Export",jsxRuntimeExports.jsx(default_1$6,{style:{marginLeft:"5px"}})]}),jsxRuntimeExports.jsxs(Button,{variant:"outlined",style:{backgroundColor:"#ff9100",color:"white",border:"none",padding:"10px 10px",marginLeft:"40px"},onClick:()=>_e(!$),children:["Filter",jsxRuntimeExports.jsx(default_1$5,{style:{marginLeft:"5px"}})]})]}),$?jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",backgroundColor:"white",padding:"50px 30px",borderRadius:"20px",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)",children:[jsxRuntimeExports.jsxs(Select,{value:it,onChange:dt=>st(dt.target.value),displayEmpty:!0,style:{marginRight:"10px",width:"350px"},inputProps:{"aria-label":"Without label"},children:[jsxRuntimeExports.jsx(MenuItem,{value:"",children:jsxRuntimeExports.jsx("em",{children:"Region"})}),jsxRuntimeExports.jsx(MenuItem,{value:"north",children:"North"}),jsxRuntimeExports.jsx(MenuItem,{value:"south",children:"South"})]}),jsxRuntimeExports.jsxs(Select,{value:at,onChange:dt=>lt(dt.target.value),displayEmpty:!0,style:{marginRight:"10px",width:"350px"},inputProps:{"aria-label":"Without label"},children:[jsxRuntimeExports.jsx(MenuItem,{value:"",children:jsxRuntimeExports.jsx("em",{children:"Product Group"})}),jsxRuntimeExports.jsx(MenuItem,{value:"group1",children:"Group 1"}),jsxRuntimeExports.jsx(MenuItem,{value:"group2",children:"Group 2"})]}),jsxRuntimeExports.jsx(TextField,{placeholder:"Counterparty",value:ht,onChange:dt=>pt(dt.target.value),style:{marginRight:"10px",width:"350px"}}),jsxRuntimeExports.jsx(TextField,{type:"date",value:gt,onChange:dt=>ft(dt.target.value),style:{marginRight:"10px",width:"250px"}}),jsxRuntimeExports.jsx(Button,{variant:"contained",style:{backgroundColor:"#ff9100",color:"white",width:"130px",marginLeft:"20px",padding:"15px 10px"},children:"Apply"})]}):null]}),jsxRuntimeExports.jsx(Paper,{style:{padding:"16px",marginBottom:"16px",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)"},children:jsxRuntimeExports.jsxs(Grid,{container:!0,spacing:1,children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:2,children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontWeight:"bold",fontSize:"20px"},children:"Index No"})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:3,children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontWeight:"bold",fontSize:"20px"},children:"Record Name"})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:3,children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontWeight:"bold",fontSize:"20px"},children:"Counter Party Name"})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:2,children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontWeight:"bold",fontSize:"20px"},children:"Record Type"})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:2,children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontWeight:"bold",fontSize:"20px"},children:"Agreement Date"})})]})}),jsxRuntimeExports.jsx("div",{style:{maxHeight:"450px",overflowY:"auto"},children:nt.map(dt=>jsxRuntimeExports.jsx(Paper,{style:{margin:"16px 0",padding:"16px",borderRadius:"8px",backgroundColor:"#fff",padding:"20px"},children:jsxRuntimeExports.jsxs(Grid,{container:!0,spacing:1,alignItems:"center",children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:2,children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontSize:"20px"},children:dt.indexNo})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:3,children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontSize:"20px"},children:dt.recordName})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:3,children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontSize:"20px"},children:dt.counterPartyName})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:2,children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontSize:"20px"},children:dt.recordType})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:2,children:jsxRuntimeExports.jsx(Typography,{variant:"subtitle1",style:{fontSize:"20px"},children:dt.agreementDate})})]})},dt.indexNo))})]})]})};var Send={},_interopRequireDefault$4=interopRequireDefaultExports;Object.defineProperty(Send,"__esModule",{value:!0});var default_1$4=Send.default=void 0,_createSvgIcon$4=_interopRequireDefault$4(requireCreateSvgIcon()),_jsxRuntime$4=jsxRuntimeExports;default_1$4=Send.default=(0,_createSvgIcon$4.default)((0,_jsxRuntime$4.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var KeyboardArrowDownOutlined={},_interopRequireDefault$3=interopRequireDefaultExports;Object.defineProperty(KeyboardArrowDownOutlined,"__esModule",{value:!0});var default_1$3=KeyboardArrowDownOutlined.default=void 0,_createSvgIcon$3=_interopRequireDefault$3(requireCreateSvgIcon()),_jsxRuntime$3=jsxRuntimeExports;default_1$3=KeyboardArrowDownOutlined.default=(0,_createSvgIcon$3.default)((0,_jsxRuntime$3.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDownOutlined");var lib$h={exports:{}},core_min={};function commonjsRequire($){throw new Error('Could not dynamically require "'+$+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);(function(module,exports){(function(_e,et){module.exports=_e.pdfjsLib=et()})(globalThis,()=>(()=>{var __webpack_modules__=[,($,_e)=>{var cr;Object.defineProperty(_e,"__esModule",{value:!0}),_e.VerbosityLevel=_e.Util=_e.UnknownErrorException=_e.UnexpectedResponseException=_e.TextRenderingMode=_e.RenderingIntentFlag=_e.PromiseCapability=_e.PermissionFlag=_e.PasswordResponses=_e.PasswordException=_e.PageActionEventType=_e.OPS=_e.MissingPDFException=_e.MAX_IMAGE_SIZE_TO_CACHE=_e.LINE_FACTOR=_e.LINE_DESCENT_FACTOR=_e.InvalidPDFException=_e.ImageKind=_e.IDENTITY_MATRIX=_e.FormatError=_e.FeatureTest=_e.FONT_IDENTITY_MATRIX=_e.DocumentActionEventType=_e.CMapCompressionType=_e.BaseException=_e.BASELINE_FACTOR=_e.AnnotationType=_e.AnnotationReplyType=_e.AnnotationPrefix=_e.AnnotationMode=_e.AnnotationFlag=_e.AnnotationFieldFlag=_e.AnnotationEditorType=_e.AnnotationEditorPrefix=_e.AnnotationEditorParamsType=_e.AnnotationBorderStyleType=_e.AnnotationActionEventType=_e.AbortException=void 0,_e.assert=It,_e.bytesToString=gn,_e.createValidAbsoluteUrl=Yt,_e.getModificationDate=Ln,_e.getUuid=tr,_e.getVerbosityLevel=Bt,_e.info=Kt,_e.isArrayBuffer=on,_e.isArrayEqual=Bn,_e.isNodeJS=void 0,_e.normalizeUnicode=Xn,_e.objectFromMap=kn,_e.objectSize=$n,_e.setVerbosityLevel=Gt,_e.shadow=Dt,_e.string32=yn,_e.stringToBytes=bn,_e.stringToPDFString=vn,_e.stringToUTF8String=Tn,_e.unreachable=Wt,_e.utf8StringToString=Rn,_e.warn=Vt;const et=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");_e.isNodeJS=et;const tt=[1,0,0,1,0,0];_e.IDENTITY_MATRIX=tt;const nt=[.001,0,0,.001,0,0];_e.FONT_IDENTITY_MATRIX=nt;const rt=1e7;_e.MAX_IMAGE_SIZE_TO_CACHE=rt;const ot=1.35;_e.LINE_FACTOR=ot;const it=.35;_e.LINE_DESCENT_FACTOR=it;const st=it/ot;_e.BASELINE_FACTOR=st;const at={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};_e.RenderingIntentFlag=at;const lt={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};_e.AnnotationMode=lt;const ht="pdfjs_internal_editor_";_e.AnnotationEditorPrefix=ht;const pt={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15};_e.AnnotationEditorType=pt;const gt={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23};_e.AnnotationEditorParamsType=gt;const ft={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};_e.PermissionFlag=ft;const dt={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};_e.TextRenderingMode=dt;const mt={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};_e.ImageKind=mt;const ct={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};_e.AnnotationType=ct;const ut={GROUP:"Group",REPLY:"R"};_e.AnnotationReplyType=ut;const vt={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};_e.AnnotationFlag=vt;const bt={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};_e.AnnotationFieldFlag=bt;const yt={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};_e.AnnotationBorderStyleType=yt;const Et={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};_e.AnnotationActionEventType=Et;const xt={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};_e.DocumentActionEventType=xt;const St={O:"PageOpen",C:"PageClose"};_e.PageActionEventType=St;const kt={ERRORS:0,WARNINGS:1,INFOS:5};_e.VerbosityLevel=kt;const At={NONE:0,BINARY:1};_e.CMapCompressionType=At;const $t={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};_e.OPS=$t;const Tt={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};_e.PasswordResponses=Tt;let jt=kt.WARNINGS;function Gt(fn){Number.isInteger(fn)&&(jt=fn)}function Bt(){return jt}function Kt(fn){jt>=kt.INFOS&&console.log(`Info: ${fn}`)}function Vt(fn){jt>=kt.WARNINGS&&console.log(`Warning: ${fn}`)}function Wt(fn){throw new Error(fn)}function It(fn,en){fn||Wt(en)}function Ft(fn){switch(fn==null?void 0:fn.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Yt(fn,en=null,an=null){if(!fn)return null;try{if(an&&typeof fn=="string"){if(an.addDefaultProtocol&&fn.startsWith("www.")){const qn=fn.match(/\./g);(qn==null?void 0:qn.length)>=2&&(fn=`http://${fn}`)}if(an.tryConvertEncoding)try{fn=Tn(fn)}catch{}}const zn=en?new URL(fn,en):new URL(fn);if(Ft(zn))return zn}catch{}return null}function Dt(fn,en,an,zn=!1){return Object.defineProperty(fn,en,{value:an,enumerable:!zn,configurable:!0,writable:!1}),an}const Rt=function(){function en(an,zn){this.constructor===en&&Wt("Cannot initialize BaseException."),this.message=an,this.name=zn}return en.prototype=new Error,en.constructor=en,en}();_e.BaseException=Rt;class wt extends Rt{constructor(en,an){super(en,"PasswordException"),this.code=an}}_e.PasswordException=wt;class Mt extends Rt{constructor(en,an){super(en,"UnknownErrorException"),this.details=an}}_e.UnknownErrorException=Mt;class Ot extends Rt{constructor(en){super(en,"InvalidPDFException")}}_e.InvalidPDFException=Ot;class zt extends Rt{constructor(en){super(en,"MissingPDFException")}}_e.MissingPDFException=zt;class Ht extends Rt{constructor(en,an){super(en,"UnexpectedResponseException"),this.status=an}}_e.UnexpectedResponseException=Ht;class Jt extends Rt{constructor(en){super(en,"FormatError")}}_e.FormatError=Jt;class pn extends Rt{constructor(en){super(en,"AbortException")}}_e.AbortException=pn;function gn(fn){(typeof fn!="object"||(fn==null?void 0:fn.length)===void 0)&&Wt("Invalid argument for bytesToString");const en=fn.length,an=8192;if(en>24&255,fn>>16&255,fn>>8&255,fn&255)}function $n(fn){return Object.keys(fn).length}function kn(fn){const en=Object.create(null);for(const[an,zn]of fn)en[an]=zn;return en}function hn(){const fn=new Uint8Array(4);return fn[0]=1,new Uint32Array(fn.buffer,0,1)[0]===1}function un(){try{return new Function(""),!0}catch{return!1}}class Lt{static get isLittleEndian(){return Dt(this,"isLittleEndian",hn())}static get isEvalSupported(){return Dt(this,"isEvalSupported",un())}static get isOffscreenCanvasSupported(){return Dt(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator>"u"?Dt(this,"platform",{isWin:!1,isMac:!1}):Dt(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){var en,an;return Dt(this,"isCSSRoundSupported",(an=(en=globalThis.CSS)==null?void 0:en.supports)==null?void 0:an.call(en,"width: round(1.5px, 1px)"))}}_e.FeatureTest=Lt;const Ut=[...Array(256).keys()].map(fn=>fn.toString(16).padStart(2,"0"));class nn{static makeHexColor(en,an,zn){return`#${Ut[en]}${Ut[an]}${Ut[zn]}`}static scaleMinMax(en,an){let zn;en[0]?(en[0]<0&&(zn=an[0],an[0]=an[1],an[1]=zn),an[0]*=en[0],an[1]*=en[0],en[3]<0&&(zn=an[2],an[2]=an[3],an[3]=zn),an[2]*=en[3],an[3]*=en[3]):(zn=an[0],an[0]=an[2],an[2]=zn,zn=an[1],an[1]=an[3],an[3]=zn,en[1]<0&&(zn=an[2],an[2]=an[3],an[3]=zn),an[2]*=en[1],an[3]*=en[1],en[2]<0&&(zn=an[0],an[0]=an[1],an[1]=zn),an[0]*=en[2],an[1]*=en[2]),an[0]+=en[4],an[1]+=en[4],an[2]+=en[5],an[3]+=en[5]}static transform(en,an){return[en[0]*an[0]+en[2]*an[1],en[1]*an[0]+en[3]*an[1],en[0]*an[2]+en[2]*an[3],en[1]*an[2]+en[3]*an[3],en[0]*an[4]+en[2]*an[5]+en[4],en[1]*an[4]+en[3]*an[5]+en[5]]}static applyTransform(en,an){const zn=en[0]*an[0]+en[1]*an[2]+an[4],qn=en[0]*an[1]+en[1]*an[3]+an[5];return[zn,qn]}static applyInverseTransform(en,an){const zn=an[0]*an[3]-an[1]*an[2],qn=(en[0]*an[3]-en[1]*an[2]+an[2]*an[5]-an[4]*an[3])/zn,Jn=(-en[0]*an[1]+en[1]*an[0]+an[4]*an[1]-an[5]*an[0])/zn;return[qn,Jn]}static getAxialAlignedBoundingBox(en,an){const zn=this.applyTransform(en,an),qn=this.applyTransform(en.slice(2,4),an),Jn=this.applyTransform([en[0],en[3]],an),Zt=this.applyTransform([en[2],en[1]],an);return[Math.min(zn[0],qn[0],Jn[0],Zt[0]),Math.min(zn[1],qn[1],Jn[1],Zt[1]),Math.max(zn[0],qn[0],Jn[0],Zt[0]),Math.max(zn[1],qn[1],Jn[1],Zt[1])]}static inverseTransform(en){const an=en[0]*en[3]-en[1]*en[2];return[en[3]/an,-en[1]/an,-en[2]/an,en[0]/an,(en[2]*en[5]-en[4]*en[3])/an,(en[4]*en[1]-en[5]*en[0])/an]}static singularValueDecompose2dScale(en){const an=[en[0],en[2],en[1],en[3]],zn=en[0]*an[0]+en[1]*an[2],qn=en[0]*an[1]+en[1]*an[3],Jn=en[2]*an[0]+en[3]*an[2],Zt=en[2]*an[1]+en[3]*an[3],Mn=(zn+Zt)/2,Un=Math.sqrt((zn+Zt)**2-4*(zn*Zt-Jn*qn))/2,er=Mn+Un||1,sr=Mn-Un||1;return[Math.sqrt(er),Math.sqrt(sr)]}static normalizeRect(en){const an=en.slice(0);return en[0]>en[2]&&(an[0]=en[2],an[2]=en[0]),en[1]>en[3]&&(an[1]=en[3],an[3]=en[1]),an}static intersect(en,an){const zn=Math.max(Math.min(en[0],en[2]),Math.min(an[0],an[2])),qn=Math.min(Math.max(en[0],en[2]),Math.max(an[0],an[2]));if(zn>qn)return null;const Jn=Math.max(Math.min(en[1],en[3]),Math.min(an[1],an[3])),Zt=Math.min(Math.max(en[1],en[3]),Math.max(an[1],an[3]));return Jn>Zt?null:[zn,Jn,qn,Zt]}static bezierBoundingBox(en,an,zn,qn,Jn,Zt,Mn,Un){const er=[],sr=[[],[]];let Qn,Xt,qt,cn,Pn,An,In,On;for(let Er=0;Er<2;++Er){if(Er===0?(Xt=6*en-12*zn+6*Jn,Qn=-3*en+9*zn-9*Jn+3*Mn,qt=3*zn-3*en):(Xt=6*an-12*qn+6*Zt,Qn=-3*an+9*qn-9*Zt+3*Un,qt=3*qn-3*an),Math.abs(Qn)<1e-12){if(Math.abs(Xt)<1e-12)continue;cn=-qt/Xt,0="ï"){let an;if(fn[0]==="þ"&&fn[1]==="ÿ"?an="utf-16be":fn[0]==="ÿ"&&fn[1]==="þ"?an="utf-16le":fn[0]==="ï"&&fn[1]==="»"&&fn[2]==="¿"&&(an="utf-8"),an)try{const zn=new TextDecoder(an,{fatal:!0}),qn=bn(fn);return zn.decode(qn)}catch(zn){Vt(`stringToPDFString: "${zn}".`)}}const en=[];for(let an=0,zn=fn.length;an{this.resolve=zn=>{wn(this,cr,!0),en(zn)},this.reject=zn=>{wn(this,cr,!0),an(zn)}})}get settled(){return Ct(this,cr)}}cr=new WeakMap,_e.PromiseCapability=Zn;let Nn=null,mr=null;function Xn(fn){return Nn||(Nn=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,mr=new Map([["ſt","ſt"]])),fn.replaceAll(Nn,(en,an,zn)=>an?an.normalize("NFKC"):mr.get(zn))}function tr(){if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const fn=new Uint8Array(32);if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(fn);else for(let en=0;en<32;en++)fn[en]=Math.floor(Math.random()*255);return gn(fn)}const Wn="pdfjs_internal_id_";_e.AnnotationPrefix=Wn},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{var $,et,tt,nt,jo,ns,it,st,at,lt,ht,pt,gt,ft,dt,rs,ct,ut,Ps,bt,yt;Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;const DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;const DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;const DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;function getDocument(xt){if(typeof xt=="string"||xt instanceof URL?xt={url:xt}:(0,_util.isArrayBuffer)(xt)&&(xt={data:xt}),typeof xt!="object")throw new Error("Invalid parameter in getDocument, need parameter object.");if(!xt.url&&!xt.data&&!xt.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const St=new PDFDocumentLoadingTask,{docId:kt}=St,At=xt.url?getUrlProp(xt.url):null,$t=xt.data?getDataProp(xt.data):null,Tt=xt.httpHeaders||null,jt=xt.withCredentials===!0,Gt=xt.password??null,Bt=xt.range instanceof PDFDataRangeTransport?xt.range:null,Kt=Number.isInteger(xt.rangeChunkSize)&&xt.rangeChunkSize>0?xt.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE;let Vt=xt.worker instanceof PDFWorker?xt.worker:null;const Wt=xt.verbosity,It=typeof xt.docBaseUrl=="string"&&!(0,_display_utils.isDataScheme)(xt.docBaseUrl)?xt.docBaseUrl:null,Ft=typeof xt.cMapUrl=="string"?xt.cMapUrl:null,Yt=xt.cMapPacked!==!1,Dt=xt.CMapReaderFactory||DefaultCMapReaderFactory,Rt=typeof xt.standardFontDataUrl=="string"?xt.standardFontDataUrl:null,wt=xt.StandardFontDataFactory||DefaultStandardFontDataFactory,Mt=xt.stopAtErrors!==!0,Ot=Number.isInteger(xt.maxImageSize)&&xt.maxImageSize>-1?xt.maxImageSize:-1,zt=xt.isEvalSupported!==!1,Ht=typeof xt.isOffscreenCanvasSupported=="boolean"?xt.isOffscreenCanvasSupported:!_util.isNodeJS,Jt=Number.isInteger(xt.canvasMaxAreaInBytes)?xt.canvasMaxAreaInBytes:-1,pn=typeof xt.disableFontFace=="boolean"?xt.disableFontFace:_util.isNodeJS,gn=xt.fontExtraProperties===!0,bn=xt.enableXfa===!0,yn=xt.ownerDocument||globalThis.document,$n=xt.disableRange===!0,kn=xt.disableStream===!0,hn=xt.disableAutoFetch===!0,un=xt.pdfBug===!0,Lt=Bt?Bt.length:xt.length??NaN,Ut=typeof xt.useSystemFonts=="boolean"?xt.useSystemFonts:!_util.isNodeJS&&!pn,nn=typeof xt.useWorkerFetch=="boolean"?xt.useWorkerFetch:Dt===_display_utils.DOMCMapReaderFactory&&wt===_display_utils.DOMStandardFontDataFactory&&Ft&&Rt&&(0,_display_utils.isValidFetchUrl)(Ft,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(Rt,document.baseURI),sn=xt.canvasFactory||new DefaultCanvasFactory({ownerDocument:yn}),vn=xt.filterFactory||new DefaultFilterFactory({docId:kt,ownerDocument:yn}),Tn=null;(0,_util.setVerbosityLevel)(Wt);const Rn={canvasFactory:sn,filterFactory:vn};if(nn||(Rn.cMapReaderFactory=new Dt({baseUrl:Ft,isCompressed:Yt}),Rn.standardFontDataFactory=new wt({baseUrl:Rt})),!Vt){const Ln={verbosity:Wt,port:_worker_options.GlobalWorkerOptions.workerPort};Vt=Ln.port?PDFWorker.fromPort(Ln):new PDFWorker(Ln),St._worker=Vt}const on={docId:kt,apiVersion:"3.11.174",data:$t,password:Gt,disableAutoFetch:hn,rangeChunkSize:Kt,length:Lt,docBaseUrl:It,enableXfa:bn,evaluatorOptions:{maxImageSize:Ot,disableFontFace:pn,ignoreErrors:Mt,isEvalSupported:zt,isOffscreenCanvasSupported:Ht,canvasMaxAreaInBytes:Jt,fontExtraProperties:gn,useSystemFonts:Ut,cMapUrl:nn?Ft:null,standardFontDataUrl:nn?Rt:null}},Bn={ignoreErrors:Mt,isEvalSupported:zt,disableFontFace:pn,fontExtraProperties:gn,enableXfa:bn,ownerDocument:yn,disableAutoFetch:hn,pdfBug:un,styleElement:Tn};return Vt.promise.then(function(){if(St.destroyed)throw new Error("Loading aborted");const Ln=_fetchDocument(Vt,on),Zn=new Promise(function(Nn){let mr;Bt?mr=new _transport_stream.PDFDataTransportStream({length:Lt,initialData:Bt.initialData,progressiveDone:Bt.progressiveDone,contentDispositionFilename:Bt.contentDispositionFilename,disableRange:$n,disableStream:kn},Bt):$t||(mr=(tr=>_util.isNodeJS?new _displayNode_stream.PDFNodeStream(tr):(0,_display_utils.isValidFetchUrl)(tr.url)?new _displayFetch_stream.PDFFetchStream(tr):new _displayNetwork.PDFNetworkStream(tr))({url:At,length:Lt,httpHeaders:Tt,withCredentials:jt,rangeChunkSize:Kt,disableRange:$n,disableStream:kn})),Nn(mr)});return Promise.all([Ln,Zn]).then(function([Nn,mr]){if(St.destroyed)throw new Error("Loading aborted");const Xn=new _message_handler.MessageHandler(kt,Nn,Vt.port),tr=new WorkerTransport(Xn,St,mr,Bn,Rn);St._transport=tr,Xn.send("Ready",null)})}).catch(St._capability.reject),St}async function _fetchDocument(xt,St){if(xt.destroyed)throw new Error("Worker was destroyed");const kt=await xt.messageHandler.sendWithPromise("GetDocRequest",St,St.data?[St.data.buffer]:null);if(xt.destroyed)throw new Error("Worker was destroyed");return kt}function getUrlProp(xt){if(xt instanceof URL)return xt.href;try{return new URL(xt,window.location).href}catch{if(_util.isNodeJS&&typeof xt=="string")return xt}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(xt){if(_util.isNodeJS&&typeof Buffer<"u"&&xt instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(xt instanceof Uint8Array&&xt.byteLength===xt.buffer.byteLength)return xt;if(typeof xt=="string")return(0,_util.stringToBytes)(xt);if(typeof xt=="object"&&!isNaN(xt==null?void 0:xt.length)||(0,_util.isArrayBuffer)(xt))return new Uint8Array(xt);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}const _e=class _e{constructor(){this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId=`d${zo(_e,$)._++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var St,kt,At;this.destroyed=!0;try{(St=this._worker)!=null&&St.port&&(this._worker._pendingDestroy=!0),await((kt=this._transport)==null?void 0:kt.destroy())}catch($t){throw(At=this._worker)!=null&&At.port&&delete this._worker._pendingDestroy,$t}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}};$=new WeakMap,Sn(_e,$,0);let PDFDocumentLoadingTask=_e;exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(St,kt,At=!1,$t=null){this.length=St,this.initialData=kt,this.progressiveDone=At,this.contentDispositionFilename=$t,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener(St){this._rangeListeners.push(St)}addProgressListener(St){this._progressListeners.push(St)}addProgressiveReadListener(St){this._progressiveReadListeners.push(St)}addProgressiveDoneListener(St){this._progressiveDoneListeners.push(St)}onDataRange(St,kt){for(const At of this._rangeListeners)At(St,kt)}onDataProgress(St,kt){this._readyCapability.promise.then(()=>{for(const At of this._progressListeners)At(St,kt)})}onDataProgressiveRead(St){this._readyCapability.promise.then(()=>{for(const kt of this._progressiveReadListeners)kt(St)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const St of this._progressiveDoneListeners)St()})}transportReady(){this._readyCapability.resolve()}requestDataRange(St,kt){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(St,kt){this._pdfInfo=St,this._transport=kt,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then(At=>{if(!At)return At;const $t=[];for(const Tt in At)$t.push(...At[Tt]);return $t}))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(St){return this._transport.getPage(St)}getPageIndex(St){return this._transport.getPageIndex(St)}getDestinations(){return this._transport.getDestinations()}getDestination(St){return this._transport.getDestination(St)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(St=!1){return this._transport.startCleanup(St||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(St,kt,At,$t=!1){Sn(this,nt);Sn(this,et,null);Sn(this,tt,!1);this._pageIndex=St,this._pageInfo=kt,this._transport=At,this._stats=$t?new _display_utils.StatTimer:null,this._pdfBug=$t,this.commonObjs=At.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:St,rotation:kt=this.rotate,offsetX:At=0,offsetY:$t=0,dontFlip:Tt=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:St,rotation:kt,offsetX:At,offsetY:$t,dontFlip:Tt})}getAnnotations({intent:St="display"}={}){const kt=this._transport.getRenderingIntent(St);return this._transport.getAnnotations(this._pageIndex,kt.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var St;return((St=this._transport._htmlForXfa)==null?void 0:St.children[this._pageIndex])||null}render({canvasContext:St,viewport:kt,intent:At="display",annotationMode:$t=_util.AnnotationMode.ENABLE,transform:Tt=null,background:jt=null,optionalContentConfigPromise:Gt=null,annotationCanvasMap:Bt=null,pageColors:Kt=null,printAnnotationStorage:Vt=null}){var wt,Mt;(wt=this._stats)==null||wt.time("Overall");const Wt=this._transport.getRenderingIntent(At,$t,Vt);wn(this,tt,!1),mn(this,nt,ns).call(this),Gt||(Gt=this._transport.getOptionalContentConfig());let It=this._intentStates.get(Wt.cacheKey);It||(It=Object.create(null),this._intentStates.set(Wt.cacheKey,It)),It.streamReaderCancelTimeout&&(clearTimeout(It.streamReaderCancelTimeout),It.streamReaderCancelTimeout=null);const Ft=!!(Wt.renderingIntent&_util.RenderingIntentFlag.PRINT);It.displayReadyCapability||(It.displayReadyCapability=new _util.PromiseCapability,It.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(Mt=this._stats)==null||Mt.time("Page Request"),this._pumpOperatorList(Wt));const Yt=Ot=>{var zt,Ht;It.renderTasks.delete(Dt),(this._maybeCleanupAfterRender||Ft)&&wn(this,tt,!0),mn(this,nt,jo).call(this,!Ft),Ot?(Dt.capability.reject(Ot),this._abortOperatorList({intentState:It,reason:Ot instanceof Error?Ot:new Error(Ot)})):Dt.capability.resolve(),(zt=this._stats)==null||zt.timeEnd("Rendering"),(Ht=this._stats)==null||Ht.timeEnd("Overall")},Dt=new InternalRenderTask({callback:Yt,params:{canvasContext:St,viewport:kt,transform:Tt,background:jt},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:Bt,operatorList:It.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!Ft,pdfBug:this._pdfBug,pageColors:Kt});(It.renderTasks||(It.renderTasks=new Set)).add(Dt);const Rt=Dt.task;return Promise.all([It.displayReadyCapability.promise,Gt]).then(([Ot,zt])=>{var Ht;if(this.destroyed){Yt();return}(Ht=this._stats)==null||Ht.time("Rendering"),Dt.initializeGraphics({transparency:Ot,optionalContentConfig:zt}),Dt.operatorListChanged()}).catch(Yt),Rt}getOperatorList({intent:St="display",annotationMode:kt=_util.AnnotationMode.ENABLE,printAnnotationStorage:At=null}={}){var Bt;function $t(){jt.operatorList.lastChunk&&(jt.opListReadCapability.resolve(jt.operatorList),jt.renderTasks.delete(Gt))}const Tt=this._transport.getRenderingIntent(St,kt,At,!0);let jt=this._intentStates.get(Tt.cacheKey);jt||(jt=Object.create(null),this._intentStates.set(Tt.cacheKey,jt));let Gt;return jt.opListReadCapability||(Gt=Object.create(null),Gt.operatorListChanged=$t,jt.opListReadCapability=new _util.PromiseCapability,(jt.renderTasks||(jt.renderTasks=new Set)).add(Gt),jt.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(Bt=this._stats)==null||Bt.time("Page Request"),this._pumpOperatorList(Tt)),jt.opListReadCapability.promise}streamTextContent({includeMarkedContent:St=!1,disableNormalization:kt=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:St===!0,disableNormalization:kt===!0},{highWaterMark:100,size($t){return $t.items.length}})}getTextContent(St={}){if(this._transport._htmlForXfa)return this.getXfa().then(At=>_xfa_text.XfaText.textContent(At));const kt=this.streamTextContent(St);return new Promise(function(At,$t){function Tt(){jt.read().then(function({value:Bt,done:Kt}){if(Kt){At(Gt);return}Object.assign(Gt.styles,Bt.styles),Gt.items.push(...Bt.items),Tt()},$t)}const jt=kt.getReader(),Gt={items:[],styles:Object.create(null)};Tt()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const St=[];for(const kt of this._intentStates.values())if(this._abortOperatorList({intentState:kt,reason:new Error("Page was destroyed."),force:!0}),!kt.opListReadCapability)for(const At of kt.renderTasks)St.push(At.completed),At.cancel();return this.objs.clear(),wn(this,tt,!1),mn(this,nt,ns).call(this),Promise.all(St)}cleanup(St=!1){wn(this,tt,!0);const kt=mn(this,nt,jo).call(this,!1);return St&&kt&&this._stats&&(this._stats=new _display_utils.StatTimer),kt}_startRenderPage(St,kt){var $t,Tt;const At=this._intentStates.get(kt);At&&(($t=this._stats)==null||$t.timeEnd("Page Request"),(Tt=At.displayReadyCapability)==null||Tt.resolve(St))}_renderPageChunk(St,kt){for(let At=0,$t=St.length;At<$t;At++)kt.operatorList.fnArray.push(St.fnArray[At]),kt.operatorList.argsArray.push(St.argsArray[At]);kt.operatorList.lastChunk=St.lastChunk,kt.operatorList.separateAnnots=St.separateAnnots;for(const At of kt.renderTasks)At.operatorListChanged();St.lastChunk&&mn(this,nt,jo).call(this,!0)}_pumpOperatorList({renderingIntent:St,cacheKey:kt,annotationStorageSerializable:At}){const{map:$t,transfers:Tt}=At,Gt=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:St,cacheKey:kt,annotationStorage:$t},Tt).getReader(),Bt=this._intentStates.get(kt);Bt.streamReader=Gt;const Kt=()=>{Gt.read().then(({value:Vt,done:Wt})=>{if(Wt){Bt.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(Vt,Bt),Kt())},Vt=>{if(Bt.streamReader=null,!this._transport.destroyed){if(Bt.operatorList){Bt.operatorList.lastChunk=!0;for(const Wt of Bt.renderTasks)Wt.operatorListChanged();mn(this,nt,jo).call(this,!0)}if(Bt.displayReadyCapability)Bt.displayReadyCapability.reject(Vt);else if(Bt.opListReadCapability)Bt.opListReadCapability.reject(Vt);else throw Vt}})};Kt()}_abortOperatorList({intentState:St,reason:kt,force:At=!1}){if(St.streamReader){if(St.streamReaderCancelTimeout&&(clearTimeout(St.streamReaderCancelTimeout),St.streamReaderCancelTimeout=null),!At){if(St.renderTasks.size>0)return;if(kt instanceof _display_utils.RenderingCancelledException){let $t=RENDERING_CANCELLED_TIMEOUT;kt.extraDelay>0&&kt.extraDelay<1e3&&($t+=kt.extraDelay),St.streamReaderCancelTimeout=setTimeout(()=>{St.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:St,reason:kt,force:!0})},$t);return}}if(St.streamReader.cancel(new _util.AbortException(kt.message)).catch(()=>{}),St.streamReader=null,!this._transport.destroyed){for(const[$t,Tt]of this._intentStates)if(Tt===St){this._intentStates.delete($t);break}this.cleanup()}}}get stats(){return this._stats}}et=new WeakMap,tt=new WeakMap,nt=new WeakSet,jo=function(St=!1){if(mn(this,nt,ns).call(this),!Ct(this,tt)||this.destroyed)return!1;if(St)return wn(this,et,setTimeout(()=>{wn(this,et,null),mn(this,nt,jo).call(this,!1)},DELAYED_CLEANUP_TIMEOUT)),!1;for(const{renderTasks:kt,operatorList:At}of this._intentStates.values())if(kt.size>0||!At.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),wn(this,tt,!1),!0},ns=function(){Ct(this,et)&&(clearTimeout(Ct(this,et)),wn(this,et,null))},exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){Sn(this,it,new Set);Sn(this,st,Promise.resolve())}postMessage(St,kt){const At={data:structuredClone(St,kt?{transfer:kt}:null)};Ct(this,st).then(()=>{for(const $t of Ct(this,it))$t.call(this,At)})}addEventListener(St,kt){Ct(this,it).add(kt)}removeEventListener(St,kt){Ct(this,it).delete(kt)}terminate(){Ct(this,it).clear()}}it=new WeakMap,st=new WeakMap,exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};exports.PDFWorkerUtil=PDFWorkerUtil;{if(_util.isNodeJS&&typeof commonjsRequire=="function")PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if(typeof document=="object"){const xt=(at=document==null?void 0:document.currentScript)==null?void 0:at.src;xt&&(PDFWorkerUtil.fallbackWorkerSrc=xt.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(xt,St){let kt;try{if(kt=new URL(xt),!kt.origin||kt.origin==="null")return!1}catch{return!1}const At=new URL(St,kt);return kt.origin===At.origin},PDFWorkerUtil.createCDNWrapper=function(xt){const St=`importScripts("${xt}");`;return URL.createObjectURL(new Blob([St]))}}const _PDFWorker=class _PDFWorker{constructor({name:xt=null,port:St=null,verbosity:kt=(0,_util.getVerbosityLevel)()}={}){var At;if(this.name=xt,this.destroyed=!1,this.verbosity=kt,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,St){if((At=Ct(_PDFWorker,lt))!=null&&At.has(St))throw new Error("Cannot use more than one PDFWorker per port.");(Ct(_PDFWorker,lt)||wn(_PDFWorker,lt,new WeakMap)).set(St,this),this._initializeFromPort(St);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(xt){this._port=xt,this._messageHandler=new _message_handler.MessageHandler("main","worker",xt),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!_PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:xt}=_PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,xt)||(xt=PDFWorkerUtil.createCDNWrapper(new URL(xt,window.location).href));const St=new Worker(xt),kt=new _message_handler.MessageHandler("main","worker",St),At=()=>{St.removeEventListener("error",$t),kt.destroy(),St.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},$t=()=>{this._webWorker||At()};St.addEventListener("error",$t),kt.on("test",jt=>{if(St.removeEventListener("error",$t),this.destroyed){At();return}jt?(this._messageHandler=kt,this._port=St,this._webWorker=St,this._readyCapability.resolve(),kt.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),kt.destroy(),St.terminate())}),kt.on("ready",jt=>{if(St.removeEventListener("error",$t),this.destroyed){At();return}try{Tt()}catch{this._setupFakeWorker()}});const Tt=()=>{const jt=new Uint8Array;kt.send("test",jt,[jt.buffer])};Tt();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),_PDFWorker._setupFakeWorkerGlobal.then(xt=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const St=new LoopbackPort;this._port=St;const kt=`fake${PDFWorkerUtil.fakeWorkerId++}`,At=new _message_handler.MessageHandler(kt+"_worker",kt,St);xt.setup(At,St);const $t=new _message_handler.MessageHandler(kt,kt+"_worker",St);this._messageHandler=$t,this._readyCapability.resolve(),$t.send("configure",{verbosity:this.verbosity})}).catch(xt=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${xt.message}".`))})}destroy(){var xt;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),(xt=Ct(_PDFWorker,lt))==null||xt.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(xt){var kt;if(!(xt!=null&&xt.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const St=(kt=Ct(this,lt))==null?void 0:kt.get(xt.port);if(St){if(St._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return St}return new _PDFWorker(xt)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(PDFWorkerUtil.fallbackWorkerSrc!==null)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){var xt;try{return((xt=globalThis.pdfjsWorker)==null?void 0:xt.WorkerMessageHandler)||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS&&typeof commonjsRequire=="function"){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}};lt=new WeakMap,Sn(_PDFWorker,lt);let PDFWorker=_PDFWorker;exports.PDFWorker=PDFWorker;class WorkerTransport{constructor(St,kt,At,$t,Tt){Sn(this,dt);Sn(this,ht,new Map);Sn(this,pt,new Map);Sn(this,gt,new Map);Sn(this,ft,null);this.messageHandler=St,this.loadingTask=kt,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:$t.ownerDocument,styleElement:$t.styleElement}),this._params=$t,this.canvasFactory=Tt.canvasFactory,this.filterFactory=Tt.filterFactory,this.cMapReaderFactory=Tt.cMapReaderFactory,this.standardFontDataFactory=Tt.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=At,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(St,kt=_util.AnnotationMode.ENABLE,At=null,$t=!1){let Tt=_util.RenderingIntentFlag.DISPLAY,jt=_annotation_storage.SerializableEmpty;switch(St){case"any":Tt=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":Tt=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${St}`)}switch(kt){case _util.AnnotationMode.DISABLE:Tt+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:Tt+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:Tt+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,jt=(Tt&_util.RenderingIntentFlag.PRINT&&At instanceof _annotation_storage.PrintAnnotationStorage?At:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${kt}`)}return $t&&(Tt+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:Tt,cacheKey:`${Tt}_${jt.hash}`,annotationStorageSerializable:jt}}destroy(){var At;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,(At=Ct(this,ft))==null||At.reject(new Error("Worker was destroyed during onPassword callback"));const St=[];for(const $t of Ct(this,pt).values())St.push($t._destroy());Ct(this,pt).clear(),Ct(this,gt).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const kt=this.messageHandler.sendWithPromise("Terminate",null);return St.push(kt),Promise.all(St).then(()=>{var $t;this.commonObjs.clear(),this.fontLoader.clear(),Ct(this,ht).clear(),this.filterFactory.destroy(),($t=this._networkStream)==null||$t.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:St,loadingTask:kt}=this;St.on("GetReader",(At,$t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=Tt=>{this._lastProgress={loaded:Tt.loaded,total:Tt.total}},$t.onPull=()=>{this._fullReader.read().then(function({value:Tt,done:jt}){if(jt){$t.close();return}(0,_util.assert)(Tt instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),$t.enqueue(new Uint8Array(Tt),1,[Tt])}).catch(Tt=>{$t.error(Tt)})},$t.onCancel=Tt=>{this._fullReader.cancel(Tt),$t.ready.catch(jt=>{if(!this.destroyed)throw jt})}}),St.on("ReaderHeadersReady",At=>{const $t=new _util.PromiseCapability,Tt=this._fullReader;return Tt.headersReady.then(()=>{var jt;(!Tt.isStreamingSupported||!Tt.isRangeSupported)&&(this._lastProgress&&((jt=kt.onProgress)==null||jt.call(kt,this._lastProgress)),Tt.onProgress=Gt=>{var Bt;(Bt=kt.onProgress)==null||Bt.call(kt,{loaded:Gt.loaded,total:Gt.total})}),$t.resolve({isStreamingSupported:Tt.isStreamingSupported,isRangeSupported:Tt.isRangeSupported,contentLength:Tt.contentLength})},$t.reject),$t.promise}),St.on("GetRangeReader",(At,$t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const Tt=this._networkStream.getRangeReader(At.begin,At.end);if(!Tt){$t.close();return}$t.onPull=()=>{Tt.read().then(function({value:jt,done:Gt}){if(Gt){$t.close();return}(0,_util.assert)(jt instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),$t.enqueue(new Uint8Array(jt),1,[jt])}).catch(jt=>{$t.error(jt)})},$t.onCancel=jt=>{Tt.cancel(jt),$t.ready.catch(Gt=>{if(!this.destroyed)throw Gt})}}),St.on("GetDoc",({pdfInfo:At})=>{this._numPages=At.numPages,this._htmlForXfa=At.htmlForXfa,delete At.htmlForXfa,kt._capability.resolve(new PDFDocumentProxy(At,this))}),St.on("DocException",function(At){let $t;switch(At.name){case"PasswordException":$t=new _util.PasswordException(At.message,At.code);break;case"InvalidPDFException":$t=new _util.InvalidPDFException(At.message);break;case"MissingPDFException":$t=new _util.MissingPDFException(At.message);break;case"UnexpectedResponseException":$t=new _util.UnexpectedResponseException(At.message,At.status);break;case"UnknownErrorException":$t=new _util.UnknownErrorException(At.message,At.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}kt._capability.reject($t)}),St.on("PasswordRequest",At=>{if(wn(this,ft,new _util.PromiseCapability),kt.onPassword){const $t=Tt=>{Tt instanceof Error?Ct(this,ft).reject(Tt):Ct(this,ft).resolve({password:Tt})};try{kt.onPassword($t,At.code)}catch(Tt){Ct(this,ft).reject(Tt)}}else Ct(this,ft).reject(new _util.PasswordException(At.message,At.code));return Ct(this,ft).promise}),St.on("DataLoaded",At=>{var $t;($t=kt.onProgress)==null||$t.call(kt,{loaded:At.length,total:At.length}),this.downloadInfoCapability.resolve(At)}),St.on("StartRenderPage",At=>{if(this.destroyed)return;Ct(this,pt).get(At.pageIndex)._startRenderPage(At.transparency,At.cacheKey)}),St.on("commonobj",([At,$t,Tt])=>{var jt;if(!this.destroyed&&!this.commonObjs.has(At))switch($t){case"Font":const Gt=this._params;if("error"in Tt){const Vt=Tt.error;(0,_util.warn)(`Error during font loading: ${Vt}`),this.commonObjs.resolve(At,Vt);break}const Bt=Gt.pdfBug&&((jt=globalThis.FontInspector)!=null&&jt.enabled)?(Vt,Wt)=>globalThis.FontInspector.fontAdded(Vt,Wt):null,Kt=new _font_loader.FontFaceObject(Tt,{isEvalSupported:Gt.isEvalSupported,disableFontFace:Gt.disableFontFace,ignoreErrors:Gt.ignoreErrors,inspectFont:Bt});this.fontLoader.bind(Kt).catch(Vt=>St.sendWithPromise("FontFallback",{id:At})).finally(()=>{!Gt.fontExtraProperties&&Kt.data&&(Kt.data=null),this.commonObjs.resolve(At,Kt)});break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(At,Tt);break;default:throw new Error(`Got unknown common object type ${$t}`)}}),St.on("obj",([At,$t,Tt,jt])=>{var Bt;if(this.destroyed)return;const Gt=Ct(this,pt).get($t);if(!Gt.objs.has(At))switch(Tt){case"Image":if(Gt.objs.resolve(At,jt),jt){let Kt;if(jt.bitmap){const{width:Vt,height:Wt}=jt;Kt=Vt*Wt*4}else Kt=((Bt=jt.data)==null?void 0:Bt.length)||0;Kt>_util.MAX_IMAGE_SIZE_TO_CACHE&&(Gt._maybeCleanupAfterRender=!0)}break;case"Pattern":Gt.objs.resolve(At,jt);break;default:throw new Error(`Got unknown object type ${Tt}`)}}),St.on("DocProgress",At=>{var $t;this.destroyed||($t=kt.onProgress)==null||$t.call(kt,{loaded:At.loaded,total:At.total})}),St.on("FetchBuiltInCMap",At=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(At):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),St.on("FetchStandardFontData",At=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(At):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var At;this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:St,transfers:kt}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:St,filename:((At=this._fullReader)==null?void 0:At.filename)??null},kt).finally(()=>{this.annotationStorage.resetModified()})}getPage(St){if(!Number.isInteger(St)||St<=0||St>this._numPages)return Promise.reject(new Error("Invalid page request."));const kt=St-1,At=Ct(this,gt).get(kt);if(At)return At;const $t=this.messageHandler.sendWithPromise("GetPage",{pageIndex:kt}).then(Tt=>{if(this.destroyed)throw new Error("Transport destroyed");const jt=new PDFPageProxy(kt,Tt,this,this._params.pdfBug);return Ct(this,pt).set(kt,jt),jt});return Ct(this,gt).set(kt,$t),$t}getPageIndex(St){return typeof St!="object"||St===null||!Number.isInteger(St.num)||St.num<0||!Number.isInteger(St.gen)||St.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:St.num,gen:St.gen})}getAnnotations(St,kt){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:St,intent:kt})}getFieldObjects(){return mn(this,dt,rs).call(this,"GetFieldObjects")}hasJSActions(){return mn(this,dt,rs).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(St){return typeof St!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:St})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return mn(this,dt,rs).call(this,"GetDocJSActions")}getPageJSActions(St){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:St})}getStructTree(St){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:St})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(St=>new _optional_content_config.OptionalContentConfig(St))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const St="GetMetadata",kt=Ct(this,ht).get(St);if(kt)return kt;const At=this.messageHandler.sendWithPromise(St,null).then($t=>{var Tt,jt;return{info:$t[0],metadata:$t[1]?new _metadata.Metadata($t[1]):null,contentDispositionFilename:((Tt=this._fullReader)==null?void 0:Tt.filename)??null,contentLength:((jt=this._fullReader)==null?void 0:jt.contentLength)??null}});return Ct(this,ht).set(St,At),At}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(St=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const kt of Ct(this,pt).values())if(!kt.cleanup())throw new Error(`startCleanup: Page ${kt.pageNumber} is currently rendering.`);this.commonObjs.clear(),St||this.fontLoader.clear(),Ct(this,ht).clear(),this.filterFactory.destroy(!0)}}get loadingParams(){const{disableAutoFetch:St,enableXfa:kt}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:St,enableXfa:kt})}}ht=new WeakMap,pt=new WeakMap,gt=new WeakMap,ft=new WeakMap,dt=new WeakSet,rs=function(St,kt=null){const At=Ct(this,ht).get(St);if(At)return At;const $t=this.messageHandler.sendWithPromise(St,kt);return Ct(this,ht).set(St,$t),$t};class PDFObjects{constructor(){Sn(this,ut);Sn(this,ct,Object.create(null))}get(St,kt=null){if(kt){const $t=mn(this,ut,Ps).call(this,St);return $t.capability.promise.then(()=>kt($t.data)),null}const At=Ct(this,ct)[St];if(!(At!=null&&At.capability.settled))throw new Error(`Requesting object that isn't resolved yet ${St}.`);return At.data}has(St){const kt=Ct(this,ct)[St];return(kt==null?void 0:kt.capability.settled)||!1}resolve(St,kt=null){const At=mn(this,ut,Ps).call(this,St);At.data=kt,At.capability.resolve()}clear(){var St;for(const kt in Ct(this,ct)){const{data:At}=Ct(this,ct)[kt];(St=At==null?void 0:At.bitmap)==null||St.close()}wn(this,ct,Object.create(null))}}ct=new WeakMap,ut=new WeakSet,Ps=function(St){var kt;return(kt=Ct(this,ct))[St]||(kt[St]={capability:new _util.PromiseCapability,data:null})};class RenderTask{constructor(St){Sn(this,bt,null);wn(this,bt,St),this.onContinue=null}get promise(){return Ct(this,bt).capability.promise}cancel(St=0){Ct(this,bt).cancel(null,St)}get separateAnnots(){const{separateAnnots:St}=Ct(this,bt).operatorList;if(!St)return!1;const{annotationCanvasMap:kt}=Ct(this,bt);return St.form||St.canvas&&(kt==null?void 0:kt.size)>0}}bt=new WeakMap,exports.RenderTask=RenderTask;const Et=class Et{constructor({callback:St,params:kt,objs:At,commonObjs:$t,annotationCanvasMap:Tt,operatorList:jt,pageIndex:Gt,canvasFactory:Bt,filterFactory:Kt,useRequestAnimationFrame:Vt=!1,pdfBug:Wt=!1,pageColors:It=null}){this.callback=St,this.params=kt,this.objs=At,this.commonObjs=$t,this.annotationCanvasMap=Tt,this.operatorListIdx=null,this.operatorList=jt,this._pageIndex=Gt,this.canvasFactory=Bt,this.filterFactory=Kt,this._pdfBug=Wt,this.pageColors=It,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=Vt===!0&&typeof window<"u",this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=kt.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:St=!1,optionalContentConfig:kt}){var Gt,Bt;if(this.cancelled)return;if(this._canvas){if(Ct(Et,yt).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");Ct(Et,yt).add(this._canvas)}this._pdfBug&&((Gt=globalThis.StepperManager)!=null&&Gt.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:At,viewport:$t,transform:Tt,background:jt}=this.params;this.gfx=new _canvas.CanvasGraphics(At,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:kt},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:Tt,viewport:$t,transparency:St,background:jt}),this.operatorListIdx=0,this.graphicsReady=!0,(Bt=this.graphicsReadyCallback)==null||Bt.call(this)}cancel(St=null,kt=0){var At;this.running=!1,this.cancelled=!0,(At=this.gfx)==null||At.endDrawing(),Ct(Et,yt).delete(this._canvas),this.callback(St||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,kt))}operatorListChanged(){var St;if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}(St=this.stepper)==null||St.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),Ct(Et,yt).delete(this._canvas),this.callback())))}};yt=new WeakMap,Sn(Et,yt,new WeakSet);let InternalRenderTask=Et;const version="3.11.174";exports.version=version;const build="ce8716743";exports.build=build},($,_e,et)=>{var at,lt,ht,Wl,gt;Object.defineProperty(_e,"__esModule",{value:!0}),_e.SerializableEmpty=_e.PrintAnnotationStorage=_e.AnnotationStorage=void 0;var tt=et(1),nt=et(4),rt=et(8);const ot=Object.freeze({map:null,hash:"",transfers:void 0});_e.SerializableEmpty=ot;class it{constructor(){Sn(this,ht);Sn(this,at,!1);Sn(this,lt,new Map);this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(dt,mt){const ct=Ct(this,lt).get(dt);return ct===void 0?mt:Object.assign(mt,ct)}getRawValue(dt){return Ct(this,lt).get(dt)}remove(dt){if(Ct(this,lt).delete(dt),Ct(this,lt).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const mt of Ct(this,lt).values())if(mt instanceof nt.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(dt,mt){const ct=Ct(this,lt).get(dt);let ut=!1;if(ct!==void 0)for(const[vt,bt]of Object.entries(mt))ct[vt]!==bt&&(ut=!0,ct[vt]=bt);else ut=!0,Ct(this,lt).set(dt,mt);ut&&mn(this,ht,Wl).call(this),mt instanceof nt.AnnotationEditor&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(mt.constructor._type)}has(dt){return Ct(this,lt).has(dt)}getAll(){return Ct(this,lt).size>0?(0,tt.objectFromMap)(Ct(this,lt)):null}setAll(dt){for(const[mt,ct]of Object.entries(dt))this.setValue(mt,ct)}get size(){return Ct(this,lt).size}resetModified(){Ct(this,at)&&(wn(this,at,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new st(this)}get serializable(){if(Ct(this,lt).size===0)return ot;const dt=new Map,mt=new rt.MurmurHash3_64,ct=[],ut=Object.create(null);let vt=!1;for(const[bt,yt]of Ct(this,lt)){const Et=yt instanceof nt.AnnotationEditor?yt.serialize(!1,ut):yt;Et&&(dt.set(bt,Et),mt.update(`${bt}:${JSON.stringify(Et)}`),vt||(vt=!!Et.bitmap))}if(vt)for(const bt of dt.values())bt.bitmap&&ct.push(bt.bitmap);return dt.size>0?{map:dt,hash:mt.hexdigest(),transfers:ct}:ot}}at=new WeakMap,lt=new WeakMap,ht=new WeakSet,Wl=function(){Ct(this,at)||(wn(this,at,!0),typeof this.onSetModified=="function"&&this.onSetModified())},_e.AnnotationStorage=it;class st extends it{constructor(mt){super();Sn(this,gt);const{map:ct,hash:ut,transfers:vt}=mt.serializable,bt=structuredClone(ct,vt?{transfer:vt}:null);wn(this,gt,{map:bt,hash:ut,transfers:vt})}get print(){(0,tt.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return Ct(this,gt)}}gt=new WeakMap,_e.PrintAnnotationStorage=st},($,_e,et)=>{var st,at,lt,ht,pt,gt,ft,dt,mt,ct,ut,vt,bt,yt,Et,Ts,As,kt,Ms,Is,Hl,Vl,Gl,js,Kl;Object.defineProperty(_e,"__esModule",{value:!0}),_e.AnnotationEditor=void 0;var tt=et(5),nt=et(1),rt=et(6);const Vt=class Vt{constructor(It){Sn(this,Et);Sn(this,st,"");Sn(this,at,!1);Sn(this,lt,null);Sn(this,ht,null);Sn(this,pt,null);Sn(this,gt,!1);Sn(this,ft,null);Sn(this,dt,this.focusin.bind(this));Sn(this,mt,this.focusout.bind(this));Sn(this,ct,!1);Sn(this,ut,!1);Sn(this,vt,!1);Gr(this,"_initialOptions",Object.create(null));Gr(this,"_uiManager",null);Gr(this,"_focusEventsAllowed",!0);Gr(this,"_l10nPromise",null);Sn(this,bt,!1);Sn(this,yt,Vt._zIndex++);this.constructor===Vt&&(0,nt.unreachable)("Cannot initialize AnnotationEditor."),this.parent=It.parent,this.id=It.id,this.width=this.height=null,this.pageIndex=It.parent.pageIndex,this.name=It.name,this.div=null,this._uiManager=It.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=It.isCentered,this._structTreeParentId=null;const{rotation:Ft,rawDims:{pageWidth:Yt,pageHeight:Dt,pageX:Rt,pageY:wt}}=this.parent.viewport;this.rotation=Ft,this.pageRotation=(360+Ft-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[Yt,Dt],this.pageTranslation=[Rt,wt];const[Mt,Ot]=this.parentDimensions;this.x=It.x/Mt,this.y=It.y/Ot,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,nt.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(It){const Ft=new it({id:It.parent.getNextId(),parent:It.parent,uiManager:It._uiManager});Ft.annotationElementId=It.annotationElementId,Ft.deleted=!0,Ft._uiManager.addToAnnotationStorage(Ft)}static initialize(It,Ft=null){if(Vt._l10nPromise||(Vt._l10nPromise=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map(Dt=>[Dt,It.get(Dt)]))),Ft!=null&&Ft.strings)for(const Dt of Ft.strings)Vt._l10nPromise.set(Dt,It.get(Dt));if(Vt._borderLineWidth!==-1)return;const Yt=getComputedStyle(document.documentElement);Vt._borderLineWidth=parseFloat(Yt.getPropertyValue("--outline-width"))||0}static updateDefaultParams(It,Ft){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(It){return!1}static paste(It,Ft){(0,nt.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return Ct(this,bt)}set _isDraggable(It){var Ft;wn(this,bt,It),(Ft=this.div)==null||Ft.classList.toggle("draggable",It)}center(){const[It,Ft]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*Ft/(It*2),this.y+=this.width*It/(Ft*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*Ft/(It*2),this.y-=this.width*It/(Ft*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(It){this._uiManager.addCommands(It)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=Ct(this,yt)}setParent(It){It!==null&&(this.pageIndex=It.pageIndex,this.pageDimensions=It.pageDimensions),this.parent=It}focusin(It){this._focusEventsAllowed&&(Ct(this,ct)?wn(this,ct,!1):this.parent.setSelected(this))}focusout(It){var Yt;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const Ft=It.relatedTarget;Ft!=null&&Ft.closest(`#${this.id}`)||(It.preventDefault(),(Yt=this.parent)!=null&&Yt.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(It,Ft,Yt,Dt){const[Rt,wt]=this.parentDimensions;[Yt,Dt]=this.screenToPageTranslation(Yt,Dt),this.x=(It+Yt)/Rt,this.y=(Ft+Dt)/wt,this.fixAndSetPosition()}translate(It,Ft){mn(this,Et,Ts).call(this,this.parentDimensions,It,Ft)}translateInPage(It,Ft){mn(this,Et,Ts).call(this,this.pageDimensions,It,Ft),this.div.scrollIntoView({block:"nearest"})}drag(It,Ft){const[Yt,Dt]=this.parentDimensions;if(this.x+=It/Yt,this.y+=Ft/Dt,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:zt,y:Ht}=this.div.getBoundingClientRect();this.parent.findNewParent(this,zt,Ht)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:Rt,y:wt}=this;const[Mt,Ot]=mn(this,Et,As).call(this);Rt+=Mt,wt+=Ot,this.div.style.left=`${(100*Rt).toFixed(2)}%`,this.div.style.top=`${(100*wt).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}fixAndSetPosition(){const[It,Ft]=this.pageDimensions;let{x:Yt,y:Dt,width:Rt,height:wt}=this;switch(Rt*=It,wt*=Ft,Yt*=It,Dt*=Ft,this.rotation){case 0:Yt=Math.max(0,Math.min(It-Rt,Yt)),Dt=Math.max(0,Math.min(Ft-wt,Dt));break;case 90:Yt=Math.max(0,Math.min(It-wt,Yt)),Dt=Math.min(Ft,Math.max(Rt,Dt));break;case 180:Yt=Math.min(It,Math.max(Rt,Yt)),Dt=Math.min(Ft,Math.max(wt,Dt));break;case 270:Yt=Math.min(It,Math.max(wt,Yt)),Dt=Math.max(0,Math.min(Ft-Rt,Dt));break}this.x=Yt/=It,this.y=Dt/=Ft;const[Mt,Ot]=mn(this,Et,As).call(this);Yt+=Mt,Dt+=Ot;const{style:zt}=this.div;zt.left=`${(100*Yt).toFixed(2)}%`,zt.top=`${(100*Dt).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(It,Ft){var Yt;return mn(Yt=Vt,kt,Ms).call(Yt,It,Ft,this.parentRotation)}pageTranslationToScreen(It,Ft){var Yt;return mn(Yt=Vt,kt,Ms).call(Yt,It,Ft,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:It,pageDimensions:[Ft,Yt]}=this,Dt=Ft*It,Rt=Yt*It;return nt.FeatureTest.isCSSRoundSupported?[Math.round(Dt),Math.round(Rt)]:[Dt,Rt]}setDims(It,Ft){var Rt;const[Yt,Dt]=this.parentDimensions;this.div.style.width=`${(100*It/Yt).toFixed(2)}%`,Ct(this,gt)||(this.div.style.height=`${(100*Ft/Dt).toFixed(2)}%`),(Rt=Ct(this,lt))==null||Rt.classList.toggle("small",ItYt.stopPropagation()),It.addEventListener("click",Yt=>{Yt.preventDefault(),this._uiManager.editAltText(this)},{capture:!0}),It.addEventListener("keydown",Yt=>{Yt.target===It&&Yt.key==="Enter"&&(Yt.preventDefault(),this._uiManager.editAltText(this))}),mn(this,Et,js).call(this),this.div.append(It),Vt.SMALL_EDITOR_SIZE||(Vt.SMALL_EDITOR_SIZE=Math.min(128,Math.round(It.getBoundingClientRect().width*1.4)))}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:Ct(this,st),decorative:Ct(this,at)}}set altTextData({altText:It,decorative:Ft}){Ct(this,st)===It&&Ct(this,at)===Ft||(wn(this,st,It),wn(this,at,Ft),mn(this,Et,js).call(this))}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",Ct(this,dt)),this.div.addEventListener("focusout",Ct(this,mt));const[It,Ft]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*Ft/It).toFixed(2)}%`,this.div.style.maxHeight=`${(100*It/Ft).toFixed(2)}%`);const[Yt,Dt]=this.getInitialTranslation();return this.translate(Yt,Dt),(0,tt.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(It){const{isMac:Ft}=nt.FeatureTest.platform;if(It.button!==0||It.ctrlKey&&Ft){It.preventDefault();return}wn(this,ct,!0),mn(this,Et,Kl).call(this,It)}moveInDOM(){var It;(It=this.parent)==null||It.moveEditorInDOM(this)}_setParentAndPosition(It,Ft,Yt){It.changeParent(this),this.x=Ft,this.y=Yt,this.fixAndSetPosition()}getRect(It,Ft){const Yt=this.parentScale,[Dt,Rt]=this.pageDimensions,[wt,Mt]=this.pageTranslation,Ot=It/Yt,zt=Ft/Yt,Ht=this.x*Dt,Jt=this.y*Rt,pn=this.width*Dt,gn=this.height*Rt;switch(this.rotation){case 0:return[Ht+Ot+wt,Rt-Jt-zt-gn+Mt,Ht+Ot+pn+wt,Rt-Jt-zt+Mt];case 90:return[Ht+zt+wt,Rt-Jt+Ot+Mt,Ht+zt+gn+wt,Rt-Jt+Ot+pn+Mt];case 180:return[Ht-Ot-pn+wt,Rt-Jt+zt+Mt,Ht-Ot+wt,Rt-Jt+zt+gn+Mt];case 270:return[Ht-zt-gn+wt,Rt-Jt-Ot-pn+Mt,Ht-zt+wt,Rt-Jt-Ot+Mt];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(It,Ft){const[Yt,Dt,Rt,wt]=It,Mt=Rt-Yt,Ot=wt-Dt;switch(this.rotation){case 0:return[Yt,Ft-wt,Mt,Ot];case 90:return[Yt,Ft-Dt,Ot,Mt];case 180:return[Rt,Ft-Dt,Mt,Ot];case 270:return[Rt,Ft-wt,Ot,Mt];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){wn(this,vt,!0)}disableEditMode(){wn(this,vt,!1)}isInEditMode(){return Ct(this,vt)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var It,Ft;(It=this.div)==null||It.addEventListener("focusin",Ct(this,dt)),(Ft=this.div)==null||Ft.addEventListener("focusout",Ct(this,mt))}serialize(It=!1,Ft=null){(0,nt.unreachable)("An editor must be serializable")}static deserialize(It,Ft,Yt){const Dt=new this.prototype.constructor({parent:Ft,id:Ft.getNextId(),uiManager:Yt});Dt.rotation=It.rotation;const[Rt,wt]=Dt.pageDimensions,[Mt,Ot,zt,Ht]=Dt.getRectInCurrentCoords(It.rect,wt);return Dt.x=Mt/Rt,Dt.y=Ot/wt,Dt.width=zt/Rt,Dt.height=Ht/wt,Dt}remove(){var It;this.div.removeEventListener("focusin",Ct(this,dt)),this.div.removeEventListener("focusout",Ct(this,mt)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),(It=Ct(this,lt))==null||It.remove(),wn(this,lt,null),wn(this,ht,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(mn(this,Et,Hl).call(this),Ct(this,ft).classList.remove("hidden"))}select(){var It;this.makeResizable(),(It=this.div)==null||It.classList.add("selectedEditor")}unselect(){var It,Ft,Yt;(It=Ct(this,ft))==null||It.classList.add("hidden"),(Ft=this.div)==null||Ft.classList.remove("selectedEditor"),(Yt=this.div)!=null&&Yt.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(It,Ft){}disableEditing(){Ct(this,lt)&&(Ct(this,lt).hidden=!0)}enableEditing(){Ct(this,lt)&&(Ct(this,lt).hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return Ct(this,ut)}set isEditing(It){wn(this,ut,It),this.parent&&(It?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(It,Ft){wn(this,gt,!0);const Yt=It/Ft,{style:Dt}=this.div;Dt.aspectRatio=Yt,Dt.height="auto"}static get MIN_SIZE(){return 16}};st=new WeakMap,at=new WeakMap,lt=new WeakMap,ht=new WeakMap,pt=new WeakMap,gt=new WeakMap,ft=new WeakMap,dt=new WeakMap,mt=new WeakMap,ct=new WeakMap,ut=new WeakMap,vt=new WeakMap,bt=new WeakMap,yt=new WeakMap,Et=new WeakSet,Ts=function([It,Ft],Yt,Dt){[Yt,Dt]=this.screenToPageTranslation(Yt,Dt),this.x+=Yt/It,this.y+=Dt/Ft,this.fixAndSetPosition()},As=function(){const[It,Ft]=this.parentDimensions,{_borderLineWidth:Yt}=Vt,Dt=Yt/It,Rt=Yt/Ft;switch(this.rotation){case 90:return[-Dt,Rt];case 180:return[Dt,Rt];case 270:return[Dt,-Rt];default:return[-Dt,-Rt]}},kt=new WeakSet,Ms=function(It,Ft,Yt){switch(Yt){case 90:return[Ft,-It];case 180:return[-It,-Ft];case 270:return[-Ft,It];default:return[It,Ft]}},Is=function(It){switch(It){case 90:{const[Ft,Yt]=this.pageDimensions;return[0,-Ft/Yt,Yt/Ft,0]}case 180:return[-1,0,0,-1];case 270:{const[Ft,Yt]=this.pageDimensions;return[0,Ft/Yt,-Yt/Ft,0]}default:return[1,0,0,1]}},Hl=function(){if(Ct(this,ft))return;wn(this,ft,document.createElement("div")),Ct(this,ft).classList.add("resizers");const It=["topLeft","topRight","bottomRight","bottomLeft"];this._willKeepAspectRatio||It.push("topMiddle","middleRight","bottomMiddle","middleLeft");for(const Ft of It){const Yt=document.createElement("div");Ct(this,ft).append(Yt),Yt.classList.add("resizer",Ft),Yt.addEventListener("pointerdown",mn(this,Et,Vl).bind(this,Ft)),Yt.addEventListener("contextmenu",rt.noContextMenu)}this.div.prepend(Ct(this,ft))},Vl=function(It,Ft){Ft.preventDefault();const{isMac:Yt}=nt.FeatureTest.platform;if(Ft.button!==0||Ft.ctrlKey&&Yt)return;const Dt=mn(this,Et,Gl).bind(this,It),Rt=this._isDraggable;this._isDraggable=!1;const wt={passive:!0,capture:!0};window.addEventListener("pointermove",Dt,wt);const Mt=this.x,Ot=this.y,zt=this.width,Ht=this.height,Jt=this.parent.div.style.cursor,pn=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(Ft.target).cursor;const gn=()=>{this._isDraggable=Rt,window.removeEventListener("pointerup",gn),window.removeEventListener("blur",gn),window.removeEventListener("pointermove",Dt,wt),this.parent.div.style.cursor=Jt,this.div.style.cursor=pn;const bn=this.x,yn=this.y,$n=this.width,kn=this.height;bn===Mt&&yn===Ot&&$n===zt&&kn===Ht||this.addCommands({cmd:()=>{this.width=$n,this.height=kn,this.x=bn,this.y=yn;const[hn,un]=this.parentDimensions;this.setDims(hn*$n,un*kn),this.fixAndSetPosition()},undo:()=>{this.width=zt,this.height=Ht,this.x=Mt,this.y=Ot;const[hn,un]=this.parentDimensions;this.setDims(hn*zt,un*Ht),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",gn),window.addEventListener("blur",gn)},Gl=function(It,Ft){const[Yt,Dt]=this.parentDimensions,Rt=this.x,wt=this.y,Mt=this.width,Ot=this.height,zt=Vt.MIN_SIZE/Yt,Ht=Vt.MIN_SIZE/Dt,Jt=Xn=>Math.round(Xn*1e4)/1e4,pn=mn(this,Et,Is).call(this,this.rotation),gn=(Xn,tr)=>[pn[0]*Xn+pn[2]*tr,pn[1]*Xn+pn[3]*tr],bn=mn(this,Et,Is).call(this,360-this.rotation),yn=(Xn,tr)=>[bn[0]*Xn+bn[2]*tr,bn[1]*Xn+bn[3]*tr];let $n,kn,hn=!1,un=!1;switch(It){case"topLeft":hn=!0,$n=(Xn,tr)=>[0,0],kn=(Xn,tr)=>[Xn,tr];break;case"topMiddle":$n=(Xn,tr)=>[Xn/2,0],kn=(Xn,tr)=>[Xn/2,tr];break;case"topRight":hn=!0,$n=(Xn,tr)=>[Xn,0],kn=(Xn,tr)=>[0,tr];break;case"middleRight":un=!0,$n=(Xn,tr)=>[Xn,tr/2],kn=(Xn,tr)=>[0,tr/2];break;case"bottomRight":hn=!0,$n=(Xn,tr)=>[Xn,tr],kn=(Xn,tr)=>[0,0];break;case"bottomMiddle":$n=(Xn,tr)=>[Xn/2,tr],kn=(Xn,tr)=>[Xn/2,0];break;case"bottomLeft":hn=!0,$n=(Xn,tr)=>[0,tr],kn=(Xn,tr)=>[Xn,0];break;case"middleLeft":un=!0,$n=(Xn,tr)=>[0,tr/2],kn=(Xn,tr)=>[Xn,tr/2];break}const Lt=$n(Mt,Ot),Ut=kn(Mt,Ot);let nn=gn(...Ut);const sn=Jt(Rt+nn[0]),vn=Jt(wt+nn[1]);let Tn=1,Rn=1,[on,Bn]=this.screenToPageTranslation(Ft.movementX,Ft.movementY);if([on,Bn]=yn(on/Yt,Bn/Dt),hn){const Xn=Math.hypot(Mt,Ot);Tn=Rn=Math.max(Math.min(Math.hypot(Ut[0]-Lt[0]-on,Ut[1]-Lt[1]-Bn)/Xn,1/Mt,1/Ot),zt/Mt,Ht/Ot)}else un?Tn=Math.max(zt,Math.min(1,Math.abs(Ut[0]-Lt[0]-on)))/Mt:Rn=Math.max(Ht,Math.min(1,Math.abs(Ut[1]-Lt[1]-Bn)))/Ot;const Ln=Jt(Mt*Tn),Zn=Jt(Ot*Rn);nn=gn(...kn(Ln,Zn));const Nn=sn-nn[0],mr=vn-nn[1];this.width=Ln,this.height=Zn,this.x=Nn,this.y=mr,this.setDims(Yt*Ln,Dt*Zn),this.fixAndSetPosition()},js=async function(){var Yt;const It=Ct(this,lt);if(!It)return;if(!Ct(this,st)&&!Ct(this,at)){It.classList.remove("done"),(Yt=Ct(this,ht))==null||Yt.remove();return}Vt._l10nPromise.get("editor_alt_text_edit_button_label").then(Dt=>{It.setAttribute("aria-label",Dt)});let Ft=Ct(this,ht);if(!Ft){wn(this,ht,Ft=document.createElement("span")),Ft.className="tooltip",Ft.setAttribute("role","tooltip");const Dt=Ft.id=`alt-text-tooltip-${this.id}`;It.setAttribute("aria-describedby",Dt);const Rt=100;It.addEventListener("mouseenter",()=>{wn(this,pt,setTimeout(()=>{wn(this,pt,null),Ct(this,ht).classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})},Rt))}),It.addEventListener("mouseleave",()=>{var wt;clearTimeout(Ct(this,pt)),wn(this,pt,null),(wt=Ct(this,ht))==null||wt.classList.remove("show")})}It.classList.add("done"),Ft.innerText=Ct(this,at)?await Vt._l10nPromise.get("editor_alt_text_decorative_tooltip"):Ct(this,st),Ft.parentNode||It.append(Ft)},Kl=function(It){if(!this._isDraggable)return;const Ft=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let Yt,Dt;Ft&&(Yt={passive:!0,capture:!0},Dt=wt=>{const[Mt,Ot]=this.screenToPageTranslation(wt.movementX,wt.movementY);this._uiManager.dragSelectedEditors(Mt,Ot)},window.addEventListener("pointermove",Dt,Yt));const Rt=()=>{if(window.removeEventListener("pointerup",Rt),window.removeEventListener("blur",Rt),Ft&&window.removeEventListener("pointermove",Dt,Yt),wn(this,ct,!1),!this._uiManager.endDragSession()){const{isMac:wt}=nt.FeatureTest.platform;It.ctrlKey&&!wt||It.shiftKey||It.metaKey&&wt?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",Rt),window.addEventListener("blur",Rt)},Sn(Vt,kt),Gr(Vt,"_borderLineWidth",-1),Gr(Vt,"_colorManager",new tt.ColorManager),Gr(Vt,"_zIndex",1),Gr(Vt,"SMALL_EDITOR_SIZE",0);let ot=Vt;_e.AnnotationEditor=ot;class it extends ot{constructor(It){super(It),this.annotationElementId=It.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},($,_e,et)=>{var gt,ft,dt,mt,ct,Ls,bt,yt,Et,xt,St,Xl,$t,Tt,jt,Gt,Bt,Kt,Vt,Wt,It,Ft,Yt,Dt,Rt,wt,Mt,Ot,zt,Ht,Jt,pn,gn,bn,yn,$n,kn,hn,un,Lt,Ut,nn,sn,vn,Tn,Rn,on,Yl,Ds,Fs,os,Os,Ns,mo,Uo,Zl,Ql,Bs,Wo,zs;Object.defineProperty(_e,"__esModule",{value:!0}),_e.KeyboardManager=_e.CommandManager=_e.ColorManager=_e.AnnotationEditorUIManager=void 0,_e.bindEvents=rt,_e.opacityToHex=ot;var tt=et(1),nt=et(6);function rt(Jn,Zt,Mn){for(const Un of Mn)Zt.addEventListener(Un,Jn[Un].bind(Jn))}function ot(Jn){return Math.round(Math.min(255,Math.max(1,255*Jn))).toString(16).padStart(2,"0")}class it{constructor(){Sn(this,gt,0)}getId(){return`${tt.AnnotationEditorPrefix}${zo(this,gt)._++}`}}gt=new WeakMap;const vt=class vt{constructor(){Sn(this,ct);Sn(this,ft,(0,tt.getUuid)());Sn(this,dt,0);Sn(this,mt,null)}static get _isSVGFittingCanvas(){const Zt='data:image/svg+xml;charset=UTF-8,',Un=new OffscreenCanvas(1,3).getContext("2d"),er=new Image;er.src=Zt;const sr=er.decode().then(()=>(Un.drawImage(er,0,0,1,1,0,0,1,3),new Uint32Array(Un.getImageData(0,0,1,1).data.buffer)[0]===0));return(0,tt.shadow)(this,"_isSVGFittingCanvas",sr)}async getFromFile(Zt){const{lastModified:Mn,name:Un,size:er,type:sr}=Zt;return mn(this,ct,Ls).call(this,`${Mn}_${Un}_${er}_${sr}`,Zt)}async getFromUrl(Zt){return mn(this,ct,Ls).call(this,Zt,Zt)}async getFromId(Zt){Ct(this,mt)||wn(this,mt,new Map);const Mn=Ct(this,mt).get(Zt);return Mn?Mn.bitmap?(Mn.refCounter+=1,Mn):Mn.file?this.getFromFile(Mn.file):this.getFromUrl(Mn.url):null}getSvgUrl(Zt){const Mn=Ct(this,mt).get(Zt);return Mn!=null&&Mn.isSvg?Mn.svgUrl:null}deleteId(Zt){Ct(this,mt)||wn(this,mt,new Map);const Mn=Ct(this,mt).get(Zt);Mn&&(Mn.refCounter-=1,Mn.refCounter===0&&(Mn.bitmap=null))}isValidId(Zt){return Zt.startsWith(`image_${Ct(this,ft)}_`)}};ft=new WeakMap,dt=new WeakMap,mt=new WeakMap,ct=new WeakSet,Ls=async function(Zt,Mn){Ct(this,mt)||wn(this,mt,new Map);let Un=Ct(this,mt).get(Zt);if(Un===null)return null;if(Un!=null&&Un.bitmap)return Un.refCounter+=1,Un;try{Un||(Un={bitmap:null,id:`image_${Ct(this,ft)}_${zo(this,dt)._++}`,refCounter:0,isSvg:!1});let er;if(typeof Mn=="string"){Un.url=Mn;const sr=await fetch(Mn);if(!sr.ok)throw new Error(sr.statusText);er=await sr.blob()}else er=Un.file=Mn;if(er.type==="image/svg+xml"){const sr=vt._isSVGFittingCanvas,Qn=new FileReader,Xt=new Image,qt=new Promise((cn,Pn)=>{Xt.onload=()=>{Un.bitmap=Xt,Un.isSvg=!0,cn()},Qn.onload=async()=>{const An=Un.svgUrl=Qn.result;Xt.src=await sr?`${An}#svgView(preserveAspectRatio(none))`:An},Xt.onerror=Qn.onerror=Pn});Qn.readAsDataURL(er),await qt}else Un.bitmap=await createImageBitmap(er);Un.refCounter=1}catch(er){console.error(er),Un=null}return Ct(this,mt).set(Zt,Un),Un&&Ct(this,mt).set(Un.id,Un),Un};let st=vt;class at{constructor(Zt=128){Sn(this,bt,[]);Sn(this,yt,!1);Sn(this,Et);Sn(this,xt,-1);wn(this,Et,Zt)}add({cmd:Zt,undo:Mn,mustExec:Un,type:er=NaN,overwriteIfSameType:sr=!1,keepUndo:Qn=!1}){if(Un&&Zt(),Ct(this,yt))return;const Xt={cmd:Zt,undo:Mn,type:er};if(Ct(this,xt)===-1){Ct(this,bt).length>0&&(Ct(this,bt).length=0),wn(this,xt,0),Ct(this,bt).push(Xt);return}if(sr&&Ct(this,bt)[Ct(this,xt)].type===er){Qn&&(Xt.undo=Ct(this,bt)[Ct(this,xt)].undo),Ct(this,bt)[Ct(this,xt)]=Xt;return}const qt=Ct(this,xt)+1;qt===Ct(this,Et)?Ct(this,bt).splice(0,1):(wn(this,xt,qt),qtsr===Mn[Qn]))return At._colorsMapping.get(Un);return Mn}getHexCode(Zt){const Mn=this._colors.get(Zt);return Mn?tt.Util.makeHexColor(...Mn):Zt}};Gr(At,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));let ht=At;_e.ColorManager=ht;const qn=class qn{constructor(Zt,Mn,Un,er,sr,Qn){Sn(this,on);Sn(this,$t,null);Sn(this,Tt,new Map);Sn(this,jt,new Map);Sn(this,Gt,null);Sn(this,Bt,null);Sn(this,Kt,new at);Sn(this,Vt,0);Sn(this,Wt,new Set);Sn(this,It,null);Sn(this,Ft,null);Sn(this,Yt,new Set);Sn(this,Dt,null);Sn(this,Rt,new it);Sn(this,wt,!1);Sn(this,Mt,!1);Sn(this,Ot,null);Sn(this,zt,tt.AnnotationEditorType.NONE);Sn(this,Ht,new Set);Sn(this,Jt,null);Sn(this,pn,this.blur.bind(this));Sn(this,gn,this.focus.bind(this));Sn(this,bn,this.copy.bind(this));Sn(this,yn,this.cut.bind(this));Sn(this,$n,this.paste.bind(this));Sn(this,kn,this.keydown.bind(this));Sn(this,hn,this.onEditingAction.bind(this));Sn(this,un,this.onPageChanging.bind(this));Sn(this,Lt,this.onScaleChanging.bind(this));Sn(this,Ut,this.onRotationChanging.bind(this));Sn(this,nn,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1});Sn(this,sn,[0,0]);Sn(this,vn,null);Sn(this,Tn,null);Sn(this,Rn,null);wn(this,Tn,Zt),wn(this,Rn,Mn),wn(this,Gt,Un),this._eventBus=er,this._eventBus._on("editingaction",Ct(this,hn)),this._eventBus._on("pagechanging",Ct(this,un)),this._eventBus._on("scalechanging",Ct(this,Lt)),this._eventBus._on("rotationchanging",Ct(this,Ut)),wn(this,Bt,sr.annotationStorage),wn(this,Dt,sr.filterFactory),wn(this,Jt,Qn),this.viewParameters={realScale:nt.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}static get _keyboardManager(){const Zt=qn.prototype,Mn=sr=>{const{activeElement:Qn}=document;return Qn&&Ct(sr,Tn).contains(Qn)&&sr.hasSomethingToControl()},Un=this.TRANSLATE_SMALL,er=this.TRANSLATE_BIG;return(0,tt.shadow)(this,"_keyboardManager",new lt([[["ctrl+a","mac+meta+a"],Zt.selectAll],[["ctrl+z","mac+meta+z"],Zt.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],Zt.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],Zt.delete],[["Escape","mac+Escape"],Zt.unselectAll],[["ArrowLeft","mac+ArrowLeft"],Zt.translateSelectedEditors,{args:[-Un,0],checker:Mn}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],Zt.translateSelectedEditors,{args:[-er,0],checker:Mn}],[["ArrowRight","mac+ArrowRight"],Zt.translateSelectedEditors,{args:[Un,0],checker:Mn}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],Zt.translateSelectedEditors,{args:[er,0],checker:Mn}],[["ArrowUp","mac+ArrowUp"],Zt.translateSelectedEditors,{args:[0,-Un],checker:Mn}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],Zt.translateSelectedEditors,{args:[0,-er],checker:Mn}],[["ArrowDown","mac+ArrowDown"],Zt.translateSelectedEditors,{args:[0,Un],checker:Mn}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],Zt.translateSelectedEditors,{args:[0,er],checker:Mn}]]))}destroy(){mn(this,on,os).call(this),mn(this,on,Ds).call(this),this._eventBus._off("editingaction",Ct(this,hn)),this._eventBus._off("pagechanging",Ct(this,un)),this._eventBus._off("scalechanging",Ct(this,Lt)),this._eventBus._off("rotationchanging",Ct(this,Ut));for(const Zt of Ct(this,jt).values())Zt.destroy();Ct(this,jt).clear(),Ct(this,Tt).clear(),Ct(this,Yt).clear(),wn(this,$t,null),Ct(this,Ht).clear(),Ct(this,Kt).destroy(),Ct(this,Gt).destroy()}get hcmFilter(){return(0,tt.shadow)(this,"hcmFilter",Ct(this,Jt)?Ct(this,Dt).addHCMFilter(Ct(this,Jt).foreground,Ct(this,Jt).background):"none")}get direction(){return(0,tt.shadow)(this,"direction",getComputedStyle(Ct(this,Tn)).direction)}editAltText(Zt){var Mn;(Mn=Ct(this,Gt))==null||Mn.editAltText(this,Zt)}onPageChanging({pageNumber:Zt}){wn(this,Vt,Zt-1)}focusMainContainer(){Ct(this,Tn).focus()}findParent(Zt,Mn){for(const Un of Ct(this,jt).values()){const{x:er,y:sr,width:Qn,height:Xt}=Un.div.getBoundingClientRect();if(Zt>=er&&Zt<=er+Qn&&Mn>=sr&&Mn<=sr+Xt)return Un}return null}disableUserSelect(Zt=!1){Ct(this,Rn).classList.toggle("noUserSelect",Zt)}addShouldRescale(Zt){Ct(this,Yt).add(Zt)}removeShouldRescale(Zt){Ct(this,Yt).delete(Zt)}onScaleChanging({scale:Zt}){this.commitOrRemove(),this.viewParameters.realScale=Zt*nt.PixelsPerInch.PDF_TO_CSS_UNITS;for(const Mn of Ct(this,Yt))Mn.onScaleChanging()}onRotationChanging({pagesRotation:Zt}){this.commitOrRemove(),this.viewParameters.rotation=Zt}addToAnnotationStorage(Zt){!Zt.isEmpty()&&Ct(this,Bt)&&!Ct(this,Bt).has(Zt.id)&&Ct(this,Bt).setValue(Zt.id,Zt)}blur(){if(!this.hasSelection)return;const{activeElement:Zt}=document;for(const Mn of Ct(this,Ht))if(Mn.div.contains(Zt)){wn(this,Ot,[Mn,Zt]),Mn._focusEventsAllowed=!1;break}}focus(){if(!Ct(this,Ot))return;const[Zt,Mn]=Ct(this,Ot);wn(this,Ot,null),Mn.addEventListener("focusin",()=>{Zt._focusEventsAllowed=!0},{once:!0}),Mn.focus()}addEditListeners(){mn(this,on,Fs).call(this),mn(this,on,Os).call(this)}removeEditListeners(){mn(this,on,os).call(this),mn(this,on,Ns).call(this)}copy(Zt){var Un;if(Zt.preventDefault(),(Un=Ct(this,$t))==null||Un.commitOrRemove(),!this.hasSelection)return;const Mn=[];for(const er of Ct(this,Ht)){const sr=er.serialize(!0);sr&&Mn.push(sr)}Mn.length!==0&&Zt.clipboardData.setData("application/pdfjs",JSON.stringify(Mn))}cut(Zt){this.copy(Zt),this.delete()}paste(Zt){Zt.preventDefault();const{clipboardData:Mn}=Zt;for(const sr of Mn.items)for(const Qn of Ct(this,Ft))if(Qn.isHandlingMimeForPasting(sr.type)){Qn.paste(sr,this.currentLayer);return}let Un=Mn.getData("application/pdfjs");if(!Un)return;try{Un=JSON.parse(Un)}catch(sr){(0,tt.warn)(`paste: "${sr.message}".`);return}if(!Array.isArray(Un))return;this.unselectAll();const er=this.currentLayer;try{const sr=[];for(const qt of Un){const cn=er.deserialize(qt);if(!cn)return;sr.push(cn)}const Qn=()=>{for(const qt of sr)mn(this,on,Bs).call(this,qt);mn(this,on,zs).call(this,sr)},Xt=()=>{for(const qt of sr)qt.remove()};this.addCommands({cmd:Qn,undo:Xt,mustExec:!0})}catch(sr){(0,tt.warn)(`paste: "${sr.message}".`)}}keydown(Zt){var Mn;(Mn=this.getActive())!=null&&Mn.shouldGetKeyboardEvents()||qn._keyboardManager.exec(this,Zt)}onEditingAction(Zt){["undo","redo","delete","selectAll"].includes(Zt.name)&&this[Zt.name]()}setEditingState(Zt){Zt?(mn(this,on,Yl).call(this),mn(this,on,Fs).call(this),mn(this,on,Os).call(this),mn(this,on,mo).call(this,{isEditing:Ct(this,zt)!==tt.AnnotationEditorType.NONE,isEmpty:mn(this,on,Wo).call(this),hasSomethingToUndo:Ct(this,Kt).hasSomethingToUndo(),hasSomethingToRedo:Ct(this,Kt).hasSomethingToRedo(),hasSelectedEditor:!1})):(mn(this,on,Ds).call(this),mn(this,on,os).call(this),mn(this,on,Ns).call(this),mn(this,on,mo).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(Zt){if(!Ct(this,Ft)){wn(this,Ft,Zt);for(const Mn of Ct(this,Ft))mn(this,on,Uo).call(this,Mn.defaultPropertiesToUpdate)}}getId(){return Ct(this,Rt).getId()}get currentLayer(){return Ct(this,jt).get(Ct(this,Vt))}getLayer(Zt){return Ct(this,jt).get(Zt)}get currentPageIndex(){return Ct(this,Vt)}addLayer(Zt){Ct(this,jt).set(Zt.pageIndex,Zt),Ct(this,wt)?Zt.enable():Zt.disable()}removeLayer(Zt){Ct(this,jt).delete(Zt.pageIndex)}updateMode(Zt,Mn=null){if(Ct(this,zt)!==Zt){if(wn(this,zt,Zt),Zt===tt.AnnotationEditorType.NONE){this.setEditingState(!1),mn(this,on,Ql).call(this);return}this.setEditingState(!0),mn(this,on,Zl).call(this),this.unselectAll();for(const Un of Ct(this,jt).values())Un.updateMode(Zt);if(Mn){for(const Un of Ct(this,Tt).values())if(Un.annotationElementId===Mn){this.setSelected(Un),Un.enterInEditMode();break}}}}updateToolbar(Zt){Zt!==Ct(this,zt)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:Zt})}updateParams(Zt,Mn){if(Ct(this,Ft)){if(Zt===tt.AnnotationEditorParamsType.CREATE){this.currentLayer.addNewEditor(Zt);return}for(const Un of Ct(this,Ht))Un.updateParams(Zt,Mn);for(const Un of Ct(this,Ft))Un.updateDefaultParams(Zt,Mn)}}enableWaiting(Zt=!1){if(Ct(this,Mt)!==Zt){wn(this,Mt,Zt);for(const Mn of Ct(this,jt).values())Zt?Mn.disableClick():Mn.enableClick(),Mn.div.classList.toggle("waiting",Zt)}}getEditors(Zt){const Mn=[];for(const Un of Ct(this,Tt).values())Un.pageIndex===Zt&&Mn.push(Un);return Mn}getEditor(Zt){return Ct(this,Tt).get(Zt)}addEditor(Zt){Ct(this,Tt).set(Zt.id,Zt)}removeEditor(Zt){var Mn;Ct(this,Tt).delete(Zt.id),this.unselect(Zt),(!Zt.annotationElementId||!Ct(this,Wt).has(Zt.annotationElementId))&&((Mn=Ct(this,Bt))==null||Mn.remove(Zt.id))}addDeletedAnnotationElement(Zt){Ct(this,Wt).add(Zt.annotationElementId),Zt.deleted=!0}isDeletedAnnotationElement(Zt){return Ct(this,Wt).has(Zt)}removeDeletedAnnotationElement(Zt){Ct(this,Wt).delete(Zt.annotationElementId),Zt.deleted=!1}setActiveEditor(Zt){Ct(this,$t)!==Zt&&(wn(this,$t,Zt),Zt&&mn(this,on,Uo).call(this,Zt.propertiesToUpdate))}toggleSelected(Zt){if(Ct(this,Ht).has(Zt)){Ct(this,Ht).delete(Zt),Zt.unselect(),mn(this,on,mo).call(this,{hasSelectedEditor:this.hasSelection});return}Ct(this,Ht).add(Zt),Zt.select(),mn(this,on,Uo).call(this,Zt.propertiesToUpdate),mn(this,on,mo).call(this,{hasSelectedEditor:!0})}setSelected(Zt){for(const Mn of Ct(this,Ht))Mn!==Zt&&Mn.unselect();Ct(this,Ht).clear(),Ct(this,Ht).add(Zt),Zt.select(),mn(this,on,Uo).call(this,Zt.propertiesToUpdate),mn(this,on,mo).call(this,{hasSelectedEditor:!0})}isSelected(Zt){return Ct(this,Ht).has(Zt)}unselect(Zt){Zt.unselect(),Ct(this,Ht).delete(Zt),mn(this,on,mo).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return Ct(this,Ht).size!==0}undo(){Ct(this,Kt).undo(),mn(this,on,mo).call(this,{hasSomethingToUndo:Ct(this,Kt).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:mn(this,on,Wo).call(this)})}redo(){Ct(this,Kt).redo(),mn(this,on,mo).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:Ct(this,Kt).hasSomethingToRedo(),isEmpty:mn(this,on,Wo).call(this)})}addCommands(Zt){Ct(this,Kt).add(Zt),mn(this,on,mo).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:mn(this,on,Wo).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const Zt=[...Ct(this,Ht)],Mn=()=>{for(const er of Zt)er.remove()},Un=()=>{for(const er of Zt)mn(this,on,Bs).call(this,er)};this.addCommands({cmd:Mn,undo:Un,mustExec:!0})}commitOrRemove(){var Zt;(Zt=Ct(this,$t))==null||Zt.commitOrRemove()}hasSomethingToControl(){return Ct(this,$t)||this.hasSelection}selectAll(){for(const Zt of Ct(this,Ht))Zt.commit();mn(this,on,zs).call(this,Ct(this,Tt).values())}unselectAll(){if(Ct(this,$t)){Ct(this,$t).commitOrRemove();return}if(this.hasSelection){for(const Zt of Ct(this,Ht))Zt.unselect();Ct(this,Ht).clear(),mn(this,on,mo).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(Zt,Mn,Un=!1){if(Un||this.commitOrRemove(),!this.hasSelection)return;Ct(this,sn)[0]+=Zt,Ct(this,sn)[1]+=Mn;const[er,sr]=Ct(this,sn),Qn=[...Ct(this,Ht)],Xt=1e3;Ct(this,vn)&&clearTimeout(Ct(this,vn)),wn(this,vn,setTimeout(()=>{wn(this,vn,null),Ct(this,sn)[0]=Ct(this,sn)[1]=0,this.addCommands({cmd:()=>{for(const qt of Qn)Ct(this,Tt).has(qt.id)&&qt.translateInPage(er,sr)},undo:()=>{for(const qt of Qn)Ct(this,Tt).has(qt.id)&&qt.translateInPage(-er,-sr)},mustExec:!1})},Xt));for(const qt of Qn)qt.translateInPage(Zt,Mn)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),wn(this,It,new Map);for(const Zt of Ct(this,Ht))Ct(this,It).set(Zt,{savedX:Zt.x,savedY:Zt.y,savedPageIndex:Zt.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!Ct(this,It))return!1;this.disableUserSelect(!1);const Zt=Ct(this,It);wn(this,It,null);let Mn=!1;for(const[{x:er,y:sr,pageIndex:Qn},Xt]of Zt)Xt.newX=er,Xt.newY=sr,Xt.newPageIndex=Qn,Mn||(Mn=er!==Xt.savedX||sr!==Xt.savedY||Qn!==Xt.savedPageIndex);if(!Mn)return!1;const Un=(er,sr,Qn,Xt)=>{if(Ct(this,Tt).has(er.id)){const qt=Ct(this,jt).get(Xt);qt?er._setParentAndPosition(qt,sr,Qn):(er.pageIndex=Xt,er.x=sr,er.y=Qn)}};return this.addCommands({cmd:()=>{for(const[er,{newX:sr,newY:Qn,newPageIndex:Xt}]of Zt)Un(er,sr,Qn,Xt)},undo:()=>{for(const[er,{savedX:sr,savedY:Qn,savedPageIndex:Xt}]of Zt)Un(er,sr,Qn,Xt)},mustExec:!0}),!0}dragSelectedEditors(Zt,Mn){if(Ct(this,It))for(const Un of Ct(this,It).keys())Un.drag(Zt,Mn)}rebuild(Zt){if(Zt.parent===null){const Mn=this.getLayer(Zt.pageIndex);Mn?(Mn.changeParent(Zt),Mn.addOrRebuild(Zt)):(this.addEditor(Zt),this.addToAnnotationStorage(Zt),Zt.rebuild())}else Zt.parent.addOrRebuild(Zt)}isActive(Zt){return Ct(this,$t)===Zt}getActive(){return Ct(this,$t)}getMode(){return Ct(this,zt)}get imageManager(){return(0,tt.shadow)(this,"imageManager",new st)}};$t=new WeakMap,Tt=new WeakMap,jt=new WeakMap,Gt=new WeakMap,Bt=new WeakMap,Kt=new WeakMap,Vt=new WeakMap,Wt=new WeakMap,It=new WeakMap,Ft=new WeakMap,Yt=new WeakMap,Dt=new WeakMap,Rt=new WeakMap,wt=new WeakMap,Mt=new WeakMap,Ot=new WeakMap,zt=new WeakMap,Ht=new WeakMap,Jt=new WeakMap,pn=new WeakMap,gn=new WeakMap,bn=new WeakMap,yn=new WeakMap,$n=new WeakMap,kn=new WeakMap,hn=new WeakMap,un=new WeakMap,Lt=new WeakMap,Ut=new WeakMap,nn=new WeakMap,sn=new WeakMap,vn=new WeakMap,Tn=new WeakMap,Rn=new WeakMap,on=new WeakSet,Yl=function(){window.addEventListener("focus",Ct(this,gn)),window.addEventListener("blur",Ct(this,pn))},Ds=function(){window.removeEventListener("focus",Ct(this,gn)),window.removeEventListener("blur",Ct(this,pn))},Fs=function(){window.addEventListener("keydown",Ct(this,kn),{capture:!0})},os=function(){window.removeEventListener("keydown",Ct(this,kn),{capture:!0})},Os=function(){document.addEventListener("copy",Ct(this,bn)),document.addEventListener("cut",Ct(this,yn)),document.addEventListener("paste",Ct(this,$n))},Ns=function(){document.removeEventListener("copy",Ct(this,bn)),document.removeEventListener("cut",Ct(this,yn)),document.removeEventListener("paste",Ct(this,$n))},mo=function(Zt){Object.entries(Zt).some(([Un,er])=>Ct(this,nn)[Un]!==er)&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(Ct(this,nn),Zt)})},Uo=function(Zt){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:Zt})},Zl=function(){if(!Ct(this,wt)){wn(this,wt,!0);for(const Zt of Ct(this,jt).values())Zt.enable()}},Ql=function(){if(this.unselectAll(),Ct(this,wt)){wn(this,wt,!1);for(const Zt of Ct(this,jt).values())Zt.disable()}},Bs=function(Zt){const Mn=Ct(this,jt).get(Zt.pageIndex);Mn?Mn.addOrRebuild(Zt):this.addEditor(Zt)},Wo=function(){if(Ct(this,Tt).size===0)return!0;if(Ct(this,Tt).size===1)for(const Zt of Ct(this,Tt).values())return Zt.isEmpty();return!1},zs=function(Zt){Ct(this,Ht).clear();for(const Mn of Zt)Mn.isEmpty()||(Ct(this,Ht).add(Mn),Mn.select());mn(this,on,mo).call(this,{hasSelectedEditor:!0})},Gr(qn,"TRANSLATE_SMALL",1),Gr(qn,"TRANSLATE_BIG",10);let pt=qn;_e.AnnotationEditorUIManager=pt},($,_e,et)=>{var Vt,Wt,It,Ft,Yt,Dt,Rt,wt,Mt,Ot,zt,Ht,Lo,Do,Us,is,ss,Ho,Vo;Object.defineProperty(_e,"__esModule",{value:!0}),_e.StatTimer=_e.RenderingCancelledException=_e.PixelsPerInch=_e.PageViewport=_e.PDFDateString=_e.DOMStandardFontDataFactory=_e.DOMSVGFactory=_e.DOMFilterFactory=_e.DOMCanvasFactory=_e.DOMCMapReaderFactory=void 0,_e.deprecated=xt,_e.getColorValues=Tt,_e.getCurrentTransform=jt,_e.getCurrentTransformInverse=Gt,_e.getFilenameFromUrl=ct,_e.getPdfFilenameFromUrl=ut,_e.getRGB=$t,_e.getXfaPageViewport=At,_e.isDataScheme=dt,_e.isPdfFile=mt,_e.isValidFetchUrl=bt,_e.loadScript=Et,_e.noContextMenu=yt,_e.setLayerDimensions=Bt;var tt=et(7),nt=et(1);const rt="http://www.w3.org/2000/svg",Kt=class Kt{};Gr(Kt,"CSS",96),Gr(Kt,"PDF",72),Gr(Kt,"PDF_TO_CSS_UNITS",Kt.CSS/Kt.PDF);let ot=Kt;_e.PixelsPerInch=ot;class it extends tt.BaseFilterFactory{constructor({docId:Lt,ownerDocument:Ut=globalThis.document}={}){super();Sn(this,Ht);Sn(this,Vt);Sn(this,Wt);Sn(this,It);Sn(this,Ft);Sn(this,Yt);Sn(this,Dt);Sn(this,Rt);Sn(this,wt);Sn(this,Mt);Sn(this,Ot);Sn(this,zt,0);wn(this,It,Lt),wn(this,Ft,Ut)}addFilter(Lt){if(!Lt)return"none";let Ut=Ct(this,Ht,Lo).get(Lt);if(Ut)return Ut;let nn,sn,vn,Tn;if(Lt.length===1){const Ln=Lt[0],Zn=new Array(256);for(let Nn=0;Nn<256;Nn++)Zn[Nn]=Ln[Nn]/255;Tn=nn=sn=vn=Zn.join(",")}else{const[Ln,Zn,Nn]=Lt,mr=new Array(256),Xn=new Array(256),tr=new Array(256);for(let Wn=0;Wn<256;Wn++)mr[Wn]=Ln[Wn]/255,Xn[Wn]=Zn[Wn]/255,tr[Wn]=Nn[Wn]/255;nn=mr.join(","),sn=Xn.join(","),vn=tr.join(","),Tn=`${nn}${sn}${vn}`}if(Ut=Ct(this,Ht,Lo).get(Tn),Ut)return Ct(this,Ht,Lo).set(Lt,Ut),Ut;const Rn=`g_${Ct(this,It)}_transfer_map_${zo(this,zt)._++}`,on=`url(#${Rn})`;Ct(this,Ht,Lo).set(Lt,on),Ct(this,Ht,Lo).set(Tn,on);const Bn=mn(this,Ht,is).call(this,Rn);return mn(this,Ht,Ho).call(this,nn,sn,vn,Bn),on}addHCMFilter(Lt,Ut){var Zn;const nn=`${Lt}-${Ut}`;if(Ct(this,Dt)===nn)return Ct(this,Rt);if(wn(this,Dt,nn),wn(this,Rt,"none"),(Zn=Ct(this,Yt))==null||Zn.remove(),!Lt||!Ut)return Ct(this,Rt);const sn=mn(this,Ht,Vo).call(this,Lt);Lt=nt.Util.makeHexColor(...sn);const vn=mn(this,Ht,Vo).call(this,Ut);if(Ut=nt.Util.makeHexColor(...vn),Ct(this,Ht,Do).style.color="",Lt==="#000000"&&Ut==="#ffffff"||Lt===Ut)return Ct(this,Rt);const Tn=new Array(256);for(let Nn=0;Nn<=255;Nn++){const mr=Nn/255;Tn[Nn]=mr<=.03928?mr/12.92:((mr+.055)/1.055)**2.4}const Rn=Tn.join(","),on=`g_${Ct(this,It)}_hcm_filter`,Bn=wn(this,wt,mn(this,Ht,is).call(this,on));mn(this,Ht,Ho).call(this,Rn,Rn,Rn,Bn),mn(this,Ht,Us).call(this,Bn);const Ln=(Nn,mr)=>{const Xn=sn[Nn]/255,tr=vn[Nn]/255,Wn=new Array(mr+1);for(let cr=0;cr<=mr;cr++)Wn[cr]=Xn+cr/mr*(tr-Xn);return Wn.join(",")};return mn(this,Ht,Ho).call(this,Ln(0,5),Ln(1,5),Ln(2,5),Bn),wn(this,Rt,`url(#${on})`),Ct(this,Rt)}addHighlightHCMFilter(Lt,Ut,nn,sn){var tr;const vn=`${Lt}-${Ut}-${nn}-${sn}`;if(Ct(this,Mt)===vn)return Ct(this,Ot);if(wn(this,Mt,vn),wn(this,Ot,"none"),(tr=Ct(this,wt))==null||tr.remove(),!Lt||!Ut)return Ct(this,Ot);const[Tn,Rn]=[Lt,Ut].map(mn(this,Ht,Vo).bind(this));let on=Math.round(.2126*Tn[0]+.7152*Tn[1]+.0722*Tn[2]),Bn=Math.round(.2126*Rn[0]+.7152*Rn[1]+.0722*Rn[2]),[Ln,Zn]=[nn,sn].map(mn(this,Ht,Vo).bind(this));Bn{const en=new Array(256),an=(Bn-on)/fn,zn=Wn/255,qn=(cr-Wn)/(255*fn);let Jn=0;for(let Zt=0;Zt<=fn;Zt++){const Mn=Math.round(on+Zt*an),Un=zn+Zt*qn;for(let er=Jn;er<=Mn;er++)en[er]=Un;Jn=Mn+1}for(let Zt=Jn;Zt<256;Zt++)en[Zt]=en[Jn-1];return en.join(",")},mr=`g_${Ct(this,It)}_hcm_highlight_filter`,Xn=wn(this,wt,mn(this,Ht,is).call(this,mr));return mn(this,Ht,Us).call(this,Xn),mn(this,Ht,Ho).call(this,Nn(Ln[0],Zn[0],5),Nn(Ln[1],Zn[1],5),Nn(Ln[2],Zn[2],5),Xn),wn(this,Ot,`url(#${mr})`),Ct(this,Ot)}destroy(Lt=!1){Lt&&(Ct(this,Rt)||Ct(this,Ot))||(Ct(this,Wt)&&(Ct(this,Wt).parentNode.parentNode.remove(),wn(this,Wt,null)),Ct(this,Vt)&&(Ct(this,Vt).clear(),wn(this,Vt,null)),wn(this,zt,0))}}Vt=new WeakMap,Wt=new WeakMap,It=new WeakMap,Ft=new WeakMap,Yt=new WeakMap,Dt=new WeakMap,Rt=new WeakMap,wt=new WeakMap,Mt=new WeakMap,Ot=new WeakMap,zt=new WeakMap,Ht=new WeakSet,Lo=function(){return Ct(this,Vt)||wn(this,Vt,new Map)},Do=function(){if(!Ct(this,Wt)){const Lt=Ct(this,Ft).createElement("div"),{style:Ut}=Lt;Ut.visibility="hidden",Ut.contain="strict",Ut.width=Ut.height=0,Ut.position="absolute",Ut.top=Ut.left=0,Ut.zIndex=-1;const nn=Ct(this,Ft).createElementNS(rt,"svg");nn.setAttribute("width",0),nn.setAttribute("height",0),wn(this,Wt,Ct(this,Ft).createElementNS(rt,"defs")),Lt.append(nn),nn.append(Ct(this,Wt)),Ct(this,Ft).body.append(Lt)}return Ct(this,Wt)},Us=function(Lt){const Ut=Ct(this,Ft).createElementNS(rt,"feColorMatrix");Ut.setAttribute("type","matrix"),Ut.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),Lt.append(Ut)},is=function(Lt){const Ut=Ct(this,Ft).createElementNS(rt,"filter");return Ut.setAttribute("color-interpolation-filters","sRGB"),Ut.setAttribute("id",Lt),Ct(this,Ht,Do).append(Ut),Ut},ss=function(Lt,Ut,nn){const sn=Ct(this,Ft).createElementNS(rt,Ut);sn.setAttribute("type","discrete"),sn.setAttribute("tableValues",nn),Lt.append(sn)},Ho=function(Lt,Ut,nn,sn){const vn=Ct(this,Ft).createElementNS(rt,"feComponentTransfer");sn.append(vn),mn(this,Ht,ss).call(this,vn,"feFuncR",Lt),mn(this,Ht,ss).call(this,vn,"feFuncG",Ut),mn(this,Ht,ss).call(this,vn,"feFuncB",nn)},Vo=function(Lt){return Ct(this,Ht,Do).style.color=Lt,$t(getComputedStyle(Ct(this,Ht,Do)).getPropertyValue("color"))},_e.DOMFilterFactory=it;class st extends tt.BaseCanvasFactory{constructor({ownerDocument:un=globalThis.document}={}){super(),this._document=un}_createCanvas(un,Lt){const Ut=this._document.createElement("canvas");return Ut.width=un,Ut.height=Lt,Ut}}_e.DOMCanvasFactory=st;async function at(hn,un=!1){if(bt(hn,document.baseURI)){const Lt=await fetch(hn);if(!Lt.ok)throw new Error(Lt.statusText);return un?new Uint8Array(await Lt.arrayBuffer()):(0,nt.stringToBytes)(await Lt.text())}return new Promise((Lt,Ut)=>{const nn=new XMLHttpRequest;nn.open("GET",hn,!0),un&&(nn.responseType="arraybuffer"),nn.onreadystatechange=()=>{if(nn.readyState===XMLHttpRequest.DONE){if(nn.status===200||nn.status===0){let sn;if(un&&nn.response?sn=new Uint8Array(nn.response):!un&&nn.responseText&&(sn=(0,nt.stringToBytes)(nn.responseText)),sn){Lt(sn);return}}Ut(new Error(nn.statusText))}},nn.send(null)})}class lt extends tt.BaseCMapReaderFactory{_fetchData(un,Lt){return at(un,this.isCompressed).then(Ut=>({cMapData:Ut,compressionType:Lt}))}}_e.DOMCMapReaderFactory=lt;class ht extends tt.BaseStandardFontDataFactory{_fetchData(un){return at(un,!0)}}_e.DOMStandardFontDataFactory=ht;class pt extends tt.BaseSVGFactory{_createSVG(un){return document.createElementNS(rt,un)}}_e.DOMSVGFactory=pt;class gt{constructor({viewBox:un,scale:Lt,rotation:Ut,offsetX:nn=0,offsetY:sn=0,dontFlip:vn=!1}){this.viewBox=un,this.scale=Lt,this.rotation=Ut,this.offsetX=nn,this.offsetY=sn;const Tn=(un[2]+un[0])/2,Rn=(un[3]+un[1])/2;let on,Bn,Ln,Zn;switch(Ut%=360,Ut<0&&(Ut+=360),Ut){case 180:on=-1,Bn=0,Ln=0,Zn=1;break;case 90:on=0,Bn=1,Ln=1,Zn=0;break;case 270:on=0,Bn=-1,Ln=-1,Zn=0;break;case 0:on=1,Bn=0,Ln=0,Zn=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}vn&&(Ln=-Ln,Zn=-Zn);let Nn,mr,Xn,tr;on===0?(Nn=Math.abs(Rn-un[1])*Lt+nn,mr=Math.abs(Tn-un[0])*Lt+sn,Xn=(un[3]-un[1])*Lt,tr=(un[2]-un[0])*Lt):(Nn=Math.abs(Tn-un[0])*Lt+nn,mr=Math.abs(Rn-un[1])*Lt+sn,Xn=(un[2]-un[0])*Lt,tr=(un[3]-un[1])*Lt),this.transform=[on*Lt,Bn*Lt,Ln*Lt,Zn*Lt,Nn-on*Lt*Tn-Ln*Lt*Rn,mr-Bn*Lt*Tn-Zn*Lt*Rn],this.width=Xn,this.height=tr}get rawDims(){const{viewBox:un}=this;return(0,nt.shadow)(this,"rawDims",{pageWidth:un[2]-un[0],pageHeight:un[3]-un[1],pageX:un[0],pageY:un[1]})}clone({scale:un=this.scale,rotation:Lt=this.rotation,offsetX:Ut=this.offsetX,offsetY:nn=this.offsetY,dontFlip:sn=!1}={}){return new gt({viewBox:this.viewBox.slice(),scale:un,rotation:Lt,offsetX:Ut,offsetY:nn,dontFlip:sn})}convertToViewportPoint(un,Lt){return nt.Util.applyTransform([un,Lt],this.transform)}convertToViewportRectangle(un){const Lt=nt.Util.applyTransform([un[0],un[1]],this.transform),Ut=nt.Util.applyTransform([un[2],un[3]],this.transform);return[Lt[0],Lt[1],Ut[0],Ut[1]]}convertToPdfPoint(un,Lt){return nt.Util.applyInverseTransform([un,Lt],this.transform)}}_e.PageViewport=gt;class ft extends nt.BaseException{constructor(un,Lt=0){super(un,"RenderingCancelledException"),this.extraDelay=Lt}}_e.RenderingCancelledException=ft;function dt(hn){const un=hn.length;let Lt=0;for(;Lt{const nn=document.createElement("script");nn.src=hn,nn.onload=function(sn){un&&nn.remove(),Lt(sn)},nn.onerror=function(){Ut(new Error(`Cannot load script at: ${nn.src}`))},(document.head||document.documentElement).append(nn)})}function xt(hn){console.log("Deprecated API usage: "+hn)}let St;class kt{static toDateObject(un){if(!un||typeof un!="string")return null;St||(St=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const Lt=St.exec(un);if(!Lt)return null;const Ut=parseInt(Lt[1],10);let nn=parseInt(Lt[2],10);nn=nn>=1&&nn<=12?nn-1:0;let sn=parseInt(Lt[3],10);sn=sn>=1&&sn<=31?sn:1;let vn=parseInt(Lt[4],10);vn=vn>=0&&vn<=23?vn:0;let Tn=parseInt(Lt[5],10);Tn=Tn>=0&&Tn<=59?Tn:0;let Rn=parseInt(Lt[6],10);Rn=Rn>=0&&Rn<=59?Rn:0;const on=Lt[7]||"Z";let Bn=parseInt(Lt[8],10);Bn=Bn>=0&&Bn<=23?Bn:0;let Ln=parseInt(Lt[9],10)||0;return Ln=Ln>=0&&Ln<=59?Ln:0,on==="-"?(vn+=Bn,Tn+=Ln):on==="+"&&(vn-=Bn,Tn-=Ln),new Date(Date.UTC(Ut,nn,sn,vn,Tn,Rn))}}_e.PDFDateString=kt;function At(hn,{scale:un=1,rotation:Lt=0}){const{width:Ut,height:nn}=hn.attributes.style,sn=[0,0,parseInt(Ut),parseInt(nn)];return new gt({viewBox:sn,scale:un,rotation:Lt})}function $t(hn){if(hn.startsWith("#")){const un=parseInt(hn.slice(1),16);return[(un&16711680)>>16,(un&65280)>>8,un&255]}return hn.startsWith("rgb(")?hn.slice(4,-1).split(",").map(un=>parseInt(un)):hn.startsWith("rgba(")?hn.slice(5,-1).split(",").map(un=>parseInt(un)).slice(0,3):((0,nt.warn)(`Not a valid color format: "${hn}"`),[0,0,0])}function Tt(hn){const un=document.createElement("span");un.style.visibility="hidden",document.body.append(un);for(const Lt of hn.keys()){un.style.color=Lt;const Ut=window.getComputedStyle(un).color;hn.set(Lt,$t(Ut))}un.remove()}function jt(hn){const{a:un,b:Lt,c:Ut,d:nn,e:sn,f:vn}=hn.getTransform();return[un,Lt,Ut,nn,sn,vn]}function Gt(hn){const{a:un,b:Lt,c:Ut,d:nn,e:sn,f:vn}=hn.getTransform().invertSelf();return[un,Lt,Ut,nn,sn,vn]}function Bt(hn,un,Lt=!1,Ut=!0){if(un instanceof gt){const{pageWidth:nn,pageHeight:sn}=un.rawDims,{style:vn}=hn,Tn=nt.FeatureTest.isCSSRoundSupported,Rn=`var(--scale-factor) * ${nn}px`,on=`var(--scale-factor) * ${sn}px`,Bn=Tn?`round(${Rn}, 1px)`:`calc(${Rn})`,Ln=Tn?`round(${on}, 1px)`:`calc(${on})`;!Lt||un.rotation%180===0?(vn.width=Bn,vn.height=Ln):(vn.width=Ln,vn.height=Bn)}Ut&&hn.setAttribute("data-main-rotation",un.rotation)}},($,_e,et)=>{Object.defineProperty(_e,"__esModule",{value:!0}),_e.BaseStandardFontDataFactory=_e.BaseSVGFactory=_e.BaseFilterFactory=_e.BaseCanvasFactory=_e.BaseCMapReaderFactory=void 0;var tt=et(1);class nt{constructor(){this.constructor===nt&&(0,tt.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(lt){return"none"}addHCMFilter(lt,ht){return"none"}addHighlightHCMFilter(lt,ht,pt,gt){return"none"}destroy(lt=!1){}}_e.BaseFilterFactory=nt;class rt{constructor(){this.constructor===rt&&(0,tt.unreachable)("Cannot initialize BaseCanvasFactory.")}create(lt,ht){if(lt<=0||ht<=0)throw new Error("Invalid canvas size");const pt=this._createCanvas(lt,ht);return{canvas:pt,context:pt.getContext("2d")}}reset(lt,ht,pt){if(!lt.canvas)throw new Error("Canvas is not specified");if(ht<=0||pt<=0)throw new Error("Invalid canvas size");lt.canvas.width=ht,lt.canvas.height=pt}destroy(lt){if(!lt.canvas)throw new Error("Canvas is not specified");lt.canvas.width=0,lt.canvas.height=0,lt.canvas=null,lt.context=null}_createCanvas(lt,ht){(0,tt.unreachable)("Abstract method `_createCanvas` called.")}}_e.BaseCanvasFactory=rt;class ot{constructor({baseUrl:lt=null,isCompressed:ht=!0}){this.constructor===ot&&(0,tt.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=lt,this.isCompressed=ht}async fetch({name:lt}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!lt)throw new Error("CMap name must be specified.");const ht=this.baseUrl+lt+(this.isCompressed?".bcmap":""),pt=this.isCompressed?tt.CMapCompressionType.BINARY:tt.CMapCompressionType.NONE;return this._fetchData(ht,pt).catch(gt=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${ht}`)})}_fetchData(lt,ht){(0,tt.unreachable)("Abstract method `_fetchData` called.")}}_e.BaseCMapReaderFactory=ot;class it{constructor({baseUrl:lt=null}){this.constructor===it&&(0,tt.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=lt}async fetch({filename:lt}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!lt)throw new Error("Font filename must be specified.");const ht=`${this.baseUrl}${lt}`;return this._fetchData(ht).catch(pt=>{throw new Error(`Unable to load font data at: ${ht}`)})}_fetchData(lt){(0,tt.unreachable)("Abstract method `_fetchData` called.")}}_e.BaseStandardFontDataFactory=it;class st{constructor(){this.constructor===st&&(0,tt.unreachable)("Cannot initialize BaseSVGFactory.")}create(lt,ht,pt=!1){if(lt<=0||ht<=0)throw new Error("Invalid SVG dimensions");const gt=this._createSVG("svg:svg");return gt.setAttribute("version","1.1"),pt||(gt.setAttribute("width",`${lt}px`),gt.setAttribute("height",`${ht}px`)),gt.setAttribute("preserveAspectRatio","none"),gt.setAttribute("viewBox",`0 0 ${lt} ${ht}`),gt}createElement(lt){if(typeof lt!="string")throw new Error("Invalid SVG element type");return this._createSVG(lt)}_createSVG(lt){(0,tt.unreachable)("Abstract method `_createSVG` called.")}}_e.BaseSVGFactory=st},($,_e,et)=>{Object.defineProperty(_e,"__esModule",{value:!0}),_e.MurmurHash3_64=void 0;var tt=et(1);const nt=3285377520,rt=4294901760,ot=65535;class it{constructor(at){this.h1=at?at&4294967295:nt,this.h2=at?at&4294967295:nt}update(at){let lt,ht;if(typeof at=="string"){lt=new Uint8Array(at.length*2),ht=0;for(let xt=0,St=at.length;xt>>8,lt[ht++]=kt&255)}}else if((0,tt.isArrayBuffer)(at))lt=at.slice(),ht=lt.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const pt=ht>>2,gt=ht-pt*4,ft=new Uint32Array(lt.buffer,0,pt);let dt=0,mt=0,ct=this.h1,ut=this.h2;const vt=3432918353,bt=461845907,yt=vt&ot,Et=bt&ot;for(let xt=0;xt>>17,dt=dt*bt&rt|dt*Et&ot,ct^=dt,ct=ct<<13|ct>>>19,ct=ct*5+3864292196):(mt=ft[xt],mt=mt*vt&rt|mt*yt&ot,mt=mt<<15|mt>>>17,mt=mt*bt&rt|mt*Et&ot,ut^=mt,ut=ut<<13|ut>>>19,ut=ut*5+3864292196);switch(dt=0,gt){case 3:dt^=lt[pt*4+2]<<16;case 2:dt^=lt[pt*4+1]<<8;case 1:dt^=lt[pt*4],dt=dt*vt&rt|dt*yt&ot,dt=dt<<15|dt>>>17,dt=dt*bt&rt|dt*Et&ot,pt&1?ct^=dt:ut^=dt}this.h1=ct,this.h2=ut}hexdigest(){let at=this.h1,lt=this.h2;return at^=lt>>>1,at=at*3981806797&rt|at*36045&ot,lt=lt*4283543511&rt|((lt<<16|at>>>16)*2950163797&rt)>>>16,at^=lt>>>1,at=at*444984403&rt|at*60499&ot,lt=lt*3301882366&rt|((lt<<16|at>>>16)*3120437893&rt)>>>16,at^=lt>>>1,(at>>>0).toString(16).padStart(8,"0")+(lt>>>0).toString(16).padStart(8,"0")}}_e.MurmurHash3_64=it},($,_e,et)=>{var ot;Object.defineProperty(_e,"__esModule",{value:!0}),_e.FontLoader=_e.FontFaceObject=void 0;var tt=et(1);class nt{constructor({ownerDocument:st=globalThis.document,styleElement:at=null}){Sn(this,ot,new Set);this._document=st,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(st){this.nativeFontFaces.add(st),this._document.fonts.add(st)}removeNativeFontFace(st){this.nativeFontFaces.delete(st),this._document.fonts.delete(st)}insertRule(st){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const at=this.styleElement.sheet;at.insertRule(st,at.cssRules.length)}clear(){for(const st of this.nativeFontFaces)this._document.fonts.delete(st);this.nativeFontFaces.clear(),Ct(this,ot).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont(st){if(!(!st||Ct(this,ot).has(st.loadedName))){if((0,tt.assert)(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:at,src:lt,style:ht}=st,pt=new FontFace(at,lt,ht);this.addNativeFontFace(pt);try{await pt.load(),Ct(this,ot).add(at)}catch{(0,tt.warn)(`Cannot load system font: ${st.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(pt)}return}(0,tt.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(st){if(st.attached||st.missingFile&&!st.systemFontInfo)return;if(st.attached=!0,st.systemFontInfo){await this.loadSystemFont(st.systemFontInfo);return}if(this.isFontLoadingAPISupported){const lt=st.createNativeFontFace();if(lt){this.addNativeFontFace(lt);try{await lt.loaded}catch(ht){throw(0,tt.warn)(`Failed to load font '${lt.family}': '${ht}'.`),st.disableFontFace=!0,ht}}return}const at=st.createFontFaceRule();if(at){if(this.insertRule(at),this.isSyncFontLoadingSupported)return;await new Promise(lt=>{const ht=this._queueLoadingCallback(lt);this._prepareFontLoadEvent(st,ht)})}}get isFontLoadingAPISupported(){var at;const st=!!((at=this._document)!=null&&at.fonts);return(0,tt.shadow)(this,"isFontLoadingAPISupported",st)}get isSyncFontLoadingSupported(){let st=!1;return(tt.isNodeJS||typeof navigator<"u"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(st=!0),(0,tt.shadow)(this,"isSyncFontLoadingSupported",st)}_queueLoadingCallback(st){function at(){for((0,tt.assert)(!ht.done,"completeRequest() cannot be called twice."),ht.done=!0;lt.length>0&<[0].done;){const pt=lt.shift();setTimeout(pt.callback,0)}}const{loadingRequests:lt}=this,ht={done:!1,complete:at,callback:st};return lt.push(ht),ht}get _loadTestFont(){const st=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,tt.shadow)(this,"_loadTestFont",st)}_prepareFontLoadEvent(st,at){function lt($t,Tt){return $t.charCodeAt(Tt)<<24|$t.charCodeAt(Tt+1)<<16|$t.charCodeAt(Tt+2)<<8|$t.charCodeAt(Tt+3)&255}function ht($t,Tt,jt,Gt){const Bt=$t.substring(0,Tt),Kt=$t.substring(Tt+jt);return Bt+Gt+Kt}let pt,gt;const ft=this._document.createElement("canvas");ft.width=1,ft.height=1;const dt=ft.getContext("2d");let mt=0;function ct($t,Tt){if(++mt>30){(0,tt.warn)("Load test font never loaded."),Tt();return}if(dt.font="30px "+$t,dt.fillText(".",0,20),dt.getImageData(0,0,1,1).data[3]>0){Tt();return}setTimeout(ct.bind(null,$t,Tt))}const ut=`lt${Date.now()}${this.loadTestFontId++}`;let vt=this._loadTestFont;vt=ht(vt,976,ut.length,ut);const yt=16,Et=1482184792;let xt=lt(vt,yt);for(pt=0,gt=ut.length-3;pt{At.remove(),at.complete()})}}ot=new WeakMap,_e.FontLoader=nt;class rt{constructor(st,{isEvalSupported:at=!0,disableFontFace:lt=!1,ignoreErrors:ht=!1,inspectFont:pt=null}){this.compiledGlyphs=Object.create(null);for(const gt in st)this[gt]=st[gt];this.isEvalSupported=at!==!1,this.disableFontFace=lt===!0,this.ignoreErrors=ht===!0,this._inspectFont=pt}createNativeFontFace(){var at;if(!this.data||this.disableFontFace)return null;let st;if(!this.cssFontInfo)st=new FontFace(this.loadedName,this.data,{});else{const lt={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(lt.style=`oblique ${this.cssFontInfo.italicAngle}deg`),st=new FontFace(this.cssFontInfo.fontFamily,this.data,lt)}return(at=this._inspectFont)==null||at.call(this,this),st}createFontFaceRule(){var ht;if(!this.data||this.disableFontFace)return null;const st=(0,tt.bytesToString)(this.data),at=`url(data:${this.mimetype};base64,${btoa(st)});`;let lt;if(!this.cssFontInfo)lt=`@font-face {font-family:"${this.loadedName}";src:${at}}`;else{let pt=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(pt+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),lt=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${pt}src:${at}}`}return(ht=this._inspectFont)==null||ht.call(this,this,at),lt}getPathGenerator(st,at){if(this.compiledGlyphs[at]!==void 0)return this.compiledGlyphs[at];let lt;try{lt=st.get(this.loadedName+"_path_"+at)}catch(ht){if(!this.ignoreErrors)throw ht;return(0,tt.warn)(`getPathGenerator - ignoring character: "${ht}".`),this.compiledGlyphs[at]=function(pt,gt){}}if(this.isEvalSupported&&tt.FeatureTest.isEvalSupported){const ht=[];for(const pt of lt){const gt=pt.args!==void 0?pt.args.join(","):"";ht.push("c.",pt.cmd,"(",gt,`); +`)}return this.compiledGlyphs[at]=new Function("c","size",ht.join(""))}return this.compiledGlyphs[at]=function(ht,pt){for(const gt of lt)gt.cmd==="scale"&&(gt.args=[pt,-pt]),ht[gt.cmd].apply(ht,gt.args)}}}_e.FontFaceObject=rt},($,_e,et)=>{Object.defineProperty(_e,"__esModule",{value:!0}),_e.NodeStandardFontDataFactory=_e.NodeFilterFactory=_e.NodeCanvasFactory=_e.NodeCMapReaderFactory=void 0;var tt=et(7);et(1);const nt=function(at){return new Promise((lt,ht)=>{require$$5.readFile(at,(gt,ft)=>{if(gt||!ft){ht(new Error(gt));return}lt(new Uint8Array(ft))})})};class rt extends tt.BaseFilterFactory{}_e.NodeFilterFactory=rt;class ot extends tt.BaseCanvasFactory{_createCanvas(lt,ht){return require$$5.createCanvas(lt,ht)}}_e.NodeCanvasFactory=ot;class it extends tt.BaseCMapReaderFactory{_fetchData(lt,ht){return nt(lt).then(pt=>({cMapData:pt,compressionType:ht}))}}_e.NodeCMapReaderFactory=it;class st extends tt.BaseStandardFontDataFactory{_fetchData(lt){return nt(lt)}}_e.NodeStandardFontDataFactory=st},($,_e,et)=>{var Wt,Ws,Hs;Object.defineProperty(_e,"__esModule",{value:!0}),_e.CanvasGraphics=void 0;var tt=et(1),nt=et(6),rt=et(12),ot=et(13);const it=16,st=100,at=4096,lt=15,ht=10,pt=1e3,gt=16;function ft(Dt,Rt){if(Dt._removeMirroring)throw new Error("Context is already forwarding operations.");Dt.__originalSave=Dt.save,Dt.__originalRestore=Dt.restore,Dt.__originalRotate=Dt.rotate,Dt.__originalScale=Dt.scale,Dt.__originalTranslate=Dt.translate,Dt.__originalTransform=Dt.transform,Dt.__originalSetTransform=Dt.setTransform,Dt.__originalResetTransform=Dt.resetTransform,Dt.__originalClip=Dt.clip,Dt.__originalMoveTo=Dt.moveTo,Dt.__originalLineTo=Dt.lineTo,Dt.__originalBezierCurveTo=Dt.bezierCurveTo,Dt.__originalRect=Dt.rect,Dt.__originalClosePath=Dt.closePath,Dt.__originalBeginPath=Dt.beginPath,Dt._removeMirroring=()=>{Dt.save=Dt.__originalSave,Dt.restore=Dt.__originalRestore,Dt.rotate=Dt.__originalRotate,Dt.scale=Dt.__originalScale,Dt.translate=Dt.__originalTranslate,Dt.transform=Dt.__originalTransform,Dt.setTransform=Dt.__originalSetTransform,Dt.resetTransform=Dt.__originalResetTransform,Dt.clip=Dt.__originalClip,Dt.moveTo=Dt.__originalMoveTo,Dt.lineTo=Dt.__originalLineTo,Dt.bezierCurveTo=Dt.__originalBezierCurveTo,Dt.rect=Dt.__originalRect,Dt.closePath=Dt.__originalClosePath,Dt.beginPath=Dt.__originalBeginPath,delete Dt._removeMirroring},Dt.save=function(){Rt.save(),this.__originalSave()},Dt.restore=function(){Rt.restore(),this.__originalRestore()},Dt.translate=function(Mt,Ot){Rt.translate(Mt,Ot),this.__originalTranslate(Mt,Ot)},Dt.scale=function(Mt,Ot){Rt.scale(Mt,Ot),this.__originalScale(Mt,Ot)},Dt.transform=function(Mt,Ot,zt,Ht,Jt,pn){Rt.transform(Mt,Ot,zt,Ht,Jt,pn),this.__originalTransform(Mt,Ot,zt,Ht,Jt,pn)},Dt.setTransform=function(Mt,Ot,zt,Ht,Jt,pn){Rt.setTransform(Mt,Ot,zt,Ht,Jt,pn),this.__originalSetTransform(Mt,Ot,zt,Ht,Jt,pn)},Dt.resetTransform=function(){Rt.resetTransform(),this.__originalResetTransform()},Dt.rotate=function(Mt){Rt.rotate(Mt),this.__originalRotate(Mt)},Dt.clip=function(Mt){Rt.clip(Mt),this.__originalClip(Mt)},Dt.moveTo=function(wt,Mt){Rt.moveTo(wt,Mt),this.__originalMoveTo(wt,Mt)},Dt.lineTo=function(wt,Mt){Rt.lineTo(wt,Mt),this.__originalLineTo(wt,Mt)},Dt.bezierCurveTo=function(wt,Mt,Ot,zt,Ht,Jt){Rt.bezierCurveTo(wt,Mt,Ot,zt,Ht,Jt),this.__originalBezierCurveTo(wt,Mt,Ot,zt,Ht,Jt)},Dt.rect=function(wt,Mt,Ot,zt){Rt.rect(wt,Mt,Ot,zt),this.__originalRect(wt,Mt,Ot,zt)},Dt.closePath=function(){Rt.closePath(),this.__originalClosePath()},Dt.beginPath=function(){Rt.beginPath(),this.__originalBeginPath()}}class dt{constructor(Rt){this.canvasFactory=Rt,this.cache=Object.create(null)}getCanvas(Rt,wt,Mt){let Ot;return this.cache[Rt]!==void 0?(Ot=this.cache[Rt],this.canvasFactory.reset(Ot,wt,Mt)):(Ot=this.canvasFactory.create(wt,Mt),this.cache[Rt]=Ot),Ot}delete(Rt){delete this.cache[Rt]}clear(){for(const Rt in this.cache){const wt=this.cache[Rt];this.canvasFactory.destroy(wt),delete this.cache[Rt]}}}function mt(Dt,Rt,wt,Mt,Ot,zt,Ht,Jt,pn,gn){const[bn,yn,$n,kn,hn,un]=(0,nt.getCurrentTransform)(Dt);if(yn===0&&$n===0){const nn=Ht*bn+hn,sn=Math.round(nn),vn=Jt*kn+un,Tn=Math.round(vn),Rn=(Ht+pn)*bn+hn,on=Math.abs(Math.round(Rn)-sn)||1,Bn=(Jt+gn)*kn+un,Ln=Math.abs(Math.round(Bn)-Tn)||1;return Dt.setTransform(Math.sign(bn),0,0,Math.sign(kn),sn,Tn),Dt.drawImage(Rt,wt,Mt,Ot,zt,0,0,on,Ln),Dt.setTransform(bn,yn,$n,kn,hn,un),[on,Ln]}if(bn===0&&kn===0){const nn=Jt*$n+hn,sn=Math.round(nn),vn=Ht*yn+un,Tn=Math.round(vn),Rn=(Jt+gn)*$n+hn,on=Math.abs(Math.round(Rn)-sn)||1,Bn=(Ht+pn)*yn+un,Ln=Math.abs(Math.round(Bn)-Tn)||1;return Dt.setTransform(0,Math.sign(yn),Math.sign($n),0,sn,Tn),Dt.drawImage(Rt,wt,Mt,Ot,zt,0,0,Ln,on),Dt.setTransform(bn,yn,$n,kn,hn,un),[Ln,on]}Dt.drawImage(Rt,wt,Mt,Ot,zt,Ht,Jt,pn,gn);const Lt=Math.hypot(bn,yn),Ut=Math.hypot($n,kn);return[Lt*pn,Ut*gn]}function ct(Dt){const{width:Rt,height:wt}=Dt;if(Rt>pt||wt>pt)return null;const Mt=1e3,Ot=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),zt=Rt+1;let Ht=new Uint8Array(zt*(wt+1)),Jt,pn,gn;const bn=Rt+7&-8;let yn=new Uint8Array(bn*wt),$n=0;for(const Ut of Dt.data){let nn=128;for(;nn>0;)yn[$n++]=Ut&nn?0:255,nn>>=1}let kn=0;for($n=0,yn[$n]!==0&&(Ht[0]=1,++kn),pn=1;pn>2)+(yn[$n+1]?4:0)+(yn[$n-bn+1]?8:0),Ot[Ut]&&(Ht[gn+pn]=Ot[Ut],++kn),$n++;if(yn[$n-bn]!==yn[$n]&&(Ht[gn+pn]=yn[$n]?2:4,++kn),kn>Mt)return null}for($n=bn*(wt-1),gn=Jt*zt,yn[$n]!==0&&(Ht[gn]=8,++kn),pn=1;pnMt)return null;const hn=new Int32Array([0,zt,-1,0,-zt,0,0,0,1]),un=new Path2D;for(Jt=0;kn&&Jt<=wt;Jt++){let Ut=Jt*zt;const nn=Ut+Rt;for(;Ut>4,Ht[Ut]&=vn>>2|vn<<2),un.lineTo(Ut%zt,Ut/zt|0),Ht[Ut]||--kn}while(sn!==Ut);--Jt}return yn=null,Ht=null,function(Ut){Ut.save(),Ut.scale(1/Rt,-1/wt),Ut.translate(0,-wt),Ut.fill(un),Ut.beginPath(),Ut.restore()}}class ut{constructor(Rt,wt){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=tt.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=tt.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=tt.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,Rt,wt])}clone(){const Rt=Object.create(this);return Rt.clipBox=this.clipBox.slice(),Rt}setCurrentPoint(Rt,wt){this.x=Rt,this.y=wt}updatePathMinMax(Rt,wt,Mt){[wt,Mt]=tt.Util.applyTransform([wt,Mt],Rt),this.minX=Math.min(this.minX,wt),this.minY=Math.min(this.minY,Mt),this.maxX=Math.max(this.maxX,wt),this.maxY=Math.max(this.maxY,Mt)}updateRectMinMax(Rt,wt){const Mt=tt.Util.applyTransform(wt,Rt),Ot=tt.Util.applyTransform(wt.slice(2),Rt);this.minX=Math.min(this.minX,Mt[0],Ot[0]),this.minY=Math.min(this.minY,Mt[1],Ot[1]),this.maxX=Math.max(this.maxX,Mt[0],Ot[0]),this.maxY=Math.max(this.maxY,Mt[1],Ot[1])}updateScalingPathMinMax(Rt,wt){tt.Util.scaleMinMax(Rt,wt),this.minX=Math.min(this.minX,wt[0]),this.maxX=Math.max(this.maxX,wt[1]),this.minY=Math.min(this.minY,wt[2]),this.maxY=Math.max(this.maxY,wt[3])}updateCurvePathMinMax(Rt,wt,Mt,Ot,zt,Ht,Jt,pn,gn,bn){const yn=tt.Util.bezierBoundingBox(wt,Mt,Ot,zt,Ht,Jt,pn,gn);if(bn){bn[0]=Math.min(bn[0],yn[0],yn[2]),bn[1]=Math.max(bn[1],yn[0],yn[2]),bn[2]=Math.min(bn[2],yn[1],yn[3]),bn[3]=Math.max(bn[3],yn[1],yn[3]);return}this.updateRectMinMax(Rt,yn)}getPathBoundingBox(Rt=rt.PathType.FILL,wt=null){const Mt=[this.minX,this.minY,this.maxX,this.maxY];if(Rt===rt.PathType.STROKE){wt||(0,tt.unreachable)("Stroke bounding box must include transform.");const Ot=tt.Util.singularValueDecompose2dScale(wt),zt=Ot[0]*this.lineWidth/2,Ht=Ot[1]*this.lineWidth/2;Mt[0]-=zt,Mt[1]-=Ht,Mt[2]+=zt,Mt[3]+=Ht}return Mt}updateClipFromPath(){const Rt=tt.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(Rt||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(Rt){this.clipBox=Rt,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(Rt=rt.PathType.FILL,wt=null){return tt.Util.intersect(this.clipBox,this.getPathBoundingBox(Rt,wt))}}function vt(Dt,Rt){if(typeof ImageData<"u"&&Rt instanceof ImageData){Dt.putImageData(Rt,0,0);return}const wt=Rt.height,Mt=Rt.width,Ot=wt%gt,zt=(wt-Ot)/gt,Ht=Ot===0?zt:zt+1,Jt=Dt.createImageData(Mt,gt);let pn=0,gn;const bn=Rt.data,yn=Jt.data;let $n,kn,hn,un;if(Rt.kind===tt.ImageKind.GRAYSCALE_1BPP){const Lt=bn.byteLength,Ut=new Uint32Array(yn.buffer,0,yn.byteLength>>2),nn=Ut.length,sn=Mt+7>>3,vn=4294967295,Tn=tt.FeatureTest.isLittleEndian?4278190080:255;for($n=0;$nsn?Mt:Rn*8-7,Ln=Bn&-8;let Zn=0,Nn=0;for(;on>=1}for(;gn=zt&&(hn=Ot,un=Mt*hn),gn=0,kn=un;kn--;)yn[gn++]=bn[pn++],yn[gn++]=bn[pn++],yn[gn++]=bn[pn++],yn[gn++]=255;Dt.putImageData(Jt,0,$n*gt)}else throw new Error(`bad image kind: ${Rt.kind}`)}function bt(Dt,Rt){if(Rt.bitmap){Dt.drawImage(Rt.bitmap,0,0);return}const wt=Rt.height,Mt=Rt.width,Ot=wt%gt,zt=(wt-Ot)/gt,Ht=Ot===0?zt:zt+1,Jt=Dt.createImageData(Mt,gt);let pn=0;const gn=Rt.data,bn=Jt.data;for(let yn=0;yn>8,Dt[zt-2]=Dt[zt-2]*Ht+wt*Jt>>8,Dt[zt-1]=Dt[zt-1]*Ht+Mt*Jt>>8}}}function St(Dt,Rt,wt){const Mt=Dt.length,Ot=1/255;for(let zt=3;zt>8]>>8:Rt[Ot]*zt>>16}}function At(Dt,Rt,wt,Mt,Ot,zt,Ht,Jt,pn,gn,bn){const yn=!!zt,$n=yn?zt[0]:0,kn=yn?zt[1]:0,hn=yn?zt[2]:0,un=Ot==="Luminosity"?kt:St,Ut=Math.min(Mt,Math.ceil(1048576/wt));for(let nn=0;nnht&&typeof Mt=="function",bn=gn?Date.now()+lt:0;let yn=0;const $n=this.commonObjs,kn=this.objs;let hn;for(;;){if(Ot!==void 0&&Jt===Ot.nextBreakPoint)return Ot.breakIt(Jt,Mt),Jt;if(hn=Ht[Jt],hn!==tt.OPS.dependency)this[hn].apply(this,zt[Jt]);else for(const un of zt[Jt]){const Lt=un.startsWith("g_")?$n:kn;if(!Lt.has(un))return Lt.get(un,Mt),Jt}if(Jt++,Jt===pn)return Jt;if(gn&&++yn>ht){if(Date.now()>bn)return Mt(),Jt;yn=0}}}endDrawing(){mn(this,Wt,Ws).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const Rt of this._cachedBitmapsMap.values()){for(const wt of Rt.values())typeof HTMLCanvasElement<"u"&&wt instanceof HTMLCanvasElement&&(wt.width=wt.height=0);Rt.clear()}this._cachedBitmapsMap.clear(),mn(this,Wt,Hs).call(this)}_scaleImage(Rt,wt){const Mt=Rt.width,Ot=Rt.height;let zt=Math.max(Math.hypot(wt[0],wt[1]),1),Ht=Math.max(Math.hypot(wt[2],wt[3]),1),Jt=Mt,pn=Ot,gn="prescale1",bn,yn;for(;zt>2&&Jt>1||Ht>2&&pn>1;){let $n=Jt,kn=pn;zt>2&&Jt>1&&($n=Jt>=16384?Math.floor(Jt/2)-1||1:Math.ceil(Jt/2),zt/=Jt/$n),Ht>2&&pn>1&&(kn=pn>=16384?Math.floor(pn/2)-1||1:Math.ceil(pn)/2,Ht/=pn/kn),bn=this.cachedCanvases.getCanvas(gn,$n,kn),yn=bn.context,yn.clearRect(0,0,$n,kn),yn.drawImage(Rt,0,0,Jt,pn,0,0,$n,kn),Rt=bn.canvas,Jt=$n,pn=kn,gn=gn==="prescale1"?"prescale2":"prescale1"}return{img:Rt,paintWidth:Jt,paintHeight:pn}}_createMaskCanvas(Rt){const wt=this.ctx,{width:Mt,height:Ot}=Rt,zt=this.current.fillColor,Ht=this.current.patternFill,Jt=(0,nt.getCurrentTransform)(wt);let pn,gn,bn,yn;if((Rt.bitmap||Rt.data)&&Rt.count>1){const on=Rt.bitmap||Rt.data.buffer;gn=JSON.stringify(Ht?Jt:[Jt.slice(0,4),zt]),pn=this._cachedBitmapsMap.get(on),pn||(pn=new Map,this._cachedBitmapsMap.set(on,pn));const Bn=pn.get(gn);if(Bn&&!Ht){const Ln=Math.round(Math.min(Jt[0],Jt[2])+Jt[4]),Zn=Math.round(Math.min(Jt[1],Jt[3])+Jt[5]);return{canvas:Bn,offsetX:Ln,offsetY:Zn}}bn=Bn}bn||(yn=this.cachedCanvases.getCanvas("maskCanvas",Mt,Ot),bt(yn.context,Rt));let $n=tt.Util.transform(Jt,[1/Mt,0,0,-1/Ot,0,0]);$n=tt.Util.transform($n,[1,0,0,1,0,-Ot]);const kn=tt.Util.applyTransform([0,0],$n),hn=tt.Util.applyTransform([Mt,Ot],$n),un=tt.Util.normalizeRect([kn[0],kn[1],hn[0],hn[1]]),Lt=Math.round(un[2]-un[0])||1,Ut=Math.round(un[3]-un[1])||1,nn=this.cachedCanvases.getCanvas("fillCanvas",Lt,Ut),sn=nn.context,vn=Math.min(kn[0],hn[0]),Tn=Math.min(kn[1],hn[1]);sn.translate(-vn,-Tn),sn.transform(...$n),bn||(bn=this._scaleImage(yn.canvas,(0,nt.getCurrentTransformInverse)(sn)),bn=bn.img,pn&&Ht&&pn.set(gn,bn)),sn.imageSmoothingEnabled=Tt((0,nt.getCurrentTransform)(sn),Rt.interpolate),mt(sn,bn,0,0,bn.width,bn.height,0,0,Mt,Ot),sn.globalCompositeOperation="source-in";const Rn=tt.Util.transform((0,nt.getCurrentTransformInverse)(sn),[1,0,0,1,-vn,-Tn]);return sn.fillStyle=Ht?zt.getPattern(wt,this,Rn,rt.PathType.FILL):zt,sn.fillRect(0,0,Mt,Ot),pn&&!Ht&&(this.cachedCanvases.delete("fillCanvas"),pn.set(gn,nn.canvas)),{canvas:nn.canvas,offsetX:Math.round(vn),offsetY:Math.round(Tn)}}setLineWidth(Rt){Rt!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=Rt,this.ctx.lineWidth=Rt}setLineCap(Rt){this.ctx.lineCap=jt[Rt]}setLineJoin(Rt){this.ctx.lineJoin=Gt[Rt]}setMiterLimit(Rt){this.ctx.miterLimit=Rt}setDash(Rt,wt){const Mt=this.ctx;Mt.setLineDash!==void 0&&(Mt.setLineDash(Rt),Mt.lineDashOffset=wt)}setRenderingIntent(Rt){}setFlatness(Rt){}setGState(Rt){for(const[wt,Mt]of Rt)switch(wt){case"LW":this.setLineWidth(Mt);break;case"LC":this.setLineCap(Mt);break;case"LJ":this.setLineJoin(Mt);break;case"ML":this.setMiterLimit(Mt);break;case"D":this.setDash(Mt[0],Mt[1]);break;case"RI":this.setRenderingIntent(Mt);break;case"FL":this.setFlatness(Mt);break;case"Font":this.setFont(Mt[0],Mt[1]);break;case"CA":this.current.strokeAlpha=Mt;break;case"ca":this.current.fillAlpha=Mt,this.ctx.globalAlpha=Mt;break;case"BM":this.ctx.globalCompositeOperation=Mt;break;case"SMask":this.current.activeSMask=Mt?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(Mt);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const Rt=this.inSMaskMode;this.current.activeSMask&&!Rt?this.beginSMaskMode():!this.current.activeSMask&&Rt&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const Rt=this.ctx.canvas.width,wt=this.ctx.canvas.height,Mt="smaskGroupAt"+this.groupLevel,Ot=this.cachedCanvases.getCanvas(Mt,Rt,wt);this.suspendedCtx=this.ctx,this.ctx=Ot.context;const zt=this.ctx;zt.setTransform(...(0,nt.getCurrentTransform)(this.suspendedCtx)),yt(this.suspendedCtx,zt),ft(zt,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),yt(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(Rt){if(!this.current.activeSMask)return;Rt?(Rt[0]=Math.floor(Rt[0]),Rt[1]=Math.floor(Rt[1]),Rt[2]=Math.ceil(Rt[2]),Rt[3]=Math.ceil(Rt[3])):Rt=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const wt=this.current.activeSMask,Mt=this.suspendedCtx;$t(Mt,wt,this.ctx,Rt),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(yt(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const Rt=this.current;this.stateStack.push(Rt),this.current=Rt.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),yt(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(Rt,wt,Mt,Ot,zt,Ht){this.ctx.transform(Rt,wt,Mt,Ot,zt,Ht),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(Rt,wt,Mt){const Ot=this.ctx,zt=this.current;let Ht=zt.x,Jt=zt.y,pn,gn;const bn=(0,nt.getCurrentTransform)(Ot),yn=bn[0]===0&&bn[3]===0||bn[1]===0&&bn[2]===0,$n=yn?Mt.slice(0):null;for(let kn=0,hn=0,un=Rt.length;knst&&(gn=st),this.current.fontSizeScale=wt/gn,this.ctx.font=`${pn} ${Jt} ${gn}px ${Ht}`}setTextRenderingMode(Rt){this.current.textRenderingMode=Rt}setTextRise(Rt){this.current.textRise=Rt}moveText(Rt,wt){this.current.x=this.current.lineX+=Rt,this.current.y=this.current.lineY+=wt}setLeadingMoveText(Rt,wt){this.setLeading(-wt),this.moveText(Rt,wt)}setTextMatrix(Rt,wt,Mt,Ot,zt,Ht){this.current.textMatrix=[Rt,wt,Mt,Ot,zt,Ht],this.current.textMatrixScale=Math.hypot(Rt,wt),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(Rt,wt,Mt,Ot){const zt=this.ctx,Ht=this.current,Jt=Ht.font,pn=Ht.textRenderingMode,gn=Ht.fontSize/Ht.fontSizeScale,bn=pn&tt.TextRenderingMode.FILL_STROKE_MASK,yn=!!(pn&tt.TextRenderingMode.ADD_TO_PATH_FLAG),$n=Ht.patternFill&&!Jt.missingFile;let kn;(Jt.disableFontFace||yn||$n)&&(kn=Jt.getPathGenerator(this.commonObjs,Rt)),Jt.disableFontFace||$n?(zt.save(),zt.translate(wt,Mt),zt.beginPath(),kn(zt,gn),Ot&&zt.setTransform(...Ot),(bn===tt.TextRenderingMode.FILL||bn===tt.TextRenderingMode.FILL_STROKE)&&zt.fill(),(bn===tt.TextRenderingMode.STROKE||bn===tt.TextRenderingMode.FILL_STROKE)&&zt.stroke(),zt.restore()):((bn===tt.TextRenderingMode.FILL||bn===tt.TextRenderingMode.FILL_STROKE)&&zt.fillText(Rt,wt,Mt),(bn===tt.TextRenderingMode.STROKE||bn===tt.TextRenderingMode.FILL_STROKE)&&zt.strokeText(Rt,wt,Mt)),yn&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,nt.getCurrentTransform)(zt),x:wt,y:Mt,fontSize:gn,addToPath:kn})}get isFontSubpixelAAEnabled(){const{context:Rt}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);Rt.scale(1.5,1),Rt.fillText("I",0,10);const wt=Rt.getImageData(0,0,10,10).data;let Mt=!1;for(let Ot=3;Ot0&&wt[Ot]<255){Mt=!0;break}return(0,tt.shadow)(this,"isFontSubpixelAAEnabled",Mt)}showText(Rt){const wt=this.current,Mt=wt.font;if(Mt.isType3Font)return this.showType3Text(Rt);const Ot=wt.fontSize;if(Ot===0)return;const zt=this.ctx,Ht=wt.fontSizeScale,Jt=wt.charSpacing,pn=wt.wordSpacing,gn=wt.fontDirection,bn=wt.textHScale*gn,yn=Rt.length,$n=Mt.vertical,kn=$n?1:-1,hn=Mt.defaultVMetrics,un=Ot*wt.fontMatrix[0],Lt=wt.textRenderingMode===tt.TextRenderingMode.FILL&&!Mt.disableFontFace&&!wt.patternFill;zt.save(),zt.transform(...wt.textMatrix),zt.translate(wt.x,wt.y+wt.textRise),gn>0?zt.scale(bn,-1):zt.scale(bn,1);let Ut;if(wt.patternFill){zt.save();const Rn=wt.fillColor.getPattern(zt,this,(0,nt.getCurrentTransformInverse)(zt),rt.PathType.FILL);Ut=(0,nt.getCurrentTransform)(zt),zt.restore(),zt.fillStyle=Rn}let nn=wt.lineWidth;const sn=wt.textMatrixScale;if(sn===0||nn===0){const Rn=wt.textRenderingMode&tt.TextRenderingMode.FILL_STROKE_MASK;(Rn===tt.TextRenderingMode.STROKE||Rn===tt.TextRenderingMode.FILL_STROKE)&&(nn=this.getSinglePixelWidth())}else nn/=sn;if(Ht!==1&&(zt.scale(Ht,Ht),nn/=Ht),zt.lineWidth=nn,Mt.isInvalidPDFjsFont){const Rn=[];let on=0;for(const Bn of Rt)Rn.push(Bn.unicode),on+=Bn.width;zt.fillText(Rn.join(""),0,0),wt.x+=on*un*bn,zt.restore(),this.compose();return}let vn=0,Tn;for(Tn=0;Tn0){const Wn=zt.measureText(Ln).width*1e3/Ot*Ht;if(Xnnew Yt(Ht,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};wt=new rt.TilingPattern(Rt,Mt,this.ctx,zt,Ot)}else wt=this._getPattern(Rt[1],Rt[2]);return wt}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(Rt,wt,Mt){const Ot=tt.Util.makeHexColor(Rt,wt,Mt);this.ctx.strokeStyle=Ot,this.current.strokeColor=Ot}setFillRGBColor(Rt,wt,Mt){const Ot=tt.Util.makeHexColor(Rt,wt,Mt);this.ctx.fillStyle=Ot,this.current.fillColor=Ot,this.current.patternFill=!1}_getPattern(Rt,wt=null){let Mt;return this.cachedPatterns.has(Rt)?Mt=this.cachedPatterns.get(Rt):(Mt=(0,rt.getShadingPattern)(this.getObject(Rt)),this.cachedPatterns.set(Rt,Mt)),wt&&(Mt.matrix=wt),Mt}shadingFill(Rt){if(!this.contentVisible)return;const wt=this.ctx;this.save();const Mt=this._getPattern(Rt);wt.fillStyle=Mt.getPattern(wt,this,(0,nt.getCurrentTransformInverse)(wt),rt.PathType.SHADING);const Ot=(0,nt.getCurrentTransformInverse)(wt);if(Ot){const{width:zt,height:Ht}=wt.canvas,[Jt,pn,gn,bn]=tt.Util.getAxialAlignedBoundingBox([0,0,zt,Ht],Ot);this.ctx.fillRect(Jt,pn,gn-Jt,bn-pn)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,tt.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,tt.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(Rt,wt){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(Rt)&&Rt.length===6&&this.transform(...Rt),this.baseTransform=(0,nt.getCurrentTransform)(this.ctx),wt)){const Mt=wt[2]-wt[0],Ot=wt[3]-wt[1];this.ctx.rect(wt[0],wt[1],Mt,Ot),this.current.updateRectMinMax((0,nt.getCurrentTransform)(this.ctx),wt),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(Rt){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const wt=this.ctx;Rt.isolated||(0,tt.info)("TODO: Support non-isolated groups."),Rt.knockout&&(0,tt.warn)("Knockout groups not supported.");const Mt=(0,nt.getCurrentTransform)(wt);if(Rt.matrix&&wt.transform(...Rt.matrix),!Rt.bbox)throw new Error("Bounding box is required.");let Ot=tt.Util.getAxialAlignedBoundingBox(Rt.bbox,(0,nt.getCurrentTransform)(wt));const zt=[0,0,wt.canvas.width,wt.canvas.height];Ot=tt.Util.intersect(Ot,zt)||[0,0,0,0];const Ht=Math.floor(Ot[0]),Jt=Math.floor(Ot[1]);let pn=Math.max(Math.ceil(Ot[2])-Ht,1),gn=Math.max(Math.ceil(Ot[3])-Jt,1),bn=1,yn=1;pn>at&&(bn=pn/at,pn=at),gn>at&&(yn=gn/at,gn=at),this.current.startNewPathAndClipBox([0,0,pn,gn]);let $n="groupAt"+this.groupLevel;Rt.smask&&($n+="_smask_"+this.smaskCounter++%2);const kn=this.cachedCanvases.getCanvas($n,pn,gn),hn=kn.context;hn.scale(1/bn,1/yn),hn.translate(-Ht,-Jt),hn.transform(...Mt),Rt.smask?this.smaskStack.push({canvas:kn.canvas,context:hn,offsetX:Ht,offsetY:Jt,scaleX:bn,scaleY:yn,subtype:Rt.smask.subtype,backdrop:Rt.smask.backdrop,transferMap:Rt.smask.transferMap||null,startTransformInverse:null}):(wt.setTransform(1,0,0,1,0,0),wt.translate(Ht,Jt),wt.scale(bn,yn),wt.save()),yt(wt,hn),this.ctx=hn,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(wt),this.groupLevel++}endGroup(Rt){if(!this.contentVisible)return;this.groupLevel--;const wt=this.ctx,Mt=this.groupStack.pop();if(this.ctx=Mt,this.ctx.imageSmoothingEnabled=!1,Rt.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const Ot=(0,nt.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...Ot);const zt=tt.Util.getAxialAlignedBoundingBox([0,0,wt.canvas.width,wt.canvas.height],Ot);this.ctx.drawImage(wt.canvas,0,0),this.ctx.restore(),this.compose(zt)}}beginAnnotation(Rt,wt,Mt,Ot,zt){if(mn(this,Wt,Ws).call(this),Et(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(wt)&&wt.length===4){const Ht=wt[2]-wt[0],Jt=wt[3]-wt[1];if(zt&&this.annotationCanvasMap){Mt=Mt.slice(),Mt[4]-=wt[0],Mt[5]-=wt[1],wt=wt.slice(),wt[0]=wt[1]=0,wt[2]=Ht,wt[3]=Jt;const[pn,gn]=tt.Util.singularValueDecompose2dScale((0,nt.getCurrentTransform)(this.ctx)),{viewportScale:bn}=this,yn=Math.ceil(Ht*this.outputScaleX*bn),$n=Math.ceil(Jt*this.outputScaleY*bn);this.annotationCanvas=this.canvasFactory.create(yn,$n);const{canvas:kn,context:hn}=this.annotationCanvas;this.annotationCanvasMap.set(Rt,kn),this.annotationCanvas.savedCtx=this.ctx,this.ctx=hn,this.ctx.save(),this.ctx.setTransform(pn,0,0,-gn,0,Jt*gn),Et(this.ctx)}else Et(this.ctx),this.ctx.rect(wt[0],wt[1],Ht,Jt),this.ctx.clip(),this.endPath()}this.current=new ut(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...Mt),this.transform(...Ot)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),mn(this,Wt,Hs).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(Rt){if(!this.contentVisible)return;const wt=Rt.count;Rt=this.getObject(Rt.data,Rt),Rt.count=wt;const Mt=this.ctx,Ot=this.processingType3;if(Ot&&(Ot.compiled===void 0&&(Ot.compiled=ct(Rt)),Ot.compiled)){Ot.compiled(Mt);return}const zt=this._createMaskCanvas(Rt),Ht=zt.canvas;Mt.save(),Mt.setTransform(1,0,0,1,0,0),Mt.drawImage(Ht,zt.offsetX,zt.offsetY),Mt.restore(),this.compose()}paintImageMaskXObjectRepeat(Rt,wt,Mt=0,Ot=0,zt,Ht){if(!this.contentVisible)return;Rt=this.getObject(Rt.data,Rt);const Jt=this.ctx;Jt.save();const pn=(0,nt.getCurrentTransform)(Jt);Jt.transform(wt,Mt,Ot,zt,0,0);const gn=this._createMaskCanvas(Rt);Jt.setTransform(1,0,0,1,gn.offsetX-pn[4],gn.offsetY-pn[5]);for(let bn=0,yn=Ht.length;bnyn?bn/yn:1,Jt=gn>yn?gn/yn:1}}this._cachedScaleForStroking[0]=Ht,this._cachedScaleForStroking[1]=Jt}return this._cachedScaleForStroking}rescaleAndStroke(Rt){const{ctx:wt}=this,{lineWidth:Mt}=this.current,[Ot,zt]=this.getScaleForStroking();if(wt.lineWidth=Mt||1,Ot===1&&zt===1){wt.stroke();return}const Ht=wt.getLineDash();if(Rt&&wt.save(),wt.scale(Ot,zt),Ht.length>0){const Jt=Math.max(Ot,zt);wt.setLineDash(Ht.map(pn=>pn/Jt)),wt.lineDashOffset/=Jt}wt.stroke(),Rt&&wt.restore()}isContentVisible(){for(let Rt=this.markedContentStack.length-1;Rt>=0;Rt--)if(!this.markedContentStack[Rt].visible)return!1;return!0}};Wt=new WeakSet,Ws=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)},Hs=function(){if(this.pageColors){const Rt=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(Rt!=="none"){const wt=this.ctx.filter;this.ctx.filter=Rt,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=wt}}};let Vt=Yt;_e.CanvasGraphics=Vt;for(const Dt in tt.OPS)Vt.prototype[Dt]!==void 0&&(Vt.prototype[tt.OPS[Dt]]=Vt.prototype[Dt])},($,_e,et)=>{Object.defineProperty(_e,"__esModule",{value:!0}),_e.TilingPattern=_e.PathType=void 0,_e.getShadingPattern=gt;var tt=et(1),nt=et(6);const rt={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};_e.PathType=rt;function ot(ct,ut){if(!ut)return;const vt=ut[2]-ut[0],bt=ut[3]-ut[1],yt=new Path2D;yt.rect(ut[0],ut[1],vt,bt),ct.clip(yt)}class it{constructor(){this.constructor===it&&(0,tt.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,tt.unreachable)("Abstract method `getPattern` called.")}}class st extends it{constructor(ut){super(),this._type=ut[1],this._bbox=ut[2],this._colorStops=ut[3],this._p0=ut[4],this._p1=ut[5],this._r0=ut[6],this._r1=ut[7],this.matrix=null}_createGradient(ut){let vt;this._type==="axial"?vt=ut.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(vt=ut.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const bt of this._colorStops)vt.addColorStop(bt[0],bt[1]);return vt}getPattern(ut,vt,bt,yt){let Et;if(yt===rt.STROKE||yt===rt.FILL){const xt=vt.current.getClippedPathBoundingBox(yt,(0,nt.getCurrentTransform)(ut))||[0,0,0,0],St=Math.ceil(xt[2]-xt[0])||1,kt=Math.ceil(xt[3]-xt[1])||1,At=vt.cachedCanvases.getCanvas("pattern",St,kt,!0),$t=At.context;$t.clearRect(0,0,$t.canvas.width,$t.canvas.height),$t.beginPath(),$t.rect(0,0,$t.canvas.width,$t.canvas.height),$t.translate(-xt[0],-xt[1]),bt=tt.Util.transform(bt,[1,0,0,1,xt[0],xt[1]]),$t.transform(...vt.baseTransform),this.matrix&&$t.transform(...this.matrix),ot($t,this._bbox),$t.fillStyle=this._createGradient($t),$t.fill(),Et=ut.createPattern(At.canvas,"no-repeat");const Tt=new DOMMatrix(bt);Et.setTransform(Tt)}else ot(ut,this._bbox),Et=this._createGradient(ut);return Et}}function at(ct,ut,vt,bt,yt,Et,xt,St){const kt=ut.coords,At=ut.colors,$t=ct.data,Tt=ct.width*4;let jt;kt[vt+1]>kt[bt+1]&&(jt=vt,vt=bt,bt=jt,jt=Et,Et=xt,xt=jt),kt[bt+1]>kt[yt+1]&&(jt=bt,bt=yt,yt=jt,jt=xt,xt=St,St=jt),kt[vt+1]>kt[bt+1]&&(jt=vt,vt=bt,bt=jt,jt=Et,Et=xt,xt=jt);const Gt=(kt[vt]+ut.offsetX)*ut.scaleX,Bt=(kt[vt+1]+ut.offsetY)*ut.scaleY,Kt=(kt[bt]+ut.offsetX)*ut.scaleX,Vt=(kt[bt+1]+ut.offsetY)*ut.scaleY,Wt=(kt[yt]+ut.offsetX)*ut.scaleX,It=(kt[yt+1]+ut.offsetY)*ut.scaleY;if(Bt>=It)return;const Ft=At[Et],Yt=At[Et+1],Dt=At[Et+2],Rt=At[xt],wt=At[xt+1],Mt=At[xt+2],Ot=At[St],zt=At[St+1],Ht=At[St+2],Jt=Math.round(Bt),pn=Math.round(It);let gn,bn,yn,$n,kn,hn,un,Lt;for(let Ut=Jt;Ut<=pn;Ut++){if(UtIt?Rn=1:Vt===It?Rn=0:Rn=(Vt-Ut)/(Vt-It),gn=Kt-(Kt-Wt)*Rn,bn=Rt-(Rt-Ot)*Rn,yn=wt-(wt-zt)*Rn,$n=Mt-(Mt-Ht)*Rn}let nn;UtIt?nn=1:nn=(Bt-Ut)/(Bt-It),kn=Gt-(Gt-Wt)*nn,hn=Ft-(Ft-Ot)*nn,un=Yt-(Yt-zt)*nn,Lt=Dt-(Dt-Ht)*nn;const sn=Math.round(Math.min(gn,kn)),vn=Math.round(Math.max(gn,kn));let Tn=Tt*Ut+sn*4;for(let Rn=sn;Rn<=vn;Rn++)nn=(gn-Rn)/(gn-kn),nn<0?nn=0:nn>1&&(nn=1),$t[Tn++]=bn-(bn-hn)*nn|0,$t[Tn++]=yn-(yn-un)*nn|0,$t[Tn++]=$n-($n-Lt)*nn|0,$t[Tn++]=255}}function lt(ct,ut,vt){const bt=ut.coords,yt=ut.colors;let Et,xt;switch(ut.type){case"lattice":const St=ut.verticesPerRow,kt=Math.floor(bt.length/St)-1,At=St-1;for(Et=0;Et=yt?Et=yt:bt=Et/ut,{scale:bt,size:Et}}clipBbox(ut,vt,bt,yt,Et){const xt=yt-vt,St=Et-bt;ut.ctx.rect(vt,bt,xt,St),ut.current.updateRectMinMax((0,nt.getCurrentTransform)(ut.ctx),[vt,bt,yt,Et]),ut.clip(),ut.endPath()}setFillAndStrokeStyleToContext(ut,vt,bt){const yt=ut.ctx,Et=ut.current;switch(vt){case ft.COLORED:const xt=this.ctx;yt.fillStyle=xt.fillStyle,yt.strokeStyle=xt.strokeStyle,Et.fillColor=xt.fillStyle,Et.strokeColor=xt.strokeStyle;break;case ft.UNCOLORED:const St=tt.Util.makeHexColor(bt[0],bt[1],bt[2]);yt.fillStyle=St,yt.strokeStyle=St,Et.fillColor=St,Et.strokeColor=St;break;default:throw new tt.FormatError(`Unsupported paint type: ${vt}`)}}getPattern(ut,vt,bt,yt){let Et=bt;yt!==rt.SHADING&&(Et=tt.Util.transform(Et,vt.baseTransform),this.matrix&&(Et=tt.Util.transform(Et,this.matrix)));const xt=this.createPatternCanvas(vt);let St=new DOMMatrix(Et);St=St.translate(xt.offsetX,xt.offsetY),St=St.scale(1/xt.scaleX,1/xt.scaleY);const kt=ut.createPattern(xt.canvas,"repeat");return kt.setTransform(St),kt}};Gr(mt,"MAX_PATTERN_SIZE",3e3);let dt=mt;_e.TilingPattern=dt},($,_e,et)=>{Object.defineProperty(_e,"__esModule",{value:!0}),_e.convertBlackAndWhiteToRGBA=rt,_e.convertToRGBA=nt,_e.grayToRGBA=it;var tt=et(1);function nt(st){switch(st.kind){case tt.ImageKind.GRAYSCALE_1BPP:return rt(st);case tt.ImageKind.RGB_24BPP:return ot(st)}return null}function rt({src:st,srcPos:at=0,dest:lt,width:ht,height:pt,nonBlackColor:gt=4294967295,inverseDecode:ft=!1}){const dt=tt.FeatureTest.isLittleEndian?4278190080:255,[mt,ct]=ft?[gt,dt]:[dt,gt],ut=ht>>3,vt=ht&7,bt=st.length;lt=new Uint32Array(lt.buffer);let yt=0;for(let Et=0;Et>2,mt=new Uint32Array(st.buffer,at,dt);if(tt.FeatureTest.isLittleEndian){for(;ft>>24|ut<<8|4278190080,lt[ht+2]=ut>>>16|vt<<16|4278190080,lt[ht+3]=vt>>>8|4278190080}for(let ct=ft*4,ut=st.length;ct>>8|255,lt[ht+2]=ut<<16|vt>>>16|255,lt[ht+3]=vt<<8|255}for(let ct=ft*4,ut=st.length;ct{Object.defineProperty(_e,"__esModule",{value:!0}),_e.GlobalWorkerOptions=void 0;const et=Object.create(null);_e.GlobalWorkerOptions=et,et.workerPort=null,et.workerSrc=""},($,_e,et)=>{var st,Jl,_c,as;Object.defineProperty(_e,"__esModule",{value:!0}),_e.MessageHandler=void 0;var tt=et(1);const nt={UNKNOWN:0,DATA:1,ERROR:2},rt={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function ot(pt){switch(pt instanceof Error||typeof pt=="object"&&pt!==null||(0,tt.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),pt.name){case"AbortException":return new tt.AbortException(pt.message);case"MissingPDFException":return new tt.MissingPDFException(pt.message);case"PasswordException":return new tt.PasswordException(pt.message,pt.code);case"UnexpectedResponseException":return new tt.UnexpectedResponseException(pt.message,pt.status);case"UnknownErrorException":return new tt.UnknownErrorException(pt.message,pt.details);default:return new tt.UnknownErrorException(pt.message,pt.toString())}}class it{constructor(gt,ft,dt){Sn(this,st);this.sourceName=gt,this.targetName=ft,this.comObj=dt,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=mt=>{const ct=mt.data;if(ct.targetName!==this.sourceName)return;if(ct.stream){mn(this,st,_c).call(this,ct);return}if(ct.callback){const vt=ct.callbackId,bt=this.callbackCapabilities[vt];if(!bt)throw new Error(`Cannot resolve callback ${vt}`);if(delete this.callbackCapabilities[vt],ct.callback===nt.DATA)bt.resolve(ct.data);else if(ct.callback===nt.ERROR)bt.reject(ot(ct.reason));else throw new Error("Unexpected callback case");return}const ut=this.actionHandler[ct.action];if(!ut)throw new Error(`Unknown action from worker: ${ct.action}`);if(ct.callbackId){const vt=this.sourceName,bt=ct.sourceName;new Promise(function(yt){yt(ut(ct.data))}).then(function(yt){dt.postMessage({sourceName:vt,targetName:bt,callback:nt.DATA,callbackId:ct.callbackId,data:yt})},function(yt){dt.postMessage({sourceName:vt,targetName:bt,callback:nt.ERROR,callbackId:ct.callbackId,reason:ot(yt)})});return}if(ct.streamId){mn(this,st,Jl).call(this,ct);return}ut(ct.data)},dt.addEventListener("message",this._onComObjOnMessage)}on(gt,ft){const dt=this.actionHandler;if(dt[gt])throw new Error(`There is already an actionName called "${gt}"`);dt[gt]=ft}send(gt,ft,dt){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:gt,data:ft},dt)}sendWithPromise(gt,ft,dt){const mt=this.callbackId++,ct=new tt.PromiseCapability;this.callbackCapabilities[mt]=ct;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:gt,callbackId:mt,data:ft},dt)}catch(ut){ct.reject(ut)}return ct.promise}sendWithStream(gt,ft,dt,mt){const ct=this.streamId++,ut=this.sourceName,vt=this.targetName,bt=this.comObj;return new ReadableStream({start:yt=>{const Et=new tt.PromiseCapability;return this.streamControllers[ct]={controller:yt,startCall:Et,pullCall:null,cancelCall:null,isClosed:!1},bt.postMessage({sourceName:ut,targetName:vt,action:gt,streamId:ct,data:ft,desiredSize:yt.desiredSize},mt),Et.promise},pull:yt=>{const Et=new tt.PromiseCapability;return this.streamControllers[ct].pullCall=Et,bt.postMessage({sourceName:ut,targetName:vt,stream:rt.PULL,streamId:ct,desiredSize:yt.desiredSize}),Et.promise},cancel:yt=>{(0,tt.assert)(yt instanceof Error,"cancel must have a valid reason");const Et=new tt.PromiseCapability;return this.streamControllers[ct].cancelCall=Et,this.streamControllers[ct].isClosed=!0,bt.postMessage({sourceName:ut,targetName:vt,stream:rt.CANCEL,streamId:ct,reason:ot(yt)}),Et.promise}},dt)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}st=new WeakSet,Jl=function(gt){const ft=gt.streamId,dt=this.sourceName,mt=gt.sourceName,ct=this.comObj,ut=this,vt=this.actionHandler[gt.action],bt={enqueue(yt,Et=1,xt){if(this.isCancelled)return;const St=this.desiredSize;this.desiredSize-=Et,St>0&&this.desiredSize<=0&&(this.sinkCapability=new tt.PromiseCapability,this.ready=this.sinkCapability.promise),ct.postMessage({sourceName:dt,targetName:mt,stream:rt.ENQUEUE,streamId:ft,chunk:yt},xt)},close(){this.isCancelled||(this.isCancelled=!0,ct.postMessage({sourceName:dt,targetName:mt,stream:rt.CLOSE,streamId:ft}),delete ut.streamSinks[ft])},error(yt){(0,tt.assert)(yt instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,ct.postMessage({sourceName:dt,targetName:mt,stream:rt.ERROR,streamId:ft,reason:ot(yt)}))},sinkCapability:new tt.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:gt.desiredSize,ready:null};bt.sinkCapability.resolve(),bt.ready=bt.sinkCapability.promise,this.streamSinks[ft]=bt,new Promise(function(yt){yt(vt(gt.data,bt))}).then(function(){ct.postMessage({sourceName:dt,targetName:mt,stream:rt.START_COMPLETE,streamId:ft,success:!0})},function(yt){ct.postMessage({sourceName:dt,targetName:mt,stream:rt.START_COMPLETE,streamId:ft,reason:ot(yt)})})},_c=function(gt){const ft=gt.streamId,dt=this.sourceName,mt=gt.sourceName,ct=this.comObj,ut=this.streamControllers[ft],vt=this.streamSinks[ft];switch(gt.stream){case rt.START_COMPLETE:gt.success?ut.startCall.resolve():ut.startCall.reject(ot(gt.reason));break;case rt.PULL_COMPLETE:gt.success?ut.pullCall.resolve():ut.pullCall.reject(ot(gt.reason));break;case rt.PULL:if(!vt){ct.postMessage({sourceName:dt,targetName:mt,stream:rt.PULL_COMPLETE,streamId:ft,success:!0});break}vt.desiredSize<=0&>.desiredSize>0&&vt.sinkCapability.resolve(),vt.desiredSize=gt.desiredSize,new Promise(function(bt){var yt;bt((yt=vt.onPull)==null?void 0:yt.call(vt))}).then(function(){ct.postMessage({sourceName:dt,targetName:mt,stream:rt.PULL_COMPLETE,streamId:ft,success:!0})},function(bt){ct.postMessage({sourceName:dt,targetName:mt,stream:rt.PULL_COMPLETE,streamId:ft,reason:ot(bt)})});break;case rt.ENQUEUE:if((0,tt.assert)(ut,"enqueue should have stream controller"),ut.isClosed)break;ut.controller.enqueue(gt.chunk);break;case rt.CLOSE:if((0,tt.assert)(ut,"close should have stream controller"),ut.isClosed)break;ut.isClosed=!0,ut.controller.close(),mn(this,st,as).call(this,ut,ft);break;case rt.ERROR:(0,tt.assert)(ut,"error should have stream controller"),ut.controller.error(ot(gt.reason)),mn(this,st,as).call(this,ut,ft);break;case rt.CANCEL_COMPLETE:gt.success?ut.cancelCall.resolve():ut.cancelCall.reject(ot(gt.reason)),mn(this,st,as).call(this,ut,ft);break;case rt.CANCEL:if(!vt)break;new Promise(function(bt){var yt;bt((yt=vt.onCancel)==null?void 0:yt.call(vt,ot(gt.reason)))}).then(function(){ct.postMessage({sourceName:dt,targetName:mt,stream:rt.CANCEL_COMPLETE,streamId:ft,success:!0})},function(bt){ct.postMessage({sourceName:dt,targetName:mt,stream:rt.CANCEL_COMPLETE,streamId:ft,reason:ot(bt)})}),vt.sinkCapability.reject(ot(gt.reason)),vt.isCancelled=!0,delete this.streamSinks[ft];break;default:throw new Error("Unexpected stream case")}},as=async function(gt,ft){var dt,mt,ct;await Promise.allSettled([(dt=gt.startCall)==null?void 0:dt.promise,(mt=gt.pullCall)==null?void 0:mt.promise,(ct=gt.cancelCall)==null?void 0:ct.promise]),delete this.streamControllers[ft]},_e.MessageHandler=it},($,_e,et)=>{var rt,ot;Object.defineProperty(_e,"__esModule",{value:!0}),_e.Metadata=void 0;var tt=et(1);class nt{constructor({parsedData:st,rawData:at}){Sn(this,rt);Sn(this,ot);wn(this,rt,st),wn(this,ot,at)}getRaw(){return Ct(this,ot)}get(st){return Ct(this,rt).get(st)??null}getAll(){return(0,tt.objectFromMap)(Ct(this,rt))}has(st){return Ct(this,rt).has(st)}}rt=new WeakMap,ot=new WeakMap,_e.Metadata=nt},($,_e,et)=>{var st,at,lt,ht,pt,gt,Vs;Object.defineProperty(_e,"__esModule",{value:!0}),_e.OptionalContentConfig=void 0;var tt=et(1),nt=et(8);const rt=Symbol("INTERNAL");class ot{constructor(mt,ct){Sn(this,st,!0);this.name=mt,this.intent=ct}get visible(){return Ct(this,st)}_setVisible(mt,ct){mt!==rt&&(0,tt.unreachable)("Internal method `_setVisible` called."),wn(this,st,ct)}}st=new WeakMap;class it{constructor(mt){Sn(this,gt);Sn(this,at,null);Sn(this,lt,new Map);Sn(this,ht,null);Sn(this,pt,null);if(this.name=null,this.creator=null,mt!==null){this.name=mt.name,this.creator=mt.creator,wn(this,pt,mt.order);for(const ct of mt.groups)Ct(this,lt).set(ct.id,new ot(ct.name,ct.intent));if(mt.baseState==="OFF")for(const ct of Ct(this,lt).values())ct._setVisible(rt,!1);for(const ct of mt.on)Ct(this,lt).get(ct)._setVisible(rt,!0);for(const ct of mt.off)Ct(this,lt).get(ct)._setVisible(rt,!1);wn(this,ht,this.getHash())}}isVisible(mt){if(Ct(this,lt).size===0)return!0;if(!mt)return(0,tt.warn)("Optional content group not defined."),!0;if(mt.type==="OCG")return Ct(this,lt).has(mt.id)?Ct(this,lt).get(mt.id).visible:((0,tt.warn)(`Optional content group not found: ${mt.id}`),!0);if(mt.type==="OCMD"){if(mt.expression)return mn(this,gt,Vs).call(this,mt.expression);if(!mt.policy||mt.policy==="AnyOn"){for(const ct of mt.ids){if(!Ct(this,lt).has(ct))return(0,tt.warn)(`Optional content group not found: ${ct}`),!0;if(Ct(this,lt).get(ct).visible)return!0}return!1}else if(mt.policy==="AllOn"){for(const ct of mt.ids){if(!Ct(this,lt).has(ct))return(0,tt.warn)(`Optional content group not found: ${ct}`),!0;if(!Ct(this,lt).get(ct).visible)return!1}return!0}else if(mt.policy==="AnyOff"){for(const ct of mt.ids){if(!Ct(this,lt).has(ct))return(0,tt.warn)(`Optional content group not found: ${ct}`),!0;if(!Ct(this,lt).get(ct).visible)return!0}return!1}else if(mt.policy==="AllOff"){for(const ct of mt.ids){if(!Ct(this,lt).has(ct))return(0,tt.warn)(`Optional content group not found: ${ct}`),!0;if(Ct(this,lt).get(ct).visible)return!1}return!0}return(0,tt.warn)(`Unknown optional content policy ${mt.policy}.`),!0}return(0,tt.warn)(`Unknown group type ${mt.type}.`),!0}setVisibility(mt,ct=!0){if(!Ct(this,lt).has(mt)){(0,tt.warn)(`Optional content group not found: ${mt}`);return}Ct(this,lt).get(mt)._setVisible(rt,!!ct),wn(this,at,null)}get hasInitialVisibility(){return Ct(this,ht)===null||this.getHash()===Ct(this,ht)}getOrder(){return Ct(this,lt).size?Ct(this,pt)?Ct(this,pt).slice():[...Ct(this,lt).keys()]:null}getGroups(){return Ct(this,lt).size>0?(0,tt.objectFromMap)(Ct(this,lt)):null}getGroup(mt){return Ct(this,lt).get(mt)||null}getHash(){if(Ct(this,at)!==null)return Ct(this,at);const mt=new nt.MurmurHash3_64;for(const[ct,ut]of Ct(this,lt))mt.update(`${ct}:${ut.visible}`);return wn(this,at,mt.hexdigest())}}at=new WeakMap,lt=new WeakMap,ht=new WeakMap,pt=new WeakMap,gt=new WeakSet,Vs=function(mt){const ct=mt.length;if(ct<2)return!0;const ut=mt[0];for(let vt=1;vt{Object.defineProperty(_e,"__esModule",{value:!0}),_e.PDFDataTransportStream=void 0;var tt=et(1),nt=et(6);class rt{constructor({length:at,initialData:lt,progressiveDone:ht=!1,contentDispositionFilename:pt=null,disableRange:gt=!1,disableStream:ft=!1},dt){if((0,tt.assert)(dt,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=ht,this._contentDispositionFilename=pt,(lt==null?void 0:lt.length)>0){const mt=lt instanceof Uint8Array&<.byteLength===lt.buffer.byteLength?lt.buffer:new Uint8Array(lt).buffer;this._queuedChunks.push(mt)}this._pdfDataRangeTransport=dt,this._isStreamingSupported=!ft,this._isRangeSupported=!gt,this._contentLength=at,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((mt,ct)=>{this._onReceiveData({begin:mt,chunk:ct})}),this._pdfDataRangeTransport.addProgressListener((mt,ct)=>{this._onProgress({loaded:mt,total:ct})}),this._pdfDataRangeTransport.addProgressiveReadListener(mt=>{this._onReceiveData({chunk:mt})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData({begin:at,chunk:lt}){const ht=lt instanceof Uint8Array&<.byteLength===lt.buffer.byteLength?lt.buffer:new Uint8Array(lt).buffer;if(at===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(ht):this._queuedChunks.push(ht);else{const pt=this._rangeReaders.some(function(gt){return gt._begin!==at?!1:(gt._enqueue(ht),!0)});(0,tt.assert)(pt,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var at;return((at=this._fullRequestReader)==null?void 0:at._loaded)??0}_onProgress(at){var lt,ht,pt,gt;at.total===void 0?(ht=(lt=this._rangeReaders[0])==null?void 0:lt.onProgress)==null||ht.call(lt,{loaded:at.loaded}):(gt=(pt=this._fullRequestReader)==null?void 0:pt.onProgress)==null||gt.call(pt,{loaded:at.loaded,total:at.total})}_onProgressiveDone(){var at;(at=this._fullRequestReader)==null||at.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(at){const lt=this._rangeReaders.indexOf(at);lt>=0&&this._rangeReaders.splice(lt,1)}getFullReader(){(0,tt.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const at=this._queuedChunks;return this._queuedChunks=null,new ot(this,at,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(at,lt){if(lt<=this._progressiveDataLength)return null;const ht=new it(this,at,lt);return this._pdfDataRangeTransport.requestDataRange(at,lt),this._rangeReaders.push(ht),ht}cancelAllRequests(at){var lt;(lt=this._fullRequestReader)==null||lt.cancel(at);for(const ht of this._rangeReaders.slice(0))ht.cancel(at);this._pdfDataRangeTransport.abort()}}_e.PDFDataTransportStream=rt;class ot{constructor(at,lt,ht=!1,pt=null){this._stream=at,this._done=ht||!1,this._filename=(0,nt.isPdfFile)(pt)?pt:null,this._queuedChunks=lt||[],this._loaded=0;for(const gt of this._queuedChunks)this._loaded+=gt.byteLength;this._requests=[],this._headersReady=Promise.resolve(),at._fullRequestReader=this,this.onProgress=null}_enqueue(at){this._done||(this._requests.length>0?this._requests.shift().resolve({value:at,done:!1}):this._queuedChunks.push(at),this._loaded+=at.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const at=new tt.PromiseCapability;return this._requests.push(at),at.promise}cancel(at){this._done=!0;for(const lt of this._requests)lt.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class it{constructor(at,lt,ht){this._stream=at,this._begin=lt,this._end=ht,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(at){if(!this._done){if(this._requests.length===0)this._queuedChunk=at;else{this._requests.shift().resolve({value:at,done:!1});for(const ht of this._requests)ht.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const lt=this._queuedChunk;return this._queuedChunk=null,{value:lt,done:!1}}if(this._done)return{value:void 0,done:!0};const at=new tt.PromiseCapability;return this._requests.push(at),at.promise}cancel(at){this._done=!0;for(const lt of this._requests)lt.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},($,_e,et)=>{Object.defineProperty(_e,"__esModule",{value:!0}),_e.PDFFetchStream=void 0;var tt=et(1),nt=et(20);function rt(ht,pt,gt){return{method:"GET",headers:ht,signal:gt.signal,mode:"cors",credentials:pt?"include":"same-origin",redirect:"follow"}}function ot(ht){const pt=new Headers;for(const gt in ht){const ft=ht[gt];ft!==void 0&&pt.append(gt,ft)}return pt}function it(ht){return ht instanceof Uint8Array?ht.buffer:ht instanceof ArrayBuffer?ht:((0,tt.warn)(`getArrayBuffer - unexpected data format: ${ht}`),new Uint8Array(ht).buffer)}class st{constructor(pt){this.source=pt,this.isHttp=/^https?:/i.test(pt.url),this.httpHeaders=this.isHttp&&pt.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var pt;return((pt=this._fullRequestReader)==null?void 0:pt._loaded)??0}getFullReader(){return(0,tt.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new at(this),this._fullRequestReader}getRangeReader(pt,gt){if(gt<=this._progressiveDataLength)return null;const ft=new lt(this,pt,gt);return this._rangeRequestReaders.push(ft),ft}cancelAllRequests(pt){var gt;(gt=this._fullRequestReader)==null||gt.cancel(pt);for(const ft of this._rangeRequestReaders.slice(0))ft.cancel(pt)}}_e.PDFFetchStream=st;class at{constructor(pt){this._stream=pt,this._reader=null,this._loaded=0,this._filename=null;const gt=pt.source;this._withCredentials=gt.withCredentials||!1,this._contentLength=gt.length,this._headersCapability=new tt.PromiseCapability,this._disableRange=gt.disableRange||!1,this._rangeChunkSize=gt.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!gt.disableStream,this._isRangeSupported=!gt.disableRange,this._headers=ot(this._stream.httpHeaders);const ft=gt.url;fetch(ft,rt(this._headers,this._withCredentials,this._abortController)).then(dt=>{if(!(0,nt.validateResponseStatus)(dt.status))throw(0,nt.createResponseStatusError)(dt.status,ft);this._reader=dt.body.getReader(),this._headersCapability.resolve();const mt=vt=>dt.headers.get(vt),{allowRangeRequests:ct,suggestedLength:ut}=(0,nt.validateRangeRequestCapabilities)({getResponseHeader:mt,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=ct,this._contentLength=ut||this._contentLength,this._filename=(0,nt.extractFilenameFromHeader)(mt),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new tt.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var ft;await this._headersCapability.promise;const{value:pt,done:gt}=await this._reader.read();return gt?{value:pt,done:gt}:(this._loaded+=pt.byteLength,(ft=this.onProgress)==null||ft.call(this,{loaded:this._loaded,total:this._contentLength}),{value:it(pt),done:!1})}cancel(pt){var gt;(gt=this._reader)==null||gt.cancel(pt),this._abortController.abort()}}class lt{constructor(pt,gt,ft){this._stream=pt,this._reader=null,this._loaded=0;const dt=pt.source;this._withCredentials=dt.withCredentials||!1,this._readCapability=new tt.PromiseCapability,this._isStreamingSupported=!dt.disableStream,this._abortController=new AbortController,this._headers=ot(this._stream.httpHeaders),this._headers.append("Range",`bytes=${gt}-${ft-1}`);const mt=dt.url;fetch(mt,rt(this._headers,this._withCredentials,this._abortController)).then(ct=>{if(!(0,nt.validateResponseStatus)(ct.status))throw(0,nt.createResponseStatusError)(ct.status,mt);this._readCapability.resolve(),this._reader=ct.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var ft;await this._readCapability.promise;const{value:pt,done:gt}=await this._reader.read();return gt?{value:pt,done:gt}:(this._loaded+=pt.byteLength,(ft=this.onProgress)==null||ft.call(this,{loaded:this._loaded}),{value:it(pt),done:!1})}cancel(pt){var gt;(gt=this._reader)==null||gt.cancel(pt),this._abortController.abort()}}},($,_e,et)=>{Object.defineProperty(_e,"__esModule",{value:!0}),_e.createResponseStatusError=st,_e.extractFilenameFromHeader=it,_e.validateRangeRequestCapabilities=ot,_e.validateResponseStatus=at;var tt=et(1),nt=et(21),rt=et(6);function ot({getResponseHeader:lt,isHttp:ht,rangeChunkSize:pt,disableRange:gt}){const ft={allowRangeRequests:!1,suggestedLength:void 0},dt=parseInt(lt("Content-Length"),10);return!Number.isInteger(dt)||(ft.suggestedLength=dt,dt<=2*pt)||gt||!ht||lt("Accept-Ranges")!=="bytes"||(lt("Content-Encoding")||"identity")!=="identity"||(ft.allowRangeRequests=!0),ft}function it(lt){const ht=lt("Content-Disposition");if(ht){let pt=(0,nt.getFilenameFromContentDispositionHeader)(ht);if(pt.includes("%"))try{pt=decodeURIComponent(pt)}catch{}if((0,rt.isPdfFile)(pt))return pt}return null}function st(lt,ht){return lt===404||lt===0&&ht.startsWith("file:")?new tt.MissingPDFException('Missing PDF "'+ht+'".'):new tt.UnexpectedResponseException(`Unexpected server response (${lt}) while retrieving PDF "${ht}".`,lt)}function at(lt){return lt===200||lt===206}},($,_e,et)=>{Object.defineProperty(_e,"__esModule",{value:!0}),_e.getFilenameFromContentDispositionHeader=nt;var tt=et(1);function nt(rt){let ot=!0,it=st("filename\\*","i").exec(rt);if(it){it=it[1];let dt=pt(it);return dt=unescape(dt),dt=gt(dt),dt=ft(dt),lt(dt)}if(it=ht(rt),it){const dt=ft(it);return lt(dt)}if(it=st("filename","i").exec(rt),it){it=it[1];let dt=pt(it);return dt=ft(dt),lt(dt)}function st(dt,mt){return new RegExp("(?:^|;)\\s*"+dt+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',mt)}function at(dt,mt){if(dt){if(!/^[\x00-\xFF]+$/.test(mt))return mt;try{const ct=new TextDecoder(dt,{fatal:!0}),ut=(0,tt.stringToBytes)(mt);mt=ct.decode(ut),ot=!1}catch{}}return mt}function lt(dt){return ot&&/[\x80-\xff]/.test(dt)&&(dt=at("utf-8",dt),ot&&(dt=at("iso-8859-1",dt))),dt}function ht(dt){const mt=[];let ct;const ut=st("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(ct=ut.exec(dt))!==null;){let[,bt,yt,Et]=ct;if(bt=parseInt(bt,10),bt in mt){if(bt===0)break;continue}mt[bt]=[yt,Et]}const vt=[];for(let bt=0;bt{Object.defineProperty(_e,"__esModule",{value:!0}),_e.PDFNetworkStream=void 0;var tt=et(1),nt=et(20);const rt=200,ot=206;function it(pt){const gt=pt.response;return typeof gt!="string"?gt:(0,tt.stringToBytes)(gt).buffer}class st{constructor(gt,ft={}){this.url=gt,this.isHttp=/^https?:/i.test(gt),this.httpHeaders=this.isHttp&&ft.httpHeaders||Object.create(null),this.withCredentials=ft.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(gt,ft,dt){const mt={begin:gt,end:ft};for(const ct in dt)mt[ct]=dt[ct];return this.request(mt)}requestFull(gt){return this.request(gt)}request(gt){const ft=new XMLHttpRequest,dt=this.currXhrId++,mt=this.pendingRequests[dt]={xhr:ft};ft.open("GET",this.url),ft.withCredentials=this.withCredentials;for(const ct in this.httpHeaders){const ut=this.httpHeaders[ct];ut!==void 0&&ft.setRequestHeader(ct,ut)}return this.isHttp&&"begin"in gt&&"end"in gt?(ft.setRequestHeader("Range",`bytes=${gt.begin}-${gt.end-1}`),mt.expectedStatus=ot):mt.expectedStatus=rt,ft.responseType="arraybuffer",gt.onError&&(ft.onerror=function(ct){gt.onError(ft.status)}),ft.onreadystatechange=this.onStateChange.bind(this,dt),ft.onprogress=this.onProgress.bind(this,dt),mt.onHeadersReceived=gt.onHeadersReceived,mt.onDone=gt.onDone,mt.onError=gt.onError,mt.onProgress=gt.onProgress,ft.send(null),dt}onProgress(gt,ft){var mt;const dt=this.pendingRequests[gt];dt&&((mt=dt.onProgress)==null||mt.call(dt,ft))}onStateChange(gt,ft){var bt,yt,Et;const dt=this.pendingRequests[gt];if(!dt)return;const mt=dt.xhr;if(mt.readyState>=2&&dt.onHeadersReceived&&(dt.onHeadersReceived(),delete dt.onHeadersReceived),mt.readyState!==4||!(gt in this.pendingRequests))return;if(delete this.pendingRequests[gt],mt.status===0&&this.isHttp){(bt=dt.onError)==null||bt.call(dt,mt.status);return}const ct=mt.status||rt;if(!(ct===rt&&dt.expectedStatus===ot)&&ct!==dt.expectedStatus){(yt=dt.onError)==null||yt.call(dt,mt.status);return}const vt=it(mt);if(ct===ot){const xt=mt.getResponseHeader("Content-Range"),St=/bytes (\d+)-(\d+)\/(\d+)/.exec(xt);dt.onDone({begin:parseInt(St[1],10),chunk:vt})}else vt?dt.onDone({begin:0,chunk:vt}):(Et=dt.onError)==null||Et.call(dt,mt.status)}getRequestXhr(gt){return this.pendingRequests[gt].xhr}isPendingRequest(gt){return gt in this.pendingRequests}abortRequest(gt){const ft=this.pendingRequests[gt].xhr;delete this.pendingRequests[gt],ft.abort()}}class at{constructor(gt){this._source=gt,this._manager=new st(gt.url,{httpHeaders:gt.httpHeaders,withCredentials:gt.withCredentials}),this._rangeChunkSize=gt.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(gt){const ft=this._rangeRequestReaders.indexOf(gt);ft>=0&&this._rangeRequestReaders.splice(ft,1)}getFullReader(){return(0,tt.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new lt(this._manager,this._source),this._fullRequestReader}getRangeReader(gt,ft){const dt=new ht(this._manager,gt,ft);return dt.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(dt),dt}cancelAllRequests(gt){var ft;(ft=this._fullRequestReader)==null||ft.cancel(gt);for(const dt of this._rangeRequestReaders.slice(0))dt.cancel(gt)}}_e.PDFNetworkStream=at;class lt{constructor(gt,ft){this._manager=gt;const dt={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=ft.url,this._fullRequestId=gt.requestFull(dt),this._headersReceivedCapability=new tt.PromiseCapability,this._disableRange=ft.disableRange||!1,this._contentLength=ft.length,this._rangeChunkSize=ft.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const gt=this._fullRequestId,ft=this._manager.getRequestXhr(gt),dt=ut=>ft.getResponseHeader(ut),{allowRangeRequests:mt,suggestedLength:ct}=(0,nt.validateRangeRequestCapabilities)({getResponseHeader:dt,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});mt&&(this._isRangeSupported=!0),this._contentLength=ct||this._contentLength,this._filename=(0,nt.extractFilenameFromHeader)(dt),this._isRangeSupported&&this._manager.abortRequest(gt),this._headersReceivedCapability.resolve()}_onDone(gt){if(gt&&(this._requests.length>0?this._requests.shift().resolve({value:gt.chunk,done:!1}):this._cachedChunks.push(gt.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const ft of this._requests)ft.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(gt){this._storedError=(0,nt.createResponseStatusError)(gt,this._url),this._headersReceivedCapability.reject(this._storedError);for(const ft of this._requests)ft.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(gt){var ft;(ft=this.onProgress)==null||ft.call(this,{loaded:gt.loaded,total:gt.lengthComputable?gt.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const gt=new tt.PromiseCapability;return this._requests.push(gt),gt.promise}cancel(gt){this._done=!0,this._headersReceivedCapability.reject(gt);for(const ft of this._requests)ft.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class ht{constructor(gt,ft,dt){this._manager=gt;const mt={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=gt.url,this._requestId=gt.requestRange(ft,dt,mt),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var gt;(gt=this.onClosed)==null||gt.call(this,this)}_onDone(gt){const ft=gt.chunk;this._requests.length>0?this._requests.shift().resolve({value:ft,done:!1}):this._queuedChunk=ft,this._done=!0;for(const dt of this._requests)dt.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(gt){this._storedError=(0,nt.createResponseStatusError)(gt,this._url);for(const ft of this._requests)ft.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(gt){var ft;this.isStreamingSupported||(ft=this.onProgress)==null||ft.call(this,{loaded:gt.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const ft=this._queuedChunk;return this._queuedChunk=null,{value:ft,done:!1}}if(this._done)return{value:void 0,done:!0};const gt=new tt.PromiseCapability;return this._requests.push(gt),gt.promise}cancel(gt){this._done=!0;for(const ft of this._requests)ft.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},($,_e,et)=>{Object.defineProperty(_e,"__esModule",{value:!0}),_e.PDFNodeStream=void 0;var tt=et(1),nt=et(20);const rt=/^file:\/\/\/[a-zA-Z]:\//;function ot(dt){const mt=require$$5,ct=mt.parse(dt);return ct.protocol==="file:"||ct.host?ct:/^[a-z]:[/\\]/i.test(dt)?mt.parse(`file:///${dt}`):(ct.host||(ct.protocol="file:"),ct)}class it{constructor(mt){this.source=mt,this.url=ot(mt.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&mt.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var mt;return((mt=this._fullRequestReader)==null?void 0:mt._loaded)??0}getFullReader(){return(0,tt.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new gt(this):new ht(this),this._fullRequestReader}getRangeReader(mt,ct){if(ct<=this._progressiveDataLength)return null;const ut=this.isFsUrl?new ft(this,mt,ct):new pt(this,mt,ct);return this._rangeRequestReaders.push(ut),ut}cancelAllRequests(mt){var ct;(ct=this._fullRequestReader)==null||ct.cancel(mt);for(const ut of this._rangeRequestReaders.slice(0))ut.cancel(mt)}}_e.PDFNodeStream=it;class st{constructor(mt){this._url=mt.url,this._done=!1,this._storedError=null,this.onProgress=null;const ct=mt.source;this._contentLength=ct.length,this._loaded=0,this._filename=null,this._disableRange=ct.disableRange||!1,this._rangeChunkSize=ct.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!ct.disableStream,this._isRangeSupported=!ct.disableRange,this._readableStream=null,this._readCapability=new tt.PromiseCapability,this._headersCapability=new tt.PromiseCapability}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var ut;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const mt=this._readableStream.read();return mt===null?(this._readCapability=new tt.PromiseCapability,this.read()):(this._loaded+=mt.length,(ut=this.onProgress)==null||ut.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(mt).buffer,done:!1})}cancel(mt){if(!this._readableStream){this._error(mt);return}this._readableStream.destroy(mt)}_error(mt){this._storedError=mt,this._readCapability.resolve()}_setReadableStream(mt){this._readableStream=mt,mt.on("readable",()=>{this._readCapability.resolve()}),mt.on("end",()=>{mt.destroy(),this._done=!0,this._readCapability.resolve()}),mt.on("error",ct=>{this._error(ct)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new tt.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class at{constructor(mt){this._url=mt.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new tt.PromiseCapability;const ct=mt.source;this._isStreamingSupported=!ct.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){var ut;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const mt=this._readableStream.read();return mt===null?(this._readCapability=new tt.PromiseCapability,this.read()):(this._loaded+=mt.length,(ut=this.onProgress)==null||ut.call(this,{loaded:this._loaded}),{value:new Uint8Array(mt).buffer,done:!1})}cancel(mt){if(!this._readableStream){this._error(mt);return}this._readableStream.destroy(mt)}_error(mt){this._storedError=mt,this._readCapability.resolve()}_setReadableStream(mt){this._readableStream=mt,mt.on("readable",()=>{this._readCapability.resolve()}),mt.on("end",()=>{mt.destroy(),this._done=!0,this._readCapability.resolve()}),mt.on("error",ct=>{this._error(ct)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function lt(dt,mt){return{protocol:dt.protocol,auth:dt.auth,host:dt.hostname,port:dt.port,path:dt.path,method:"GET",headers:mt}}class ht extends st{constructor(mt){super(mt);const ct=ut=>{if(ut.statusCode===404){const Et=new tt.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=Et,this._headersCapability.reject(Et);return}this._headersCapability.resolve(),this._setReadableStream(ut);const vt=Et=>this._readableStream.headers[Et.toLowerCase()],{allowRangeRequests:bt,suggestedLength:yt}=(0,nt.validateRangeRequestCapabilities)({getResponseHeader:vt,isHttp:mt.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=bt,this._contentLength=yt||this._contentLength,this._filename=(0,nt.extractFilenameFromHeader)(vt)};if(this._request=null,this._url.protocol==="http:"){const ut=require$$5;this._request=ut.request(lt(this._url,mt.httpHeaders),ct)}else{const ut=require$$5;this._request=ut.request(lt(this._url,mt.httpHeaders),ct)}this._request.on("error",ut=>{this._storedError=ut,this._headersCapability.reject(ut)}),this._request.end()}}class pt extends at{constructor(mt,ct,ut){super(mt),this._httpHeaders={};for(const bt in mt.httpHeaders){const yt=mt.httpHeaders[bt];yt!==void 0&&(this._httpHeaders[bt]=yt)}this._httpHeaders.Range=`bytes=${ct}-${ut-1}`;const vt=bt=>{if(bt.statusCode===404){const yt=new tt.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=yt;return}this._setReadableStream(bt)};if(this._request=null,this._url.protocol==="http:"){const bt=require$$5;this._request=bt.request(lt(this._url,this._httpHeaders),vt)}else{const bt=require$$5;this._request=bt.request(lt(this._url,this._httpHeaders),vt)}this._request.on("error",bt=>{this._storedError=bt}),this._request.end()}}class gt extends st{constructor(mt){super(mt);let ct=decodeURIComponent(this._url.path);rt.test(this._url.href)&&(ct=ct.replace(/^\//,""));const ut=require$$5;ut.lstat(ct,(vt,bt)=>{if(vt){vt.code==="ENOENT"&&(vt=new tt.MissingPDFException(`Missing PDF "${ct}".`)),this._storedError=vt,this._headersCapability.reject(vt);return}this._contentLength=bt.size,this._setReadableStream(ut.createReadStream(ct)),this._headersCapability.resolve()})}}class ft extends at{constructor(mt,ct,ut){super(mt);let vt=decodeURIComponent(this._url.path);rt.test(this._url.href)&&(vt=vt.replace(/^\//,""));const bt=require$$5;this._setReadableStream(bt.createReadStream(vt,{start:ct,end:ut-1}))}}},($,_e,et)=>{Object.defineProperty(_e,"__esModule",{value:!0}),_e.SVGGraphics=void 0;var tt=et(6),nt=et(1);const rt={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},ot="http://www.w3.org/XML/1998/namespace",it="http://www.w3.org/1999/xlink",st=["butt","round","square"],at=["miter","round","bevel"],lt=function(bt,yt="",Et=!1){if(URL.createObjectURL&&typeof Blob<"u"&&!Et)return URL.createObjectURL(new Blob([bt],{type:yt}));const xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let St=`data:${yt};base64,`;for(let kt=0,At=bt.length;kt>2,Bt=($t&3)<<4|Tt>>4,Kt=kt+1>6:64,Vt=kt+2>1&2147483647:Gt>>1&2147483647;Et[jt]=Gt}function xt(jt,Gt,Bt){let Kt=-1;for(let Vt=Gt;Vt>>8^It}return Kt^-1}function St(jt,Gt,Bt,Kt){let Vt=Kt;const Wt=Gt.length;Bt[Vt]=Wt>>24&255,Bt[Vt+1]=Wt>>16&255,Bt[Vt+2]=Wt>>8&255,Bt[Vt+3]=Wt&255,Vt+=4,Bt[Vt]=jt.charCodeAt(0)&255,Bt[Vt+1]=jt.charCodeAt(1)&255,Bt[Vt+2]=jt.charCodeAt(2)&255,Bt[Vt+3]=jt.charCodeAt(3)&255,Vt+=4,Bt.set(Gt,Vt),Vt+=Gt.length;const It=xt(Bt,Kt+4,Vt);Bt[Vt]=It>>24&255,Bt[Vt+1]=It>>16&255,Bt[Vt+2]=It>>8&255,Bt[Vt+3]=It&255}function kt(jt,Gt,Bt){let Kt=1,Vt=0;for(let Wt=Gt;Wt=8?jt:Buffer.from(jt),Bt=require$$5.deflateSync(Gt,{level:9});return Bt instanceof Uint8Array?Bt:new Uint8Array(Bt)}catch(Gt){(0,nt.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+Gt)}return $t(jt)}function $t(jt){let Gt=jt.length;const Bt=65535,Kt=Math.ceil(Gt/Bt),Vt=new Uint8Array(2+Gt+Kt*5+4);let Wt=0;Vt[Wt++]=120,Vt[Wt++]=156;let It=0;for(;Gt>Bt;)Vt[Wt++]=0,Vt[Wt++]=255,Vt[Wt++]=255,Vt[Wt++]=0,Vt[Wt++]=0,Vt.set(jt.subarray(It,It+Bt),Wt),Wt+=Bt,It+=Bt,Gt-=Bt;Vt[Wt++]=1,Vt[Wt++]=Gt&255,Vt[Wt++]=Gt>>8&255,Vt[Wt++]=~Gt&65535&255,Vt[Wt++]=(~Gt&65535)>>8&255,Vt.set(jt.subarray(It),Wt),Wt+=jt.length-It;const Ft=kt(jt,0,jt.length);return Vt[Wt++]=Ft>>24&255,Vt[Wt++]=Ft>>16&255,Vt[Wt++]=Ft>>8&255,Vt[Wt++]=Ft&255,Vt}function Tt(jt,Gt,Bt,Kt){const Vt=jt.width,Wt=jt.height;let It,Ft,Yt;const Dt=jt.data;switch(Gt){case nt.ImageKind.GRAYSCALE_1BPP:Ft=0,It=1,Yt=Vt+7>>3;break;case nt.ImageKind.RGB_24BPP:Ft=2,It=8,Yt=Vt*3;break;case nt.ImageKind.RGBA_32BPP:Ft=6,It=8,Yt=Vt*4;break;default:throw new Error("invalid format")}const Rt=new Uint8Array((1+Yt)*Wt);let wt=0,Mt=0;for(let gn=0;gn>24&255,Vt>>16&255,Vt>>8&255,Vt&255,Wt>>24&255,Wt>>16&255,Wt>>8&255,Wt&255,It,Ft,0,0,0]),zt=At(Rt),Ht=bt.length+yt*3+Ot.length+zt.length,Jt=new Uint8Array(Ht);let pn=0;return Jt.set(bt,pn),pn+=bt.length,St("IHDR",Ot,Jt,pn),pn+=yt+Ot.length,St("IDATA",zt,Jt,pn),pn+=yt+zt.length,St("IEND",new Uint8Array(0),Jt,pn),lt(Jt,"image/png",Bt)}return function(Gt,Bt,Kt){const Vt=Gt.kind===void 0?nt.ImageKind.GRAYSCALE_1BPP:Gt.kind;return Tt(Gt,Vt,Bt,Kt)}}();class pt{constructor(){this.fontSizeScale=1,this.fontWeight=rt.fontWeight,this.fontSize=0,this.textMatrix=nt.IDENTITY_MATRIX,this.fontMatrix=nt.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=nt.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=rt.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(yt,Et){this.x=yt,this.y=Et}}function gt(bt){let yt=[];const Et=[];for(const xt of bt){if(xt.fn==="save"){yt.push({fnId:92,fn:"group",items:[]}),Et.push(yt),yt=yt.at(-1).items;continue}xt.fn==="restore"?yt=Et.pop():yt.push(xt)}return yt}function ft(bt){if(Number.isInteger(bt))return bt.toString();const yt=bt.toFixed(10);let Et=yt.length-1;if(yt[Et]!=="0")return yt;do Et--;while(yt[Et]==="0");return yt.substring(0,yt[Et]==="."?Et:Et+1)}function dt(bt){if(bt[4]===0&&bt[5]===0){if(bt[1]===0&&bt[2]===0)return bt[0]===1&&bt[3]===1?"":`scale(${ft(bt[0])} ${ft(bt[3])})`;if(bt[0]===bt[3]&&bt[1]===-bt[2]){const yt=Math.acos(bt[0])*180/Math.PI;return`rotate(${ft(yt)})`}}else if(bt[0]===1&&bt[1]===0&&bt[2]===0&&bt[3]===1)return`translate(${ft(bt[4])} ${ft(bt[5])})`;return`matrix(${ft(bt[0])} ${ft(bt[1])} ${ft(bt[2])} ${ft(bt[3])} ${ft(bt[4])} ${ft(bt[5])})`}let mt=0,ct=0,ut=0;class vt{constructor(yt,Et,xt=!1){(0,tt.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new tt.DOMSVGFactory,this.current=new pt,this.transformMatrix=nt.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=yt,this.objs=Et,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!xt,this._operatorIdMapping=[];for(const St in nt.OPS)this._operatorIdMapping[nt.OPS[St]]=St}getObject(yt,Et=null){return typeof yt=="string"?yt.startsWith("g_")?this.commonObjs.get(yt):this.objs.get(yt):Et}save(){this.transformStack.push(this.transformMatrix);const yt=this.current;this.extraStack.push(yt),this.current=yt.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(yt){this.save(),this.executeOpTree(yt),this.restore()}loadDependencies(yt){const Et=yt.fnArray,xt=yt.argsArray;for(let St=0,kt=Et.length;St{$t.get(At,jt)});this.current.dependencies.push(Tt)}return Promise.all(this.current.dependencies)}transform(yt,Et,xt,St,kt,At){const $t=[yt,Et,xt,St,kt,At];this.transformMatrix=nt.Util.transform(this.transformMatrix,$t),this.tgrp=null}getSVG(yt,Et){this.viewport=Et;const xt=this._initialize(Et);return this.loadDependencies(yt).then(()=>(this.transformMatrix=nt.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(yt)),xt))}convertOpList(yt){const Et=this._operatorIdMapping,xt=yt.argsArray,St=yt.fnArray,kt=[];for(let At=0,$t=St.length;At<$t;At++){const Tt=St[At];kt.push({fnId:Tt,fn:Et[Tt],args:xt[At]})}return gt(kt)}executeOpTree(yt){for(const Et of yt){const xt=Et.fn,St=Et.fnId,kt=Et.args;switch(St|0){case nt.OPS.beginText:this.beginText();break;case nt.OPS.dependency:break;case nt.OPS.setLeading:this.setLeading(kt);break;case nt.OPS.setLeadingMoveText:this.setLeadingMoveText(kt[0],kt[1]);break;case nt.OPS.setFont:this.setFont(kt);break;case nt.OPS.showText:this.showText(kt[0]);break;case nt.OPS.showSpacedText:this.showText(kt[0]);break;case nt.OPS.endText:this.endText();break;case nt.OPS.moveText:this.moveText(kt[0],kt[1]);break;case nt.OPS.setCharSpacing:this.setCharSpacing(kt[0]);break;case nt.OPS.setWordSpacing:this.setWordSpacing(kt[0]);break;case nt.OPS.setHScale:this.setHScale(kt[0]);break;case nt.OPS.setTextMatrix:this.setTextMatrix(kt[0],kt[1],kt[2],kt[3],kt[4],kt[5]);break;case nt.OPS.setTextRise:this.setTextRise(kt[0]);break;case nt.OPS.setTextRenderingMode:this.setTextRenderingMode(kt[0]);break;case nt.OPS.setLineWidth:this.setLineWidth(kt[0]);break;case nt.OPS.setLineJoin:this.setLineJoin(kt[0]);break;case nt.OPS.setLineCap:this.setLineCap(kt[0]);break;case nt.OPS.setMiterLimit:this.setMiterLimit(kt[0]);break;case nt.OPS.setFillRGBColor:this.setFillRGBColor(kt[0],kt[1],kt[2]);break;case nt.OPS.setStrokeRGBColor:this.setStrokeRGBColor(kt[0],kt[1],kt[2]);break;case nt.OPS.setStrokeColorN:this.setStrokeColorN(kt);break;case nt.OPS.setFillColorN:this.setFillColorN(kt);break;case nt.OPS.shadingFill:this.shadingFill(kt[0]);break;case nt.OPS.setDash:this.setDash(kt[0],kt[1]);break;case nt.OPS.setRenderingIntent:this.setRenderingIntent(kt[0]);break;case nt.OPS.setFlatness:this.setFlatness(kt[0]);break;case nt.OPS.setGState:this.setGState(kt[0]);break;case nt.OPS.fill:this.fill();break;case nt.OPS.eoFill:this.eoFill();break;case nt.OPS.stroke:this.stroke();break;case nt.OPS.fillStroke:this.fillStroke();break;case nt.OPS.eoFillStroke:this.eoFillStroke();break;case nt.OPS.clip:this.clip("nonzero");break;case nt.OPS.eoClip:this.clip("evenodd");break;case nt.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case nt.OPS.paintImageXObject:this.paintImageXObject(kt[0]);break;case nt.OPS.paintInlineImageXObject:this.paintInlineImageXObject(kt[0]);break;case nt.OPS.paintImageMaskXObject:this.paintImageMaskXObject(kt[0]);break;case nt.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(kt[0],kt[1]);break;case nt.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case nt.OPS.closePath:this.closePath();break;case nt.OPS.closeStroke:this.closeStroke();break;case nt.OPS.closeFillStroke:this.closeFillStroke();break;case nt.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case nt.OPS.nextLine:this.nextLine();break;case nt.OPS.transform:this.transform(kt[0],kt[1],kt[2],kt[3],kt[4],kt[5]);break;case nt.OPS.constructPath:this.constructPath(kt[0],kt[1]);break;case nt.OPS.endPath:this.endPath();break;case 92:this.group(Et.items);break;default:(0,nt.warn)(`Unimplemented operator ${xt}`);break}}}setWordSpacing(yt){this.current.wordSpacing=yt}setCharSpacing(yt){this.current.charSpacing=yt}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(yt,Et,xt,St,kt,At){const $t=this.current;$t.textMatrix=$t.lineMatrix=[yt,Et,xt,St,kt,At],$t.textMatrixScale=Math.hypot(yt,Et),$t.x=$t.lineX=0,$t.y=$t.lineY=0,$t.xcoords=[],$t.ycoords=[],$t.tspan=this.svgFactory.createElement("svg:tspan"),$t.tspan.setAttributeNS(null,"font-family",$t.fontFamily),$t.tspan.setAttributeNS(null,"font-size",`${ft($t.fontSize)}px`),$t.tspan.setAttributeNS(null,"y",ft(-$t.y)),$t.txtElement=this.svgFactory.createElement("svg:text"),$t.txtElement.append($t.tspan)}beginText(){const yt=this.current;yt.x=yt.lineX=0,yt.y=yt.lineY=0,yt.textMatrix=nt.IDENTITY_MATRIX,yt.lineMatrix=nt.IDENTITY_MATRIX,yt.textMatrixScale=1,yt.tspan=this.svgFactory.createElement("svg:tspan"),yt.txtElement=this.svgFactory.createElement("svg:text"),yt.txtgrp=this.svgFactory.createElement("svg:g"),yt.xcoords=[],yt.ycoords=[]}moveText(yt,Et){const xt=this.current;xt.x=xt.lineX+=yt,xt.y=xt.lineY+=Et,xt.xcoords=[],xt.ycoords=[],xt.tspan=this.svgFactory.createElement("svg:tspan"),xt.tspan.setAttributeNS(null,"font-family",xt.fontFamily),xt.tspan.setAttributeNS(null,"font-size",`${ft(xt.fontSize)}px`),xt.tspan.setAttributeNS(null,"y",ft(-xt.y))}showText(yt){const Et=this.current,xt=Et.font,St=Et.fontSize;if(St===0)return;const kt=Et.fontSizeScale,At=Et.charSpacing,$t=Et.wordSpacing,Tt=Et.fontDirection,jt=Et.textHScale*Tt,Gt=xt.vertical,Bt=Gt?1:-1,Kt=xt.defaultVMetrics,Vt=St*Et.fontMatrix[0];let Wt=0;for(const Yt of yt){if(Yt===null){Wt+=Tt*$t;continue}else if(typeof Yt=="number"){Wt+=Bt*Yt*St/1e3;continue}const Dt=(Yt.isSpace?$t:0)+At,Rt=Yt.fontChar;let wt,Mt,Ot=Yt.width;if(Gt){let Ht;const Jt=Yt.vmetric||Kt;Ht=Yt.vmetric?Jt[1]:Ot*.5,Ht=-Ht*Vt;const pn=Jt[2]*Vt;Ot=Jt?-Jt[0]:Ot,wt=Ht/kt,Mt=(Wt+pn)/kt}else wt=Wt/kt,Mt=0;(Yt.isInFont||xt.missingFile)&&(Et.xcoords.push(Et.x+wt),Gt&&Et.ycoords.push(-Et.y+Mt),Et.tspan.textContent+=Rt);const zt=Gt?Ot*Vt-Dt*Tt:Ot*Vt+Dt*Tt;Wt+=zt}Et.tspan.setAttributeNS(null,"x",Et.xcoords.map(ft).join(" ")),Gt?Et.tspan.setAttributeNS(null,"y",Et.ycoords.map(ft).join(" ")):Et.tspan.setAttributeNS(null,"y",ft(-Et.y)),Gt?Et.y-=Wt:Et.x+=Wt*jt,Et.tspan.setAttributeNS(null,"font-family",Et.fontFamily),Et.tspan.setAttributeNS(null,"font-size",`${ft(Et.fontSize)}px`),Et.fontStyle!==rt.fontStyle&&Et.tspan.setAttributeNS(null,"font-style",Et.fontStyle),Et.fontWeight!==rt.fontWeight&&Et.tspan.setAttributeNS(null,"font-weight",Et.fontWeight);const It=Et.textRenderingMode&nt.TextRenderingMode.FILL_STROKE_MASK;if(It===nt.TextRenderingMode.FILL||It===nt.TextRenderingMode.FILL_STROKE?(Et.fillColor!==rt.fillColor&&Et.tspan.setAttributeNS(null,"fill",Et.fillColor),Et.fillAlpha<1&&Et.tspan.setAttributeNS(null,"fill-opacity",Et.fillAlpha)):Et.textRenderingMode===nt.TextRenderingMode.ADD_TO_PATH?Et.tspan.setAttributeNS(null,"fill","transparent"):Et.tspan.setAttributeNS(null,"fill","none"),It===nt.TextRenderingMode.STROKE||It===nt.TextRenderingMode.FILL_STROKE){const Yt=1/(Et.textMatrixScale||1);this._setStrokeAttributes(Et.tspan,Yt)}let Ft=Et.textMatrix;Et.textRise!==0&&(Ft=Ft.slice(),Ft[5]+=Et.textRise),Et.txtElement.setAttributeNS(null,"transform",`${dt(Ft)} scale(${ft(jt)}, -1)`),Et.txtElement.setAttributeNS(ot,"xml:space","preserve"),Et.txtElement.append(Et.tspan),Et.txtgrp.append(Et.txtElement),this._ensureTransformGroup().append(Et.txtElement)}setLeadingMoveText(yt,Et){this.setLeading(-Et),this.moveText(yt,Et)}addFontStyle(yt){if(!yt.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));const Et=lt(yt.data,yt.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${yt.loadedName}"; src: url(${Et}); } +`}setFont(yt){const Et=this.current,xt=this.commonObjs.get(yt[0]);let St=yt[1];Et.font=xt,this.embedFonts&&!xt.missingFile&&!this.embeddedFonts[xt.loadedName]&&(this.addFontStyle(xt),this.embeddedFonts[xt.loadedName]=xt),Et.fontMatrix=xt.fontMatrix||nt.FONT_IDENTITY_MATRIX;let kt="normal";xt.black?kt="900":xt.bold&&(kt="bold");const At=xt.italic?"italic":"normal";St<0?(St=-St,Et.fontDirection=-1):Et.fontDirection=1,Et.fontSize=St,Et.fontFamily=xt.loadedName,Et.fontWeight=kt,Et.fontStyle=At,Et.tspan=this.svgFactory.createElement("svg:tspan"),Et.tspan.setAttributeNS(null,"y",ft(-Et.y)),Et.xcoords=[],Et.ycoords=[]}endText(){var Et;const yt=this.current;yt.textRenderingMode&nt.TextRenderingMode.ADD_TO_PATH_FLAG&&((Et=yt.txtElement)!=null&&Et.hasChildNodes())&&(yt.element=yt.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(yt){yt>0&&(this.current.lineWidth=yt)}setLineCap(yt){this.current.lineCap=st[yt]}setLineJoin(yt){this.current.lineJoin=at[yt]}setMiterLimit(yt){this.current.miterLimit=yt}setStrokeAlpha(yt){this.current.strokeAlpha=yt}setStrokeRGBColor(yt,Et,xt){this.current.strokeColor=nt.Util.makeHexColor(yt,Et,xt)}setFillAlpha(yt){this.current.fillAlpha=yt}setFillRGBColor(yt,Et,xt){this.current.fillColor=nt.Util.makeHexColor(yt,Et,xt),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(yt){this.current.strokeColor=this._makeColorN_Pattern(yt)}setFillColorN(yt){this.current.fillColor=this._makeColorN_Pattern(yt)}shadingFill(yt){const{width:Et,height:xt}=this.viewport,St=nt.Util.inverseTransform(this.transformMatrix),[kt,At,$t,Tt]=nt.Util.getAxialAlignedBoundingBox([0,0,Et,xt],St),jt=this.svgFactory.createElement("svg:rect");jt.setAttributeNS(null,"x",kt),jt.setAttributeNS(null,"y",At),jt.setAttributeNS(null,"width",$t-kt),jt.setAttributeNS(null,"height",Tt-At),jt.setAttributeNS(null,"fill",this._makeShadingPattern(yt)),this.current.fillAlpha<1&&jt.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(jt)}_makeColorN_Pattern(yt){return yt[0]==="TilingPattern"?this._makeTilingPattern(yt):this._makeShadingPattern(yt)}_makeTilingPattern(yt){const Et=yt[1],xt=yt[2],St=yt[3]||nt.IDENTITY_MATRIX,[kt,At,$t,Tt]=yt[4],jt=yt[5],Gt=yt[6],Bt=yt[7],Kt=`shading${ut++}`,[Vt,Wt,It,Ft]=nt.Util.normalizeRect([...nt.Util.applyTransform([kt,At],St),...nt.Util.applyTransform([$t,Tt],St)]),[Yt,Dt]=nt.Util.singularValueDecompose2dScale(St),Rt=jt*Yt,wt=Gt*Dt,Mt=this.svgFactory.createElement("svg:pattern");Mt.setAttributeNS(null,"id",Kt),Mt.setAttributeNS(null,"patternUnits","userSpaceOnUse"),Mt.setAttributeNS(null,"width",Rt),Mt.setAttributeNS(null,"height",wt),Mt.setAttributeNS(null,"x",`${Vt}`),Mt.setAttributeNS(null,"y",`${Wt}`);const Ot=this.svg,zt=this.transformMatrix,Ht=this.current.fillColor,Jt=this.current.strokeColor,pn=this.svgFactory.create(It-Vt,Ft-Wt);if(this.svg=pn,this.transformMatrix=St,Bt===2){const gn=nt.Util.makeHexColor(...Et);this.current.fillColor=gn,this.current.strokeColor=gn}return this.executeOpTree(this.convertOpList(xt)),this.svg=Ot,this.transformMatrix=zt,this.current.fillColor=Ht,this.current.strokeColor=Jt,Mt.append(pn.childNodes[0]),this.defs.append(Mt),`url(#${Kt})`}_makeShadingPattern(yt){switch(typeof yt=="string"&&(yt=this.objs.get(yt)),yt[0]){case"RadialAxial":const Et=`shading${ut++}`,xt=yt[3];let St;switch(yt[1]){case"axial":const kt=yt[4],At=yt[5];St=this.svgFactory.createElement("svg:linearGradient"),St.setAttributeNS(null,"id",Et),St.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),St.setAttributeNS(null,"x1",kt[0]),St.setAttributeNS(null,"y1",kt[1]),St.setAttributeNS(null,"x2",At[0]),St.setAttributeNS(null,"y2",At[1]);break;case"radial":const $t=yt[4],Tt=yt[5],jt=yt[6],Gt=yt[7];St=this.svgFactory.createElement("svg:radialGradient"),St.setAttributeNS(null,"id",Et),St.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),St.setAttributeNS(null,"cx",Tt[0]),St.setAttributeNS(null,"cy",Tt[1]),St.setAttributeNS(null,"r",Gt),St.setAttributeNS(null,"fx",$t[0]),St.setAttributeNS(null,"fy",$t[1]),St.setAttributeNS(null,"fr",jt);break;default:throw new Error(`Unknown RadialAxial type: ${yt[1]}`)}for(const kt of xt){const At=this.svgFactory.createElement("svg:stop");At.setAttributeNS(null,"offset",kt[0]),At.setAttributeNS(null,"stop-color",kt[1]),St.append(At)}return this.defs.append(St),`url(#${Et})`;case"Mesh":return(0,nt.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${yt[0]}`)}}setDash(yt,Et){this.current.dashArray=yt,this.current.dashPhase=Et}constructPath(yt,Et){const xt=this.current;let St=xt.x,kt=xt.y,At=[],$t=0;for(const Tt of yt)switch(Tt|0){case nt.OPS.rectangle:St=Et[$t++],kt=Et[$t++];const jt=Et[$t++],Gt=Et[$t++],Bt=St+jt,Kt=kt+Gt;At.push("M",ft(St),ft(kt),"L",ft(Bt),ft(kt),"L",ft(Bt),ft(Kt),"L",ft(St),ft(Kt),"Z");break;case nt.OPS.moveTo:St=Et[$t++],kt=Et[$t++],At.push("M",ft(St),ft(kt));break;case nt.OPS.lineTo:St=Et[$t++],kt=Et[$t++],At.push("L",ft(St),ft(kt));break;case nt.OPS.curveTo:St=Et[$t+4],kt=Et[$t+5],At.push("C",ft(Et[$t]),ft(Et[$t+1]),ft(Et[$t+2]),ft(Et[$t+3]),ft(St),ft(kt)),$t+=6;break;case nt.OPS.curveTo2:At.push("C",ft(St),ft(kt),ft(Et[$t]),ft(Et[$t+1]),ft(Et[$t+2]),ft(Et[$t+3])),St=Et[$t+2],kt=Et[$t+3],$t+=4;break;case nt.OPS.curveTo3:St=Et[$t+2],kt=Et[$t+3],At.push("C",ft(Et[$t]),ft(Et[$t+1]),ft(St),ft(kt),ft(St),ft(kt)),$t+=4;break;case nt.OPS.closePath:At.push("Z");break}At=At.join(" "),xt.path&&yt.length>0&&yt[0]!==nt.OPS.rectangle&&yt[0]!==nt.OPS.moveTo?At=xt.path.getAttributeNS(null,"d")+At:(xt.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(xt.path)),xt.path.setAttributeNS(null,"d",At),xt.path.setAttributeNS(null,"fill","none"),xt.element=xt.path,xt.setCurrentPoint(St,kt)}endPath(){const yt=this.current;if(yt.path=null,!this.pendingClip)return;if(!yt.element){this.pendingClip=null;return}const Et=`clippath${mt++}`,xt=this.svgFactory.createElement("svg:clipPath");xt.setAttributeNS(null,"id",Et),xt.setAttributeNS(null,"transform",dt(this.transformMatrix));const St=yt.element.cloneNode(!0);if(this.pendingClip==="evenodd"?St.setAttributeNS(null,"clip-rule","evenodd"):St.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,xt.append(St),this.defs.append(xt),yt.activeClipUrl){yt.clipGroup=null;for(const kt of this.extraStack)kt.clipGroup=null;xt.setAttributeNS(null,"clip-path",yt.activeClipUrl)}yt.activeClipUrl=`url(#${Et})`,this.tgrp=null}clip(yt){this.pendingClip=yt}closePath(){const yt=this.current;if(yt.path){const Et=`${yt.path.getAttributeNS(null,"d")}Z`;yt.path.setAttributeNS(null,"d",Et)}}setLeading(yt){this.current.leading=-yt}setTextRise(yt){this.current.textRise=yt}setTextRenderingMode(yt){this.current.textRenderingMode=yt}setHScale(yt){this.current.textHScale=yt/100}setRenderingIntent(yt){}setFlatness(yt){}setGState(yt){for(const[Et,xt]of yt)switch(Et){case"LW":this.setLineWidth(xt);break;case"LC":this.setLineCap(xt);break;case"LJ":this.setLineJoin(xt);break;case"ML":this.setMiterLimit(xt);break;case"D":this.setDash(xt[0],xt[1]);break;case"RI":this.setRenderingIntent(xt);break;case"FL":this.setFlatness(xt);break;case"Font":this.setFont(xt);break;case"CA":this.setStrokeAlpha(xt);break;case"ca":this.setFillAlpha(xt);break;default:(0,nt.warn)(`Unimplemented graphic state operator ${Et}`);break}}fill(){const yt=this.current;yt.element&&(yt.element.setAttributeNS(null,"fill",yt.fillColor),yt.element.setAttributeNS(null,"fill-opacity",yt.fillAlpha),this.endPath())}stroke(){const yt=this.current;yt.element&&(this._setStrokeAttributes(yt.element),yt.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(yt,Et=1){const xt=this.current;let St=xt.dashArray;Et!==1&&St.length>0&&(St=St.map(function(kt){return Et*kt})),yt.setAttributeNS(null,"stroke",xt.strokeColor),yt.setAttributeNS(null,"stroke-opacity",xt.strokeAlpha),yt.setAttributeNS(null,"stroke-miterlimit",ft(xt.miterLimit)),yt.setAttributeNS(null,"stroke-linecap",xt.lineCap),yt.setAttributeNS(null,"stroke-linejoin",xt.lineJoin),yt.setAttributeNS(null,"stroke-width",ft(Et*xt.lineWidth)+"px"),yt.setAttributeNS(null,"stroke-dasharray",St.map(ft).join(" ")),yt.setAttributeNS(null,"stroke-dashoffset",ft(Et*xt.dashPhase)+"px")}eoFill(){var yt;(yt=this.current.element)==null||yt.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var yt;(yt=this.current.element)==null||yt.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const yt=this.svgFactory.createElement("svg:rect");yt.setAttributeNS(null,"x","0"),yt.setAttributeNS(null,"y","0"),yt.setAttributeNS(null,"width","1px"),yt.setAttributeNS(null,"height","1px"),yt.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(yt)}paintImageXObject(yt){const Et=this.getObject(yt);if(!Et){(0,nt.warn)(`Dependent image with object ID ${yt} is not ready yet`);return}this.paintInlineImageXObject(Et)}paintInlineImageXObject(yt,Et){const xt=yt.width,St=yt.height,kt=ht(yt,this.forceDataSchema,!!Et),At=this.svgFactory.createElement("svg:rect");At.setAttributeNS(null,"x","0"),At.setAttributeNS(null,"y","0"),At.setAttributeNS(null,"width",ft(xt)),At.setAttributeNS(null,"height",ft(St)),this.current.element=At,this.clip("nonzero");const $t=this.svgFactory.createElement("svg:image");$t.setAttributeNS(it,"xlink:href",kt),$t.setAttributeNS(null,"x","0"),$t.setAttributeNS(null,"y",ft(-St)),$t.setAttributeNS(null,"width",ft(xt)+"px"),$t.setAttributeNS(null,"height",ft(St)+"px"),$t.setAttributeNS(null,"transform",`scale(${ft(1/xt)} ${ft(-1/St)})`),Et?Et.append($t):this._ensureTransformGroup().append($t)}paintImageMaskXObject(yt){const Et=this.getObject(yt.data,yt);if(Et.bitmap){(0,nt.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");return}const xt=this.current,St=Et.width,kt=Et.height,At=xt.fillColor;xt.maskId=`mask${ct++}`;const $t=this.svgFactory.createElement("svg:mask");$t.setAttributeNS(null,"id",xt.maskId);const Tt=this.svgFactory.createElement("svg:rect");Tt.setAttributeNS(null,"x","0"),Tt.setAttributeNS(null,"y","0"),Tt.setAttributeNS(null,"width",ft(St)),Tt.setAttributeNS(null,"height",ft(kt)),Tt.setAttributeNS(null,"fill",At),Tt.setAttributeNS(null,"mask",`url(#${xt.maskId})`),this.defs.append($t),this._ensureTransformGroup().append(Tt),this.paintInlineImageXObject(Et,$t)}paintFormXObjectBegin(yt,Et){if(Array.isArray(yt)&&yt.length===6&&this.transform(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5]),Et){const xt=Et[2]-Et[0],St=Et[3]-Et[1],kt=this.svgFactory.createElement("svg:rect");kt.setAttributeNS(null,"x",Et[0]),kt.setAttributeNS(null,"y",Et[1]),kt.setAttributeNS(null,"width",ft(xt)),kt.setAttributeNS(null,"height",ft(St)),this.current.element=kt,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(yt){const Et=this.svgFactory.create(yt.width,yt.height),xt=this.svgFactory.createElement("svg:defs");Et.append(xt),this.defs=xt;const St=this.svgFactory.createElement("svg:g");return St.setAttributeNS(null,"transform",dt(yt.transform)),Et.append(St),this.svg=St,Et}_ensureClipGroup(){if(!this.current.clipGroup){const yt=this.svgFactory.createElement("svg:g");yt.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(yt),this.current.clipGroup=yt}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",dt(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}_e.SVGGraphics=vt},($,_e)=>{Object.defineProperty(_e,"__esModule",{value:!0}),_e.XfaText=void 0;class et{static textContent(nt){const rt=[],ot={items:rt,styles:Object.create(null)};function it(st){var ht;if(!st)return;let at=null;const lt=st.name;if(lt==="#text")at=st.value;else if(et.shouldBuildText(lt))(ht=st==null?void 0:st.attributes)!=null&&ht.textContent?at=st.attributes.textContent:st.value&&(at=st.value);else return;if(at!==null&&rt.push({str:at}),!!st.children)for(const pt of st.children)it(pt)}return it(nt),ot}static shouldBuildText(nt){return!(nt==="textarea"||nt==="input"||nt==="option"||nt==="select")}}_e.XfaText=et},($,_e,et)=>{Object.defineProperty(_e,"__esModule",{value:!0}),_e.TextLayerRenderTask=void 0,_e.renderTextLayer=dt,_e.updateTextLayer=mt;var tt=et(1),nt=et(6);const rt=1e5,ot=30,it=.8,st=new Map;function at(ct,ut){let vt;if(ut&&tt.FeatureTest.isOffscreenCanvasSupported)vt=new OffscreenCanvas(ct,ct).getContext("2d",{alpha:!1});else{const bt=document.createElement("canvas");bt.width=bt.height=ct,vt=bt.getContext("2d",{alpha:!1})}return vt}function lt(ct,ut){const vt=st.get(ct);if(vt)return vt;const bt=at(ot,ut);bt.font=`${ot}px ${ct}`;const yt=bt.measureText("");let Et=yt.fontBoundingBoxAscent,xt=Math.abs(yt.fontBoundingBoxDescent);if(Et){const kt=Et/(Et+xt);return st.set(ct,kt),bt.canvas.width=bt.canvas.height=0,kt}bt.strokeStyle="red",bt.clearRect(0,0,ot,ot),bt.strokeText("g",0,0);let St=bt.getImageData(0,0,ot,ot).data;xt=0;for(let kt=St.length-1-3;kt>=0;kt-=4)if(St[kt]>0){xt=Math.ceil(kt/4/ot);break}bt.clearRect(0,0,ot,ot),bt.strokeText("A",0,ot),St=bt.getImageData(0,0,ot,ot).data,Et=0;for(let kt=0,At=St.length;kt0){Et=ot-Math.floor(kt/4/ot);break}if(bt.canvas.width=bt.canvas.height=0,Et){const kt=Et/(Et+xt);return st.set(ct,kt),kt}return st.set(ct,it),it}function ht(ct,ut,vt){const bt=document.createElement("span"),yt={angle:0,canvasWidth:0,hasText:ut.str!=="",hasEOL:ut.hasEOL,fontSize:0};ct._textDivs.push(bt);const Et=tt.Util.transform(ct._transform,ut.transform);let xt=Math.atan2(Et[1],Et[0]);const St=vt[ut.fontName];St.vertical&&(xt+=Math.PI/2);const kt=Math.hypot(Et[2],Et[3]),At=kt*lt(St.fontFamily,ct._isOffscreenCanvasSupported);let $t,Tt;xt===0?($t=Et[4],Tt=Et[5]-At):($t=Et[4]+At*Math.sin(xt),Tt=Et[5]-At*Math.cos(xt));const jt="calc(var(--scale-factor)*",Gt=bt.style;ct._container===ct._rootContainer?(Gt.left=`${(100*$t/ct._pageWidth).toFixed(2)}%`,Gt.top=`${(100*Tt/ct._pageHeight).toFixed(2)}%`):(Gt.left=`${jt}${$t.toFixed(2)}px)`,Gt.top=`${jt}${Tt.toFixed(2)}px)`),Gt.fontSize=`${jt}${kt.toFixed(2)}px)`,Gt.fontFamily=St.fontFamily,yt.fontSize=kt,bt.setAttribute("role","presentation"),bt.textContent=ut.str,bt.dir=ut.dir,ct._fontInspectorEnabled&&(bt.dataset.fontName=ut.fontName),xt!==0&&(yt.angle=xt*(180/Math.PI));let Bt=!1;if(ut.str.length>1)Bt=!0;else if(ut.str!==" "&&ut.transform[0]!==ut.transform[3]){const Kt=Math.abs(ut.transform[0]),Vt=Math.abs(ut.transform[3]);Kt!==Vt&&Math.max(Kt,Vt)/Math.min(Kt,Vt)>1.5&&(Bt=!0)}Bt&&(yt.canvasWidth=St.vertical?ut.height:ut.width),ct._textDivProperties.set(bt,yt),ct._isReadableStream&&ct._layoutText(bt)}function pt(ct){const{div:ut,scale:vt,properties:bt,ctx:yt,prevFontSize:Et,prevFontFamily:xt}=ct,{style:St}=ut;let kt="";if(bt.canvasWidth!==0&&bt.hasText){const{fontFamily:At}=St,{canvasWidth:$t,fontSize:Tt}=bt;(Et!==Tt||xt!==At)&&(yt.font=`${Tt*vt}px ${At}`,ct.prevFontSize=Tt,ct.prevFontFamily=At);const{width:jt}=yt.measureText(ut.textContent);jt>0&&(kt=`scaleX(${$t*vt/jt})`)}bt.angle!==0&&(kt=`rotate(${bt.angle}deg) ${kt}`),kt.length>0&&(St.transform=kt)}function gt(ct){if(ct._canceled)return;const ut=ct._textDivs,vt=ct._capability;if(ut.length>rt){vt.resolve();return}if(!ct._isReadableStream)for(const yt of ut)ct._layoutText(yt);vt.resolve()}class ft{constructor({textContentSource:ut,container:vt,viewport:bt,textDivs:yt,textDivProperties:Et,textContentItemsStr:xt,isOffscreenCanvasSupported:St}){var jt;this._textContentSource=ut,this._isReadableStream=ut instanceof ReadableStream,this._container=this._rootContainer=vt,this._textDivs=yt||[],this._textContentItemsStr=xt||[],this._isOffscreenCanvasSupported=St,this._fontInspectorEnabled=!!((jt=globalThis.FontInspector)!=null&&jt.enabled),this._reader=null,this._textDivProperties=Et||new WeakMap,this._canceled=!1,this._capability=new tt.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:bt.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:at(0,St)};const{pageWidth:kt,pageHeight:At,pageX:$t,pageY:Tt}=bt.rawDims;this._transform=[1,0,0,-1,-$t,Tt+At],this._pageWidth=kt,this._pageHeight=At,(0,nt.setLayerDimensions)(vt,bt),this._capability.promise.finally(()=>{this._layoutTextParams=null}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new tt.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),this._capability.reject(new tt.AbortException("TextLayer task cancelled."))}_processItems(ut,vt){for(const bt of ut){if(bt.str===void 0){if(bt.type==="beginMarkedContentProps"||bt.type==="beginMarkedContent"){const yt=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),bt.id!==null&&this._container.setAttribute("id",`${bt.id}`),yt.append(this._container)}else bt.type==="endMarkedContent"&&(this._container=this._container.parentNode);continue}this._textContentItemsStr.push(bt.str),ht(this,bt,vt)}}_layoutText(ut){const vt=this._layoutTextParams.properties=this._textDivProperties.get(ut);if(this._layoutTextParams.div=ut,pt(this._layoutTextParams),vt.hasText&&this._container.append(ut),vt.hasEOL){const bt=document.createElement("br");bt.setAttribute("role","presentation"),this._container.append(bt)}}_render(){const ut=new tt.PromiseCapability;let vt=Object.create(null);if(this._isReadableStream){const bt=()=>{this._reader.read().then(({value:yt,done:Et})=>{if(Et){ut.resolve();return}Object.assign(vt,yt.styles),this._processItems(yt.items,vt),bt()},ut.reject)};this._reader=this._textContentSource.getReader(),bt()}else if(this._textContentSource){const{items:bt,styles:yt}=this._textContentSource;this._processItems(bt,yt),ut.resolve()}else throw new Error('No "textContentSource" parameter specified.');ut.promise.then(()=>{vt=null,gt(this)},this._capability.reject)}}_e.TextLayerRenderTask=ft;function dt(ct){!ct.textContentSource&&(ct.textContent||ct.textContentStream)&&((0,nt.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),ct.textContentSource=ct.textContent||ct.textContentStream);const{container:ut,viewport:vt}=ct,bt=getComputedStyle(ut),yt=bt.getPropertyValue("visibility"),Et=parseFloat(bt.getPropertyValue("--scale-factor"));yt==="visible"&&(!Et||Math.abs(Et-vt.scale)>1e-5)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.");const xt=new ft(ct);return xt._render(),xt}function mt({container:ct,viewport:ut,textDivs:vt,textDivProperties:bt,isOffscreenCanvasSupported:yt,mustRotate:Et=!0,mustRescale:xt=!0}){if(Et&&(0,nt.setLayerDimensions)(ct,{rotation:ut.rotation}),xt){const St=at(0,yt),At={prevFontSize:null,prevFontFamily:null,div:null,scale:ut.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:St};for(const $t of vt)At.properties=bt.get($t),At.div=$t,pt(At)}}},($,_e,et)=>{var lt,ht,pt,gt,ft,dt,mt,ct,ut,vt,bt,Gs,ls,qs,Ks;Object.defineProperty(_e,"__esModule",{value:!0}),_e.AnnotationEditorLayer=void 0;var tt=et(1),nt=et(4),rt=et(28),ot=et(33),it=et(6),st=et(34);const kt=class kt{constructor({uiManager:$t,pageIndex:Tt,div:jt,accessibilityManager:Gt,annotationLayer:Bt,viewport:Kt,l10n:Vt}){Sn(this,bt);Sn(this,lt);Sn(this,ht,!1);Sn(this,pt,null);Sn(this,gt,this.pointerup.bind(this));Sn(this,ft,this.pointerdown.bind(this));Sn(this,dt,new Map);Sn(this,mt,!1);Sn(this,ct,!1);Sn(this,ut,!1);Sn(this,vt);const Wt=[rt.FreeTextEditor,ot.InkEditor,st.StampEditor];if(!kt._initialized){kt._initialized=!0;for(const It of Wt)It.initialize(Vt)}$t.registerEditorTypes(Wt),wn(this,vt,$t),this.pageIndex=Tt,this.div=jt,wn(this,lt,Gt),wn(this,pt,Bt),this.viewport=Kt,Ct(this,vt).addLayer(this)}get isEmpty(){return Ct(this,dt).size===0}updateToolbar($t){Ct(this,vt).updateToolbar($t)}updateMode($t=Ct(this,vt).getMode()){mn(this,bt,Ks).call(this),$t===tt.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),$t!==tt.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",$t===tt.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",$t===tt.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",$t===tt.AnnotationEditorType.STAMP),this.div.hidden=!1)}addInkEditorIfNeeded($t){if(!$t&&Ct(this,vt).getMode()!==tt.AnnotationEditorType.INK)return;if(!$t){for(const jt of Ct(this,dt).values())if(jt.isEmpty()){jt.setInBackground();return}}mn(this,bt,ls).call(this,{offsetX:0,offsetY:0},!1).setInBackground()}setEditingState($t){Ct(this,vt).setEditingState($t)}addCommands($t){Ct(this,vt).addCommands($t)}enable(){this.div.style.pointerEvents="auto";const $t=new Set;for(const jt of Ct(this,dt).values())jt.enableEditing(),jt.annotationElementId&&$t.add(jt.annotationElementId);if(!Ct(this,pt))return;const Tt=Ct(this,pt).getEditableAnnotations();for(const jt of Tt){if(jt.hide(),Ct(this,vt).isDeletedAnnotationElement(jt.data.id)||$t.has(jt.data.id))continue;const Gt=this.deserialize(jt);Gt&&(this.addOrRebuild(Gt),Gt.enableEditing())}}disable(){var Tt;wn(this,ut,!0),this.div.style.pointerEvents="none";const $t=new Set;for(const jt of Ct(this,dt).values()){if(jt.disableEditing(),!jt.annotationElementId||jt.serialize()!==null){$t.add(jt.annotationElementId);continue}(Tt=this.getEditableAnnotation(jt.annotationElementId))==null||Tt.show(),jt.remove()}if(Ct(this,pt)){const jt=Ct(this,pt).getEditableAnnotations();for(const Gt of jt){const{id:Bt}=Gt.data;$t.has(Bt)||Ct(this,vt).isDeletedAnnotationElement(Bt)||Gt.show()}}mn(this,bt,Ks).call(this),this.isEmpty&&(this.div.hidden=!0),wn(this,ut,!1)}getEditableAnnotation($t){var Tt;return((Tt=Ct(this,pt))==null?void 0:Tt.getEditableAnnotation($t))||null}setActiveEditor($t){Ct(this,vt).getActive()!==$t&&Ct(this,vt).setActiveEditor($t)}enableClick(){this.div.addEventListener("pointerdown",Ct(this,ft)),this.div.addEventListener("pointerup",Ct(this,gt))}disableClick(){this.div.removeEventListener("pointerdown",Ct(this,ft)),this.div.removeEventListener("pointerup",Ct(this,gt))}attach($t){Ct(this,dt).set($t.id,$t);const{annotationElementId:Tt}=$t;Tt&&Ct(this,vt).isDeletedAnnotationElement(Tt)&&Ct(this,vt).removeDeletedAnnotationElement($t)}detach($t){var Tt;Ct(this,dt).delete($t.id),(Tt=Ct(this,lt))==null||Tt.removePointerInTextLayer($t.contentDiv),!Ct(this,ut)&&$t.annotationElementId&&Ct(this,vt).addDeletedAnnotationElement($t)}remove($t){this.detach($t),Ct(this,vt).removeEditor($t),$t.div.contains(document.activeElement)&&setTimeout(()=>{Ct(this,vt).focusMainContainer()},0),$t.div.remove(),$t.isAttachedToDOM=!1,Ct(this,ct)||this.addInkEditorIfNeeded(!1)}changeParent($t){var Tt;$t.parent!==this&&($t.annotationElementId&&(Ct(this,vt).addDeletedAnnotationElement($t.annotationElementId),nt.AnnotationEditor.deleteAnnotationElement($t),$t.annotationElementId=null),this.attach($t),(Tt=$t.parent)==null||Tt.detach($t),$t.setParent(this),$t.div&&$t.isAttachedToDOM&&($t.div.remove(),this.div.append($t.div)))}add($t){if(this.changeParent($t),Ct(this,vt).addEditor($t),this.attach($t),!$t.isAttachedToDOM){const Tt=$t.render();this.div.append(Tt),$t.isAttachedToDOM=!0}$t.fixAndSetPosition(),$t.onceAdded(),Ct(this,vt).addToAnnotationStorage($t)}moveEditorInDOM($t){var jt;if(!$t.isAttachedToDOM)return;const{activeElement:Tt}=document;$t.div.contains(Tt)&&($t._focusEventsAllowed=!1,setTimeout(()=>{$t.div.contains(document.activeElement)?$t._focusEventsAllowed=!0:($t.div.addEventListener("focusin",()=>{$t._focusEventsAllowed=!0},{once:!0}),Tt.focus())},0)),$t._structTreeParentId=(jt=Ct(this,lt))==null?void 0:jt.moveElementInDOM(this.div,$t.div,$t.contentDiv,!0)}addOrRebuild($t){$t.needsToBeRebuilt()?$t.rebuild():this.add($t)}addUndoableEditor($t){const Tt=()=>$t._uiManager.rebuild($t),jt=()=>{$t.remove()};this.addCommands({cmd:Tt,undo:jt,mustExec:!1})}getNextId(){return Ct(this,vt).getId()}pasteEditor($t,Tt){Ct(this,vt).updateToolbar($t),Ct(this,vt).updateMode($t);const{offsetX:jt,offsetY:Gt}=mn(this,bt,qs).call(this),Bt=this.getNextId(),Kt=mn(this,bt,Gs).call(this,{parent:this,id:Bt,x:jt,y:Gt,uiManager:Ct(this,vt),isCentered:!0,...Tt});Kt&&this.add(Kt)}deserialize($t){switch($t.annotationType??$t.annotationEditorType){case tt.AnnotationEditorType.FREETEXT:return rt.FreeTextEditor.deserialize($t,this,Ct(this,vt));case tt.AnnotationEditorType.INK:return ot.InkEditor.deserialize($t,this,Ct(this,vt));case tt.AnnotationEditorType.STAMP:return st.StampEditor.deserialize($t,this,Ct(this,vt))}return null}addNewEditor(){mn(this,bt,ls).call(this,mn(this,bt,qs).call(this),!0)}setSelected($t){Ct(this,vt).setSelected($t)}toggleSelected($t){Ct(this,vt).toggleSelected($t)}isSelected($t){return Ct(this,vt).isSelected($t)}unselect($t){Ct(this,vt).unselect($t)}pointerup($t){const{isMac:Tt}=tt.FeatureTest.platform;if(!($t.button!==0||$t.ctrlKey&&Tt)&&$t.target===this.div&&Ct(this,mt)){if(wn(this,mt,!1),!Ct(this,ht)){wn(this,ht,!0);return}if(Ct(this,vt).getMode()===tt.AnnotationEditorType.STAMP){Ct(this,vt).unselectAll();return}mn(this,bt,ls).call(this,$t,!1)}}pointerdown($t){if(Ct(this,mt)){wn(this,mt,!1);return}const{isMac:Tt}=tt.FeatureTest.platform;if($t.button!==0||$t.ctrlKey&&Tt||$t.target!==this.div)return;wn(this,mt,!0);const jt=Ct(this,vt).getActive();wn(this,ht,!jt||jt.isEmpty())}findNewParent($t,Tt,jt){const Gt=Ct(this,vt).findParent(Tt,jt);return Gt===null||Gt===this?!1:(Gt.changeParent($t),!0)}destroy(){var $t,Tt;(($t=Ct(this,vt).getActive())==null?void 0:$t.parent)===this&&(Ct(this,vt).commitOrRemove(),Ct(this,vt).setActiveEditor(null));for(const jt of Ct(this,dt).values())(Tt=Ct(this,lt))==null||Tt.removePointerInTextLayer(jt.contentDiv),jt.setParent(null),jt.isAttachedToDOM=!1,jt.div.remove();this.div=null,Ct(this,dt).clear(),Ct(this,vt).removeLayer(this)}render({viewport:$t}){this.viewport=$t,(0,it.setLayerDimensions)(this.div,$t);for(const Tt of Ct(this,vt).getEditors(this.pageIndex))this.add(Tt);this.updateMode()}update({viewport:$t}){Ct(this,vt).commitOrRemove(),this.viewport=$t,(0,it.setLayerDimensions)(this.div,{rotation:$t.rotation}),this.updateMode()}get pageDimensions(){const{pageWidth:$t,pageHeight:Tt}=this.viewport.rawDims;return[$t,Tt]}};lt=new WeakMap,ht=new WeakMap,pt=new WeakMap,gt=new WeakMap,ft=new WeakMap,dt=new WeakMap,mt=new WeakMap,ct=new WeakMap,ut=new WeakMap,vt=new WeakMap,bt=new WeakSet,Gs=function($t){switch(Ct(this,vt).getMode()){case tt.AnnotationEditorType.FREETEXT:return new rt.FreeTextEditor($t);case tt.AnnotationEditorType.INK:return new ot.InkEditor($t);case tt.AnnotationEditorType.STAMP:return new st.StampEditor($t)}return null},ls=function($t,Tt){const jt=this.getNextId(),Gt=mn(this,bt,Gs).call(this,{parent:this,id:jt,x:$t.offsetX,y:$t.offsetY,uiManager:Ct(this,vt),isCentered:Tt});return Gt&&this.add(Gt),Gt},qs=function(){const{x:$t,y:Tt,width:jt,height:Gt}=this.div.getBoundingClientRect(),Bt=Math.max(0,$t),Kt=Math.max(0,Tt),Vt=Math.min(window.innerWidth,$t+jt),Wt=Math.min(window.innerHeight,Tt+Gt),It=(Bt+Vt)/2-$t,Ft=(Kt+Wt)/2-Tt,[Yt,Dt]=this.viewport.rotation%180===0?[It,Ft]:[Ft,It];return{offsetX:Yt,offsetY:Dt}},Ks=function(){wn(this,ct,!0);for(const $t of Ct(this,dt).values())$t.isEmpty()&&$t.remove();wn(this,ct,!1)},Gr(kt,"_initialized",!1);let at=kt;_e.AnnotationEditorLayer=at},($,_e,et)=>{var st,at,lt,ht,pt,gt,ft,dt,mt,ct,eu,tu,nu,Go,Xs,ru,Ys;Object.defineProperty(_e,"__esModule",{value:!0}),_e.FreeTextEditor=void 0;var tt=et(1),nt=et(5),rt=et(4),ot=et(29);const kt=class kt extends rt.AnnotationEditor{constructor(Tt){super({...Tt,name:"freeTextEditor"});Sn(this,ct);Sn(this,st,this.editorDivBlur.bind(this));Sn(this,at,this.editorDivFocus.bind(this));Sn(this,lt,this.editorDivInput.bind(this));Sn(this,ht,this.editorDivKeydown.bind(this));Sn(this,pt);Sn(this,gt,"");Sn(this,ft,`${this.id}-editor`);Sn(this,dt);Sn(this,mt,null);wn(this,pt,Tt.color||kt._defaultColor||rt.AnnotationEditor._defaultLineColor),wn(this,dt,Tt.fontSize||kt._defaultFontSize)}static get _keyboardManager(){const Tt=kt.prototype,jt=Kt=>Kt.isEmpty(),Gt=nt.AnnotationEditorUIManager.TRANSLATE_SMALL,Bt=nt.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,tt.shadow)(this,"_keyboardManager",new nt.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],Tt.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],Tt.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],Tt._translateEmpty,{args:[-Gt,0],checker:jt}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],Tt._translateEmpty,{args:[-Bt,0],checker:jt}],[["ArrowRight","mac+ArrowRight"],Tt._translateEmpty,{args:[Gt,0],checker:jt}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],Tt._translateEmpty,{args:[Bt,0],checker:jt}],[["ArrowUp","mac+ArrowUp"],Tt._translateEmpty,{args:[0,-Gt],checker:jt}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],Tt._translateEmpty,{args:[0,-Bt],checker:jt}],[["ArrowDown","mac+ArrowDown"],Tt._translateEmpty,{args:[0,Gt],checker:jt}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],Tt._translateEmpty,{args:[0,Bt],checker:jt}]]))}static initialize(Tt){rt.AnnotationEditor.initialize(Tt,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});const jt=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(jt.getPropertyValue("--freetext-padding"))}static updateDefaultParams(Tt,jt){switch(Tt){case tt.AnnotationEditorParamsType.FREETEXT_SIZE:kt._defaultFontSize=jt;break;case tt.AnnotationEditorParamsType.FREETEXT_COLOR:kt._defaultColor=jt;break}}updateParams(Tt,jt){switch(Tt){case tt.AnnotationEditorParamsType.FREETEXT_SIZE:mn(this,ct,eu).call(this,jt);break;case tt.AnnotationEditorParamsType.FREETEXT_COLOR:mn(this,ct,tu).call(this,jt);break}}static get defaultPropertiesToUpdate(){return[[tt.AnnotationEditorParamsType.FREETEXT_SIZE,kt._defaultFontSize],[tt.AnnotationEditorParamsType.FREETEXT_COLOR,kt._defaultColor||rt.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[tt.AnnotationEditorParamsType.FREETEXT_SIZE,Ct(this,dt)],[tt.AnnotationEditorParamsType.FREETEXT_COLOR,Ct(this,pt)]]}_translateEmpty(Tt,jt){this._uiManager.translateSelectedEditors(Tt,jt,!0)}getInitialTranslation(){const Tt=this.parentScale;return[-kt._internalPadding*Tt,-(kt._internalPadding+Ct(this,dt))*Tt]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(tt.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",Ct(this,ht)),this.editorDiv.addEventListener("focus",Ct(this,at)),this.editorDiv.addEventListener("blur",Ct(this,st)),this.editorDiv.addEventListener("input",Ct(this,lt)))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",Ct(this,ft)),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",Ct(this,ht)),this.editorDiv.removeEventListener("focus",Ct(this,at)),this.editorDiv.removeEventListener("blur",Ct(this,st)),this.editorDiv.removeEventListener("input",Ct(this,lt)),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(Tt){this._focusEventsAllowed&&(super.focusin(Tt),Tt.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){var Tt;if(this.width){mn(this,ct,Ys).call(this);return}this.enableEditMode(),this.editorDiv.focus(),(Tt=this._initialOptions)!=null&&Tt.isCentered&&this.center(),this._initialOptions=null}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const Tt=Ct(this,gt),jt=wn(this,gt,mn(this,ct,nu).call(this).trimEnd());if(Tt===jt)return;const Gt=Bt=>{if(wn(this,gt,Bt),!Bt){this.remove();return}mn(this,ct,Xs).call(this),this._uiManager.rebuild(this),mn(this,ct,Go).call(this)};this.addCommands({cmd:()=>{Gt(jt)},undo:()=>{Gt(Tt)},mustExec:!1}),mn(this,ct,Go).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(Tt){this.enterInEditMode()}keydown(Tt){Tt.target===this.div&&Tt.key==="Enter"&&(this.enterInEditMode(),Tt.preventDefault())}editorDivKeydown(Tt){kt._keyboardManager.exec(this,Tt)}editorDivFocus(Tt){this.isEditing=!0}editorDivBlur(Tt){this.isEditing=!1}editorDivInput(Tt){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let Tt,jt;this.width&&(Tt=this.x,jt=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",Ct(this,ft)),this.enableEditing(),rt.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then(Bt=>{var Kt;return(Kt=this.editorDiv)==null?void 0:Kt.setAttribute("aria-label",Bt)}),rt.AnnotationEditor._l10nPromise.get("free_text2_default_content").then(Bt=>{var Kt;return(Kt=this.editorDiv)==null?void 0:Kt.setAttribute("default-content",Bt)}),this.editorDiv.contentEditable=!0;const{style:Gt}=this.editorDiv;if(Gt.fontSize=`calc(${Ct(this,dt)}px * var(--scale-factor))`,Gt.color=Ct(this,pt),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,nt.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[Bt,Kt]=this.parentDimensions;if(this.annotationElementId){const{position:Vt}=Ct(this,mt);let[Wt,It]=this.getInitialTranslation();[Wt,It]=this.pageTranslationToScreen(Wt,It);const[Ft,Yt]=this.pageDimensions,[Dt,Rt]=this.pageTranslation;let wt,Mt;switch(this.rotation){case 0:wt=Tt+(Vt[0]-Dt)/Ft,Mt=jt+this.height-(Vt[1]-Rt)/Yt;break;case 90:wt=Tt+(Vt[0]-Dt)/Ft,Mt=jt-(Vt[1]-Rt)/Yt,[Wt,It]=[It,-Wt];break;case 180:wt=Tt-this.width+(Vt[0]-Dt)/Ft,Mt=jt-(Vt[1]-Rt)/Yt,[Wt,It]=[-Wt,-It];break;case 270:wt=Tt+(Vt[0]-Dt-this.height*Yt)/Ft,Mt=jt+(Vt[1]-Rt-this.width*Ft)/Yt,[Wt,It]=[-It,Wt];break}this.setAt(wt*Bt,Mt*Kt,Wt,It)}else this.setAt(Tt*Bt,jt*Kt,this.width*Bt,this.height*Kt);mn(this,ct,Xs).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(Tt,jt,Gt){let Bt=null;if(Tt instanceof ot.FreeTextAnnotationElement){const{data:{defaultAppearanceData:{fontSize:Vt,fontColor:Wt},rect:It,rotation:Ft,id:Yt},textContent:Dt,textPosition:Rt,parent:{page:{pageNumber:wt}}}=Tt;if(!Dt||Dt.length===0)return null;Bt=Tt={annotationType:tt.AnnotationEditorType.FREETEXT,color:Array.from(Wt),fontSize:Vt,value:Dt.join(` +`),position:Rt,pageIndex:wt-1,rect:It,rotation:Ft,id:Yt,deleted:!1}}const Kt=super.deserialize(Tt,jt,Gt);return wn(Kt,dt,Tt.fontSize),wn(Kt,pt,tt.Util.makeHexColor(...Tt.color)),wn(Kt,gt,Tt.value),Kt.annotationElementId=Tt.id||null,wn(Kt,mt,Bt),Kt}serialize(Tt=!1){if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};const jt=kt._internalPadding*this.parentScale,Gt=this.getRect(jt,jt),Bt=rt.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:Ct(this,pt)),Kt={annotationType:tt.AnnotationEditorType.FREETEXT,color:Bt,fontSize:Ct(this,dt),value:Ct(this,gt),pageIndex:this.pageIndex,rect:Gt,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return Tt?Kt:this.annotationElementId&&!mn(this,ct,ru).call(this,Kt)?null:(Kt.id=this.annotationElementId,Kt)}};st=new WeakMap,at=new WeakMap,lt=new WeakMap,ht=new WeakMap,pt=new WeakMap,gt=new WeakMap,ft=new WeakMap,dt=new WeakMap,mt=new WeakMap,ct=new WeakSet,eu=function(Tt){const jt=Bt=>{this.editorDiv.style.fontSize=`calc(${Bt}px * var(--scale-factor))`,this.translate(0,-(Bt-Ct(this,dt))*this.parentScale),wn(this,dt,Bt),mn(this,ct,Go).call(this)},Gt=Ct(this,dt);this.addCommands({cmd:()=>{jt(Tt)},undo:()=>{jt(Gt)},mustExec:!0,type:tt.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},tu=function(Tt){const jt=Ct(this,pt);this.addCommands({cmd:()=>{wn(this,pt,this.editorDiv.style.color=Tt)},undo:()=>{wn(this,pt,this.editorDiv.style.color=jt)},mustExec:!0,type:tt.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},nu=function(){const Tt=this.editorDiv.getElementsByTagName("div");if(Tt.length===0)return this.editorDiv.innerText;const jt=[];for(const Gt of Tt)jt.push(Gt.innerText.replace(/\r\n?|\n/,""));return jt.join(` +`)},Go=function(){const[Tt,jt]=this.parentDimensions;let Gt;if(this.isAttachedToDOM)Gt=this.div.getBoundingClientRect();else{const{currentLayer:Bt,div:Kt}=this,Vt=Kt.style.display;Kt.style.display="hidden",Bt.div.append(this.div),Gt=Kt.getBoundingClientRect(),Kt.remove(),Kt.style.display=Vt}this.rotation%180===this.parentRotation%180?(this.width=Gt.width/Tt,this.height=Gt.height/jt):(this.width=Gt.height/Tt,this.height=Gt.width/jt),this.fixAndSetPosition()},Xs=function(){if(this.editorDiv.replaceChildren(),!!Ct(this,gt))for(const Tt of Ct(this,gt).split(` +`)){const jt=document.createElement("div");jt.append(Tt?document.createTextNode(Tt):document.createElement("br")),this.editorDiv.append(jt)}},ru=function(Tt){const{value:jt,fontSize:Gt,color:Bt,rect:Kt,pageIndex:Vt}=Ct(this,mt);return Tt.value!==jt||Tt.fontSize!==Gt||Tt.rect.some((Wt,It)=>Math.abs(Wt-Kt[It])>=1)||Tt.color.some((Wt,It)=>Wt!==Bt[It])||Tt.pageIndex!==Vt},Ys=function(Tt=!1){if(!this.annotationElementId)return;if(mn(this,ct,Go).call(this),!Tt&&(this.width===0||this.height===0)){setTimeout(()=>mn(this,ct,Ys).call(this,!0),0);return}const jt=kt._internalPadding*this.parentScale;Ct(this,mt).rect=this.getRect(jt,jt)},Gr(kt,"_freeTextDefaultContent",""),Gr(kt,"_internalPadding",0),Gr(kt,"_defaultColor",null),Gr(kt,"_defaultFontSize",10),Gr(kt,"_type","freetext");let it=kt;_e.FreeTextEditor=it},($,_e,et)=>{var Mt,zt,To,ou,pn,gn,bn,yn,$n,kn,hn,un,Lt,Ut,nn,sn,vn,Tn,Rn,on,Bn,Ln,iu,cs,Zs,Qs,tr,Wn,cr,fn,en,an,zn,Js,Jn,Zt,Mn,Un,su,na;Object.defineProperty(_e,"__esModule",{value:!0}),_e.StampAnnotationElement=_e.InkAnnotationElement=_e.FreeTextAnnotationElement=_e.AnnotationLayer=void 0;var tt=et(1),nt=et(6),rt=et(3),ot=et(30),it=et(31),st=et(32);const at=1e3,lt=9,ht=new WeakSet;function pt(Qn){return{width:Qn[2]-Qn[0],height:Qn[3]-Qn[1]}}class gt{static create(Xt){switch(Xt.data.annotationType){case tt.AnnotationType.LINK:return new dt(Xt);case tt.AnnotationType.TEXT:return new mt(Xt);case tt.AnnotationType.WIDGET:switch(Xt.data.fieldType){case"Tx":return new ut(Xt);case"Btn":return Xt.data.radioButton?new yt(Xt):Xt.data.checkBox?new bt(Xt):new Et(Xt);case"Ch":return new xt(Xt);case"Sig":return new vt(Xt)}return new ct(Xt);case tt.AnnotationType.POPUP:return new St(Xt);case tt.AnnotationType.FREETEXT:return new At(Xt);case tt.AnnotationType.LINE:return new $t(Xt);case tt.AnnotationType.SQUARE:return new Tt(Xt);case tt.AnnotationType.CIRCLE:return new jt(Xt);case tt.AnnotationType.POLYLINE:return new Gt(Xt);case tt.AnnotationType.CARET:return new Kt(Xt);case tt.AnnotationType.INK:return new Vt(Xt);case tt.AnnotationType.POLYGON:return new Bt(Xt);case tt.AnnotationType.HIGHLIGHT:return new Wt(Xt);case tt.AnnotationType.UNDERLINE:return new It(Xt);case tt.AnnotationType.SQUIGGLY:return new Ft(Xt);case tt.AnnotationType.STRIKEOUT:return new Yt(Xt);case tt.AnnotationType.STAMP:return new Dt(Xt);case tt.AnnotationType.FILEATTACHMENT:return new Rt(Xt);default:return new ft(Xt)}}}const Ot=class Ot{constructor(Xt,{isRenderable:qt=!1,ignoreBorder:cn=!1,createQuadrilaterals:Pn=!1}={}){Sn(this,Mt,!1);this.isRenderable=qt,this.data=Xt.data,this.layer=Xt.layer,this.linkService=Xt.linkService,this.downloadManager=Xt.downloadManager,this.imageResourcesPath=Xt.imageResourcesPath,this.renderForms=Xt.renderForms,this.svgFactory=Xt.svgFactory,this.annotationStorage=Xt.annotationStorage,this.enableScripting=Xt.enableScripting,this.hasJSActions=Xt.hasJSActions,this._fieldObjects=Xt.fieldObjects,this.parent=Xt.parent,qt&&(this.container=this._createContainer(cn)),Pn&&this._createQuadrilaterals()}static _hasPopupData({titleObj:Xt,contentsObj:qt,richText:cn}){return!!(Xt!=null&&Xt.str||qt!=null&&qt.str||cn!=null&&cn.str)}get hasPopupData(){return Ot._hasPopupData(this.data)}_createContainer(Xt){const{data:qt,parent:{page:cn,viewport:Pn}}=this,An=document.createElement("section");An.setAttribute("data-annotation-id",qt.id),this instanceof ct||(An.tabIndex=at),An.style.zIndex=this.parent.zIndex++,this.data.popupRef&&An.setAttribute("aria-haspopup","dialog"),qt.noRotate&&An.classList.add("norotate");const{pageWidth:In,pageHeight:On,pageX:or,pageY:nr}=Pn.rawDims;if(!qt.rect||this instanceof St){const{rotation:gr}=qt;return!qt.hasOwnCanvas&&gr!==0&&this.setRotation(gr,An),An}const{width:Kn,height:Er}=pt(qt.rect),rr=tt.Util.normalizeRect([qt.rect[0],cn.view[3]-qt.rect[1]+cn.view[1],qt.rect[2],cn.view[3]-qt.rect[3]+cn.view[1]]);if(!Xt&&qt.borderStyle.width>0){An.style.borderWidth=`${qt.borderStyle.width}px`;const gr=qt.borderStyle.horizontalCornerRadius,$r=qt.borderStyle.verticalCornerRadius;if(gr>0||$r>0){const Br=`calc(${gr}px * var(--scale-factor)) / calc(${$r}px * var(--scale-factor))`;An.style.borderRadius=Br}else if(this instanceof yt){const Br=`calc(${Kn}px * var(--scale-factor)) / calc(${Er}px * var(--scale-factor))`;An.style.borderRadius=Br}switch(qt.borderStyle.style){case tt.AnnotationBorderStyleType.SOLID:An.style.borderStyle="solid";break;case tt.AnnotationBorderStyleType.DASHED:An.style.borderStyle="dashed";break;case tt.AnnotationBorderStyleType.BEVELED:(0,tt.warn)("Unimplemented border style: beveled");break;case tt.AnnotationBorderStyleType.INSET:(0,tt.warn)("Unimplemented border style: inset");break;case tt.AnnotationBorderStyleType.UNDERLINE:An.style.borderBottomStyle="solid";break}const Mr=qt.borderColor||null;Mr?(wn(this,Mt,!0),An.style.borderColor=tt.Util.makeHexColor(Mr[0]|0,Mr[1]|0,Mr[2]|0)):An.style.borderWidth=0}An.style.left=`${100*(rr[0]-or)/In}%`,An.style.top=`${100*(rr[1]-nr)/On}%`;const{rotation:ar}=qt;return qt.hasOwnCanvas||ar===0?(An.style.width=`${100*Kn/In}%`,An.style.height=`${100*Er/On}%`):this.setRotation(ar,An),An}setRotation(Xt,qt=this.container){if(!this.data.rect)return;const{pageWidth:cn,pageHeight:Pn}=this.parent.viewport.rawDims,{width:An,height:In}=pt(this.data.rect);let On,or;Xt%180===0?(On=100*An/cn,or=100*In/Pn):(On=100*In/cn,or=100*An/Pn),qt.style.width=`${On}%`,qt.style.height=`${or}%`,qt.setAttribute("data-main-rotation",(360-Xt)%360)}get _commonActions(){const Xt=(qt,cn,Pn)=>{const An=Pn.detail[qt],In=An[0],On=An.slice(1);Pn.target.style[cn]=ot.ColorConverters[`${In}_HTML`](On),this.annotationStorage.setValue(this.data.id,{[cn]:ot.ColorConverters[`${In}_rgb`](On)})};return(0,tt.shadow)(this,"_commonActions",{display:qt=>{const{display:cn}=qt.detail,Pn=cn%2===1;this.container.style.visibility=Pn?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:Pn,noPrint:cn===1||cn===2})},print:qt=>{this.annotationStorage.setValue(this.data.id,{noPrint:!qt.detail.print})},hidden:qt=>{const{hidden:cn}=qt.detail;this.container.style.visibility=cn?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:cn,noView:cn})},focus:qt=>{setTimeout(()=>qt.target.focus({preventScroll:!1}),0)},userName:qt=>{qt.target.title=qt.detail.userName},readonly:qt=>{qt.target.disabled=qt.detail.readonly},required:qt=>{this._setRequired(qt.target,qt.detail.required)},bgColor:qt=>{Xt("bgColor","backgroundColor",qt)},fillColor:qt=>{Xt("fillColor","backgroundColor",qt)},fgColor:qt=>{Xt("fgColor","color",qt)},textColor:qt=>{Xt("textColor","color",qt)},borderColor:qt=>{Xt("borderColor","borderColor",qt)},strokeColor:qt=>{Xt("strokeColor","borderColor",qt)},rotation:qt=>{const cn=qt.detail.rotation;this.setRotation(cn),this.annotationStorage.setValue(this.data.id,{rotation:cn})}})}_dispatchEventFromSandbox(Xt,qt){const cn=this._commonActions;for(const Pn of Object.keys(qt.detail)){const An=Xt[Pn]||cn[Pn];An==null||An(qt)}}_setDefaultPropertiesFromJS(Xt){if(!this.enableScripting)return;const qt=this.annotationStorage.getRawValue(this.data.id);if(!qt)return;const cn=this._commonActions;for(const[Pn,An]of Object.entries(qt)){const In=cn[Pn];if(In){const On={detail:{[Pn]:An},target:Xt};In(On),delete qt[Pn]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:Xt}=this.data;if(!Xt)return;const[qt,cn,Pn,An]=this.data.rect;if(Xt.length===1){const[,{x:$r,y:Mr},{x:Br,y:oo}]=Xt[0];if(Pn===$r&&An===Mr&&qt===Br&&cn===oo)return}const{style:In}=this.container;let On;if(Ct(this,Mt)){const{borderColor:$r,borderWidth:Mr}=In;In.borderWidth=0,On=["url('data:image/svg+xml;utf8,",'',``],this.container.classList.add("hasBorder")}const or=Pn-qt,nr=An-cn,{svgFactory:Kn}=this,Er=Kn.createElement("svg");Er.classList.add("quadrilateralsContainer"),Er.setAttribute("width",0),Er.setAttribute("height",0);const rr=Kn.createElement("defs");Er.append(rr);const ar=Kn.createElement("clipPath"),gr=`clippath_${this.data.id}`;ar.setAttribute("id",gr),ar.setAttribute("clipPathUnits","objectBoundingBox"),rr.append(ar);for(const[,{x:$r,y:Mr},{x:Br,y:oo}]of Xt){const Zr=Kn.createElement("rect"),go=(Br-qt)/or,xo=(An-Mr)/nr,yo=($r-Br)/or,Xo=(Mr-oo)/nr;Zr.setAttribute("x",go),Zr.setAttribute("y",xo),Zr.setAttribute("width",yo),Zr.setAttribute("height",Xo),ar.append(Zr),On==null||On.push(``)}Ct(this,Mt)&&(On.push("')"),In.backgroundImage=On.join("")),this.container.append(Er),this.container.style.clipPath=`url(#${gr})`}_createPopup(){const{container:Xt,data:qt}=this;Xt.setAttribute("aria-haspopup","dialog");const cn=new St({data:{color:qt.color,titleObj:qt.titleObj,modificationDate:qt.modificationDate,contentsObj:qt.contentsObj,richText:qt.richText,parentRect:qt.rect,borderStyle:0,id:`popup_${qt.id}`,rotation:qt.rotation},parent:this.parent,elements:[this]});this.parent.div.append(cn.render())}render(){(0,tt.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(Xt,qt=null){const cn=[];if(this._fieldObjects){const Pn=this._fieldObjects[Xt];if(Pn)for(const{page:An,id:In,exportValues:On}of Pn){if(An===-1||In===qt)continue;const or=typeof On=="string"?On:null,nr=document.querySelector(`[data-element-id="${In}"]`);if(nr&&!ht.has(nr)){(0,tt.warn)(`_getElementsByName - element not allowed: ${In}`);continue}cn.push({id:In,exportValue:or,domElement:nr})}return cn}for(const Pn of document.getElementsByName(Xt)){const{exportValue:An}=Pn,In=Pn.getAttribute("data-element-id");In!==qt&&ht.has(Pn)&&cn.push({id:In,exportValue:An,domElement:Pn})}return cn}show(){var Xt;this.container&&(this.container.hidden=!1),(Xt=this.popup)==null||Xt.maybeShow()}hide(){var Xt;this.container&&(this.container.hidden=!0),(Xt=this.popup)==null||Xt.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const Xt=this.getElementsToTriggerPopup();if(Array.isArray(Xt))for(const qt of Xt)qt.classList.add("highlightArea");else Xt.classList.add("highlightArea")}_editOnDoubleClick(){const{annotationEditorType:Xt,data:{id:qt}}=this;this.container.addEventListener("dblclick",()=>{var cn;(cn=this.linkService.eventBus)==null||cn.dispatch("switchannotationeditormode",{source:this,mode:Xt,editId:qt})})}};Mt=new WeakMap;let ft=Ot;class dt extends ft{constructor(qt,cn=null){super(qt,{isRenderable:!0,ignoreBorder:!!(cn!=null&&cn.ignoreBorder),createQuadrilaterals:!0});Sn(this,zt);this.isTooltipOnly=qt.data.isTooltipOnly}render(){const{data:qt,linkService:cn}=this,Pn=document.createElement("a");Pn.setAttribute("data-element-id",qt.id);let An=!1;return qt.url?(cn.addLinkAttributes(Pn,qt.url,qt.newWindow),An=!0):qt.action?(this._bindNamedAction(Pn,qt.action),An=!0):qt.attachment?(this._bindAttachment(Pn,qt.attachment),An=!0):qt.setOCGState?(mn(this,zt,ou).call(this,Pn,qt.setOCGState),An=!0):qt.dest?(this._bindLink(Pn,qt.dest),An=!0):(qt.actions&&(qt.actions.Action||qt.actions["Mouse Up"]||qt.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(Pn,qt),An=!0),qt.resetForm?(this._bindResetFormAction(Pn,qt.resetForm),An=!0):this.isTooltipOnly&&!An&&(this._bindLink(Pn,""),An=!0)),this.container.classList.add("linkAnnotation"),An&&this.container.append(Pn),this.container}_bindLink(qt,cn){qt.href=this.linkService.getDestinationHash(cn),qt.onclick=()=>(cn&&this.linkService.goToDestination(cn),!1),(cn||cn==="")&&mn(this,zt,To).call(this)}_bindNamedAction(qt,cn){qt.href=this.linkService.getAnchorUrl(""),qt.onclick=()=>(this.linkService.executeNamedAction(cn),!1),mn(this,zt,To).call(this)}_bindAttachment(qt,cn){qt.href=this.linkService.getAnchorUrl(""),qt.onclick=()=>{var Pn;return(Pn=this.downloadManager)==null||Pn.openOrDownloadData(this.container,cn.content,cn.filename),!1},mn(this,zt,To).call(this)}_bindJSAction(qt,cn){qt.href=this.linkService.getAnchorUrl("");const Pn=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const An of Object.keys(cn.actions)){const In=Pn.get(An);In&&(qt[In]=()=>{var On;return(On=this.linkService.eventBus)==null||On.dispatch("dispatcheventinsandbox",{source:this,detail:{id:cn.id,name:An}}),!1})}qt.onclick||(qt.onclick=()=>!1),mn(this,zt,To).call(this)}_bindResetFormAction(qt,cn){const Pn=qt.onclick;if(Pn||(qt.href=this.linkService.getAnchorUrl("")),mn(this,zt,To).call(this),!this._fieldObjects){(0,tt.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),Pn||(qt.onclick=()=>!1);return}qt.onclick=()=>{var Er;Pn==null||Pn();const{fields:An,refs:In,include:On}=cn,or=[];if(An.length!==0||In.length!==0){const rr=new Set(In);for(const ar of An){const gr=this._fieldObjects[ar]||[];for(const{id:$r}of gr)rr.add($r)}for(const ar of Object.values(this._fieldObjects))for(const gr of ar)rr.has(gr.id)===On&&or.push(gr)}else for(const rr of Object.values(this._fieldObjects))or.push(...rr);const nr=this.annotationStorage,Kn=[];for(const rr of or){const{id:ar}=rr;switch(Kn.push(ar),rr.type){case"text":{const $r=rr.defaultValue||"";nr.setValue(ar,{value:$r});break}case"checkbox":case"radiobutton":{const $r=rr.defaultValue===rr.exportValues;nr.setValue(ar,{value:$r});break}case"combobox":case"listbox":{const $r=rr.defaultValue||"";nr.setValue(ar,{value:$r});break}default:continue}const gr=document.querySelector(`[data-element-id="${ar}"]`);if(gr){if(!ht.has(gr)){(0,tt.warn)(`_bindResetFormAction - element not allowed: ${ar}`);continue}}else continue;gr.dispatchEvent(new Event("resetform"))}return this.enableScripting&&((Er=this.linkService.eventBus)==null||Er.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:Kn,name:"ResetForm"}})),!1}}}zt=new WeakSet,To=function(){this.container.setAttribute("data-internal-link","")},ou=function(qt,cn){qt.href=this.linkService.getAnchorUrl(""),qt.onclick=()=>(this.linkService.executeSetOCGState(cn),!1),mn(this,zt,To).call(this)};class mt extends ft{constructor(Xt){super(Xt,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const Xt=document.createElement("img");return Xt.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",Xt.alt="[{{type}} Annotation]",Xt.dataset.l10nId="text_annotation_type",Xt.dataset.l10nArgs=JSON.stringify({type:this.data.name}),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(Xt),this.container}}class ct extends ft{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(Xt){var qt;this.data.hasOwnCanvas&&(((qt=Xt.previousSibling)==null?void 0:qt.nodeName)==="CANVAS"&&(Xt.previousSibling.hidden=!0),Xt.hidden=!1)}_getKeyModifier(Xt){const{isWin:qt,isMac:cn}=tt.FeatureTest.platform;return qt&&Xt.ctrlKey||cn&&Xt.metaKey}_setEventListener(Xt,qt,cn,Pn,An){cn.includes("mouse")?Xt.addEventListener(cn,In=>{var On;(On=this.linkService.eventBus)==null||On.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:Pn,value:An(In),shift:In.shiftKey,modifier:this._getKeyModifier(In)}})}):Xt.addEventListener(cn,In=>{var On;if(cn==="blur"){if(!qt.focused||!In.relatedTarget)return;qt.focused=!1}else if(cn==="focus"){if(qt.focused)return;qt.focused=!0}An&&((On=this.linkService.eventBus)==null||On.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:Pn,value:An(In)}}))})}_setEventListeners(Xt,qt,cn,Pn){var An,In,On;for(const[or,nr]of cn)(nr==="Action"||(An=this.data.actions)!=null&&An[nr])&&((nr==="Focus"||nr==="Blur")&&(qt||(qt={focused:!1})),this._setEventListener(Xt,qt,or,nr,Pn),nr==="Focus"&&!((In=this.data.actions)!=null&&In.Blur)?this._setEventListener(Xt,qt,"blur","Blur",null):nr==="Blur"&&!((On=this.data.actions)!=null&&On.Focus)&&this._setEventListener(Xt,qt,"focus","Focus",null))}_setBackgroundColor(Xt){const qt=this.data.backgroundColor||null;Xt.style.backgroundColor=qt===null?"transparent":tt.Util.makeHexColor(qt[0],qt[1],qt[2])}_setTextStyle(Xt){const qt=["left","center","right"],{fontColor:cn}=this.data.defaultAppearanceData,Pn=this.data.defaultAppearanceData.fontSize||lt,An=Xt.style;let In;const On=2,or=nr=>Math.round(10*nr)/10;if(this.data.multiLine){const nr=Math.abs(this.data.rect[3]-this.data.rect[1]-On),Kn=Math.round(nr/(tt.LINE_FACTOR*Pn))||1,Er=nr/Kn;In=Math.min(Pn,or(Er/tt.LINE_FACTOR))}else{const nr=Math.abs(this.data.rect[3]-this.data.rect[1]-On);In=Math.min(Pn,or(nr/tt.LINE_FACTOR))}An.fontSize=`calc(${In}px * var(--scale-factor))`,An.color=tt.Util.makeHexColor(cn[0],cn[1],cn[2]),this.data.textAlignment!==null&&(An.textAlign=qt[this.data.textAlignment])}_setRequired(Xt,qt){qt?Xt.setAttribute("required",!0):Xt.removeAttribute("required"),Xt.setAttribute("aria-required",qt)}}class ut extends ct{constructor(Xt){const qt=Xt.renderForms||!Xt.data.hasAppearance&&!!Xt.data.fieldValue;super(Xt,{isRenderable:qt})}setPropertyOnSiblings(Xt,qt,cn,Pn){const An=this.annotationStorage;for(const In of this._getElementsByName(Xt.name,Xt.id))In.domElement&&(In.domElement[qt]=cn),An.setValue(In.id,{[Pn]:cn})}render(){var Pn,An;const Xt=this.annotationStorage,qt=this.data.id;this.container.classList.add("textWidgetAnnotation");let cn=null;if(this.renderForms){const In=Xt.getValue(qt,{value:this.data.fieldValue});let On=In.value||"";const or=Xt.getValue(qt,{charLimit:this.data.maxLen}).charLimit;or&&On.length>or&&(On=On.slice(0,or));let nr=In.formattedValue||((Pn=this.data.textContent)==null?void 0:Pn.join(` +`))||null;nr&&this.data.comb&&(nr=nr.replaceAll(/\s+/g,""));const Kn={userValue:On,formattedValue:nr,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(cn=document.createElement("textarea"),cn.textContent=nr??On,this.data.doNotScroll&&(cn.style.overflowY="hidden")):(cn=document.createElement("input"),cn.type="text",cn.setAttribute("value",nr??On),this.data.doNotScroll&&(cn.style.overflowX="hidden")),this.data.hasOwnCanvas&&(cn.hidden=!0),ht.add(cn),cn.setAttribute("data-element-id",qt),cn.disabled=this.data.readOnly,cn.name=this.data.fieldName,cn.tabIndex=at,this._setRequired(cn,this.data.required),or&&(cn.maxLength=or),cn.addEventListener("input",rr=>{Xt.setValue(qt,{value:rr.target.value}),this.setPropertyOnSiblings(cn,"value",rr.target.value,"value"),Kn.formattedValue=null}),cn.addEventListener("resetform",rr=>{const ar=this.data.defaultFieldValue??"";cn.value=Kn.userValue=ar,Kn.formattedValue=null});let Er=rr=>{const{formattedValue:ar}=Kn;ar!=null&&(rr.target.value=ar),rr.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){cn.addEventListener("focus",ar=>{if(Kn.focused)return;const{target:gr}=ar;Kn.userValue&&(gr.value=Kn.userValue),Kn.lastCommittedValue=gr.value,Kn.commitKey=1,Kn.focused=!0}),cn.addEventListener("updatefromsandbox",ar=>{this.showElementAndHideCanvas(ar.target);const gr={value($r){Kn.userValue=$r.detail.value??"",Xt.setValue(qt,{value:Kn.userValue.toString()}),$r.target.value=Kn.userValue},formattedValue($r){const{formattedValue:Mr}=$r.detail;Kn.formattedValue=Mr,Mr!=null&&$r.target!==document.activeElement&&($r.target.value=Mr),Xt.setValue(qt,{formattedValue:Mr})},selRange($r){$r.target.setSelectionRange(...$r.detail.selRange)},charLimit:$r=>{var Zr;const{charLimit:Mr}=$r.detail,{target:Br}=$r;if(Mr===0){Br.removeAttribute("maxLength");return}Br.setAttribute("maxLength",Mr);let oo=Kn.userValue;!oo||oo.length<=Mr||(oo=oo.slice(0,Mr),Br.value=Kn.userValue=oo,Xt.setValue(qt,{value:oo}),(Zr=this.linkService.eventBus)==null||Zr.dispatch("dispatcheventinsandbox",{source:this,detail:{id:qt,name:"Keystroke",value:oo,willCommit:!0,commitKey:1,selStart:Br.selectionStart,selEnd:Br.selectionEnd}}))}};this._dispatchEventFromSandbox(gr,ar)}),cn.addEventListener("keydown",ar=>{var Mr;Kn.commitKey=1;let gr=-1;if(ar.key==="Escape"?gr=0:ar.key==="Enter"&&!this.data.multiLine?gr=2:ar.key==="Tab"&&(Kn.commitKey=3),gr===-1)return;const{value:$r}=ar.target;Kn.lastCommittedValue!==$r&&(Kn.lastCommittedValue=$r,Kn.userValue=$r,(Mr=this.linkService.eventBus)==null||Mr.dispatch("dispatcheventinsandbox",{source:this,detail:{id:qt,name:"Keystroke",value:$r,willCommit:!0,commitKey:gr,selStart:ar.target.selectionStart,selEnd:ar.target.selectionEnd}}))});const rr=Er;Er=null,cn.addEventListener("blur",ar=>{var $r;if(!Kn.focused||!ar.relatedTarget)return;Kn.focused=!1;const{value:gr}=ar.target;Kn.userValue=gr,Kn.lastCommittedValue!==gr&&(($r=this.linkService.eventBus)==null||$r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:qt,name:"Keystroke",value:gr,willCommit:!0,commitKey:Kn.commitKey,selStart:ar.target.selectionStart,selEnd:ar.target.selectionEnd}})),rr(ar)}),(An=this.data.actions)!=null&&An.Keystroke&&cn.addEventListener("beforeinput",ar=>{var xo;Kn.lastCommittedValue=null;const{data:gr,target:$r}=ar,{value:Mr,selectionStart:Br,selectionEnd:oo}=$r;let Zr=Br,go=oo;switch(ar.inputType){case"deleteWordBackward":{const yo=Mr.substring(0,Br).match(/\w*[^\w]*$/);yo&&(Zr-=yo[0].length);break}case"deleteWordForward":{const yo=Mr.substring(Br).match(/^[^\w]*\w*/);yo&&(go+=yo[0].length);break}case"deleteContentBackward":Br===oo&&(Zr-=1);break;case"deleteContentForward":Br===oo&&(go+=1);break}ar.preventDefault(),(xo=this.linkService.eventBus)==null||xo.dispatch("dispatcheventinsandbox",{source:this,detail:{id:qt,name:"Keystroke",value:Mr,change:gr||"",willCommit:!1,selStart:Zr,selEnd:go}})}),this._setEventListeners(cn,Kn,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],ar=>ar.target.value)}if(Er&&cn.addEventListener("blur",Er),this.data.comb){const ar=(this.data.rect[2]-this.data.rect[0])/or;cn.classList.add("comb"),cn.style.letterSpacing=`calc(${ar}px * var(--scale-factor) - 1ch)`}}else cn=document.createElement("div"),cn.textContent=this.data.fieldValue,cn.style.verticalAlign="middle",cn.style.display="table-cell";return this._setTextStyle(cn),this._setBackgroundColor(cn),this._setDefaultPropertiesFromJS(cn),this.container.append(cn),this.container}}class vt extends ct{constructor(Xt){super(Xt,{isRenderable:!!Xt.data.hasOwnCanvas})}}class bt extends ct{constructor(Xt){super(Xt,{isRenderable:Xt.renderForms})}render(){const Xt=this.annotationStorage,qt=this.data,cn=qt.id;let Pn=Xt.getValue(cn,{value:qt.exportValue===qt.fieldValue}).value;typeof Pn=="string"&&(Pn=Pn!=="Off",Xt.setValue(cn,{value:Pn})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const An=document.createElement("input");return ht.add(An),An.setAttribute("data-element-id",cn),An.disabled=qt.readOnly,this._setRequired(An,this.data.required),An.type="checkbox",An.name=qt.fieldName,Pn&&An.setAttribute("checked",!0),An.setAttribute("exportValue",qt.exportValue),An.tabIndex=at,An.addEventListener("change",In=>{const{name:On,checked:or}=In.target;for(const nr of this._getElementsByName(On,cn)){const Kn=or&&nr.exportValue===qt.exportValue;nr.domElement&&(nr.domElement.checked=Kn),Xt.setValue(nr.id,{value:Kn})}Xt.setValue(cn,{value:or})}),An.addEventListener("resetform",In=>{const On=qt.defaultFieldValue||"Off";In.target.checked=On===qt.exportValue}),this.enableScripting&&this.hasJSActions&&(An.addEventListener("updatefromsandbox",In=>{const On={value(or){or.target.checked=or.detail.value!=="Off",Xt.setValue(cn,{value:or.target.checked})}};this._dispatchEventFromSandbox(On,In)}),this._setEventListeners(An,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],In=>In.target.checked)),this._setBackgroundColor(An),this._setDefaultPropertiesFromJS(An),this.container.append(An),this.container}}class yt extends ct{constructor(Xt){super(Xt,{isRenderable:Xt.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const Xt=this.annotationStorage,qt=this.data,cn=qt.id;let Pn=Xt.getValue(cn,{value:qt.fieldValue===qt.buttonValue}).value;typeof Pn=="string"&&(Pn=Pn!==qt.buttonValue,Xt.setValue(cn,{value:Pn}));const An=document.createElement("input");if(ht.add(An),An.setAttribute("data-element-id",cn),An.disabled=qt.readOnly,this._setRequired(An,this.data.required),An.type="radio",An.name=qt.fieldName,Pn&&An.setAttribute("checked",!0),An.tabIndex=at,An.addEventListener("change",In=>{const{name:On,checked:or}=In.target;for(const nr of this._getElementsByName(On,cn))Xt.setValue(nr.id,{value:!1});Xt.setValue(cn,{value:or})}),An.addEventListener("resetform",In=>{const On=qt.defaultFieldValue;In.target.checked=On!=null&&On===qt.buttonValue}),this.enableScripting&&this.hasJSActions){const In=qt.buttonValue;An.addEventListener("updatefromsandbox",On=>{const or={value:nr=>{const Kn=In===nr.detail.value;for(const Er of this._getElementsByName(nr.target.name)){const rr=Kn&&Er.id===cn;Er.domElement&&(Er.domElement.checked=rr),Xt.setValue(Er.id,{value:rr})}}};this._dispatchEventFromSandbox(or,On)}),this._setEventListeners(An,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],On=>On.target.checked)}return this._setBackgroundColor(An),this._setDefaultPropertiesFromJS(An),this.container.append(An),this.container}}class Et extends dt{constructor(Xt){super(Xt,{ignoreBorder:Xt.data.hasAppearance})}render(){const Xt=super.render();Xt.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(Xt.title=this.data.alternativeText);const qt=Xt.lastChild;return this.enableScripting&&this.hasJSActions&&qt&&(this._setDefaultPropertiesFromJS(qt),qt.addEventListener("updatefromsandbox",cn=>{this._dispatchEventFromSandbox({},cn)})),Xt}}class xt extends ct{constructor(Xt){super(Xt,{isRenderable:Xt.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const Xt=this.annotationStorage,qt=this.data.id,cn=Xt.getValue(qt,{value:this.data.fieldValue}),Pn=document.createElement("select");ht.add(Pn),Pn.setAttribute("data-element-id",qt),Pn.disabled=this.data.readOnly,this._setRequired(Pn,this.data.required),Pn.name=this.data.fieldName,Pn.tabIndex=at;let An=this.data.combo&&this.data.options.length>0;this.data.combo||(Pn.size=this.data.options.length,this.data.multiSelect&&(Pn.multiple=!0)),Pn.addEventListener("resetform",Kn=>{const Er=this.data.defaultFieldValue;for(const rr of Pn.options)rr.selected=rr.value===Er});for(const Kn of this.data.options){const Er=document.createElement("option");Er.textContent=Kn.displayValue,Er.value=Kn.exportValue,cn.value.includes(Kn.exportValue)&&(Er.setAttribute("selected",!0),An=!1),Pn.append(Er)}let In=null;if(An){const Kn=document.createElement("option");Kn.value=" ",Kn.setAttribute("hidden",!0),Kn.setAttribute("selected",!0),Pn.prepend(Kn),In=()=>{Kn.remove(),Pn.removeEventListener("input",In),In=null},Pn.addEventListener("input",In)}const On=Kn=>{const Er=Kn?"value":"textContent",{options:rr,multiple:ar}=Pn;return ar?Array.prototype.filter.call(rr,gr=>gr.selected).map(gr=>gr[Er]):rr.selectedIndex===-1?null:rr[rr.selectedIndex][Er]};let or=On(!1);const nr=Kn=>{const Er=Kn.target.options;return Array.prototype.map.call(Er,rr=>({displayValue:rr.textContent,exportValue:rr.value}))};return this.enableScripting&&this.hasJSActions?(Pn.addEventListener("updatefromsandbox",Kn=>{const Er={value(rr){In==null||In();const ar=rr.detail.value,gr=new Set(Array.isArray(ar)?ar:[ar]);for(const $r of Pn.options)$r.selected=gr.has($r.value);Xt.setValue(qt,{value:On(!0)}),or=On(!1)},multipleSelection(rr){Pn.multiple=!0},remove(rr){const ar=Pn.options,gr=rr.detail.remove;ar[gr].selected=!1,Pn.remove(gr),ar.length>0&&Array.prototype.findIndex.call(ar,Mr=>Mr.selected)===-1&&(ar[0].selected=!0),Xt.setValue(qt,{value:On(!0),items:nr(rr)}),or=On(!1)},clear(rr){for(;Pn.length!==0;)Pn.remove(0);Xt.setValue(qt,{value:null,items:[]}),or=On(!1)},insert(rr){const{index:ar,displayValue:gr,exportValue:$r}=rr.detail.insert,Mr=Pn.children[ar],Br=document.createElement("option");Br.textContent=gr,Br.value=$r,Mr?Mr.before(Br):Pn.append(Br),Xt.setValue(qt,{value:On(!0),items:nr(rr)}),or=On(!1)},items(rr){const{items:ar}=rr.detail;for(;Pn.length!==0;)Pn.remove(0);for(const gr of ar){const{displayValue:$r,exportValue:Mr}=gr,Br=document.createElement("option");Br.textContent=$r,Br.value=Mr,Pn.append(Br)}Pn.options.length>0&&(Pn.options[0].selected=!0),Xt.setValue(qt,{value:On(!0),items:nr(rr)}),or=On(!1)},indices(rr){const ar=new Set(rr.detail.indices);for(const gr of rr.target.options)gr.selected=ar.has(gr.index);Xt.setValue(qt,{value:On(!0)}),or=On(!1)},editable(rr){rr.target.disabled=!rr.detail.editable}};this._dispatchEventFromSandbox(Er,Kn)}),Pn.addEventListener("input",Kn=>{var rr;const Er=On(!0);Xt.setValue(qt,{value:Er}),Kn.preventDefault(),(rr=this.linkService.eventBus)==null||rr.dispatch("dispatcheventinsandbox",{source:this,detail:{id:qt,name:"Keystroke",value:or,changeEx:Er,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(Pn,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],Kn=>Kn.target.value)):Pn.addEventListener("input",function(Kn){Xt.setValue(qt,{value:On(!0)})}),this.data.combo&&this._setTextStyle(Pn),this._setBackgroundColor(Pn),this._setDefaultPropertiesFromJS(Pn),this.container.append(Pn),this.container}}class St extends ft{constructor(Xt){const{data:qt,elements:cn}=Xt;super(Xt,{isRenderable:ft._hasPopupData(qt)}),this.elements=cn}render(){this.container.classList.add("popupAnnotation");const Xt=new kt({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),qt=[];for(const cn of this.elements)cn.popup=Xt,qt.push(cn.data.id),cn.addHighlightArea();return this.container.setAttribute("aria-controls",qt.map(cn=>`${tt.AnnotationPrefix}${cn}`).join(",")),this.container}}class kt{constructor({container:Xt,color:qt,elements:cn,titleObj:Pn,modificationDate:An,contentsObj:In,richText:On,parent:or,rect:nr,parentRect:Kn,open:Er}){Sn(this,Ln);Sn(this,pn,null);Sn(this,gn,mn(this,Ln,iu).bind(this));Sn(this,bn,mn(this,Ln,Qs).bind(this));Sn(this,yn,mn(this,Ln,Zs).bind(this));Sn(this,$n,mn(this,Ln,cs).bind(this));Sn(this,kn,null);Sn(this,hn,null);Sn(this,un,null);Sn(this,Lt,null);Sn(this,Ut,null);Sn(this,nn,null);Sn(this,sn,!1);Sn(this,vn,null);Sn(this,Tn,null);Sn(this,Rn,null);Sn(this,on,null);Sn(this,Bn,!1);var ar;wn(this,hn,Xt),wn(this,on,Pn),wn(this,un,In),wn(this,Rn,On),wn(this,Ut,or),wn(this,kn,qt),wn(this,Tn,nr),wn(this,nn,Kn),wn(this,Lt,cn);const rr=nt.PDFDateString.toDateObject(An);rr&&wn(this,pn,or.l10n.get("annotation_date_string",{date:rr.toLocaleDateString(),time:rr.toLocaleTimeString()})),this.trigger=cn.flatMap(gr=>gr.getElementsToTriggerPopup());for(const gr of this.trigger)gr.addEventListener("click",Ct(this,$n)),gr.addEventListener("mouseenter",Ct(this,yn)),gr.addEventListener("mouseleave",Ct(this,bn)),gr.classList.add("popupTriggerArea");for(const gr of cn)(ar=gr.container)==null||ar.addEventListener("keydown",Ct(this,gn));Ct(this,hn).hidden=!0,Er&&mn(this,Ln,cs).call(this)}render(){if(Ct(this,vn))return;const{page:{view:Xt},viewport:{rawDims:{pageWidth:qt,pageHeight:cn,pageX:Pn,pageY:An}}}=Ct(this,Ut),In=wn(this,vn,document.createElement("div"));if(In.className="popup",Ct(this,kn)){const Zr=In.style.outlineColor=tt.Util.makeHexColor(...Ct(this,kn));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?In.style.backgroundColor=`color-mix(in srgb, ${Zr} 30%, white)`:In.style.backgroundColor=tt.Util.makeHexColor(...Ct(this,kn).map(xo=>Math.floor(.7*(255-xo)+xo)))}const On=document.createElement("span");On.className="header";const or=document.createElement("h1");if(On.append(or),{dir:or.dir,str:or.textContent}=Ct(this,on),In.append(On),Ct(this,pn)){const Zr=document.createElement("span");Zr.classList.add("popupDate"),Ct(this,pn).then(go=>{Zr.textContent=go}),On.append(Zr)}const nr=Ct(this,un),Kn=Ct(this,Rn);if(Kn!=null&&Kn.str&&(!(nr!=null&&nr.str)||nr.str===Kn.str))st.XfaLayer.render({xfaHtml:Kn.html,intent:"richText",div:In}),In.lastChild.classList.add("richText","popupContent");else{const Zr=this._formatContents(nr);In.append(Zr)}let Er=!!Ct(this,nn),rr=Er?Ct(this,nn):Ct(this,Tn);for(const Zr of Ct(this,Lt))if(!rr||tt.Util.intersect(Zr.data.rect,rr)!==null){rr=Zr.data.rect,Er=!0;break}const ar=tt.Util.normalizeRect([rr[0],Xt[3]-rr[1]+Xt[1],rr[2],Xt[3]-rr[3]+Xt[1]]),$r=Er?rr[2]-rr[0]+5:0,Mr=ar[0]+$r,Br=ar[1],{style:oo}=Ct(this,hn);oo.left=`${100*(Mr-Pn)/qt}%`,oo.top=`${100*(Br-An)/cn}%`,Ct(this,hn).append(In)}_formatContents({str:Xt,dir:qt}){const cn=document.createElement("p");cn.classList.add("popupContent"),cn.dir=qt;const Pn=Xt.split(/(?:\r\n?|\n)/);for(let An=0,In=Pn.length;An{In.key==="Enter"&&(An?In.metaKey:In.ctrlKey)&&mn(this,zn,Js).call(this)}),!cn.popupRef&&this.hasPopupData?this._createPopup():Pn.classList.add("popupTriggerArea"),qt.append(Pn),qt}getElementsToTriggerPopup(){return Ct(this,an)}addHighlightArea(){this.container.classList.add("highlightArea")}}an=new WeakMap,zn=new WeakSet,Js=function(){var qt;(qt=this.downloadManager)==null||qt.openOrDownloadData(this.container,this.content,this.filename)};class wt{constructor({div:Xt,accessibilityManager:qt,annotationCanvasMap:cn,l10n:Pn,page:An,viewport:In}){Sn(this,Un);Sn(this,Jn,null);Sn(this,Zt,null);Sn(this,Mn,new Map);this.div=Xt,wn(this,Jn,qt),wn(this,Zt,cn),this.l10n=Pn,this.page=An,this.viewport=In,this.zIndex=0,this.l10n||(this.l10n=it.NullL10n)}async render(Xt){const{annotations:qt}=Xt,cn=this.div;(0,nt.setLayerDimensions)(cn,this.viewport);const Pn=new Map,An={data:null,layer:cn,linkService:Xt.linkService,downloadManager:Xt.downloadManager,imageResourcesPath:Xt.imageResourcesPath||"",renderForms:Xt.renderForms!==!1,svgFactory:new nt.DOMSVGFactory,annotationStorage:Xt.annotationStorage||new rt.AnnotationStorage,enableScripting:Xt.enableScripting===!0,hasJSActions:Xt.hasJSActions,fieldObjects:Xt.fieldObjects,parent:this,elements:null};for(const In of qt){if(In.noHTML)continue;const On=In.annotationType===tt.AnnotationType.POPUP;if(On){const Kn=Pn.get(In.id);if(!Kn)continue;An.elements=Kn}else{const{width:Kn,height:Er}=pt(In.rect);if(Kn<=0||Er<=0)continue}An.data=In;const or=gt.create(An);if(!or.isRenderable)continue;if(!On&&In.popupRef){const Kn=Pn.get(In.popupRef);Kn?Kn.push(or):Pn.set(In.popupRef,[or])}or.annotationEditorType>0&&Ct(this,Mn).set(or.data.id,or);const nr=or.render();In.hidden&&(nr.style.visibility="hidden"),mn(this,Un,su).call(this,nr,In.id)}mn(this,Un,na).call(this),await this.l10n.translate(cn)}update({viewport:Xt}){const qt=this.div;this.viewport=Xt,(0,nt.setLayerDimensions)(qt,{rotation:Xt.rotation}),mn(this,Un,na).call(this),qt.hidden=!1}getEditableAnnotations(){return Array.from(Ct(this,Mn).values())}getEditableAnnotation(Xt){return Ct(this,Mn).get(Xt)}}Jn=new WeakMap,Zt=new WeakMap,Mn=new WeakMap,Un=new WeakSet,su=function(Xt,qt){var Pn;const cn=Xt.firstChild||Xt;cn.id=`${tt.AnnotationPrefix}${qt}`,this.div.append(Xt),(Pn=Ct(this,Jn))==null||Pn.moveElementInDOM(this.div,Xt,cn,!1)},na=function(){if(!Ct(this,Zt))return;const Xt=this.div;for(const[qt,cn]of Ct(this,Zt)){const Pn=Xt.querySelector(`[data-annotation-id="${qt}"]`);if(!Pn)continue;const{firstChild:An}=Pn;An?An.nodeName==="CANVAS"?An.replaceWith(cn):An.before(cn):Pn.append(cn)}Ct(this,Zt).clear()},_e.AnnotationLayer=wt},($,_e)=>{Object.defineProperty(_e,"__esModule",{value:!0}),_e.ColorConverters=void 0;function et(rt){return Math.floor(Math.max(0,Math.min(1,rt))*255).toString(16).padStart(2,"0")}function tt(rt){return Math.max(0,Math.min(255,255*rt))}class nt{static CMYK_G([ot,it,st,at]){return["G",1-Math.min(1,.3*ot+.59*st+.11*it+at)]}static G_CMYK([ot]){return["CMYK",0,0,0,1-ot]}static G_RGB([ot]){return["RGB",ot,ot,ot]}static G_rgb([ot]){return ot=tt(ot),[ot,ot,ot]}static G_HTML([ot]){const it=et(ot);return`#${it}${it}${it}`}static RGB_G([ot,it,st]){return["G",.3*ot+.59*it+.11*st]}static RGB_rgb(ot){return ot.map(tt)}static RGB_HTML(ot){return`#${ot.map(et).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([ot,it,st,at]){return["RGB",1-Math.min(1,ot+at),1-Math.min(1,st+at),1-Math.min(1,it+at)]}static CMYK_rgb([ot,it,st,at]){return[tt(1-Math.min(1,ot+at)),tt(1-Math.min(1,st+at)),tt(1-Math.min(1,it+at))]}static CMYK_HTML(ot){const it=this.CMYK_RGB(ot).slice(1);return this.RGB_HTML(it)}static RGB_CMYK([ot,it,st]){const at=1-ot,lt=1-it,ht=1-st,pt=Math.min(at,lt,ht);return["CMYK",at,lt,ht,pt]}}_e.ColorConverters=nt},($,_e)=>{Object.defineProperty(_e,"__esModule",{value:!0}),_e.NullL10n=void 0,_e.getL10nFallback=tt;const et={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing…",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"};et.print_progress_percent="{{progress}}%";function tt(ot,it){switch(ot){case"find_match_count":ot=`find_match_count[${it.total===1?"one":"other"}]`;break;case"find_match_count_limit":ot=`find_match_count_limit[${it.limit===1?"one":"other"}]`;break}return et[ot]||""}function nt(ot,it){return it?ot.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,(st,at)=>at in it?it[at]:"{{"+at+"}}"):ot}const rt={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(ot,it=null,st=tt(ot,it)){return nt(st,it)},async translate(ot){}};_e.NullL10n=rt},($,_e,et)=>{Object.defineProperty(_e,"__esModule",{value:!0}),_e.XfaLayer=void 0;var tt=et(25);class nt{static setupStorage(ot,it,st,at,lt){const ht=at.getValue(it,{value:null});switch(st.name){case"textarea":if(ht.value!==null&&(ot.textContent=ht.value),lt==="print")break;ot.addEventListener("input",pt=>{at.setValue(it,{value:pt.target.value})});break;case"input":if(st.attributes.type==="radio"||st.attributes.type==="checkbox"){if(ht.value===st.attributes.xfaOn?ot.setAttribute("checked",!0):ht.value===st.attributes.xfaOff&&ot.removeAttribute("checked"),lt==="print")break;ot.addEventListener("change",pt=>{at.setValue(it,{value:pt.target.checked?pt.target.getAttribute("xfaOn"):pt.target.getAttribute("xfaOff")})})}else{if(ht.value!==null&&ot.setAttribute("value",ht.value),lt==="print")break;ot.addEventListener("input",pt=>{at.setValue(it,{value:pt.target.value})})}break;case"select":if(ht.value!==null){ot.setAttribute("value",ht.value);for(const pt of st.children)pt.attributes.value===ht.value?pt.attributes.selected=!0:pt.attributes.hasOwnProperty("selected")&&delete pt.attributes.selected}ot.addEventListener("input",pt=>{const gt=pt.target.options,ft=gt.selectedIndex===-1?"":gt[gt.selectedIndex].value;at.setValue(it,{value:ft})});break}}static setAttributes({html:ot,element:it,storage:st=null,intent:at,linkService:lt}){const{attributes:ht}=it,pt=ot instanceof HTMLAnchorElement;ht.type==="radio"&&(ht.name=`${ht.name}-${at}`);for(const[gt,ft]of Object.entries(ht))if(ft!=null)switch(gt){case"class":ft.length&&ot.setAttribute(gt,ft.join(" "));break;case"dataId":break;case"id":ot.setAttribute("data-element-id",ft);break;case"style":Object.assign(ot.style,ft);break;case"textContent":ot.textContent=ft;break;default:(!pt||gt!=="href"&>!=="newWindow")&&ot.setAttribute(gt,ft)}pt&<.addLinkAttributes(ot,ht.href,ht.newWindow),st&&ht.dataId&&this.setupStorage(ot,ht.dataId,it,st)}static render(ot){var dt;const it=ot.annotationStorage,st=ot.linkService,at=ot.xfaHtml,lt=ot.intent||"display",ht=document.createElement(at.name);at.attributes&&this.setAttributes({html:ht,element:at,intent:lt,linkService:st});const pt=[[at,-1,ht]],gt=ot.div;if(gt.append(ht),ot.viewport){const mt=`matrix(${ot.viewport.transform.join(",")})`;gt.style.transform=mt}lt!=="richText"&>.setAttribute("class","xfaLayer xfaFont");const ft=[];for(;pt.length>0;){const[mt,ct,ut]=pt.at(-1);if(ct+1===mt.children.length){pt.pop();continue}const vt=mt.children[++pt.at(-1)[1]];if(vt===null)continue;const{name:bt}=vt;if(bt==="#text"){const Et=document.createTextNode(vt.value);ft.push(Et),ut.append(Et);continue}const yt=(dt=vt==null?void 0:vt.attributes)!=null&&dt.xmlns?document.createElementNS(vt.attributes.xmlns,bt):document.createElement(bt);if(ut.append(yt),vt.attributes&&this.setAttributes({html:yt,element:vt,storage:it,intent:lt,linkService:st}),vt.children&&vt.children.length>0)pt.push([vt,-1,yt]);else if(vt.value){const Et=document.createTextNode(vt.value);tt.XfaText.shouldBuildText(bt)&&ft.push(Et),yt.append(Et)}}for(const mt of gt.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))mt.setAttribute("readOnly",!0);return{textDivs:ft}}static update(ot){const it=`matrix(${ot.viewport.transform.join(",")})`;ot.div.style.transform=it,ot.div.hidden=!1}}_e.XfaLayer=nt},($,_e,et)=>{var at,lt,ht,pt,gt,ft,dt,mt,ct,ut,vt,bt,yt,Et,xt,au,lu,cu,uu,ga,du,xa,pu,fu,hu,mu,gu,_o,ba,us,ds,Fo,_a,ps,zt,vu,$a,xu,yu,xl,fs,Oo;Object.defineProperty(_e,"__esModule",{value:!0}),_e.InkEditor=void 0;var tt=et(1),nt=et(4),rt=et(29),ot=et(6),it=et(5);const kn=class kn extends nt.AnnotationEditor{constructor(Lt){super({...Lt,name:"inkEditor"});Sn(this,xt);Sn(this,at,0);Sn(this,lt,0);Sn(this,ht,this.canvasPointermove.bind(this));Sn(this,pt,this.canvasPointerleave.bind(this));Sn(this,gt,this.canvasPointerup.bind(this));Sn(this,ft,this.canvasPointerdown.bind(this));Sn(this,dt,new Path2D);Sn(this,mt,!1);Sn(this,ct,!1);Sn(this,ut,!1);Sn(this,vt,null);Sn(this,bt,0);Sn(this,yt,0);Sn(this,Et,null);this.color=Lt.color||null,this.thickness=Lt.thickness||null,this.opacity=Lt.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(Lt){nt.AnnotationEditor.initialize(Lt,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(Lt,Ut){switch(Lt){case tt.AnnotationEditorParamsType.INK_THICKNESS:kn._defaultThickness=Ut;break;case tt.AnnotationEditorParamsType.INK_COLOR:kn._defaultColor=Ut;break;case tt.AnnotationEditorParamsType.INK_OPACITY:kn._defaultOpacity=Ut/100;break}}updateParams(Lt,Ut){switch(Lt){case tt.AnnotationEditorParamsType.INK_THICKNESS:mn(this,xt,au).call(this,Ut);break;case tt.AnnotationEditorParamsType.INK_COLOR:mn(this,xt,lu).call(this,Ut);break;case tt.AnnotationEditorParamsType.INK_OPACITY:mn(this,xt,cu).call(this,Ut);break}}static get defaultPropertiesToUpdate(){return[[tt.AnnotationEditorParamsType.INK_THICKNESS,kn._defaultThickness],[tt.AnnotationEditorParamsType.INK_COLOR,kn._defaultColor||nt.AnnotationEditor._defaultLineColor],[tt.AnnotationEditorParamsType.INK_OPACITY,Math.round(kn._defaultOpacity*100)]]}get propertiesToUpdate(){return[[tt.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||kn._defaultThickness],[tt.AnnotationEditorParamsType.INK_COLOR,this.color||kn._defaultColor||nt.AnnotationEditor._defaultLineColor],[tt.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??kn._defaultOpacity))]]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.canvas||(mn(this,xt,us).call(this),mn(this,xt,ds).call(this)),this.isAttachedToDOM||(this.parent.add(this),mn(this,xt,Fo).call(this)),mn(this,xt,Oo).call(this)))}remove(){this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,Ct(this,vt).disconnect(),wn(this,vt,null),super.remove())}setParent(Lt){!this.parent&&Lt?this._uiManager.removeShouldRescale(this):this.parent&&Lt===null&&this._uiManager.addShouldRescale(this),super.setParent(Lt)}onScaleChanging(){const[Lt,Ut]=this.parentDimensions,nn=this.width*Lt,sn=this.height*Ut;this.setDimensions(nn,sn)}enableEditMode(){Ct(this,mt)||this.canvas===null||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",Ct(this,ft)))}disableEditMode(){!this.isInEditMode()||this.canvas===null||(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",Ct(this,ft)))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}commit(){Ct(this,mt)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),wn(this,mt,!0),this.div.classList.add("disabled"),mn(this,xt,Oo).call(this,!0),this.makeResizable(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(Lt){this._focusEventsAllowed&&(super.focusin(Lt),this.enableEditMode())}canvasPointerdown(Lt){Lt.button!==0||!this.isInEditMode()||Ct(this,mt)||(this.setInForeground(),Lt.preventDefault(),Lt.type!=="mouse"&&this.div.focus(),mn(this,xt,du).call(this,Lt.offsetX,Lt.offsetY))}canvasPointermove(Lt){Lt.preventDefault(),mn(this,xt,xa).call(this,Lt.offsetX,Lt.offsetY)}canvasPointerup(Lt){Lt.preventDefault(),mn(this,xt,ba).call(this,Lt)}canvasPointerleave(Lt){mn(this,xt,ba).call(this,Lt)}get isResizable(){return!this.isEmpty()&&Ct(this,mt)}render(){if(this.div)return this.div;let Lt,Ut;this.width&&(Lt=this.x,Ut=this.y),super.render(),nt.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then(Rn=>{var on;return(on=this.div)==null?void 0:on.setAttribute("aria-label",Rn)});const[nn,sn,vn,Tn]=mn(this,xt,uu).call(this);if(this.setAt(nn,sn,0,0),this.setDims(vn,Tn),mn(this,xt,us).call(this),this.width){const[Rn,on]=this.parentDimensions;this.setAspectRatio(this.width*Rn,this.height*on),this.setAt(Lt*Rn,Ut*on,this.width*Rn,this.height*on),wn(this,ut,!0),mn(this,xt,Fo).call(this),this.setDims(this.width*Rn,this.height*on),mn(this,xt,_o).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return mn(this,xt,ds).call(this),this.div}setDimensions(Lt,Ut){const nn=Math.round(Lt),sn=Math.round(Ut);if(Ct(this,bt)===nn&&Ct(this,yt)===sn)return;wn(this,bt,nn),wn(this,yt,sn),this.canvas.style.visibility="hidden";const[vn,Tn]=this.parentDimensions;this.width=Lt/vn,this.height=Ut/Tn,this.fixAndSetPosition(),Ct(this,mt)&&mn(this,xt,_a).call(this,Lt,Ut),mn(this,xt,Fo).call(this),mn(this,xt,_o).call(this),this.canvas.style.visibility="visible",this.fixDims()}static deserialize(Lt,Ut,nn){var tr,Wn,cr;if(Lt instanceof rt.InkAnnotationElement)return null;const sn=super.deserialize(Lt,Ut,nn);sn.thickness=Lt.thickness,sn.color=tt.Util.makeHexColor(...Lt.color),sn.opacity=Lt.opacity;const[vn,Tn]=sn.pageDimensions,Rn=sn.width*vn,on=sn.height*Tn,Bn=sn.parentScale,Ln=Lt.thickness/2;wn(sn,mt,!0),wn(sn,bt,Math.round(Rn)),wn(sn,yt,Math.round(on));const{paths:Zn,rect:Nn,rotation:mr}=Lt;for(let{bezier:fn}of Zn){fn=mn(tr=kn,zt,xu).call(tr,fn,Nn,mr);const en=[];sn.paths.push(en);let an=Bn*(fn[0]-Ln),zn=Bn*(fn[1]-Ln);for(let Jn=2,Zt=fn.length;Jn{this.thickness=Lt,mn(this,xt,Oo).call(this)},undo:()=>{this.thickness=Ut,mn(this,xt,Oo).call(this)},mustExec:!0,type:tt.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})},lu=function(Lt){const Ut=this.color;this.addCommands({cmd:()=>{this.color=Lt,mn(this,xt,_o).call(this)},undo:()=>{this.color=Ut,mn(this,xt,_o).call(this)},mustExec:!0,type:tt.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})},cu=function(Lt){Lt/=100;const Ut=this.opacity;this.addCommands({cmd:()=>{this.opacity=Lt,mn(this,xt,_o).call(this)},undo:()=>{this.opacity=Ut,mn(this,xt,_o).call(this)},mustExec:!0,type:tt.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})},uu=function(){const{parentRotation:Lt,parentDimensions:[Ut,nn]}=this;switch(Lt){case 90:return[0,nn,nn,Ut];case 180:return[Ut,nn,Ut,nn];case 270:return[Ut,0,nn,Ut];default:return[0,0,Ut,nn]}},ga=function(){const{ctx:Lt,color:Ut,opacity:nn,thickness:sn,parentScale:vn,scaleFactor:Tn}=this;Lt.lineWidth=sn*vn/Tn,Lt.lineCap="round",Lt.lineJoin="round",Lt.miterLimit=10,Lt.strokeStyle=`${Ut}${(0,it.opacityToHex)(nn)}`},du=function(Lt,Ut){this.canvas.addEventListener("contextmenu",ot.noContextMenu),this.canvas.addEventListener("pointerleave",Ct(this,pt)),this.canvas.addEventListener("pointermove",Ct(this,ht)),this.canvas.addEventListener("pointerup",Ct(this,gt)),this.canvas.removeEventListener("pointerdown",Ct(this,ft)),this.isEditing=!0,Ct(this,ut)||(wn(this,ut,!0),mn(this,xt,Fo).call(this),this.thickness||(this.thickness=kn._defaultThickness),this.color||(this.color=kn._defaultColor||nt.AnnotationEditor._defaultLineColor),this.opacity??(this.opacity=kn._defaultOpacity)),this.currentPath.push([Lt,Ut]),wn(this,ct,!1),mn(this,xt,ga).call(this),wn(this,Et,()=>{mn(this,xt,hu).call(this),Ct(this,Et)&&window.requestAnimationFrame(Ct(this,Et))}),window.requestAnimationFrame(Ct(this,Et))},xa=function(Lt,Ut){const[nn,sn]=this.currentPath.at(-1);if(this.currentPath.length>1&&Lt===nn&&Ut===sn)return;const vn=this.currentPath;let Tn=Ct(this,dt);if(vn.push([Lt,Ut]),wn(this,ct,!0),vn.length<=2){Tn.moveTo(...vn[0]),Tn.lineTo(Lt,Ut);return}vn.length===3&&(wn(this,dt,Tn=new Path2D),Tn.moveTo(...vn[0])),mn(this,xt,mu).call(this,Tn,...vn.at(-3),...vn.at(-2),Lt,Ut)},pu=function(){if(this.currentPath.length===0)return;const Lt=this.currentPath.at(-1);Ct(this,dt).lineTo(...Lt)},fu=function(Lt,Ut){wn(this,Et,null),Lt=Math.min(Math.max(Lt,0),this.canvas.width),Ut=Math.min(Math.max(Ut,0),this.canvas.height),mn(this,xt,xa).call(this,Lt,Ut),mn(this,xt,pu).call(this);let nn;if(this.currentPath.length!==1)nn=mn(this,xt,gu).call(this);else{const on=[Lt,Ut];nn=[[on,on.slice(),on.slice(),on]]}const sn=Ct(this,dt),vn=this.currentPath;this.currentPath=[],wn(this,dt,new Path2D);const Tn=()=>{this.allRawPaths.push(vn),this.paths.push(nn),this.bezierPath2D.push(sn),this.rebuild()},Rn=()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(mn(this,xt,us).call(this),mn(this,xt,ds).call(this)),mn(this,xt,Oo).call(this))};this.addCommands({cmd:Tn,undo:Rn,mustExec:!0})},hu=function(){if(!Ct(this,ct))return;wn(this,ct,!1);const Lt=Math.ceil(this.thickness*this.parentScale),Ut=this.currentPath.slice(-3),nn=Ut.map(Tn=>Tn[0]),sn=Ut.map(Tn=>Tn[1]);Math.min(...nn)-Lt,Math.max(...nn)+Lt,Math.min(...sn)-Lt,Math.max(...sn)+Lt;const{ctx:vn}=this;vn.save(),vn.clearRect(0,0,this.canvas.width,this.canvas.height);for(const Tn of this.bezierPath2D)vn.stroke(Tn);vn.stroke(Ct(this,dt)),vn.restore()},mu=function(Lt,Ut,nn,sn,vn,Tn,Rn){const on=(Ut+sn)/2,Bn=(nn+vn)/2,Ln=(sn+Tn)/2,Zn=(vn+Rn)/2;Lt.bezierCurveTo(on+2*(sn-on)/3,Bn+2*(vn-Bn)/3,Ln+2*(sn-Ln)/3,Zn+2*(vn-Zn)/3,Ln,Zn)},gu=function(){const Lt=this.currentPath;if(Lt.length<=2)return[[Lt[0],Lt[0],Lt.at(-1),Lt.at(-1)]];const Ut=[];let nn,[sn,vn]=Lt[0];for(nn=1;nn{this.canvas.removeEventListener("contextmenu",ot.noContextMenu)},10),mn(this,xt,fu).call(this,Lt.offsetX,Lt.offsetY),this.addToAnnotationStorage(),this.setInBackground()},us=function(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",nt.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then(Lt=>{var Ut;return(Ut=this.canvas)==null?void 0:Ut.setAttribute("aria-label",Lt)}),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")},ds=function(){wn(this,vt,new ResizeObserver(Lt=>{const Ut=Lt[0].contentRect;Ut.width&&Ut.height&&this.setDimensions(Ut.width,Ut.height)})),Ct(this,vt).observe(this.div)},Fo=function(){if(!Ct(this,ut))return;const[Lt,Ut]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*Lt),this.canvas.height=Math.ceil(this.height*Ut),mn(this,xt,ps).call(this)},_a=function(Lt,Ut){const nn=mn(this,xt,fs).call(this),sn=(Lt-nn)/Ct(this,lt),vn=(Ut-nn)/Ct(this,at);this.scaleFactor=Math.min(sn,vn)},ps=function(){const Lt=mn(this,xt,fs).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+Lt,this.translationY*this.scaleFactor+Lt)},zt=new WeakSet,vu=function(Lt){const Ut=new Path2D;for(let nn=0,sn=Lt.length;nn{var st,at,lt,ht,pt,gt,ft,dt,mt,ct,ut,qo,Ko,hs,yl,bu,Eu,El,ms,_u;Object.defineProperty(_e,"__esModule",{value:!0}),_e.StampEditor=void 0;var tt=et(1),nt=et(4),rt=et(6),ot=et(29);const Tt=class Tt extends nt.AnnotationEditor{constructor(Bt){super({...Bt,name:"stampEditor"});Sn(this,ut);Sn(this,st,null);Sn(this,at,null);Sn(this,lt,null);Sn(this,ht,null);Sn(this,pt,null);Sn(this,gt,null);Sn(this,ft,null);Sn(this,dt,null);Sn(this,mt,!1);Sn(this,ct,!1);wn(this,ht,Bt.bitmapUrl),wn(this,pt,Bt.bitmapFile)}static initialize(Bt){nt.AnnotationEditor.initialize(Bt)}static get supportedTypes(){const Bt=["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"];return(0,tt.shadow)(this,"supportedTypes",Bt.map(Kt=>`image/${Kt}`))}static get supportedTypesStr(){return(0,tt.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(Bt){return this.supportedTypes.includes(Bt)}static paste(Bt,Kt){Kt.pasteEditor(tt.AnnotationEditorType.STAMP,{bitmapFile:Bt.getAsFile()})}remove(){var Bt,Kt;Ct(this,at)&&(wn(this,st,null),this._uiManager.imageManager.deleteId(Ct(this,at)),(Bt=Ct(this,gt))==null||Bt.remove(),wn(this,gt,null),(Kt=Ct(this,ft))==null||Kt.disconnect(),wn(this,ft,null)),super.remove()}rebuild(){if(!this.parent){Ct(this,at)&&mn(this,ut,hs).call(this);return}super.rebuild(),this.div!==null&&(Ct(this,at)&&mn(this,ut,hs).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(Ct(this,lt)||Ct(this,st)||Ct(this,ht)||Ct(this,pt))}get isResizable(){return!0}render(){if(this.div)return this.div;let Bt,Kt;if(this.width&&(Bt=this.x,Kt=this.y),super.render(),this.div.hidden=!0,Ct(this,st)?mn(this,ut,yl).call(this):mn(this,ut,hs).call(this),this.width){const[Vt,Wt]=this.parentDimensions;this.setAt(Bt*Vt,Kt*Wt,this.width*Vt,this.height*Wt)}return this.div}static deserialize(Bt,Kt,Vt){if(Bt instanceof ot.StampAnnotationElement)return null;const Wt=super.deserialize(Bt,Kt,Vt),{rect:It,bitmapUrl:Ft,bitmapId:Yt,isSvg:Dt,accessibilityData:Rt}=Bt;Yt&&Vt.imageManager.isValidId(Yt)?wn(Wt,at,Yt):wn(Wt,ht,Ft),wn(Wt,mt,Dt);const[wt,Mt]=Wt.pageDimensions;return Wt.width=(It[2]-It[0])/wt,Wt.height=(It[3]-It[1])/Mt,Rt&&(Wt.altTextData=Rt),Wt}serialize(Bt=!1,Kt=null){if(this.isEmpty())return null;const Vt={annotationType:tt.AnnotationEditorType.STAMP,bitmapId:Ct(this,at),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:Ct(this,mt),structTreeParentId:this._structTreeParentId};if(Bt)return Vt.bitmapUrl=mn(this,ut,ms).call(this,!0),Vt.accessibilityData=this.altTextData,Vt;const{decorative:Wt,altText:It}=this.altTextData;if(!Wt&&It&&(Vt.accessibilityData={type:"Figure",alt:It}),Kt===null)return Vt;Kt.stamps||(Kt.stamps=new Map);const Ft=Ct(this,mt)?(Vt.rect[2]-Vt.rect[0])*(Vt.rect[3]-Vt.rect[1]):null;if(!Kt.stamps.has(Ct(this,at)))Kt.stamps.set(Ct(this,at),{area:Ft,serialized:Vt}),Vt.bitmap=mn(this,ut,ms).call(this,!1);else if(Ct(this,mt)){const Yt=Kt.stamps.get(Ct(this,at));Ft>Yt.area&&(Yt.area=Ft,Yt.serialized.bitmap.close(),Yt.serialized.bitmap=mn(this,ut,ms).call(this,!1))}return Vt}};st=new WeakMap,at=new WeakMap,lt=new WeakMap,ht=new WeakMap,pt=new WeakMap,gt=new WeakMap,ft=new WeakMap,dt=new WeakMap,mt=new WeakMap,ct=new WeakMap,ut=new WeakSet,qo=function(Bt,Kt=!1){if(!Bt){this.remove();return}wn(this,st,Bt.bitmap),Kt||(wn(this,at,Bt.id),wn(this,mt,Bt.isSvg)),mn(this,ut,yl).call(this)},Ko=function(){wn(this,lt,null),this._uiManager.enableWaiting(!1),Ct(this,gt)&&this.div.focus()},hs=function(){if(Ct(this,at)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(Ct(this,at)).then(Kt=>mn(this,ut,qo).call(this,Kt,!0)).finally(()=>mn(this,ut,Ko).call(this));return}if(Ct(this,ht)){const Kt=Ct(this,ht);wn(this,ht,null),this._uiManager.enableWaiting(!0),wn(this,lt,this._uiManager.imageManager.getFromUrl(Kt).then(Vt=>mn(this,ut,qo).call(this,Vt)).finally(()=>mn(this,ut,Ko).call(this)));return}if(Ct(this,pt)){const Kt=Ct(this,pt);wn(this,pt,null),this._uiManager.enableWaiting(!0),wn(this,lt,this._uiManager.imageManager.getFromFile(Kt).then(Vt=>mn(this,ut,qo).call(this,Vt)).finally(()=>mn(this,ut,Ko).call(this)));return}const Bt=document.createElement("input");Bt.type="file",Bt.accept=Tt.supportedTypesStr,wn(this,lt,new Promise(Kt=>{Bt.addEventListener("change",async()=>{if(!Bt.files||Bt.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const Vt=await this._uiManager.imageManager.getFromFile(Bt.files[0]);mn(this,ut,qo).call(this,Vt)}Kt()}),Bt.addEventListener("cancel",()=>{this.remove(),Kt()})}).finally(()=>mn(this,ut,Ko).call(this))),Bt.click()},yl=function(){const{div:Bt}=this;let{width:Kt,height:Vt}=Ct(this,st);const[Wt,It]=this.pageDimensions,Ft=.75;if(this.width)Kt=this.width*Wt,Vt=this.height*It;else if(Kt>Ft*Wt||Vt>Ft*It){const wt=Math.min(Ft*Wt/Kt,Ft*It/Vt);Kt*=wt,Vt*=wt}const[Yt,Dt]=this.parentDimensions;this.setDims(Kt*Yt/Wt,Vt*Dt/It),this._uiManager.enableWaiting(!1);const Rt=wn(this,gt,document.createElement("canvas"));Bt.append(Rt),Bt.hidden=!1,mn(this,ut,El).call(this,Kt,Vt),mn(this,ut,_u).call(this),Ct(this,ct)||(this.parent.addUndoableEditor(this),wn(this,ct,!0)),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()},bu=function(Bt,Kt){var Ft;const[Vt,Wt]=this.parentDimensions;this.width=Bt/Vt,this.height=Kt/Wt,this.setDims(Bt,Kt),(Ft=this._initialOptions)!=null&&Ft.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,Ct(this,dt)!==null&&clearTimeout(Ct(this,dt)),wn(this,dt,setTimeout(()=>{wn(this,dt,null),mn(this,ut,El).call(this,Bt,Kt)},200))},Eu=function(Bt,Kt){const{width:Vt,height:Wt}=Ct(this,st);let It=Vt,Ft=Wt,Yt=Ct(this,st);for(;It>2*Bt||Ft>2*Kt;){const Dt=It,Rt=Ft;It>2*Bt&&(It=It>=16384?Math.floor(It/2)-1:Math.ceil(It/2)),Ft>2*Kt&&(Ft=Ft>=16384?Math.floor(Ft/2)-1:Math.ceil(Ft/2));const wt=new OffscreenCanvas(It,Ft);wt.getContext("2d").drawImage(Yt,0,0,Dt,Rt,0,0,It,Ft),Yt=wt.transferToImageBitmap()}return Yt},El=function(Bt,Kt){Bt=Math.ceil(Bt),Kt=Math.ceil(Kt);const Vt=Ct(this,gt);if(!Vt||Vt.width===Bt&&Vt.height===Kt)return;Vt.width=Bt,Vt.height=Kt;const Wt=Ct(this,mt)?Ct(this,st):mn(this,ut,Eu).call(this,Bt,Kt),It=Vt.getContext("2d");It.filter=this._uiManager.hcmFilter,It.drawImage(Wt,0,0,Wt.width,Wt.height,0,0,Bt,Kt)},ms=function(Bt){if(Bt){if(Ct(this,mt)){const Wt=this._uiManager.imageManager.getSvgUrl(Ct(this,at));if(Wt)return Wt}const Kt=document.createElement("canvas");return{width:Kt.width,height:Kt.height}=Ct(this,st),Kt.getContext("2d").drawImage(Ct(this,st),0,0),Kt.toDataURL()}if(Ct(this,mt)){const[Kt,Vt]=this.pageDimensions,Wt=Math.round(this.width*Kt*rt.PixelsPerInch.PDF_TO_CSS_UNITS),It=Math.round(this.height*Vt*rt.PixelsPerInch.PDF_TO_CSS_UNITS),Ft=new OffscreenCanvas(Wt,It);return Ft.getContext("2d").drawImage(Ct(this,st),0,0,Ct(this,st).width,Ct(this,st).height,0,0,Wt,It),Ft.transferToImageBitmap()}return structuredClone(Ct(this,st))},_u=function(){wn(this,ft,new ResizeObserver(Bt=>{const Kt=Bt[0].contentRect;Kt.width&&Kt.height&&mn(this,ut,bu).call(this,Kt.width,Kt.height)})),Ct(this,ft).observe(this.div)},Gr(Tt,"_type","stamp");let it=Tt;_e.StampEditor=it}],__webpack_module_cache__={};function __w_pdfjs_require__($){var _e=__webpack_module_cache__[$];if(_e!==void 0)return _e.exports;var et=__webpack_module_cache__[$]={exports:{}};return __webpack_modules__[$](et,et.exports,__w_pdfjs_require__),et.exports}var __webpack_exports__={};return(()=>{var $=__webpack_exports__;Object.defineProperty($,"__esModule",{value:!0}),Object.defineProperty($,"AbortException",{enumerable:!0,get:function(){return _e.AbortException}}),Object.defineProperty($,"AnnotationEditorLayer",{enumerable:!0,get:function(){return rt.AnnotationEditorLayer}}),Object.defineProperty($,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return _e.AnnotationEditorParamsType}}),Object.defineProperty($,"AnnotationEditorType",{enumerable:!0,get:function(){return _e.AnnotationEditorType}}),Object.defineProperty($,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return ot.AnnotationEditorUIManager}}),Object.defineProperty($,"AnnotationLayer",{enumerable:!0,get:function(){return it.AnnotationLayer}}),Object.defineProperty($,"AnnotationMode",{enumerable:!0,get:function(){return _e.AnnotationMode}}),Object.defineProperty($,"CMapCompressionType",{enumerable:!0,get:function(){return _e.CMapCompressionType}}),Object.defineProperty($,"DOMSVGFactory",{enumerable:!0,get:function(){return tt.DOMSVGFactory}}),Object.defineProperty($,"FeatureTest",{enumerable:!0,get:function(){return _e.FeatureTest}}),Object.defineProperty($,"GlobalWorkerOptions",{enumerable:!0,get:function(){return st.GlobalWorkerOptions}}),Object.defineProperty($,"ImageKind",{enumerable:!0,get:function(){return _e.ImageKind}}),Object.defineProperty($,"InvalidPDFException",{enumerable:!0,get:function(){return _e.InvalidPDFException}}),Object.defineProperty($,"MissingPDFException",{enumerable:!0,get:function(){return _e.MissingPDFException}}),Object.defineProperty($,"OPS",{enumerable:!0,get:function(){return _e.OPS}}),Object.defineProperty($,"PDFDataRangeTransport",{enumerable:!0,get:function(){return et.PDFDataRangeTransport}}),Object.defineProperty($,"PDFDateString",{enumerable:!0,get:function(){return tt.PDFDateString}}),Object.defineProperty($,"PDFWorker",{enumerable:!0,get:function(){return et.PDFWorker}}),Object.defineProperty($,"PasswordResponses",{enumerable:!0,get:function(){return _e.PasswordResponses}}),Object.defineProperty($,"PermissionFlag",{enumerable:!0,get:function(){return _e.PermissionFlag}}),Object.defineProperty($,"PixelsPerInch",{enumerable:!0,get:function(){return tt.PixelsPerInch}}),Object.defineProperty($,"PromiseCapability",{enumerable:!0,get:function(){return _e.PromiseCapability}}),Object.defineProperty($,"RenderingCancelledException",{enumerable:!0,get:function(){return tt.RenderingCancelledException}}),Object.defineProperty($,"SVGGraphics",{enumerable:!0,get:function(){return et.SVGGraphics}}),Object.defineProperty($,"UnexpectedResponseException",{enumerable:!0,get:function(){return _e.UnexpectedResponseException}}),Object.defineProperty($,"Util",{enumerable:!0,get:function(){return _e.Util}}),Object.defineProperty($,"VerbosityLevel",{enumerable:!0,get:function(){return _e.VerbosityLevel}}),Object.defineProperty($,"XfaLayer",{enumerable:!0,get:function(){return at.XfaLayer}}),Object.defineProperty($,"build",{enumerable:!0,get:function(){return et.build}}),Object.defineProperty($,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return _e.createValidAbsoluteUrl}}),Object.defineProperty($,"getDocument",{enumerable:!0,get:function(){return et.getDocument}}),Object.defineProperty($,"getFilenameFromUrl",{enumerable:!0,get:function(){return tt.getFilenameFromUrl}}),Object.defineProperty($,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return tt.getPdfFilenameFromUrl}}),Object.defineProperty($,"getXfaPageViewport",{enumerable:!0,get:function(){return tt.getXfaPageViewport}}),Object.defineProperty($,"isDataScheme",{enumerable:!0,get:function(){return tt.isDataScheme}}),Object.defineProperty($,"isPdfFile",{enumerable:!0,get:function(){return tt.isPdfFile}}),Object.defineProperty($,"loadScript",{enumerable:!0,get:function(){return tt.loadScript}}),Object.defineProperty($,"noContextMenu",{enumerable:!0,get:function(){return tt.noContextMenu}}),Object.defineProperty($,"normalizeUnicode",{enumerable:!0,get:function(){return _e.normalizeUnicode}}),Object.defineProperty($,"renderTextLayer",{enumerable:!0,get:function(){return nt.renderTextLayer}}),Object.defineProperty($,"setLayerDimensions",{enumerable:!0,get:function(){return tt.setLayerDimensions}}),Object.defineProperty($,"shadow",{enumerable:!0,get:function(){return _e.shadow}}),Object.defineProperty($,"updateTextLayer",{enumerable:!0,get:function(){return nt.updateTextLayer}}),Object.defineProperty($,"version",{enumerable:!0,get:function(){return et.version}});var _e=__w_pdfjs_require__(1),et=__w_pdfjs_require__(2),tt=__w_pdfjs_require__(6),nt=__w_pdfjs_require__(26),rt=__w_pdfjs_require__(27),ot=__w_pdfjs_require__(5),it=__w_pdfjs_require__(29),st=__w_pdfjs_require__(14),at=__w_pdfjs_require__(32)})(),__webpack_exports__})())})(pdf);var pdfExports=pdf.exports;(function($){var _e=reactExports,et=pdfExports;function tt(Pt){var Nt=Object.create(null);return Pt&&Object.keys(Pt).forEach(function(Qt){if(Qt!=="default"){var tn=Object.getOwnPropertyDescriptor(Pt,Qt);Object.defineProperty(Nt,Qt,tn.get?tn:{enumerable:!0,get:function(){return Pt[Qt]}})}}),Nt.default=Pt,Object.freeze(Nt)}var nt,rt=tt(_e),ot=tt(et);$.AnnotationType=void 0,(nt=$.AnnotationType||($.AnnotationType={}))[nt.Text=1]="Text",nt[nt.Link=2]="Link",nt[nt.FreeText=3]="FreeText",nt[nt.Line=4]="Line",nt[nt.Square=5]="Square",nt[nt.Circle=6]="Circle",nt[nt.Polygon=7]="Polygon",nt[nt.Polyline=8]="Polyline",nt[nt.Highlight=9]="Highlight",nt[nt.Underline=10]="Underline",nt[nt.Squiggly=11]="Squiggly",nt[nt.StrikeOut=12]="StrikeOut",nt[nt.Stamp=13]="Stamp",nt[nt.Caret=14]="Caret",nt[nt.Ink=15]="Ink",nt[nt.Popup=16]="Popup",nt[nt.FileAttachment=17]="FileAttachment";var it=function(Pt,Nt){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qt,tn){Qt.__proto__=tn}||function(Qt,tn){for(var ln in tn)Object.prototype.hasOwnProperty.call(tn,ln)&&(Qt[ln]=tn[ln])},it(Pt,Nt)};function st(Pt,Nt){if(typeof Nt!="function"&&Nt!==null)throw new TypeError("Class extends value "+String(Nt)+" is not a constructor or null");function Qt(){this.constructor=Pt}it(Pt,Nt),Pt.prototype=Nt===null?Object.create(Nt):(Qt.prototype=Nt.prototype,new Qt)}var at,lt=function(){return lt=Object.assign||function(Pt){for(var Nt,Qt=1,tn=arguments.length;QtWt});if(!xn.length)return-1;for(var rn=xn[0].pageIndex,_n=xn[xn.length-1].pageIndex,En=xn.length,Fn=0;Fn=0&&dn.current.visibilities[rn-1].renderStatus!==yt.Rendered?rn-1:-1},isInRange:function(xn){return xn>=dn.current.startRange&&xn<=dn.current.endRange},markNotRendered:function(){for(var xn=0;xnrn)&&(dn.current.visibilities[_n].visibility=Wt,dn.current.visibilities[_n].renderStatus=yt.NotRenderedYet)},setVisibility:Cn}},Ft={core:{askingPassword:{requirePasswordToOpen:"This document requires a password to open",submit:"Submit"},wrongPassword:{tryAgain:"The password is wrong. Please try again"},pageLabel:"Page {{pageIndex}}"}},Yt=rt.createContext({l10n:Ft,setL10n:function(){}}),Dt=0,Rt=function(){return Dt++},wt=function(Pt,Nt,Qt){var tn=function(ln){var dn=Nt.current;if(dn){var Cn=ln.target;if(Cn instanceof Element&&Cn.shadowRoot){var xn=ln.composedPath();xn.length>0&&!dn.contains(xn[0])&&Qt()}else dn.contains(Cn)||Qt()}};rt.useEffect(function(){if(Pt){var ln={capture:!0};return document.addEventListener("click",tn,ln),function(){document.removeEventListener("click",tn,ln)}}},[])},Mt=function(Pt){var Nt=function(Qt){Qt.key==="Escape"&&Pt()};rt.useEffect(function(){return document.addEventListener("keyup",Nt),function(){document.removeEventListener("keyup",Nt)}},[])},Ot=function(Pt){var Nt=Pt.ariaControlsSuffix,Qt=Pt.children,tn=Pt.closeOnClickOutside,ln=Pt.closeOnEscape,dn=Pt.onToggle,Cn=rt.useRef(),xn=rt.useContext(pt).direction===$.TextDirection.RightToLeft;return rt.useEffect(function(){var rn=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=rn}},[]),Mt(function(){Cn.current&&ln&&dn()}),wt(tn,Cn,dn),ft(function(){var rn=Cn.current;if(rn){var _n=.75*document.body.clientHeight;rn.getBoundingClientRect().height>=_n&&(rn.style.overflow="auto",rn.style.maxHeight="".concat(_n,"px"))}},[]),rt.createElement("div",{"aria-modal":"true",className:gt({"rpv-core__modal-body":!0,"rpv-core__modal-body--rtl":xn}),id:"rpv-core__modal-body-".concat(Nt),ref:Cn,role:"dialog",tabIndex:-1},Qt)},zt=function(Pt){var Nt=Pt.children;return rt.createElement("div",{className:"rpv-core__modal-overlay"},Nt)};$.ToggleStatus=void 0,(Vt=$.ToggleStatus||($.ToggleStatus={})).Close="Close",Vt.Open="Open",Vt.Toggle="Toggle";var Ht,Jt=function(Pt){var Nt=rt.useState(Pt),Qt=Nt[0],tn=Nt[1];return{opened:Qt,toggle:function(ln){switch(ln){case $.ToggleStatus.Close:tn(!1);break;case $.ToggleStatus.Open:tn(!0);break;case $.ToggleStatus.Toggle:default:tn(function(dn){return!dn})}}}},pn=function(Pt){var Nt=Pt.content,Qt=Pt.isOpened,tn=Qt!==void 0&&Qt,ln=Pt.target,dn=Jt(tn),Cn=dn.opened,xn=dn.toggle;return rt.createElement(rt.Fragment,null,ln&&ln(xn,Cn),Cn&&Nt(xn))};$.Position=void 0,(Ht=$.Position||($.Position={})).TopLeft="TOP_LEFT",Ht.TopCenter="TOP_CENTER",Ht.TopRight="TOP_RIGHT",Ht.RightTop="RIGHT_TOP",Ht.RightCenter="RIGHT_CENTER",Ht.RightBottom="RIGHT_BOTTOM",Ht.BottomLeft="BOTTOM_LEFT",Ht.BottomCenter="BOTTOM_CENTER",Ht.BottomRight="BOTTOM_RIGHT",Ht.LeftTop="LEFT_TOP",Ht.LeftCenter="LEFT_CENTER",Ht.LeftBottom="LEFT_BOTTOM";var gn,bn,yn,$n,kn,hn,un,Lt,Ut=function(Pt,Nt,Qt,tn,ln){ft(function(){var dn=Nt.current,Cn=Pt.current,xn=Qt.current;if(Cn&&dn&&xn){var rn=xn.getBoundingClientRect(),_n=function(Dn,jn,Yn,Gn){var Vn=jn.getBoundingClientRect(),Tr=Dn.getBoundingClientRect(),hr=Tr.height,vr=Tr.width,_r=0,lr=0;switch(Yn){case $.Position.TopLeft:_r=Vn.top-hr,lr=Vn.left;break;case $.Position.TopCenter:_r=Vn.top-hr,lr=Vn.left+Vn.width/2-vr/2;break;case $.Position.TopRight:_r=Vn.top-hr,lr=Vn.left+Vn.width-vr;break;case $.Position.RightTop:_r=Vn.top,lr=Vn.left+Vn.width;break;case $.Position.RightCenter:_r=Vn.top+Vn.height/2-hr/2,lr=Vn.left+Vn.width;break;case $.Position.RightBottom:_r=Vn.top+Vn.height-hr,lr=Vn.left+Vn.width;break;case $.Position.BottomLeft:_r=Vn.top+Vn.height,lr=Vn.left;break;case $.Position.BottomCenter:_r=Vn.top+Vn.height,lr=Vn.left+Vn.width/2-vr/2;break;case $.Position.BottomRight:_r=Vn.top+Vn.height,lr=Vn.left+Vn.width-vr;break;case $.Position.LeftTop:_r=Vn.top,lr=Vn.left-vr;break;case $.Position.LeftCenter:_r=Vn.top+Vn.height/2-hr/2,lr=Vn.left-vr;break;case $.Position.LeftBottom:_r=Vn.top+Vn.height-hr,lr=Vn.left-vr}return{left:lr+(Gn.left||0),top:_r+(Gn.top||0)}}(Cn,dn,tn,ln),En=_n.top,Fn=_n.left;Cn.style.top="".concat(En-rn.top,"px"),Cn.style.left="".concat(Fn-rn.left,"px")}},[])},nn=function(Pt){var Nt,Qt=Pt.customClassName,tn=Pt.position;return rt.createElement("div",{className:gt((Nt={"rpv-core__arrow":!0,"rpv-core__arrow--tl":tn===$.Position.TopLeft,"rpv-core__arrow--tc":tn===$.Position.TopCenter,"rpv-core__arrow--tr":tn===$.Position.TopRight,"rpv-core__arrow--rt":tn===$.Position.RightTop,"rpv-core__arrow--rc":tn===$.Position.RightCenter,"rpv-core__arrow--rb":tn===$.Position.RightBottom,"rpv-core__arrow--bl":tn===$.Position.BottomLeft,"rpv-core__arrow--bc":tn===$.Position.BottomCenter,"rpv-core__arrow--br":tn===$.Position.BottomRight,"rpv-core__arrow--lt":tn===$.Position.LeftTop,"rpv-core__arrow--lc":tn===$.Position.LeftCenter,"rpv-core__arrow--lb":tn===$.Position.LeftBottom},Nt["".concat(Qt)]=Qt!=="",Nt))})},sn=function(Pt){var Nt=Pt.ariaControlsSuffix,Qt=Pt.children,tn=Pt.closeOnClickOutside,ln=Pt.offset,dn=Pt.position,Cn=Pt.targetRef,xn=Pt.onClose,rn=rt.useRef(),_n=rt.useRef(),En=rt.useRef(),Fn=rt.useContext(pt).direction===$.TextDirection.RightToLeft;wt(tn,rn,xn),Ut(rn,Cn,En,dn,ln),ft(function(){var jn=_n.current;if(jn){var Yn=.75*document.body.clientHeight;jn.getBoundingClientRect().height>=Yn&&(jn.style.overflow="auto",jn.style.maxHeight="".concat(Yn,"px"))}},[]);var Dn="rpv-core__popover-body-inner-".concat(Nt);return rt.createElement(rt.Fragment,null,rt.createElement("div",{ref:En,style:{left:0,position:"absolute",top:0}}),rt.createElement("div",{"aria-describedby":Dn,className:gt({"rpv-core__popover-body":!0,"rpv-core__popover-body--rtl":Fn}),id:"rpv-core__popover-body-".concat(Nt),ref:rn,role:"dialog",tabIndex:-1},rt.createElement(nn,{customClassName:"rpv-core__popover-body-arrow",position:dn}),rt.createElement("div",{id:Dn,ref:_n},Qt)))},vn=function(Pt){var Nt=Pt.closeOnEscape,Qt=Pt.onClose,tn=rt.useRef();return Mt(function(){tn.current&&Nt&&Qt()}),rt.createElement("div",{className:"rpv-core__popover-overlay",ref:tn})},Tn=function(Pt){var Nt=Pt.ariaControlsSuffix,Qt=Pt.children,tn=Pt.contentRef,ln=Pt.offset,dn=Pt.position,Cn=Pt.targetRef,xn=rt.useRef(),rn=rt.useContext(pt).direction===$.TextDirection.RightToLeft;return Ut(tn,Cn,xn,dn,ln),rt.createElement(rt.Fragment,null,rt.createElement("div",{ref:xn,style:{left:0,position:"absolute",top:0}}),rt.createElement("div",{className:gt({"rpv-core__tooltip-body":!0,"rpv-core__tooltip-body--rtl":rn}),id:"rpv-core__tooltip-body-".concat(Nt),ref:tn,role:"tooltip"},rt.createElement(nn,{customClassName:"rpv-core__tooltip-body-arrow",position:dn}),rt.createElement("div",{className:"rpv-core__tooltip-body-content"},Qt)))};$.FullScreenMode=void 0,(gn=$.FullScreenMode||($.FullScreenMode={})).Normal="Normal",gn.Entering="Entering",gn.Entered="Entered",gn.EnteredCompletely="EnteredCompletely",gn.Exitting="Exitting",gn.Exited="Exited",$.LayerRenderStatus=void 0,(bn=$.LayerRenderStatus||($.LayerRenderStatus={}))[bn.PreRender=0]="PreRender",bn[bn.DidRender=1]="DidRender",$.PageMode=void 0,(yn=$.PageMode||($.PageMode={})).Attachments="UseAttachments",yn.Bookmarks="UseOutlines",yn.ContentGroup="UseOC",yn.Default="UserNone",yn.FullScreen="FullScreen",yn.Thumbnails="UseThumbs",$.PasswordStatus=void 0,($n=$.PasswordStatus||($.PasswordStatus={})).RequiredPassword="RequiredPassword",$n.WrongPassword="WrongPassword",$.RotateDirection=void 0,(kn=$.RotateDirection||($.RotateDirection={})).Backward="Backward",kn.Forward="Forward",$.ScrollMode=void 0,(hn=$.ScrollMode||($.ScrollMode={})).Page="Page",hn.Horizontal="Horizontal",hn.Vertical="Vertical",hn.Wrapped="Wrapped",$.SpecialZoomLevel=void 0,(un=$.SpecialZoomLevel||($.SpecialZoomLevel={})).ActualSize="ActualSize",un.PageFit="PageFit",un.PageWidth="PageWidth",$.ViewMode=void 0,(Lt=$.ViewMode||($.ViewMode={})).DualPage="DualPage",Lt.DualPageWithCover="DualPageWithCover",Lt.SinglePage="SinglePage";var Rn,on=function(Pt,Nt){return Pt.reduce(function(Qt,tn,ln){return ln%Nt?Qt[Qt.length-1].push(tn):Qt.push([tn]),Qt},[])},Bn=function(Pt,Nt){switch(Nt[1].name){case"XYZ":return{bottomOffset:function(Qt,tn){return Nt[3]===null?tn:Nt[3]},leftOffset:function(Qt,tn){return Nt[2]===null?0:Nt[2]},pageIndex:Pt,scaleTo:Nt[4]};case"Fit":case"FitB":return{bottomOffset:0,leftOffset:0,pageIndex:Pt,scaleTo:$.SpecialZoomLevel.PageFit};case"FitH":case"FitBH":return{bottomOffset:Nt[2],leftOffset:0,pageIndex:Pt,scaleTo:$.SpecialZoomLevel.PageWidth};default:return{bottomOffset:0,leftOffset:0,pageIndex:Pt,scaleTo:1}}},Ln=new Map,Zn=new Map,Nn=function(Pt,Nt){return"".concat(Pt.loadingTask.docId,"___").concat(Nt.num,"R").concat(Nt.gen===0?"":Nt.gen)},mr=function(Pt,Nt,Qt){Ln.set(Nn(Pt,Nt),Qt)},Xn=function(Pt,Nt){if(!Pt)return Promise.reject("The document is not loaded yet");var Qt="".concat(Pt.loadingTask.docId,"___").concat(Nt),tn=Zn.get(Qt);return tn?Promise.resolve(tn):new Promise(function(ln,dn){Pt.getPage(Nt+1).then(function(Cn){Zn.set(Qt,Cn),Cn.ref&&mr(Pt,Cn.ref,Nt),ln(Cn)})})},tr=function(Pt,Nt){return new Promise(function(Qt){new Promise(function(tn){typeof Nt=="string"?Pt.getDestination(Nt).then(function(ln){tn(ln)}):tn(Nt)}).then(function(tn){if(typeof tn[0]=="object"&&tn[0]!==null){var ln=tn[0],dn=function(xn,rn){var _n=Nn(xn,rn);return Ln.has(_n)?Ln.get(_n):null}(Pt,ln);dn===null?Pt.getPageIndex(ln).then(function(xn){mr(Pt,ln,xn),tr(Pt,Nt).then(function(rn){return Qt(rn)})}):Qt(Bn(dn,tn))}else{var Cn=Bn(tn[0],tn);Qt(Cn)}})})};(function(Pt){Pt[Pt.Solid=1]="Solid",Pt[Pt.Dashed=2]="Dashed",Pt[Pt.Beveled=3]="Beveled",Pt[Pt.Inset=4]="Inset",Pt[Pt.Underline=5]="Underline"})(Rn||(Rn={}));var Wn,cr=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"),fn=function(Pt,Nt,Qt,tn){var ln=parseInt(Pt,10);return ln>=Nt&&ln<=Qt?ln:tn},en=function(Pt){return Pt.contentsObj?Pt.contentsObj.str:Pt.contents||""},an=function(Pt){return Pt.titleObj?Pt.titleObj.str:Pt.title||""},zn=function(Pt){var Nt=Pt.annotation,Qt=rt.useContext(pt).direction,tn=an(Nt),ln=en(Nt),dn=Qt===$.TextDirection.RightToLeft,Cn=rt.useRef(),xn="";if(Nt.modificationDate){var rn=function(_n){var En=cr.exec(_n);if(!En)return null;var Fn=parseInt(En[1],10),Dn=fn(En[2],1,12,1)-1,jn=fn(En[3],1,31,1),Yn=fn(En[4],0,23,0),Gn=fn(En[5],0,59,0),Vn=fn(En[6],0,59,0),Tr=En[7]||"Z",hr=fn(En[8],0,23,0),vr=fn(En[9],0,59,0);switch(Tr){case"-":Yn+=hr,Gn+=vr;break;case"+":Yn-=hr,Gn-=vr}return new Date(Date.UTC(Fn,Dn,jn,Yn,Gn,Vn))}(Nt.modificationDate);xn=rn?"".concat(rn.toLocaleDateString(),", ").concat(rn.toLocaleTimeString()):""}return rt.useLayoutEffect(function(){if(Cn.current){var _n=document.querySelector('[data-annotation-id="'.concat(Nt.id,'"]'));if(_n){var En=_n;return En.style.zIndex+=1,function(){En.style.zIndex="".concat(parseInt(En.style.zIndex,10)-1)}}}},[]),rt.createElement("div",{ref:Cn,className:gt({"rpv-core__annotation-popup-wrapper":!0,"rpv-core__annotation-popup-wrapper--rtl":dn}),style:{top:Nt.annotationType===$.AnnotationType.Popup?"":"100%"}},tn&&rt.createElement(rt.Fragment,null,rt.createElement("div",{className:gt({"rpv-core__annotation-popup-title":!0,"rpv-core__annotation-popup-title--ltr":!dn,"rpv-core__annotation-popup-title--rtl":dn})},tn),rt.createElement("div",{className:"rpv-core__annotation-popup-date"},xn)),ln&&rt.createElement("div",{className:"rpv-core__annotation-popup-content"},ln.split(` +`).map(function(_n,En){return rt.createElement(rt.Fragment,{key:En},_n,rt.createElement("br",null))})))};(function(Pt){Pt.Click="Click",Pt.Hover="Hover"})(Wn||(Wn={}));var qn,Jn=function(Pt){var Nt,Qt=Pt.annotation,tn=Pt.children,ln=Pt.ignoreBorder,dn=Pt.hasPopup,Cn=Pt.isRenderable,xn=Pt.page,rn=Pt.viewport,_n=Qt.rect,En=function(){var yr=Jt(!1),Dr=yr.opened,Lr=yr.toggle,Fr=rt.useState(Wn.Hover),Or=Fr[0],zr=Fr[1];return{opened:Dr,closeOnHover:function(){Or===Wn.Hover&&Lr($.ToggleStatus.Close)},openOnHover:function(){Or===Wn.Hover&&Lr($.ToggleStatus.Open)},toggleOnClick:function(){switch(Or){case Wn.Click:Dr&&zr(Wn.Hover),Lr($.ToggleStatus.Toggle);break;case Wn.Hover:zr(Wn.Click),Lr($.ToggleStatus.Open)}}}}(),Fn=En.closeOnHover,Dn=En.opened,jn=En.openOnHover,Yn=En.toggleOnClick,Gn=(Nt=[_n[0],xn.view[3]+xn.view[1]-_n[1],_n[2],xn.view[3]+xn.view[1]-_n[3]],[Math.min(Nt[0],Nt[2]),Math.min(Nt[1],Nt[3]),Math.max(Nt[0],Nt[2]),Math.max(Nt[1],Nt[3])]),Vn=_n[2]-_n[0],Tr=_n[3]-_n[1],hr={borderColor:"",borderRadius:"",borderStyle:"",borderWidth:""};if(!ln&&Qt.borderStyle.width>0){switch(Qt.borderStyle.style){case Rn.Dashed:hr.borderStyle="dashed";break;case Rn.Solid:hr.borderStyle="solid";break;case Rn.Underline:hr=Object.assign({borderBottomStyle:"solid"},hr);case Rn.Beveled:case Rn.Inset:}var vr=Qt.borderStyle.width;hr.borderWidth="".concat(vr,"px"),Qt.borderStyle.style!==Rn.Underline&&(Vn-=2*vr,Tr-=2*vr);var _r=Qt.borderStyle,lr=_r.horizontalCornerRadius,Cr=_r.verticalCornerRadius;(lr>0||Cr>0)&&(hr.borderRadius="".concat(lr,"px / ").concat(Cr,"px")),Qt.color?hr.borderColor="rgb(".concat(0|Qt.color[0],", ").concat(0|Qt.color[1],", ").concat(0|Qt.color[2],")"):hr.borderWidth="0"}return rt.createElement(rt.Fragment,null,Cn&&tn({popup:{opened:Dn,closeOnHover:Fn,openOnHover:jn,toggleOnClick:Yn},slot:{attrs:{style:Object.assign({height:"".concat(Tr,"px"),left:"".concat(Gn[0],"px"),top:"".concat(Gn[1],"px"),transform:"matrix(".concat(rn.transform.join(","),")"),transformOrigin:"-".concat(Gn[0],"px -").concat(Gn[1],"px"),width:"".concat(Vn,"px")},hr)},children:rt.createElement(rt.Fragment,null,dn&&Dn&&rt.createElement(zn,{annotation:Qt}))}}))},Zt=function(Pt){var Nt=Pt.annotation,Qt=Pt.page,tn=Pt.viewport,ln=Nt.hasPopup===!1,dn=an(Nt),Cn=en(Nt),xn=!!(Nt.hasPopup||dn||Cn);return rt.createElement(Jn,{annotation:Nt,hasPopup:ln,ignoreBorder:!0,isRenderable:xn,page:Qt,viewport:tn},function(rn){return rt.createElement("div",lt({},rn.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--caret","data-annotation-id":Nt.id,onClick:rn.popup.toggleOnClick,onMouseEnter:rn.popup.openOnHover,onMouseLeave:rn.popup.closeOnHover}),rn.slot.children)})},Mn=function(Pt){var Nt=Pt.annotation,Qt=Pt.page,tn=Pt.viewport,ln=Nt.hasPopup===!1,dn=an(Nt),Cn=en(Nt),xn=!!(Nt.hasPopup||dn||Cn),rn=Nt.rect,_n=rn[2]-rn[0],En=rn[3]-rn[1],Fn=Nt.borderStyle.width;return rt.createElement(Jn,{annotation:Nt,hasPopup:ln,ignoreBorder:!0,isRenderable:xn,page:Qt,viewport:tn},function(Dn){return rt.createElement("div",lt({},Dn.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--circle","data-annotation-id":Nt.id,onClick:Dn.popup.toggleOnClick,onMouseEnter:Dn.popup.openOnHover,onMouseLeave:Dn.popup.closeOnHover}),rt.createElement("svg",{height:"".concat(En,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(_n," ").concat(En),width:"".concat(_n,"px")},rt.createElement("circle",{cy:En/2,fill:"none",rx:_n/2-Fn/2,ry:En/2-Fn/2,stroke:"transparent",strokeWidth:Fn||1})),Dn.slot.children)})},Un=function(Pt){var Nt=Pt.annotation,Qt=Pt.page,tn=Pt.viewport,ln=an(Nt),dn=en(Nt),Cn=!(Nt.hasPopup!==!1||!ln&&!dn),xn=function(){var rn,_n,En,Fn,Dn=Nt.file;Dn&&(rn=Dn.filename,_n=Dn.content,En=typeof _n=="string"?"":URL.createObjectURL(new Blob([_n],{type:""})),(Fn=document.createElement("a")).style.display="none",Fn.href=En||rn,Fn.setAttribute("download",function(jn){var Yn=jn.split("/").pop();return Yn?Yn.split("#")[0].split("?")[0]:jn}(rn)),document.body.appendChild(Fn),Fn.click(),document.body.removeChild(Fn),En&&URL.revokeObjectURL(En))};return rt.createElement(Jn,{annotation:Nt,hasPopup:Cn,ignoreBorder:!0,isRenderable:!0,page:Qt,viewport:tn},function(rn){return rt.createElement("div",lt({},rn.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--file-attachment","data-annotation-id":Nt.id,onClick:rn.popup.toggleOnClick,onDoubleClick:xn,onMouseEnter:rn.popup.openOnHover,onMouseLeave:rn.popup.closeOnHover}),rn.slot.children)})},er=function(Pt){var Nt=Pt.annotation,Qt=Pt.page,tn=Pt.viewport,ln=Nt.hasPopup===!1,dn=an(Nt),Cn=en(Nt),xn=!!(Nt.hasPopup||dn||Cn);return rt.createElement(Jn,{annotation:Nt,hasPopup:ln,ignoreBorder:!0,isRenderable:xn,page:Qt,viewport:tn},function(rn){return rt.createElement("div",lt({},rn.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--free-text","data-annotation-id":Nt.id,onClick:rn.popup.toggleOnClick,onMouseEnter:rn.popup.openOnHover,onMouseLeave:rn.popup.closeOnHover}),rn.slot.children)})},sr=function(Pt){var Nt=Pt.annotation,Qt=Pt.page,tn=Pt.viewport,ln=an(Nt),dn=en(Nt),Cn=!(!ln&&!dn),xn=!Nt.parentType||["Circle","Ink","Line","Polygon","PolyLine","Square"].indexOf(Nt.parentType)!==-1;return ft(function(){if(Nt.parentId){var rn=document.querySelector('[data-annotation-id="'.concat(Nt.parentId,'"]')),_n=document.querySelector('[data-annotation-id="'.concat(Nt.id,'"]'));if(rn&&_n){var En=parseFloat(rn.style.left),Fn=parseFloat(rn.style.top)+parseFloat(rn.style.height);_n.style.left="".concat(En,"px"),_n.style.top="".concat(Fn,"px"),_n.style.transformOrigin="-".concat(En,"px -").concat(Fn,"px")}}},[]),rt.createElement(Jn,{annotation:Nt,hasPopup:xn,ignoreBorder:!1,isRenderable:Cn,page:Qt,viewport:tn},function(rn){return rt.createElement("div",lt({},rn.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--popup","data-annotation-id":Nt.id}),rt.createElement(zn,{annotation:Nt}))})},Qn=function(Pt){var Nt=Pt.annotation,Qt=Pt.childAnnotation,tn=Pt.page,ln=Pt.viewport,dn=Nt.hasPopup===!1,Cn=an(Nt),xn=en(Nt),rn=!!(Nt.hasPopup||Cn||xn);if(Nt.quadPoints&&Nt.quadPoints.length>0){var _n=Nt.quadPoints.map(function(En){return Object.assign({},Nt,{rect:[En[2].x,En[2].y,En[1].x,En[1].y],quadPoints:[]})});return rt.createElement(rt.Fragment,null,_n.map(function(En,Fn){return rt.createElement(Qn,{key:Fn,annotation:En,childAnnotation:Qt,page:tn,viewport:ln})}))}return rt.createElement(Jn,{annotation:Nt,hasPopup:dn,ignoreBorder:!0,isRenderable:rn,page:tn,viewport:ln},function(En){return rt.createElement(rt.Fragment,null,rt.createElement("div",lt({},En.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--highlight","data-annotation-id":Nt.id,onClick:En.popup.toggleOnClick,onMouseEnter:En.popup.openOnHover,onMouseLeave:En.popup.closeOnHover}),En.slot.children),Qt&&Qt.annotationType===$.AnnotationType.Popup&&En.popup.opened&&rt.createElement(sr,{annotation:Qt,page:tn,viewport:ln}))})},Xt=function(Pt){var Nt=Pt.annotation,Qt=Pt.page,tn=Pt.viewport,ln=Nt.hasPopup===!1,dn=an(Nt),Cn=en(Nt),xn=!!(Nt.hasPopup||dn||Cn),rn=Nt.rect,_n=rn[2]-rn[0],En=rn[3]-rn[1],Fn=Nt.borderStyle.width;return rt.createElement(Jn,{annotation:Nt,hasPopup:ln,ignoreBorder:!0,isRenderable:xn,page:Qt,viewport:tn},function(Dn){return rt.createElement("div",lt({},Dn.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--ink","data-annotation-id":Nt.id,onClick:Dn.popup.toggleOnClick,onMouseEnter:Dn.popup.openOnHover,onMouseLeave:Dn.popup.closeOnHover}),Nt.inkLists&&Nt.inkLists.length&&rt.createElement("svg",{height:"".concat(En,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(_n," ").concat(En),width:"".concat(_n,"px")},Nt.inkLists.map(function(jn,Yn){return rt.createElement("polyline",{key:Yn,fill:"none",stroke:"transparent",strokeWidth:Fn||1,points:jn.map(function(Gn){return"".concat(Gn.x-rn[0],",").concat(rn[3]-Gn.y)}).join(" ")})})),Dn.slot.children)})},qt=function(Pt){var Nt=Pt.annotation,Qt=Pt.page,tn=Pt.viewport,ln=Nt.hasPopup===!1,dn=an(Nt),Cn=en(Nt),xn=!!(Nt.hasPopup||dn||Cn),rn=Nt.rect,_n=rn[2]-rn[0],En=rn[3]-rn[1],Fn=Nt.borderStyle.width;return rt.createElement(Jn,{annotation:Nt,hasPopup:ln,ignoreBorder:!0,isRenderable:xn,page:Qt,viewport:tn},function(Dn){return rt.createElement("div",lt({},Dn.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--line","data-annotation-id":Nt.id,onClick:Dn.popup.toggleOnClick,onMouseEnter:Dn.popup.openOnHover,onMouseLeave:Dn.popup.closeOnHover}),rt.createElement("svg",{height:"".concat(En,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(_n," ").concat(En),width:"".concat(_n,"px")},rt.createElement("line",{stroke:"transparent",strokeWidth:Fn||1,x1:rn[2]-Nt.lineCoordinates[0],x2:rn[2]-Nt.lineCoordinates[2],y1:rn[3]-Nt.lineCoordinates[1],y2:rn[3]-Nt.lineCoordinates[3]})),Dn.slot.children)})},cn=/^([^\w]*)(javascript|data|vbscript)/im,Pn=/&#(\w+)(^\w|;)?/g,An=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,In=/^([^:]+):/gm,On=function(Pt,Nt){var Qt,tn=(Qt=Pt||"",Qt.replace(Pn,function(xn,rn){return String.fromCharCode(rn)})).replace(An,"").trim();if(!tn)return Nt;var ln=tn[0];if(ln==="."||ln==="/")return tn;var dn=tn.match(In);if(!dn)return tn;var Cn=dn[0];return cn.test(Cn)?Nt:tn},or=function(Pt){var Nt,Qt=Pt.annotation,tn=Pt.annotationContainerRef,ln=Pt.doc,dn=Pt.outlines,Cn=Pt.page,xn=Pt.pageIndex,rn=Pt.scale,_n=Pt.viewport,En=Pt.onExecuteNamedAction,Fn=Pt.onJumpFromLinkAnnotation,Dn=Pt.onJumpToDest,jn=rt.useRef(),Yn=dn&&dn.length&&Qt.dest&&typeof Qt.dest=="string"?(Nt=dn.find(function(hr){return hr.dest===Qt.dest}))===null||Nt===void 0?void 0:Nt.title:"",Gn=!!(Qt.url||Qt.dest||Qt.action||Qt.unsafeUrl),Vn={};if(Qt.url||Qt.unsafeUrl){var Tr=On(Qt.url||Qt.unsafeUrl,"");Tr?Vn={"data-target":"external",href:Tr,rel:"noopener noreferrer nofollow",target:Qt.newWindow?"_blank":"",title:Tr}:Gn=!1}else Vn={href:"","data-annotation-link":Qt.id,onClick:function(hr){hr.preventDefault(),Qt.action?En(Qt.action):tr(ln,Qt.dest).then(function(vr){var _r=jn.current,lr=tn.current;if(_r&&lr){var Cr=_r.getBoundingClientRect();lr.style.setProperty("height","100%"),lr.style.setProperty("width","100%");var yr=lr.getBoundingClientRect();lr.style.removeProperty("height"),lr.style.removeProperty("width");var Dr=(Cr.left-yr.left)/rn,Lr=(yr.bottom-Cr.bottom+Cr.height)/rn;Fn({bottomOffset:Lr,label:Yn,leftOffset:Dr,pageIndex:xn})}Dn(vr)})}};return Yn&&(Vn=Object.assign({},Vn,{title:Yn,"aria-label":Yn})),rt.createElement(Jn,{annotation:Qt,hasPopup:!1,ignoreBorder:!1,isRenderable:Gn,page:Cn,viewport:_n},function(hr){return rt.createElement("div",lt({},hr.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--link","data-annotation-id":Qt.id,"data-testid":"core__annotation--link-".concat(Qt.id)}),rt.createElement("a",lt({ref:jn},Vn)))})},nr=function(Pt){var Nt=Pt.annotation,Qt=Pt.page,tn=Pt.viewport,ln=Nt.hasPopup===!1,dn=an(Nt),Cn=en(Nt),xn=!!(Nt.hasPopup||dn||Cn),rn=Nt.rect,_n=rn[2]-rn[0],En=rn[3]-rn[1],Fn=Nt.borderStyle.width;return rt.createElement(Jn,{annotation:Nt,hasPopup:ln,ignoreBorder:!0,isRenderable:xn,page:Qt,viewport:tn},function(Dn){return rt.createElement("div",lt({},Dn.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--polygon","data-annotation-id":Nt.id,onClick:Dn.popup.toggleOnClick,onMouseEnter:Dn.popup.openOnHover,onMouseLeave:Dn.popup.closeOnHover}),Nt.vertices&&Nt.vertices.length&&rt.createElement("svg",{height:"".concat(En,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(_n," ").concat(En),width:"".concat(_n,"px")},rt.createElement("polygon",{fill:"none",stroke:"transparent",strokeWidth:Fn||1,points:Nt.vertices.map(function(jn){return"".concat(jn.x-rn[0],",").concat(rn[3]-jn.y)}).join(" ")})),Dn.slot.children)})},Kn=function(Pt){var Nt=Pt.annotation,Qt=Pt.page,tn=Pt.viewport,ln=Nt.hasPopup===!1,dn=an(Nt),Cn=en(Nt),xn=!!(Nt.hasPopup||dn||Cn),rn=Nt.rect,_n=rn[2]-rn[0],En=rn[3]-rn[1],Fn=Nt.borderStyle.width;return rt.createElement(Jn,{annotation:Nt,hasPopup:ln,ignoreBorder:!0,isRenderable:xn,page:Qt,viewport:tn},function(Dn){return rt.createElement("div",lt({},Dn.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--polyline","data-annotation-id":Nt.id,onClick:Dn.popup.toggleOnClick,onMouseEnter:Dn.popup.openOnHover,onMouseLeave:Dn.popup.closeOnHover}),Nt.vertices&&Nt.vertices.length&&rt.createElement("svg",{height:"".concat(En,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(_n," ").concat(En),width:"".concat(_n,"px")},rt.createElement("polyline",{fill:"none",stroke:"transparent",strokeWidth:Fn||1,points:Nt.vertices.map(function(jn){return"".concat(jn.x-rn[0],",").concat(rn[3]-jn.y)}).join(" ")})),Dn.slot.children)})},Er=function(Pt){var Nt=Pt.annotation,Qt=Pt.page,tn=Pt.viewport,ln=Nt.hasPopup===!1,dn=an(Nt),Cn=en(Nt),xn=!!(Nt.hasPopup||dn||Cn),rn=Nt.rect,_n=rn[2]-rn[0],En=rn[3]-rn[1],Fn=Nt.borderStyle.width;return rt.createElement(Jn,{annotation:Nt,hasPopup:ln,ignoreBorder:!0,isRenderable:xn,page:Qt,viewport:tn},function(Dn){return rt.createElement("div",lt({},Dn.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--square","data-annotation-id":Nt.id,onClick:Dn.popup.toggleOnClick,onMouseEnter:Dn.popup.openOnHover,onMouseLeave:Dn.popup.closeOnHover}),rt.createElement("svg",{height:"".concat(En,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(_n," ").concat(En),width:"".concat(_n,"px")},rt.createElement("rect",{height:En-Fn,fill:"none",stroke:"transparent",strokeWidth:Fn||1,x:Fn/2,y:Fn/2,width:_n-Fn})),Dn.slot.children)})},rr=function(Pt){var Nt=Pt.annotation,Qt=Pt.page,tn=Pt.viewport,ln=Nt.hasPopup===!1,dn=an(Nt),Cn=en(Nt),xn=!!(Nt.hasPopup||dn||Cn);return rt.createElement(Jn,{annotation:Nt,hasPopup:ln,ignoreBorder:!0,isRenderable:xn,page:Qt,viewport:tn},function(rn){return rt.createElement("div",lt({},rn.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--squiggly","data-annotation-id":Nt.id,onClick:rn.popup.toggleOnClick,onMouseEnter:rn.popup.openOnHover,onMouseLeave:rn.popup.closeOnHover}),rn.slot.children)})},ar=function(Pt){var Nt=Pt.annotation,Qt=Pt.page,tn=Pt.viewport,ln=Nt.hasPopup===!1,dn=an(Nt),Cn=en(Nt),xn=!!(Nt.hasPopup||dn||Cn);return rt.createElement(Jn,{annotation:Nt,hasPopup:ln,ignoreBorder:!0,isRenderable:xn,page:Qt,viewport:tn},function(rn){return rt.createElement("div",lt({},rn.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--stamp","data-annotation-id":Nt.id,onClick:rn.popup.toggleOnClick,onMouseEnter:rn.popup.openOnHover,onMouseLeave:rn.popup.closeOnHover}),rn.slot.children)})},gr=function(Pt){var Nt=Pt.annotation,Qt=Pt.page,tn=Pt.viewport,ln=Nt.hasPopup===!1,dn=an(Nt),Cn=en(Nt),xn=!!(Nt.hasPopup||dn||Cn);return rt.createElement(Jn,{annotation:Nt,hasPopup:ln,ignoreBorder:!0,isRenderable:xn,page:Qt,viewport:tn},function(rn){return rt.createElement("div",lt({},rn.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--strike-out","data-annotation-id":Nt.id,onClick:rn.popup.toggleOnClick,onMouseEnter:rn.popup.openOnHover,onMouseLeave:rn.popup.closeOnHover}),rn.slot.children)})},$r=function(){return rt.createElement(mt,{size:16},rt.createElement("path",{d:"M.5,16.5a1,1,0,0,0,1,1h2v4l4-4h15a1,1,0,0,0,1-1V3.5a1,1,0,0,0-1-1H1.5a1,1,0,0,0-1,1Z"}),rt.createElement("path",{d:"M7.25,9.75A.25.25,0,1,1,7,10a.25.25,0,0,1,.25-.25"}),rt.createElement("path",{d:"M12,9.75a.25.25,0,1,1-.25.25A.25.25,0,0,1,12,9.75"}),rt.createElement("path",{d:"M16.75,9.75a.25.25,0,1,1-.25.25.25.25,0,0,1,.25-.25"}))},Mr=function(){return rt.createElement(mt,{size:16},rt.createElement("path",{d:"M0.500 12.001 A11.500 11.500 0 1 0 23.500 12.001 A11.500 11.500 0 1 0 0.500 12.001 Z"}),rt.createElement("path",{d:"M6.000 12.001 A6.000 6.000 0 1 0 18.000 12.001 A6.000 6.000 0 1 0 6.000 12.001 Z"}),rt.createElement("path",{d:"M21.423 5.406L17.415 9.414"}),rt.createElement("path",{d:"M14.587 6.585L18.607 2.565"}),rt.createElement("path",{d:"M5.405 21.424L9.413 17.416"}),rt.createElement("path",{d:"M6.585 14.588L2.577 18.596"}),rt.createElement("path",{d:"M18.602 21.419L14.595 17.412"}),rt.createElement("path",{d:"M17.419 14.58L21.428 18.589"}),rt.createElement("path",{d:"M2.582 5.399L6.588 9.406"}),rt.createElement("path",{d:"M9.421 6.581L5.412 2.572"}))},Br=function(){return rt.createElement(mt,{size:16},rt.createElement("path",{d:"M4.000 18.500 A1.500 1.500 0 1 0 7.000 18.500 A1.500 1.500 0 1 0 4.000 18.500 Z"}),rt.createElement("path",{d:"M20.5.5l-9.782,9.783a7,7,0,1,0,3,3L17,10h1.5V8.5L19,8h1.5V6.5L21,6h1.5V4.5l1-1V.5Z"}))},oo=function(){return rt.createElement(mt,{size:16},rt.createElement("path",{d:"M2.000 2.500 L22.000 2.500 L22.000 23.500 L2.000 23.500 Z"}),rt.createElement("path",{d:"M6 4.5L6 0.5"}),rt.createElement("path",{d:"M18 4.5L18 0.5"}),rt.createElement("path",{d:"M10 4.5L10 0.5"}),rt.createElement("path",{d:"M14 4.5L14 0.5"}))},Zr=function(){return rt.createElement(mt,{size:16},rt.createElement("path",{d:"M17.5 0.498L17.5 23.498"}),rt.createElement("path",{d:"M10.5 0.498L10.5 23.498"}),rt.createElement("path",{d:"M23.5.5H6.5a6,6,0,0,0,0,12h4"}))},go=function(){return rt.createElement(mt,{size:16},rt.createElement("path",{d:"M2.5 22.995L12 6.005 21.5 22.995 2.5 22.995z"}))},xo=function(Pt){var Nt=Pt.annotation,Qt=Pt.childAnnotation,tn=Pt.page,ln=Pt.viewport,dn=Nt.hasPopup===!1,Cn=an(Nt),xn=en(Nt),rn=!!(Nt.hasPopup||Cn||xn),_n=Nt.name?Nt.name.toLowerCase():"";return rt.createElement(Jn,{annotation:Nt,hasPopup:dn,ignoreBorder:!1,isRenderable:rn,page:tn,viewport:ln},function(En){return rt.createElement(rt.Fragment,null,rt.createElement("div",lt({},En.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--text","data-annotation-id":Nt.id,onClick:En.popup.toggleOnClick,onMouseEnter:En.popup.openOnHover,onMouseLeave:En.popup.closeOnHover}),_n&&rt.createElement("div",{className:"rpv-core__annotation-text-icon"},_n==="check"&&rt.createElement(ct,null),_n==="comment"&&rt.createElement($r,null),_n==="help"&&rt.createElement(Mr,null),_n==="insert"&&rt.createElement(go,null),_n==="key"&&rt.createElement(Br,null),_n==="note"&&rt.createElement(oo,null),(_n==="newparagraph"||_n==="paragraph")&&rt.createElement(Zr,null)),En.slot.children),Qt&&Qt.annotationType===$.AnnotationType.Popup&&En.popup.opened&&rt.createElement(sr,{annotation:Qt,page:tn,viewport:ln}))})},yo=function(Pt){var Nt=Pt.annotation,Qt=Pt.page,tn=Pt.viewport,ln=Nt.hasPopup===!1,dn=an(Nt),Cn=en(Nt),xn=!!(Nt.hasPopup||dn||Cn);return rt.createElement(Jn,{annotation:Nt,hasPopup:ln,ignoreBorder:!0,isRenderable:xn,page:Qt,viewport:tn},function(rn){return rt.createElement("div",lt({},rn.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--underline","data-annotation-id":Nt.id,onClick:rn.popup.toggleOnClick,onMouseEnter:rn.popup.openOnHover,onMouseLeave:rn.popup.closeOnHover}),rn.slot.children)})},Xo=function(Pt){var Nt=Pt.annotations,Qt=Pt.doc,tn=Pt.outlines,ln=Pt.page,dn=Pt.pageIndex,Cn=Pt.plugins,xn=Pt.rotation,rn=Pt.scale,_n=Pt.onExecuteNamedAction,En=Pt.onJumpFromLinkAnnotation,Fn=Pt.onJumpToDest,Dn=rt.useRef(),jn=ln.getViewport({rotation:xn,scale:rn}).clone({dontFlip:!0}),Yn=Nt.filter(function(Gn){return!Gn.parentId});return ft(function(){var Gn=Dn.current;Gn&&Cn.forEach(function(Vn){Vn.onAnnotationLayerRender&&Vn.onAnnotationLayerRender({annotations:Yn,container:Gn,pageIndex:dn,rotation:xn,scale:rn})})},[]),rt.createElement("div",{ref:Dn,className:"rpv-core__annotation-layer","data-testid":"core__annotation-layer-".concat(dn)},Yn.map(function(Gn){var Vn=Nt.find(function(Tr){return Tr.parentId===Gn.id});switch(Gn.annotationType){case $.AnnotationType.Caret:return rt.createElement(Zt,{key:Gn.id,annotation:Gn,page:ln,viewport:jn});case $.AnnotationType.Circle:return rt.createElement(Mn,{key:Gn.id,annotation:Gn,page:ln,viewport:jn});case $.AnnotationType.FileAttachment:return rt.createElement(Un,{key:Gn.id,annotation:Gn,page:ln,viewport:jn});case $.AnnotationType.FreeText:return rt.createElement(er,{key:Gn.id,annotation:Gn,page:ln,viewport:jn});case $.AnnotationType.Highlight:return rt.createElement(Qn,{key:Gn.id,annotation:Gn,childAnnotation:Vn,page:ln,viewport:jn});case $.AnnotationType.Ink:return rt.createElement(Xt,{key:Gn.id,annotation:Gn,page:ln,viewport:jn});case $.AnnotationType.Line:return rt.createElement(qt,{key:Gn.id,annotation:Gn,page:ln,viewport:jn});case $.AnnotationType.Link:return rt.createElement(or,{key:Gn.id,annotation:Gn,annotationContainerRef:Dn,doc:Qt,outlines:tn,page:ln,pageIndex:dn,scale:rn,viewport:jn,onExecuteNamedAction:_n,onJumpFromLinkAnnotation:En,onJumpToDest:Fn});case $.AnnotationType.Polygon:return rt.createElement(nr,{key:Gn.id,annotation:Gn,page:ln,viewport:jn});case $.AnnotationType.Polyline:return rt.createElement(Kn,{key:Gn.id,annotation:Gn,page:ln,viewport:jn});case $.AnnotationType.Popup:return rt.createElement(sr,{key:Gn.id,annotation:Gn,page:ln,viewport:jn});case $.AnnotationType.Square:return rt.createElement(Er,{key:Gn.id,annotation:Gn,page:ln,viewport:jn});case $.AnnotationType.Squiggly:return rt.createElement(rr,{key:Gn.id,annotation:Gn,page:ln,viewport:jn});case $.AnnotationType.Stamp:return rt.createElement(ar,{key:Gn.id,annotation:Gn,page:ln,viewport:jn});case $.AnnotationType.StrikeOut:return rt.createElement(gr,{key:Gn.id,annotation:Gn,page:ln,viewport:jn});case $.AnnotationType.Text:return rt.createElement(xo,{key:Gn.id,annotation:Gn,childAnnotation:Vn,page:ln,viewport:jn});case $.AnnotationType.Underline:return rt.createElement(yo,{key:Gn.id,annotation:Gn,page:ln,viewport:jn});default:return rt.createElement(rt.Fragment,{key:Gn.id})}}))},Cu=function(Pt){var Nt=Pt.page,Qt=Pt.renderAnnotations,tn=Bt(),ln=rt.useState({loading:!0,annotations:[]}),dn=ln[0],Cn=ln[1];return rt.useEffect(function(){Nt.getAnnotations({intent:"display"}).then(function(xn){tn.current&&Cn({loading:!1,annotations:xn})})},[]),dn.loading?rt.createElement(rt.Fragment,null):Qt(dn.annotations)},Su=function(Pt){var Nt=Pt.doc,Qt=Pt.outlines,tn=Pt.page,ln=Pt.pageIndex,dn=Pt.plugins,Cn=Pt.rotation,xn=Pt.scale,rn=Pt.onExecuteNamedAction,_n=Pt.onJumpFromLinkAnnotation,En=Pt.onJumpToDest;return rt.createElement(Cu,{page:tn,renderAnnotations:function(Fn){return rt.createElement(Xo,{annotations:Fn,doc:Nt,outlines:Qt,page:tn,pageIndex:ln,plugins:dn,rotation:Cn,scale:xn,onExecuteNamedAction:rn,onJumpFromLinkAnnotation:_n,onJumpToDest:En})}})},Yo=function(Pt,Nt){var Qt=Pt%Nt;return Qt===0?Pt:Math.floor(Pt-Qt)},$u=function(Pt){var Nt=Pt.canvasLayerRef,Qt=Pt.height,tn=Pt.page,ln=Pt.pageIndex,dn=Pt.plugins,Cn=Pt.rotation,xn=Pt.scale,rn=Pt.width,_n=Pt.onRenderCanvasCompleted,En=rt.useRef();return ft(function(){var Fn=En.current;Fn&&Fn.cancel();var Dn=Nt.current;Dn.removeAttribute("data-testid"),dn.forEach(function(yr){yr.onCanvasLayerRender&&yr.onCanvasLayerRender({ele:Dn,pageIndex:ln,rotation:Cn,scale:xn,status:$.LayerRenderStatus.PreRender})});var jn=tn.getViewport({rotation:Cn,scale:xn}),Yn=window.devicePixelRatio||1,Gn=Math.sqrt(16777216/(jn.width*jn.height)),Vn=Yn>Gn;Vn?Dn.style.transform="scale(1, 1)":Dn.style.removeProperty("transform");var Tr=Math.min(Gn,Yn),hr=function(yr,Dr){var Lr,Fr;if(Math.floor(yr)===yr)return[yr,1];var Or=1/yr;if(Or>Dr)return[1,Dr];if(Math.floor(Or)===Or)return[1,Or];for(var zr=yr>1?Or:yr,no=0,Xr=1,ro=1,Qr=1;;){var eo=no+ro,to=Xr+Qr;if(to>Dr)break;zr<=eo/to?(ro=(Lr=[eo,to])[0],Qr=Lr[1]):(no=(Fr=[eo,to])[0],Xr=Fr[1])}return zr<(no/Xr+ro/Qr)/2?zr===yr?[no,Xr]:[Xr,no]:zr===yr?[ro,Qr]:[Qr,ro]}(Tr,8),vr=hr[0],_r=hr[1];Dn.width=Yo(jn.width*Tr,vr),Dn.height=Yo(jn.height*Tr,vr),Dn.style.width="".concat(Yo(jn.width,_r),"px"),Dn.style.height="".concat(Yo(jn.height,_r),"px"),Dn.hidden=!0;var lr=Dn.getContext("2d",{alpha:!1}),Cr=Vn||Yn!==1?[Tr,0,0,Tr,0,0]:null;return En.current=tn.render({canvasContext:lr,transform:Cr,viewport:jn}),En.current.promise.then(function(){Dn.hidden=!1,Dn.setAttribute("data-testid","core__canvas-layer-".concat(ln)),dn.forEach(function(yr){yr.onCanvasLayerRender&&yr.onCanvasLayerRender({ele:Dn,pageIndex:ln,rotation:Cn,scale:xn,status:$.LayerRenderStatus.DidRender})}),_n()},function(){_n()}),function(){Dn&&(Dn.width=0,Dn.height=0)}},[]),rt.createElement("div",{className:"rpv-core__canvas-layer",style:{height:"".concat(Qt,"px"),width:"".concat(rn,"px")}},rt.createElement("canvas",{ref:Nt}))},wu=function(Pt){var Nt=Pt.height,Qt=Pt.page,tn=Pt.rotation,ln=Pt.scale,dn=Pt.width,Cn=rt.useRef();return ft(function(){var xn=Cn.current,rn=Qt.getViewport({rotation:tn,scale:ln});Qt.getOperatorList().then(function(_n){(function(){var En=Cn.current;En&&(En.innerHTML="")})(),new ot.SVGGraphics(Qt.commonObjs,Qt.objs).getSVG(_n,rn).then(function(En){En.style.height="".concat(Nt,"px"),En.style.width="".concat(dn,"px"),xn.appendChild(En)})})},[]),rt.createElement("div",{className:"rpv-core__svg-layer",ref:Cn})},Ru=function(Pt){var Nt=Pt.containerRef,Qt=Pt.page,tn=Pt.pageIndex,ln=Pt.plugins,dn=Pt.rotation,Cn=Pt.scale,xn=Pt.onRenderTextCompleted,rn=rt.useRef(),_n=function(){var En=Nt.current;En&&([].slice.call(En.querySelectorAll(".rpv-core__text-layer-text")).forEach(function(Fn){return En.removeChild(Fn)}),[].slice.call(En.querySelectorAll('br[role="presentation"]')).forEach(function(Fn){return En.removeChild(Fn)}))};return ft(function(){var En=rn.current;En&&En.cancel();var Fn=Nt.current;if(Fn){Fn.removeAttribute("data-testid");var Dn=Qt.getViewport({rotation:dn,scale:Cn});return ln.forEach(function(jn){jn.onTextLayerRender&&jn.onTextLayerRender({ele:Fn,pageIndex:tn,scale:Cn,status:$.LayerRenderStatus.PreRender})}),Qt.getTextContent().then(function(jn){_n(),rn.current=ot.renderTextLayer({container:Fn,textContent:jn,textContentSource:jn,viewport:Dn}),rn.current.promise.then(function(){Fn.setAttribute("data-testid","core__text-layer-".concat(tn)),[].slice.call(Fn.children).forEach(function(Yn){Yn.classList.contains("rpv-core__text-layer-text--not")||Yn.classList.add("rpv-core__text-layer-text")}),ln.forEach(function(Yn){Yn.onTextLayerRender&&Yn.onTextLayerRender({ele:Fn,pageIndex:tn,scale:Cn,status:$.LayerRenderStatus.DidRender})}),xn()},function(){Fn.removeAttribute("data-testid"),xn()})}),function(){var jn;_n(),(jn=rn.current)===null||jn===void 0||jn.cancel()}}},[]),rt.createElement("div",{className:"rpv-core__text-layer",ref:Nt})},ku=function(Pt){var Nt=Pt.doc,Qt=Pt.measureRef,tn=Pt.outlines,ln=Pt.pageIndex,dn=Pt.pageRotation,Cn=Pt.pageSize,xn=Pt.plugins,rn=Pt.renderPage,_n=Pt.renderQueueKey,En=Pt.rotation,Fn=Pt.scale,Dn=Pt.shouldRender,jn=Pt.viewMode,Yn=Pt.onExecuteNamedAction,Gn=Pt.onJumpFromLinkAnnotation,Vn=Pt.onJumpToDest,Tr=Pt.onRenderCompleted,hr=Pt.onRotatePage,vr=Bt(),_r=rt.useState(null),lr=_r[0],Cr=_r[1],yr=rt.useState(!1),Dr=yr[0],Lr=yr[1],Fr=rt.useState(!1),Or=Fr[0],zr=Fr[1],no=rt.useRef(),Xr=rt.useRef(),ro=Math.abs(En+dn)%180==0,Qr=Cn.pageWidth*Fn,eo=Cn.pageHeight*Fn,to=ro?Qr:eo,Jr=ro?eo:Qr,uo=(Cn.rotation+En+dn)%360,bo=rt.useRef(0),vo=rn||function(ao){return rt.createElement(rt.Fragment,null,ao.canvasLayer.children,ao.textLayer.children,ao.annotationLayer.children)};return rt.useEffect(function(){Cr(null),Lr(!1),zr(!1)},[dn,En,Fn]),rt.useEffect(function(){Dn&&vr.current&&!lr&&Xn(Nt,ln).then(function(ao){vr.current&&(bo.current=_n,Cr(ao))})},[Dn,lr]),rt.useEffect(function(){Dr&&Or&&(_n!==bo.current?(Cr(null),Lr(!1),zr(!1)):Tr(ln))},[Dr,Or]),rt.createElement("div",{className:gt({"rpv-core__page-layer":!0,"rpv-core__page-layer--dual":jn===$.ViewMode.DualPage,"rpv-core__page-layer--dual-cover":jn===$.ViewMode.DualPageWithCover,"rpv-core__page-layer--single":jn===$.ViewMode.SinglePage}),"data-testid":"core__page-layer-".concat(ln),ref:Qt,style:{height:"".concat(Jr,"px"),width:"".concat(to,"px")}},lr?rt.createElement(rt.Fragment,null,vo({annotationLayer:{attrs:{},children:rt.createElement(Su,{doc:Nt,outlines:tn,page:lr,pageIndex:ln,plugins:xn,rotation:uo,scale:Fn,onExecuteNamedAction:Yn,onJumpFromLinkAnnotation:Gn,onJumpToDest:Vn})},canvasLayer:{attrs:{},children:rt.createElement($u,{canvasLayerRef:no,height:Jr,page:lr,pageIndex:ln,plugins:xn,rotation:uo,scale:Fn,width:to,onRenderCanvasCompleted:function(){vr.current&&Lr(!0)}})},canvasLayerRendered:Dr,doc:Nt,height:Jr,pageIndex:ln,rotation:uo,scale:Fn,svgLayer:{attrs:{},children:rt.createElement(wu,{height:Jr,page:lr,rotation:uo,scale:Fn,width:to})},textLayer:{attrs:{},children:rt.createElement(Ru,{containerRef:Xr,page:lr,pageIndex:ln,plugins:xn,rotation:uo,scale:Fn,onRenderTextCompleted:function(){vr.current&&zr(!0)}})},textLayerRendered:Or,width:to,markRendered:Tr,onRotatePage:function(ao){return hr(ln,ao)}}),xn.map(function(ao,po){return ao.renderPageLayer?rt.createElement(rt.Fragment,{key:po},ao.renderPageLayer({canvasLayerRef:no,canvasLayerRendered:Dr,doc:Nt,height:Jr,pageIndex:ln,rotation:uo,scale:Fn,textLayerRef:Xr,textLayerRendered:Or,width:to})):rt.createElement(rt.Fragment,{key:po})})):rt.createElement(vt,{testId:"core__page-layer-loading-".concat(ln)}))},Pu=function(Pt,Nt){var Qt=Nt.rect;return Pt.height!==Qt.height||Pt.width!==Qt.width?Qt:Pt};(function(Pt){Pt.Horizontal="Horizontal",Pt.Vertical="Vertical",Pt.Both="Both"})(qn||(qn={}));var Tu=function(Pt){return 1-Math.pow(1-Pt,4)},Zo=1e-4,_l={left:0,top:0},Cl={capture:!1,passive:!0},Au=function(Pt){var Nt=Pt.elementRef,Qt=Pt.enableSmoothScroll,tn=Pt.isRtl,ln=Pt.scrollDirection,dn=Pt.onSmoothScroll,Cn=rt.useState(_l),xn=Cn[0],rn=Cn[1],_n=rt.useState(Nt.current),En=_n[0],Fn=_n[1],Dn=tn?-1:1,jn=rt.useRef(ln);jn.current=ln;var Yn=rt.useRef(_l),Gn=rt.useRef(!0),Vn=rt.useCallback(function(){Gn.current=!0,Qt&&rn(Yn.current),dn(!1)},[]),Tr=rt.useCallback(function(){if(En){switch(jn.current){case qn.Horizontal:Yn.current={left:Dn*En.scrollLeft,top:0};break;case qn.Both:Yn.current={left:Dn*En.scrollLeft,top:En.scrollTop};break;case qn.Vertical:default:Yn.current={left:0,top:En.scrollTop}}Qt&&!Gn.current||rn(Yn.current)}},[En]);ft(function(){Fn(Nt.current)}),ft(function(){if(En)return En.addEventListener("scroll",Tr,Cl),function(){En.removeEventListener("scroll",Tr,Cl)}},[En]);var hr=rt.useCallback(function(vr,_r){var lr=Nt.current;if(!lr)return Promise.resolve();var Cr={left:0,top:0};switch(jn.current){case qn.Horizontal:Cr.left=Dn*vr.left;break;case qn.Both:Cr.left=Dn*vr.left,Cr.top=vr.top;break;case qn.Vertical:default:Cr.top=vr.top}return _r?(Gn.current=!1,dn(!0),new Promise(function(yr,Dr){(function(Lr,Fr,Or,zr,no,Xr){no===void 0&&(no=function(po){return po}),Xr===void 0&&(Xr=function(){});var ro=0,Qr=0,eo=!1;switch(Fr){case qn.Horizontal:Qr=Lr.scrollLeft,ro=0;case qn.Both:Qr=Lr.scrollLeft,ro=Lr.scrollTop;break;case qn.Vertical:default:Qr=0,ro=Lr.scrollTop}var to=function(){eo||(eo=!0,Lr.scrollLeft=Or.left,Lr.scrollTop=Or.top,Xr())};if(Math.abs(ro-Or.top)<=Zo&&Fr===qn.Vertical)to();else if(Math.abs(Qr-Or.left)<=Zo&&Fr===qn.Horizontal)to();else{var Jr,uo=-1,bo=Qr-Or.left,vo=ro-Or.top,ao=function(po){uo===-1&&(uo=po);var Eo=po-uo,br=Math.min(Eo/zr,1),xr=no(br),ur={left:Qr-bo*xr,top:ro-vo*xr};switch(Fr){case qn.Horizontal:Lr.scrollLeft=ur.left;break;case qn.Both:Lr.scrollLeft=ur.left,Lr.scrollTop=ur.top;break;case qn.Vertical:default:Lr.scrollTop=ur.top}Math.abs(ur.top-Or.top)<=Zo&&Math.abs(ur.left-Or.left)<=Zo&&!eo&&(window.cancelAnimationFrame(Jr),to()),EoMo))return ko;Co=ko-1}}return Wr>0?Wr-1:0}(0,fo,lo,function(Wr){switch(kr){case qn.Horizontal:return Ar[Wr].start.left;case qn.Both:case qn.Vertical:default:return Ar[Wr].start.top}});if(kr===qn.Both)for(var co=Ar[Pr].start.top;Pr-1>=0&&Ar[Pr-1].start.top===co&&Ar[Pr-1].start.left>=Hr.left;)Pr--;for(var Kr=Pr;Kr<=fo;){var Yr={top:Ar[Kr].start.top-Hr.top,left:Ar[Kr].start.left-Hr.left},io={height:qr.height-Yr.top,width:qr.width-Yr.left};if(kr===qn.Horizontal&&io.width<0||kr===qn.Vertical&&io.height<0||kr===qn.Both&&(io.width<0||io.height<0))break;Kr++}return{start:Pr,end:Kr}}(Gn,Fr,vr,Tr),xr=br.start,ur=br.end,pr=yr.slice(No(0,tn,xr),No(0,tn,ur)),dr=xr+pr.reduce(function(kr,Ar,qr,Hr){return Ar>Hr[kr]?qr:kr},0),Sr=dr=No(0,tn-1,dr),wr=dn({endPage:ur,numPages:tn,startPage:xr}),fr=wr.startPage,ir=wr.endPage;switch(fr=Math.max(fr,0),ir=Math.min(ir,tn-1),rn){case $.ViewMode.DualPageWithCover:dr>0&&(Sr=dr%2==1?dr:dr-1),fr=fr===0?0:fr%2==1?fr:fr-1,tn-(ir=ir%2==1?ir-1:ir)<=2&&(ir=tn-1);break;case $.ViewMode.DualPage:Sr=dr%2==0?dr:dr-1,fr=fr%2==0?fr:fr-1,ir=ir%2==1?ir:ir-1;break;case $.ViewMode.SinglePage:default:Sr=dr}return{startPage:fr,endPage:ir,maxVisbilityIndex:Sr}},[Fr,vr,Tr,rn,yr]),no=zr.startPage,Xr=zr.endPage,ro=zr.maxVisbilityIndex,Qr=rt.useMemo(function(){for(var br=[],xr=function(pr){var dr=Fr[pr],Sr=lt(lt({},dr),{visibility:yr[pr]!==void 0?yr[pr]:-1,measureRef:function(wr){wr&&(wr.setAttribute($l,"".concat(pr)),Lr.observe(wr))}});br.push(Sr)},ur=no;ur<=Xr;ur++)xr(ur);return br},[no,Xr,yr,Fr]),eo=rt.useCallback(function(br,xr){var ur=_r.current.measurements[No(0,tn-1,br)],pr=jn.current===$.ScrollMode.Page?Sl:xr;return ur?hr({left:pr.left+ur.start.left,top:pr.top+ur.start.top},Nt):Promise.resolve()},[hr,Nt]),to=rt.useCallback(function(br,xr){var ur=_r.current.measurements,pr=ur[br].start,dr=ur.find(function(wr){return wr.start.top-pr.top>1e-12});if(!dr)return Promise.resolve();var Sr=dr.index;switch(Yn.current){case $.ViewMode.DualPage:Sr=Sr%2==0?Sr:Sr+1;break;case $.ViewMode.DualPageWithCover:Sr=Sr%2==1?Sr:Sr+1}return eo(Sr,xr)},[]),Jr=rt.useCallback(function(br,xr){for(var ur=_r.current.measurements,pr=ur[br].start,dr=br,Sr=!1,wr=tn-1;wr>=0;wr--)if(pr.top-ur[wr].start.top>1e-12){Sr=!0,dr=ur[wr].index;break}if(!Sr)return Promise.resolve();switch(Yn.current){case $.ViewMode.DualPage:dr=dr%2==0?dr:dr-1;break;case $.ViewMode.DualPageWithCover:dr=dr%2==0?dr-1:dr}return dr===br&&(dr=br-1),eo(dr,xr)},[]),uo=rt.useCallback(function(br,xr){if(Yn.current===$.ViewMode.DualPageWithCover||Yn.current===$.ViewMode.DualPage)return to(br,xr);switch(jn.current){case $.ScrollMode.Wrapped:return to(br,xr);case $.ScrollMode.Horizontal:case $.ScrollMode.Vertical:default:return eo(br+1,xr)}},[]),bo=rt.useCallback(function(br,xr){if(Yn.current===$.ViewMode.DualPageWithCover||Yn.current===$.ViewMode.DualPage)return Jr(br,xr);switch(jn.current){case $.ScrollMode.Wrapped:return Jr(br,xr);case $.ScrollMode.Horizontal:case $.ScrollMode.Vertical:default:return eo(br-1,xr)}},[]),vo=rt.useCallback(function(){return function(br,xr){switch(xr){case $.ScrollMode.Horizontal:return{position:"relative",height:"100%",width:"".concat(br.width,"px")};case $.ScrollMode.Vertical:default:return{position:"relative",height:"".concat(br.height,"px"),width:"100%"}}}(Or,jn.current)},[Or]),ao=rt.useCallback(function(br){return function(xr,ur,pr){return pr!==$.ScrollMode.Page?{}:{height:"".concat(ur.height,"px"),width:"100%",position:"absolute",top:0,transform:"translateY(".concat(xr.start.top,"px)")}}(br,vr,jn.current)},[vr]),po=rt.useCallback(function(br){return function(xr,ur,pr,dr,Sr){var wr,fr,ir,kr,Ar,qr,Hr,lo=ur?"right":"left",fo=ur?-1:1,Pr=pr.length,co=xr.start.left*fo,Kr=xr.size,Yr=Kr.height,io=Kr.width;if(dr===$.ViewMode.DualPageWithCover){var Wr=Sr===$.ScrollMode.Page?0:xr.start.top;return xr.index===0||Pr%2==0&&xr.index===Pr-1?((wr={height:"".concat(Yr,"px"),minWidth:"".concat(Mu(pr,dr),"px"),width:"100%"})[lo]=0,wr.position="absolute",wr.top=0,wr.transform="translate(".concat(co,"px, ").concat(Wr,"px)"),wr):((fr={height:"".concat(Yr,"px"),width:"".concat(io,"px")})[lo]=0,fr.position="absolute",fr.top=0,fr.transform="translate(".concat(co,"px, ").concat(Wr,"px)"),fr)}if(dr===$.ViewMode.DualPage)return(ir={height:"".concat(Yr,"px"),width:"".concat(io,"px")})[lo]=0,ir.position="absolute",ir.top=0,ir.transform="translate(".concat(co,"px, ").concat(Sr===$.ScrollMode.Page?0:xr.start.top,"px)"),ir;switch(Sr){case $.ScrollMode.Horizontal:return(kr={height:"100%",width:"".concat(io,"px")})[lo]=0,kr.position="absolute",kr.top=0,kr.transform="translateX(".concat(co,"px)"),kr;case $.ScrollMode.Page:return(Ar={height:"".concat(Yr,"px"),width:"".concat(io,"px")})[lo]=0,Ar.position="absolute",Ar.top=0,Ar;case $.ScrollMode.Wrapped:return(qr={height:"".concat(Yr,"px"),width:"".concat(io,"px")})[lo]=0,qr.position="absolute",qr.top=0,qr.transform="translate(".concat(co,"px, ").concat(xr.start.top,"px)"),qr;case $.ScrollMode.Vertical:default:return(Hr={height:"".concat(Yr,"px"),width:"100%"})[lo]=0,Hr.position="absolute",Hr.top=0,Hr.transform="translateY(".concat(xr.start.top,"px)"),Hr}}(br,Qt,Cn,Yn.current,jn.current)},[Qt,Cn]),Eo=rt.useCallback(function(br,xr){var ur=_r.current,pr=ur.measurements,dr=ur.scrollOffset,Sr=pr[No(0,tn-1,xr)];if(Sr){var wr=jn.current===$.ScrollMode.Page?{left:Sr.start.left,top:Sr.start.top}:{left:dr.left*br,top:dr.top*br};return hr(wr,!1)}return Promise.resolve()},[]);return rt.useEffect(function(){return function(){Lr.disconnect()}},[]),{boundingClientRect:vr,isSmoothScrolling:En,startPage:no,endPage:Xr,maxVisbilityIndex:ro,virtualItems:Qr,getContainerStyles:vo,getItemContainerStyles:ao,getItemStyles:po,scrollToItem:eo,scrollToNextItem:uo,scrollToPreviousItem:bo,zoom:Eo}},vs=function(Pt,Nt,Qt,tn,ln,dn){var Cn=Qt;switch(!0){case(ln===$.ViewMode.DualPageWithCover&&dn>=3):case(ln===$.ViewMode.DualPage&&dn>=3):Cn=2*Qt;break;default:Cn=Qt}switch(tn){case $.SpecialZoomLevel.ActualSize:return 1;case $.SpecialZoomLevel.PageFit:return Math.min((Pt.clientWidth-17)/Cn,(Pt.clientHeight-16)/Nt);case $.SpecialZoomLevel.PageWidth:return(Pt.clientWidth-17)/Cn}},Nu=function(Pt){var Nt,Qt,tn=Pt.getCurrentPage,ln=(Nt=50,Qt=rt.useRef([]),rt.useEffect(function(){return function(){Qt.current=[]}},[]),{push:function(_n){var En=Qt.current;En.length+1>Nt&&En.shift(),En.push(_n),Qt.current=En},map:function(_n){return Qt.current.map(function(En){return _n(En)})},pop:function(){var _n=Qt.current;if(_n.length===0)return null;var En=_n.pop();return Qt.current=_n,En}}),dn=function(_n){var En=rt.useRef([]);return rt.useEffect(function(){return function(){En.current=[]}},[]),{dequeue:function(){var Fn=En.current;if(Fn.length===0)return null;var Dn=Fn.shift();return En.current=Fn,Dn||null},enqueue:function(Fn){var Dn=En.current;Dn.length+1>_n&&Dn.pop(),En.current=[Fn].concat(Dn)},map:function(Fn){return En.current.map(function(Dn){return Fn(Dn)})}}}(50),Cn=function(){var _n=dn.dequeue();return _n&&ln.push(_n),_n&&_n.pageIndex===tn()?Cn():_n},xn=function(){var _n=ln.pop();return _n&&dn.enqueue(_n),_n&&_n.pageIndex===tn()?xn():_n},rn=rt.useCallback(function(_n){ln.push(_n)},[]);return{getNextDestination:Cn,getPreviousDestination:xn,markVisitedDestination:rn}},wl=function(Pt){var Nt=[];return Pt.map(function(Qt){Nt=Nt.concat(Qt).concat(function(tn){var ln=[];return tn.items&&tn.items.length>0&&(ln=ln.concat(wl(tn.items))),ln}(Qt))}),Nt},Rl={capture:!1,passive:!0},Bu={height:0,width:0},xs={height:0,width:0},zu=function(Pt){var Nt=Pt.getCurrentPage,Qt=Pt.getCurrentScrollMode,tn=Pt.jumpToPage,ln=Pt.targetRef,dn=rt.useState($.FullScreenMode.Normal),Cn=dn[0],xn=dn[1],rn=function(){var yr=rt.useState(Bu),Dr=yr[0],Lr=yr[1],Fr=Gt(function(){Lr({height:window.innerHeight,width:window.innerWidth})},100);return ft(function(){return window.addEventListener("resize",Fr,Rl),function(){window.removeEventListener("resize",Fr,Rl)}},[]),Dr}(),_n=rt.useState(xs),En=_n[0],Fn=_n[1],Dn=rt.useRef(xs),jn=rt.useRef(Nt()),Yn=rt.useRef(xs),Gn=rt.useState(ln.current),Vn=Gn[0],Tr=Gn[1],hr=rt.useRef();ft(function(){ln.current!==Vn&&Tr(ln.current)},[]),ft(function(){if(Vn){var yr=new ResizeObserver(function(Dr){Dr.forEach(function(Lr){var Fr=Lr.target.getBoundingClientRect(),Or=Fr.height,zr=Fr.width;Fn({height:Or,width:zr})})});return yr.observe(Vn),function(){yr.unobserve(Vn),yr.disconnect()}}},[Vn]);var vr=rt.useCallback(function(yr){var Dr=jt();return Dr&&Dr!==yr?(xn($.FullScreenMode.Normal),Tt(Dr)):Promise.resolve()},[]),_r=rt.useCallback(function(yr){yr&&$t()&&(Tr(yr),vr(yr).then(function(){hr.current=yr,xn($.FullScreenMode.Entering),function(Dr){kt&&Dr[At.RequestFullScreen]()}(yr)}))},[]),lr=rt.useCallback(function(){jt()&&(xn($.FullScreenMode.Exitting),Tt(document))},[]),Cr=rt.useCallback(function(){Vn&&jt()!==Vn&&xn($.FullScreenMode.Exitting)},[Vn]);return rt.useEffect(function(){switch(Cn){case $.FullScreenMode.Entering:hr.current&&(hr.current.style.backgroundColor="var(--rpv-core__full-screen-target-background-color)"),jn.current=Nt(),Dn.current={height:window.innerHeight,width:window.innerWidth};break;case $.FullScreenMode.Entered:Qt()===$.ScrollMode.Page?tn(jn.current).then(function(){xn($.FullScreenMode.EnteredCompletely)}):xn($.FullScreenMode.EnteredCompletely);break;case $.FullScreenMode.Exitting:hr.current&&(hr.current.style.backgroundColor="",hr.current=null),jn.current=Nt();break;case $.FullScreenMode.Exited:xn($.FullScreenMode.Normal),Qt()===$.ScrollMode.Page&&tn(jn.current)}},[Cn]),rt.useEffect(function(){if(Cn!==$.FullScreenMode.Normal)return Cn===$.FullScreenMode.Entering&&rn.height===En.height&&rn.width===En.width&&rn.height>0&&rn.width>0&&(Yn.current.height===0||rn.height==Yn.current.height)?(Yn.current={height:window.innerHeight,width:window.innerWidth},void xn($.FullScreenMode.Entered)):void(Cn===$.FullScreenMode.Exitting&&Dn.current.height===rn.height&&Dn.current.width===rn.width&&rn.height>0&&rn.width>0&&xn($.FullScreenMode.Exited))},[Cn,rn,En]),rt.useEffect(function(){var yr;return yr=Cr,kt&&document.addEventListener(At.FullScreenChange,yr),function(){(function(Dr){kt&&document.removeEventListener(At.FullScreenChange,Dr)})(Cr)}},[Vn]),{enterFullScreenMode:_r,exitFullScreenMode:lr,fullScreenMode:Cn}},Uu={buildPageStyles:function(){return{}},transformSize:function(Pt){return Pt.size}},Ao={left:0,top:0},Wu=function(Pt){var Nt=Pt.currentFile,Qt=Pt.defaultScale,tn=Pt.doc,ln=Pt.enableSmoothScroll,dn=Pt.initialPage,Cn=Pt.initialRotation,xn=Pt.initialScale,rn=Pt.pageLayout,_n=Pt.pageSizes,En=Pt.plugins,Fn=Pt.renderPage,Dn=Pt.scrollMode,jn=Pt.setRenderRange,Yn=Pt.viewMode,Gn=Pt.viewerState,Vn=Pt.onDocumentLoad,Tr=Pt.onOpenFile,hr=Pt.onPageChange,vr=Pt.onRotate,_r=Pt.onRotatePage,lr=Pt.onZoom,Cr=tn.numPages,yr=tn.loadingTask.docId,Dr=rt.useContext(Yt).l10n,Lr=rt.useContext(pt),Fr=Lr.direction===$.TextDirection.RightToLeft,Or=rt.useRef(),zr=rt.useRef(),no=rt.useState(dn),Xr=no[0],ro=no[1],Qr=rt.useRef(null),eo=Nu({getCurrentPage:function(){return Pr.current.pageIndex}}),to=rt.useState(Cn),Jr=to[0],uo=to[1],bo=Kt(Jr),vo=rt.useState(!1),ao=vo[0],po=vo[1],Eo=rt.useState(new Map),br=Eo[0],xr=Eo[1],ur=rt.useState(Dn),pr=ur[0],dr=ur[1],Sr=Kt(pr),wr=rt.useState(Yn),fr=wr[0],ir=wr[1],kr=Kt(fr),Ar=function(Hn){var Rr=Bt(),Ir=rt.useState([]),Ur=Ir[0],Nr=Ir[1];return rt.useEffect(function(){Hn.getOutline().then(function(jr){if(Rr.current&&jr!==null){var so=wl(jr);Nr(so)}})},[]),Ur}(tn),qr=rt.useState(xn),Hr=qr[0],lo=qr[1],fo=Kt(Hr),Pr=rt.useRef(Gn),co=rt.useRef(typeof Qt=="string"?Qt:null),Kr=rt.useRef(-1),Yr=rt.useRef(-1),io=rt.useRef(dn),Wr=zu({getCurrentPage:function(){return Pr.current.pageIndex},getCurrentScrollMode:function(){return Pr.current.scrollMode},jumpToPage:function(Hn){return $o(Hn)},targetRef:zr}),Co=rt.useState(-1),Mo=Co[0],Jo=Co[1],ko=rt.useState(0),Bo=ko[0],Xu=ko[1],ho=It({doc:tn});rt.useEffect(function(){return function(){Ln.clear(),Zn.clear()}},[yr]);var Ml=rt.useMemo(function(){return Object.assign({},Uu,rn)},[]),Yu=rt.useMemo(function(){return Array(Cr).fill(0).map(function(Hn,Rr){var Ir=[_n[Rr].pageHeight,_n[Rr].pageWidth],Ur=Math.abs(Jr)%180==0?{height:Ir[0],width:Ir[1]}:{height:Ir[1],width:Ir[0]},Nr={height:Ur.height*Hr,width:Ur.width*Hr};return Ml.transformSize({numPages:Cr,pageIndex:Rr,size:Nr})})},[Jr,Hr]),Vr=Ou({enableSmoothScroll:ln,isRtl:Fr,numberOfItems:Cr,parentRef:zr,scrollMode:pr,setRenderRange:jn,sizes:Yu,viewMode:fr}),Zu=Gt(function(){!co.current||Pr.current.fullScreenMode!==$.FullScreenMode.Normal||dn>0&&io.current===dn||Po(co.current)},200);(function(Hn){var Rr=Hn.targetRef,Ir=Hn.onResize;ft(function(){var Ur=new ResizeObserver(function(jr){jr.forEach(function(so){Ir(so.target)})}),Nr=Rr.current;if(Nr)return Ur.observe(Nr),function(){Ur.unobserve(Nr)}},[])})({targetRef:zr,onResize:Zu});var So=function(Hn){var Rr=Hn;En.forEach(function(Ir){Ir.onViewerStateChange&&(Rr=Ir.onViewerStateChange(Rr))}),Pr.current=Rr},Qu=function(){return zr.current},Ju=function(){return Pr.current},_d=rt.useCallback(function(Hn){eo.markVisitedDestination(Hn)},[]),Es=rt.useCallback(function(Hn){var Rr=Hn.pageIndex,Ir=Hn.bottomOffset,Ur=Hn.leftOffset,Nr=Hn.scaleTo,jr=zr.current,so=Pr.current;return jr&&so?new Promise(function(wo,Rs){Xn(tn,Rr).then(function(_i){var Ro=_i.getViewport({scale:1}),es=0,zl=(typeof Ir=="function"?Ir(Ro.width,Ro.height):Ir)||0,ts=(typeof Ur=="function"?Ur(Ro.width,Ro.height):Ur)||0,Io=so.scale;switch(Nr){case $.SpecialZoomLevel.PageFit:es=0,ts=0,Po($.SpecialZoomLevel.PageFit);break;case $.SpecialZoomLevel.PageWidth:Io=vs(jr,_n[Rr].pageHeight,_n[Rr].pageWidth,$.SpecialZoomLevel.PageWidth,Yn,Cr),es=(Ro.height-zl)*Io,ts*=Io,Po(Io);break;default:es=(Ro.height-zl)*Io,ts*=Io}switch(so.scrollMode){case $.ScrollMode.Horizontal:Vr.scrollToItem(Rr,{left:ts,top:0}).then(function(){wo()});break;case $.ScrollMode.Vertical:default:Vr.scrollToItem(Rr,{left:0,top:es}).then(function(){wo()})}})}):Promise.resolve()},[]),Il=rt.useCallback(function(Hn){return eo.markVisitedDestination(Hn),Es(Hn)},[]),ep=rt.useCallback(function(){var Hn=eo.getNextDestination();return Hn?Es(Hn):Promise.resolve()},[]),tp=rt.useCallback(function(){var Hn=eo.getPreviousDestination();return Hn?Es(Hn):Promise.resolve()},[]),np=rt.useCallback(function(){return Vr.scrollToNextItem(Pr.current.pageIndex,Ao)},[]),$o=rt.useCallback(function(Hn){return 0<=Hn&&Hn=Cr)){var Ur=_n[Ir].pageHeight,Nr=_n[Ir].pageWidth,jr=Rr?typeof Hn=="string"?vs(Rr,Ur,Nr,Hn,Pr.current.viewMode,Cr):Hn:1;co.current=typeof Hn=="string"?Hn:null,jr!==Pr.current.scale&&(Xu(function(so){return so+1}),ho.markNotRendered(),lo(jr),lr({doc:tn,scale:jr}),So(lt(lt({},Pr.current),{scale:jr})))}},[]),op=rt.useCallback(function(Hn){Wr.enterFullScreenMode(Hn)},[]),ip=rt.useCallback(function(){Wr.exitFullScreenMode()},[]);rt.useEffect(function(){So(lt(lt({},Pr.current),{fullScreenMode:Wr.fullScreenMode}))},[Wr.fullScreenMode]),rt.useEffect(function(){var Hn={enterFullScreenMode:op,exitFullScreenMode:ip,getPagesContainer:Qu,getViewerState:Ju,jumpToDestination:Il,jumpToNextDestination:ep,jumpToPreviousDestination:tp,jumpToNextPage:np,jumpToPreviousPage:rp,jumpToPage:$o,openFile:Ll,rotate:Dl,rotatePage:_s,setViewerState:So,switchScrollMode:Fl,switchViewMode:Ol,zoom:Po};return En.forEach(function(Rr){Rr.install&&Rr.install(Hn)}),function(){En.forEach(function(Rr){Rr.uninstall&&Rr.uninstall(Hn)})}},[yr]),rt.useEffect(function(){Vn({doc:tn,file:Nt}),En.forEach(function(Hn){Hn.onDocumentLoad&&Hn.onDocumentLoad({doc:tn,file:Nt})})},[yr]);var Cs,Ss,$s,Nl=Vr.boundingClientRect;Cs=function(){dn&&$o(dn)},Ss=Nl.height>0&&Nl.width>0,$s=rt.useRef(!1),ft(function(){Ss&&!$s.current&&($s.current=!0,Cs())},[Cs,Ss]),ft(function(){var Hn=Pr.current.pageIndex;Hn>-1&&Sr!==pr&&Vr.scrollToItem(Hn,Ao).then(function(){Wr.fullScreenMode===$.FullScreenMode.EnteredCompletely&&(ln||ho.markNotRendered(),Kr.current=-1)})},[pr]),ft(function(){var Hn=Pr.current.pageIndex;Hn>-1&&bo!==Jr&&Vr.scrollToItem(Hn,Ao)},[Jr]),ft(function(){fo!=0&&fo!=Pr.current.scale&&Vr.zoom(Pr.current.scale/fo,Pr.current.pageIndex).then(function(){Wr.fullScreenMode===$.FullScreenMode.EnteredCompletely&&(Yr.current=-1)})},[Hr]),ft(function(){if(kr!==Pr.current.viewMode){var Hn=Vr.startPage,Rr=Vr.endPage,Ir=Vr.virtualItems;ho.markNotRendered(),ho.setRange(Hn,Rr);for(var Ur=function(jr){var so=Ir.find(function(wo){return wo.index===jr});so&&ho.setVisibility(jr,so.visibility)},Nr=Hn;Nr<=Rr;Nr++)Ur(Nr);ws()}},[fr]),ft(function(){var Hn=Pr.current.pageIndex;Hn>-1&&kr!==fr&&Vr.scrollToItem(Hn,Ao)},[fr]),ft(function(){var Hn=Pr.current.pageIndex;Hn>0&&Hn===dn&&io.current===dn&&co.current&&(io.current=-1,Po(co.current))},[Xr]),rt.useEffect(function(){Vr.isSmoothScrolling||Qr.current!==null&&Qr.current===Xr||(Qr.current=Xr,hr({currentPage:Xr,doc:tn}))},[Xr,Vr.isSmoothScrolling]),rt.useEffect(function(){Wr.fullScreenMode===$.FullScreenMode.Entering&&Pr.current.scrollMode===$.ScrollMode.Page&&(Kr.current=Pr.current.pageIndex),Wr.fullScreenMode===$.FullScreenMode.EnteredCompletely&&Pr.current.scrollMode===$.ScrollMode.Page&&ln&&(Kr.current=-1),Wr.fullScreenMode===$.FullScreenMode.EnteredCompletely&&co.current&&(Yr.current=Pr.current.pageIndex,Po(co.current))},[Wr.fullScreenMode]),rt.useEffect(function(){if(Wr.fullScreenMode!==$.FullScreenMode.Entering&&Wr.fullScreenMode!==$.FullScreenMode.Exitting&&!Vr.isSmoothScrolling){var Hn=Vr.startPage,Rr=Vr.endPage,Ir=Vr.maxVisbilityIndex,Ur=Vr.virtualItems,Nr=Ir,jr=Wr.fullScreenMode===$.FullScreenMode.Entered||Wr.fullScreenMode===$.FullScreenMode.EnteredCompletely;if(!(jr&&Nr!==Kr.current&&Kr.current>-1||jr&&Nr!==Yr.current&&Yr.current>-1)){ro(Nr),So(lt(lt({},Pr.current),{pageIndex:Nr})),ho.setRange(Hn,Rr);for(var so=function(Rs){var _i=Ur.find(function(Ro){return Ro.index===Rs});_i&&ho.setVisibility(Rs,_i.visibility)},wo=Hn;wo<=Rr;wo++)so(wo);ws()}}},[Vr.startPage,Vr.endPage,Vr.isSmoothScrolling,Vr.maxVisbilityIndex,Wr.fullScreenMode,ao,Jr,Hr]);var sp=rt.useCallback(function(Hn){ho.markRendered(Hn),ws()},[Bo]),ws=function(){var Hn=ho.getHighestPriorityPage();Hn>-1&&ho.isInRange(Hn)&&(ho.markRendering(Hn),Jo(Hn))},ap=function(Hn){var Rr=Xr-1,Ir=Xr+1;switch(Hn){case"FirstPage":$o(0);break;case"LastPage":$o(Cr-1);break;case"NextPage":Ir=0&&$o(Rr)}},lp=rt.useCallback(function(){var Hn=Vr.virtualItems,Rr=[];switch(fr){case $.ViewMode.DualPage:Rr=on(Hn,2);break;case $.ViewMode.DualPageWithCover:Hn.length&&(Rr=Hn[0].index===0?[[Hn[0]]].concat(on(Hn.slice(1),2)):on(Hn,2));break;case $.ViewMode.SinglePage:default:Rr=on(Hn,1)}var Ir=Dr&&Dr.core?Dr.core.pageLabel:"Page {{pageIndex}}",Ur={attrs:{className:"rpv-core__inner-container","data-testid":"core__inner-container",ref:Or,style:{height:"100%"}},children:rt.createElement(rt.Fragment,null),subSlot:{attrs:{"data-testid":"core__inner-pages",className:gt({"rpv-core__inner-pages":!0,"rpv-core__inner-pages--horizontal":pr===$.ScrollMode.Horizontal,"rpv-core__inner-pages--rtl":Fr,"rpv-core__inner-pages--single":pr===$.ScrollMode.Page,"rpv-core__inner-pages--vertical":pr===$.ScrollMode.Vertical,"rpv-core__inner-pages--wrapped":pr===$.ScrollMode.Wrapped}),ref:zr,style:{height:"100%",position:"relative"}},children:rt.createElement("div",{"data-testid":"core__inner-current-page-".concat(Xr),style:Object.assign({"--scale-factor":Hr},Vr.getContainerStyles())},Rr.map(function(Nr){return rt.createElement("div",{className:gt({"rpv-core__inner-page-container":!0,"rpv-core__inner-page-container--single":pr===$.ScrollMode.Page}),style:Vr.getItemContainerStyles(Nr[0]),key:"".concat(Nr[0].index,"-").concat(fr)},Nr.map(function(jr){var so=fr===$.ViewMode.DualPageWithCover&&(jr.index===0||Cr%2==0&&jr.index===Cr-1);return rt.createElement("div",{"aria-label":Ir.replace("{{pageIndex}}","".concat(jr.index+1)),className:gt({"rpv-core__inner-page":!0,"rpv-core__inner-page--dual-even":fr===$.ViewMode.DualPage&&jr.index%2==0,"rpv-core__inner-page--dual-odd":fr===$.ViewMode.DualPage&&jr.index%2==1,"rpv-core__inner-page--dual-cover":so,"rpv-core__inner-page--dual-cover-even":fr===$.ViewMode.DualPageWithCover&&!so&&jr.index%2==0,"rpv-core__inner-page--dual-cover-odd":fr===$.ViewMode.DualPageWithCover&&!so&&jr.index%2==1,"rpv-core__inner-page--single":fr===$.ViewMode.SinglePage&&pr===$.ScrollMode.Page}),role:"region",key:"".concat(jr.index,"-").concat(fr),style:Object.assign({},Vr.getItemStyles(jr),Ml.buildPageStyles({numPages:Cr,pageIndex:jr.index,scrollMode:pr,viewMode:fr}))},rt.createElement(ku,{doc:tn,measureRef:jr.measureRef,outlines:Ar,pageIndex:jr.index,pageRotation:br.has(jr.index)?br.get(jr.index):0,pageSize:_n[jr.index],plugins:En,renderPage:Fn,renderQueueKey:Bo,rotation:Jr,scale:Hr,shouldRender:Mo===jr.index,viewMode:fr,onExecuteNamedAction:ap,onJumpFromLinkAnnotation:_d,onJumpToDest:Il,onRenderCompleted:sp,onRotatePage:_s}))}))}))}};return En.forEach(function(Nr){Nr.renderViewer&&(Ur=Nr.renderViewer({containerRef:Or,doc:tn,pagesContainerRef:zr,pagesRotation:br,pageSizes:_n,rotation:Jr,slot:Ur,themeContext:Lr,jumpToPage:$o,openFile:Ll,rotate:Dl,rotatePage:_s,switchScrollMode:Fl,switchViewMode:Ol,zoom:Po}))}),Ur},[En,Vr]),Bl=rt.useCallback(function(Hn){return rt.createElement("div",lt({},Hn.attrs,{style:Hn.attrs&&Hn.attrs.style?Hn.attrs.style:{}}),Hn.children,Hn.subSlot&&Bl(Hn.subSlot))},[]);return Bl(lp())},Pl=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.3,1.5,1.7,1.9,2.1,2.4,2.7,3,3.3,3.7,4.1,4.6,5.1,5.7,6.3,7,7.7,8.5,9.4,10],Hu=function(Pt){var Nt=Pt.defaultScale,Qt=Pt.doc,tn=Pt.render,ln=Pt.scrollMode,dn=Pt.viewMode,Cn=rt.useRef(),xn=rt.useState({pageSizes:[],scale:0}),rn=xn[0],_n=xn[1];return rt.useLayoutEffect(function(){var En=Array(Qt.numPages).fill(0).map(function(Fn,Dn){return new Promise(function(jn,Yn){Xn(Qt,Dn).then(function(Gn){var Vn=Gn.getViewport({scale:1});jn({pageHeight:Vn.height,pageWidth:Vn.width,rotation:Vn.rotation})})})});Promise.all(En).then(function(Fn){var Dn=Cn.current;if(Dn&&Fn.length!==0){var jn=Fn[0].pageWidth,Yn=Fn[0].pageHeight,Gn=Dn.parentElement,Vn=(Gn.clientWidth-45)/jn,Tr=(Gn.clientHeight-45)/Yn,hr=Vn;switch(ln){case $.ScrollMode.Horizontal:hr=Math.min(Vn,Tr);break;case $.ScrollMode.Vertical:default:hr=Vn}var vr,_r,lr=Nt?typeof Nt=="string"?vs(Gn,Yn,jn,Nt,dn,Qt.numPages):Nt:(vr=hr,(_r=Pl.findIndex(function(Cr){return Cr>=vr}))===-1||_r===0?vr:Pl[_r-1]);_n({pageSizes:Fn,scale:lr})}})},[Qt.loadingTask.docId]),rn.pageSizes.length===0||rn.scale===0?rt.createElement("div",{className:"rpv-core__page-size-calculator","data-testid":"core__page-size-calculating",ref:Cn},rt.createElement(vt,null)):tn(rn.pageSizes,rn.scale)},Qo=function(){},ys=function(Pt){function Nt(Qt,tn){var ln=Pt.call(this)||this;return ln.verifyPassword=Qt,ln.passwordStatus=tn,ln}return st(Nt,Pt),Nt}(Qo),Vu=function(Pt){var Nt=Pt.passwordStatus,Qt=Pt.renderProtectedView,tn=Pt.verifyPassword,ln=Pt.onDocumentAskPassword,dn=rt.useContext(Yt).l10n,Cn=rt.useState(""),xn=Cn[0],rn=Cn[1],_n=rt.useContext(pt).direction===$.TextDirection.RightToLeft,En=function(){return tn(xn)};return rt.useEffect(function(){ln&&ln({verifyPassword:tn})},[]),Qt?Qt({passwordStatus:Nt,verifyPassword:tn}):rt.createElement("div",{className:"rpv-core__asking-password-wrapper"},rt.createElement("div",{className:gt({"rpv-core__asking-password":!0,"rpv-core__asking-password--rtl":_n})},rt.createElement("div",{className:"rpv-core__asking-password-message"},Nt===$.PasswordStatus.RequiredPassword&&dn.core.askingPassword.requirePasswordToOpen,Nt===$.PasswordStatus.WrongPassword&&dn.core.wrongPassword.tryAgain),rt.createElement("div",{className:"rpv-core__asking-password-body"},rt.createElement("div",{className:gt({"rpv-core__asking-password-input":!0,"rpv-core__asking-password-input--ltr":!_n,"rpv-core__asking-password-input--rtl":_n})},rt.createElement(bt,{testId:"core__asking-password-input",type:"password",value:xn,onChange:rn,onKeyDown:function(Fn){Fn.key==="Enter"&&En()}})),rt.createElement(ut,{onClick:En},dn.core.askingPassword.submit))))},Tl=function(Pt){function Nt(Qt){var tn=Pt.call(this)||this;return tn.doc=Qt,tn}return st(Nt,Pt),Nt}(Qo),Al=function(Pt){function Nt(Qt){var tn=Pt.call(this)||this;return tn.error=Qt,tn}return st(Nt,Pt),Nt}(Qo),bs=function(Pt){function Nt(Qt){var tn=Pt.call(this)||this;return tn.percentages=Qt,tn}return st(Nt,Pt),Nt}(Qo),Gu=function(Pt){var Nt=Pt.characterMap,Qt=Pt.file,tn=Pt.httpHeaders,ln=Pt.render,dn=Pt.renderError,Cn=Pt.renderLoader,xn=Pt.renderProtectedView,rn=Pt.transformGetDocumentParams,_n=Pt.withCredentials,En=Pt.onDocumentAskPassword,Fn=rt.useContext(pt).direction===$.TextDirection.RightToLeft,Dn=rt.useState(new bs(0)),jn=Dn[0],Yn=Dn[1],Gn=rt.useRef(""),Vn=Bt();return rt.useEffect(function(){Gn.current="",Yn(new bs(0));var Tr=new ot.PDFWorker({name:"PDFWorker_".concat(Date.now())}),hr=Object.assign({httpHeaders:tn,withCredentials:_n,worker:Tr},typeof Qt=="string"?{url:Qt}:{data:Qt},Nt?{cMapUrl:Nt.url,cMapPacked:Nt.isCompressed}:{}),vr=rn?rn(hr):hr,_r=ot.getDocument(vr);return _r.onPassword=function(lr,Cr){switch(Cr){case ot.PasswordResponses.NEED_PASSWORD:Vn.current&&Yn(new ys(lr,$.PasswordStatus.RequiredPassword));break;case ot.PasswordResponses.INCORRECT_PASSWORD:Vn.current&&Yn(new ys(lr,$.PasswordStatus.WrongPassword))}},_r.onProgress=function(lr){var Cr=lr.total>0?Math.min(100,100*lr.loaded/lr.total):100;Vn.current&&Gn.current===""&&Yn(new bs(Cr))},_r.promise.then(function(lr){Gn.current=lr.loadingTask.docId,Vn.current&&Yn(new Tl(lr))},function(lr){return Vn.current&&!Tr.destroyed&&Yn(new Al({message:lr.message||"Cannot load document",name:lr.name}))}),function(){_r.destroy(),Tr.destroy()}},[Qt]),jn instanceof ys?rt.createElement(Vu,{passwordStatus:jn.passwordStatus,renderProtectedView:xn,verifyPassword:jn.verifyPassword,onDocumentAskPassword:En}):jn instanceof Tl?ln(jn.doc):jn instanceof Al?dn?dn(jn.error):rt.createElement("div",{className:gt({"rpv-core__doc-error":!0,"rpv-core__doc-error--rtl":Fn})},rt.createElement("div",{className:"rpv-core__doc-error-text"},jn.error.message)):rt.createElement("div",{"data-testid":"core__doc-loading",className:gt({"rpv-core__doc-loading":!0,"rpv-core__doc-loading--rtl":Fn})},Cn?Cn(jn.percentages):rt.createElement(vt,null))},qu=function(Pt,Nt){var Qt=rt.useMemo(function(){return Pt==="auto"?typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":Pt},[]),tn=rt.useState(Qt),ln=tn[0],dn=tn[1],Cn=Kt(ln);return rt.useEffect(function(){if(Pt==="auto"){var xn=window.matchMedia("(prefers-color-scheme: dark)"),rn=function(_n){dn(_n.matches?"dark":"light")};return xn.addEventListener("change",rn),function(){return xn.removeEventListener("change",rn)}}},[]),rt.useEffect(function(){ln!==Cn&&Nt&&Nt(ln)},[ln]),rt.useEffect(function(){Pt!==ln&&dn(Pt)},[Pt]),{currentTheme:ln,setCurrentTheme:dn}},Ku=function(Pt){return{startPage:Pt.startPage-3,endPage:Pt.endPage+3}};$.Button=function(Pt){var Nt=Pt.children,Qt=Pt.testId,tn=Pt.onClick,ln=rt.useContext(pt).direction===$.TextDirection.RightToLeft,dn=Qt?{"data-testid":Qt}:{};return rt.createElement("button",lt({className:gt({"rpv-core__button":!0,"rpv-core__button--rtl":ln}),type:"button",onClick:tn},dn),Nt)},$.Icon=mt,$.LazyRender=function(Pt){var Nt=Pt.attrs,Qt=Pt.children,tn=Pt.testId,ln=rt.useState(!1),dn=ln[0],Cn=ln[1],xn=tn?lt(lt({},Nt),{"data-testid":tn}):Nt,rn=dt({once:!0,onVisibilityChanged:function(_n){_n.isVisible&&Cn(!0)}});return rt.createElement("div",lt({ref:rn},xn),dn&&Qt)},$.LocalizationContext=Yt,$.Menu=function(Pt){var Nt=Pt.children,Qt=rt.useRef(),tn=rt.useRef([]),ln=rt.useContext(pt).direction===$.TextDirection.RightToLeft,dn=function(xn){if(Qt.current)switch(xn.key){case"Tab":xn.preventDefault();break;case"ArrowDown":xn.preventDefault(),Cn(function(rn,_n){return _n+1});break;case"ArrowUp":xn.preventDefault(),Cn(function(rn,_n){return _n-1});break;case"End":xn.preventDefault(),Cn(function(rn,_n){return rn.length-1});break;case"Home":xn.preventDefault(),Cn(function(rn,_n){return 0})}},Cn=function(xn){if(Qt.current){var rn=tn.current,_n=rn.findIndex(function(Fn){return Fn.getAttribute("tabindex")==="0"}),En=Math.min(rn.length-1,Math.max(0,xn(rn,_n)));_n>=0&&_n<=rn.length-1&&rn[_n].setAttribute("tabindex","-1"),rn[En].setAttribute("tabindex","0"),rn[En].focus()}};return ft(function(){var xn=Qt.current;if(xn){var rn=function(_n){var En=[];return _n.querySelectorAll('.rpv-core__menu-item[role="menuitem"]').forEach(function(Fn){if(Fn instanceof HTMLElement){var Dn=Fn.parentElement;(Dn===_n||window.getComputedStyle(Dn).display!=="none")&&En.push(Fn)}}),En}(xn);tn.current=rn}},[]),ft(function(){return document.addEventListener("keydown",dn),function(){document.removeEventListener("keydown",dn)}},[]),rt.createElement("div",{ref:Qt,"aria-orientation":"vertical",className:gt({"rpv-core__menu":!0,"rpv-core__menu--rtl":ln}),role:"menu",tabIndex:0},Nt)},$.MenuDivider=function(){return rt.createElement("div",{"aria-orientation":"horizontal",className:"rpv-core__menu-divider",role:"separator"})},$.MenuItem=function(Pt){var Nt=Pt.checked,Qt=Nt!==void 0&&Nt,tn=Pt.children,ln=Pt.icon,dn=ln===void 0?null:ln,Cn=Pt.isDisabled,xn=Cn!==void 0&&Cn,rn=Pt.testId,_n=Pt.onClick,En=rt.useContext(pt).direction===$.TextDirection.RightToLeft,Fn=rn?{"data-testid":rn}:{};return rt.createElement("button",lt({className:gt({"rpv-core__menu-item":!0,"rpv-core__menu-item--disabled":xn,"rpv-core__menu-item--ltr":!En,"rpv-core__menu-item--rtl":En}),role:"menuitem",tabIndex:-1,type:"button",onClick:_n},Fn),rt.createElement("div",{className:gt({"rpv-core__menu-item-icon":!0,"rpv-core__menu-item-icon--ltr":!En,"rpv-core__menu-item-icon--rtl":En})},dn),rt.createElement("div",{className:gt({"rpv-core__menu-item-label":!0,"rpv-core__menu-item-label--ltr":!En,"rpv-core__menu-item-label--rtl":En})},tn),rt.createElement("div",{className:gt({"rpv-core__menu-item-check":!0,"rpv-core__menu-item-check--ltr":!En,"rpv-core__menu-item-check--rtl":En})},Qt&&rt.createElement(ct,null)))},$.MinimalButton=function(Pt){var Nt=Pt.ariaLabel,Qt=Nt===void 0?"":Nt,tn=Pt.ariaKeyShortcuts,ln=tn===void 0?"":tn,dn=Pt.children,Cn=Pt.isDisabled,xn=Cn!==void 0&&Cn,rn=Pt.isSelected,_n=rn!==void 0&&rn,En=Pt.testId,Fn=Pt.onClick,Dn=rt.useContext(pt).direction===$.TextDirection.RightToLeft,jn=En?{"data-testid":En}:{};return rt.createElement("button",lt({"aria-label":Qt},ln&&{"aria-keyshortcuts":ln},xn&&{"aria-disabled":!0},{className:gt({"rpv-core__minimal-button":!0,"rpv-core__minimal-button--disabled":xn,"rpv-core__minimal-button--rtl":Dn,"rpv-core__minimal-button--selected":_n}),type:"button",onClick:Fn},jn),dn)},$.Modal=function(Pt){var Nt=Pt.ariaControlsSuffix,Qt=Pt.closeOnClickOutside,tn=Pt.closeOnEscape,ln=Pt.content,dn=Pt.isOpened,Cn=dn!==void 0&&dn,xn=Pt.target,rn=Nt||"".concat(Rt());return rt.createElement(pn,{target:xn?function(_n,En){return rt.createElement("div",{"aria-expanded":En?"true":"false","aria-haspopup":"dialog","aria-controls":"rpv-core__modal-body-".concat(rn)},xn(_n,En))}:null,content:function(_n){return rt.createElement(zt,null,rt.createElement(Ot,{ariaControlsSuffix:rn,closeOnClickOutside:Qt,closeOnEscape:tn,onToggle:_n},ln(_n)))},isOpened:Cn})},$.Popover=function(Pt){var Nt=Pt.ariaHasPopup,Qt=Nt===void 0?"dialog":Nt,tn=Pt.ariaControlsSuffix,ln=Pt.closeOnClickOutside,dn=Pt.closeOnEscape,Cn=Pt.content,xn=Pt.lockScroll,rn=xn===void 0||xn,_n=Pt.offset,En=Pt.position,Fn=Pt.target,Dn=Jt(!1),jn=Dn.opened,Yn=Dn.toggle,Gn=rt.useRef(),Vn=rt.useMemo(function(){return tn||"".concat(Rt())},[]);return rt.createElement("div",{ref:Gn,"aria-expanded":jn?"true":"false","aria-haspopup":Qt,"aria-controls":"rpv-core__popver-body-".concat(Vn)},Fn(Yn,jn),jn&&rt.createElement(rt.Fragment,null,rn&&rt.createElement(vn,{closeOnEscape:dn,onClose:Yn}),rt.createElement(sn,{ariaControlsSuffix:Vn,closeOnClickOutside:ln,offset:_n,position:En,targetRef:Gn,onClose:Yn},Cn(Yn))))},$.PrimaryButton=ut,$.ProgressBar=function(Pt){var Nt=Pt.progress,Qt=rt.useContext(pt).direction===$.TextDirection.RightToLeft;return rt.createElement("div",{className:gt({"rpv-core__progress-bar":!0,"rpv-core__progress-bar--rtl":Qt})},rt.createElement("div",{className:"rpv-core__progress-bar-progress",style:{width:"".concat(Nt,"%")}},Nt,"%"))},$.Separator=function(){return rt.createElement("div",{className:"rpv-core__separator"})},$.Spinner=vt,$.Splitter=function(Pt){var Nt=Pt.constrain,Qt=rt.useContext(pt).direction===$.TextDirection.RightToLeft,tn=rt.useRef(),ln=rt.useRef(),dn=rt.useRef(),Cn=rt.useRef(0),xn=rt.useRef(0),rn=rt.useRef(0),_n=rt.useRef(0),En={capture:!0},Fn=function(jn){var Yn=tn.current,Gn=ln.current,Vn=dn.current;if(Yn&&Gn&&Vn){var Tr=_n.current,hr=jn.clientX-Cn.current,vr=rn.current+(Qt?-hr:hr),_r=Yn.parentElement.getBoundingClientRect().width,lr=100*vr/_r;if(Yn.classList.add("rpv-core__splitter--resizing"),Nt){var Cr=_r-vr-Tr;if(!Nt({firstHalfPercentage:lr,firstHalfSize:vr,secondHalfPercentage:100*Cr/_r,secondHalfSize:Cr}))return}Gn.style.width="".concat(lr,"%"),document.body.classList.add("rpv-core__splitter-body--resizing"),Gn.classList.add("rpv-core__splitter-sibling--resizing"),Vn.classList.add("rpv-core__splitter-sibling--resizing")}},Dn=function(jn){var Yn=tn.current,Gn=ln.current,Vn=dn.current;Yn&&Gn&&Vn&&(document.body.classList.remove("rpv-core__splitter-body--resizing"),Yn.classList.remove("rpv-core__splitter--resizing"),Gn.classList.remove("rpv-core__splitter-sibling--resizing"),Vn.classList.remove("rpv-core__splitter-sibling--resizing"),document.removeEventListener("mousemove",Fn,En),document.removeEventListener("mouseup",Dn,En))};return rt.useEffect(function(){var jn=tn.current;jn&&(_n.current=jn.getBoundingClientRect().width,ln.current=jn.previousElementSibling,dn.current=jn.nextElementSibling)},[]),rt.createElement("div",{ref:tn,className:"rpv-core__splitter",onMouseDown:function(jn){var Yn=ln.current;Yn&&(Cn.current=jn.clientX,xn.current=jn.clientY,rn.current=Yn.getBoundingClientRect().width,document.addEventListener("mousemove",Fn,En),document.addEventListener("mouseup",Dn,En))}})},$.TextBox=bt,$.ThemeContext=pt,$.Tooltip=function(Pt){var Nt=Pt.ariaControlsSuffix,Qt=Pt.content,tn=Pt.offset,ln=Pt.position,dn=Pt.target,Cn=Jt(!1),xn=Cn.opened,rn=Cn.toggle,_n=rt.useRef(),En=rt.useRef(),Fn=rt.useMemo(function(){return Nt||"".concat(Rt())},[]);Mt(function(){_n.current&&document.activeElement&&_n.current.contains(document.activeElement)&&jn()});var Dn=function(){rn($.ToggleStatus.Open)},jn=function(){rn($.ToggleStatus.Close)};return rt.createElement(rt.Fragment,null,rt.createElement("div",{ref:_n,"aria-describedby":"rpv-core__tooltip-body-".concat(Fn),onBlur:function(Yn){Yn.relatedTarget instanceof HTMLElement&&Yn.currentTarget.parentElement&&Yn.currentTarget.parentElement.contains(Yn.relatedTarget)?En.current&&(En.current.style.display="none"):jn()},onFocus:Dn,onMouseEnter:Dn,onMouseLeave:jn},dn),xn&&rt.createElement(Tn,{ariaControlsSuffix:Fn,contentRef:En,offset:tn,position:ln,targetRef:_n},Qt()))},$.Viewer=function(Pt){var Nt=Pt.characterMap,Qt=Pt.defaultScale,tn=Pt.enableSmoothScroll,ln=tn===void 0||tn,dn=Pt.fileUrl,Cn=Pt.httpHeaders,xn=Cn===void 0?{}:Cn,rn=Pt.initialPage,_n=rn===void 0?0:rn,En=Pt.pageLayout,Fn=Pt.initialRotation,Dn=Fn===void 0?0:Fn,jn=Pt.localization,Yn=Pt.plugins,Gn=Yn===void 0?[]:Yn,Vn=Pt.renderError,Tr=Pt.renderLoader,hr=Pt.renderPage,vr=Pt.renderProtectedView,_r=Pt.scrollMode,lr=_r===void 0?$.ScrollMode.Vertical:_r,Cr=Pt.setRenderRange,yr=Cr===void 0?Ku:Cr,Dr=Pt.transformGetDocumentParams,Lr=Pt.theme,Fr=Lr===void 0?{direction:$.TextDirection.LeftToRight,theme:"light"}:Lr,Or=Pt.viewMode,zr=Or===void 0?$.ViewMode.SinglePage:Or,no=Pt.withCredentials,Xr=no!==void 0&&no,ro=Pt.onDocumentAskPassword,Qr=Pt.onDocumentLoad,eo=Qr===void 0?function(){}:Qr,to=Pt.onPageChange,Jr=to===void 0?function(){}:to,uo=Pt.onRotate,bo=uo===void 0?function(){}:uo,vo=Pt.onRotatePage,ao=vo===void 0?function(){}:vo,po=Pt.onSwitchTheme,Eo=po===void 0?function(){}:po,br=Pt.onZoom,xr=br===void 0?function(){}:br,ur=rt.useState({data:dn,name:typeof dn=="string"?dn:"",shouldLoad:!1}),pr=ur[0],dr=ur[1],Sr=function(Kr,Yr){dr({data:Yr,name:Kr,shouldLoad:!0})},wr=rt.useState(!1),fr=wr[0],ir=wr[1],kr=Kt(pr);rt.useEffect(function(){var Kr,Yr,io,Wr;Kr=kr.data,Wr=typeof(Yr=dn),(io=typeof Kr)=="string"&&Wr==="string"&&Kr===Yr||io==="object"&&Wr==="object"&&Kr.length===Yr.length&&Kr.every(function(Co,Mo){return Co===Yr[Mo]})||dr({data:dn,name:typeof dn=="string"?dn:"",shouldLoad:fr})},[dn,fr]);var Ar=dt({onVisibilityChanged:function(Kr){ir(Kr.isVisible),Kr.isVisible&&dr(function(Yr){return Object.assign({},Yr,{shouldLoad:!0})})}}),qr=typeof Fr=="string"?{direction:$.TextDirection.LeftToRight,theme:Fr}:Fr,Hr=rt.useState(jn||Ft),lo=Hr[0],fo=Hr[1],Pr={l10n:lo,setL10n:fo},co=Object.assign({},{direction:qr.direction},qu(qr.theme||"light",Eo));return rt.useEffect(function(){jn&&fo(jn)},[jn]),rt.createElement(Yt.Provider,{value:Pr},rt.createElement(pt.Provider,{value:co},rt.createElement("div",{ref:Ar,className:"rpv-core__viewer rpv-core__viewer--".concat(co.currentTheme),"data-testid":"core__viewer",style:{height:"100%",width:"100%"}},pr.shouldLoad&&rt.createElement(Gu,{characterMap:Nt,file:pr.data,httpHeaders:xn,render:function(Kr){return rt.createElement(Hu,{defaultScale:Qt,doc:Kr,render:function(Yr,io){return rt.createElement(Wu,{currentFile:{data:pr.data,name:pr.name},defaultScale:Qt,doc:Kr,enableSmoothScroll:ln,initialPage:_n,initialRotation:Dn,initialScale:io,pageLayout:En,pageSizes:Yr,plugins:Gn,renderPage:hr,scrollMode:lr,setRenderRange:yr,viewMode:zr,viewerState:{file:pr,fullScreenMode:$.FullScreenMode.Normal,pageIndex:-1,pageHeight:Yr[0].pageHeight,pageWidth:Yr[0].pageWidth,pagesRotation:new Map,rotation:Dn,scale:io,scrollMode:lr,viewMode:zr},onDocumentLoad:eo,onOpenFile:Sr,onPageChange:Jr,onRotate:bo,onRotatePage:ao,onZoom:xr})},scrollMode:lr,viewMode:zr})},renderError:Vn,renderLoader:Tr,renderProtectedView:vr,transformGetDocumentParams:Dr,withCredentials:Xr,onDocumentAskPassword:ro}))))},$.Worker=function(Pt){var Nt=Pt.children,Qt=Pt.workerUrl;return ot.GlobalWorkerOptions.workerSrc=Qt,rt.createElement(rt.Fragment,null,Nt)},$.chunk=on,$.classNames=gt,$.createStore=function(Pt){var Nt=Pt||{},Qt={},tn=function(dn,Cn){var xn;Nt=lt(lt({},Nt),((xn={})[dn]=Cn,xn)),(Qt[dn]||[]).forEach(function(rn){return rn(Nt[dn])})},ln=function(dn){return Nt[dn]};return{subscribe:function(dn,Cn){Qt[dn]=(Qt[dn]||[]).concat(Cn)},unsubscribe:function(dn,Cn){Qt[dn]=(Qt[dn]||[]).filter(function(xn){return xn!==Cn})},update:function(dn,Cn){tn(dn,Cn)},updateCurrentValue:function(dn,Cn){var xn=ln(dn);xn!==void 0&&tn(dn,Cn(xn))},get:function(dn){return ln(dn)}}},$.getDestination=tr,$.getPage=Xn,$.isFullScreenEnabled=$t,$.isMac=function(){return typeof window<"u"&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)},$.useDebounceCallback=Gt,$.useIntersectionObserver=dt,$.useIsMounted=Bt,$.useIsomorphicLayoutEffect=ft,$.usePrevious=Kt,$.useRenderQueue=It})(core_min);/** + * A React component to view a PDF document + * + * @see https://react-pdf-viewer.dev + * @license https://react-pdf-viewer.dev/license + * @copyright 2019-2023 Nguyen Huu Phuoc + */lib$h.exports=core_min;var libExports$h=lib$h.exports,lib$g={exports:{}},defaultLayout_min={},lib$f={exports:{}},attachment_min={},e$e=libExports$h;function t$e($){var _e=Object.create(null);return $&&Object.keys($).forEach(function(et){if(et!=="default"){var tt=Object.getOwnPropertyDescriptor($,et);Object.defineProperty(_e,et,tt.get?tt:{enumerable:!0,get:function(){return $[et]}})}}),_e.default=$,Object.freeze(_e)}var n$e=t$e(reactExports),a$e=function($){var _e=$.files,et=n$e.useRef(),tt=n$e.useContext(e$e.LocalizationContext).l10n,nt=n$e.useContext(e$e.ThemeContext).direction===e$e.TextDirection.RightToLeft,rt=n$e.useRef([]),ot=tt&&tt.attachment?tt.attachment.clickToDownload:"Click to download",it=function(st){var at=et.current,lt=[].slice.call(at.getElementsByClassName("rpv-attachment__item"));if(lt.length!==0){lt.forEach(function(gt){return gt.setAttribute("tabindex","-1")});var ht=document.activeElement,pt=lt[Math.min(lt.length-1,Math.max(0,st(lt,ht)))];pt.setAttribute("tabindex","0"),pt.focus()}};return e$e.useIsomorphicLayoutEffect(function(){var st=et.current;if(st){var at=[].slice.call(st.getElementsByClassName("rpv-attachment__item"));if(rt.current=at,at.length>0){var lt=at[0];lt.focus(),lt.setAttribute("tabindex","0")}}},[]),n$e.createElement("div",{"data-testid":"attachment__list",className:e$e.classNames({"rpv-attachment__list":!0,"rpv-attachment__list--rtl":nt}),ref:et,tabIndex:-1,onKeyDown:function(st){switch(st.key){case"ArrowDown":st.preventDefault(),it(function(at,lt){return at.indexOf(lt)+1});break;case"ArrowUp":st.preventDefault(),it(function(at,lt){return at.indexOf(lt)-1});break;case"End":st.preventDefault(),it(function(at,lt){return at.length-1});break;case"Home":st.preventDefault(),it(function(at,lt){return 0})}}},_e.map(function(st){return n$e.createElement("button",{className:"rpv-attachment__item",key:st.fileName,tabIndex:-1,title:ot,type:"button",onClick:function(){return at=st.fileName,lt=st.data,ht=typeof lt=="string"?"":URL.createObjectURL(new Blob([lt],{type:""})),(pt=document.createElement("a")).style.display="none",pt.href=ht||at,pt.setAttribute("download",function(gt){var ft=gt.split("/").pop();return ft?ft.split("#")[0].split("?")[0]:gt}(at)),document.body.appendChild(pt),pt.click(),document.body.removeChild(pt),void(ht&&URL.revokeObjectURL(ht));var at,lt,ht,pt}},st.fileName)}))},r$e=function($){var _e=$.doc,et=n$e.useContext(e$e.LocalizationContext).l10n,tt=n$e.useContext(e$e.ThemeContext).direction===e$e.TextDirection.RightToLeft,nt=et&&et.attachment?et.attachment.noAttachment:"There is no attachment",rt=n$e.useState({files:[],isLoaded:!1}),ot=rt[0],it=rt[1];return n$e.useEffect(function(){_e.getAttachments().then(function(st){var at=st?Object.keys(st).map(function(lt){return{data:st[lt].content,fileName:st[lt].filename}}):[];it({files:at,isLoaded:!0})})},[_e]),ot.isLoaded?ot.files.length===0?n$e.createElement("div",{"data-testid":"attachment__empty",className:e$e.classNames({"rpv-attachment__empty":!0,"rpv-attachment__empty--rtl":tt})},nt):n$e.createElement(a$e,{files:ot.files}):n$e.createElement(e$e.Spinner,null)},c$e=function($){var _e=$.store,et=n$e.useState(_e.get("doc")),tt=et[0],nt=et[1],rt=function(ot){nt(ot)};return n$e.useEffect(function(){return _e.subscribe("doc",rt),function(){_e.unsubscribe("doc",rt)}},[]),tt?n$e.createElement(r$e,{doc:tt}):n$e.createElement("div",{className:"rpv-attachment__loader"},n$e.createElement(e$e.Spinner,null))};attachment_min.attachmentPlugin=function(){var $=n$e.useMemo(function(){return e$e.createStore({})},[]);return{onDocumentLoad:function(_e){$.update("doc",_e.doc)},Attachments:function(){return n$e.createElement(c$e,{store:$})}}};/** + * A React component to view a PDF document + * + * @see https://react-pdf-viewer.dev + * @license https://react-pdf-viewer.dev/license + * @copyright 2019-2023 Nguyen Huu Phuoc + */lib$f.exports=attachment_min;var libExports$g=lib$f.exports,lib$e={exports:{}},bookmark_min={},e$d=libExports$h;function t$d($){var _e=Object.create(null);return $&&Object.keys($).forEach(function(et){if(et!=="default"){var tt=Object.getOwnPropertyDescriptor($,et);Object.defineProperty(_e,et,tt.get?tt:{enumerable:!0,get:function(){return $[et]}})}}),_e.default=$,Object.freeze(_e)}var r$d,o$d=t$d(reactExports),n$d=function(){return n$d=Object.assign||function($){for(var _e,et=1,tt=arguments.length;et=0)return!1;var Tt=$t.length;if(Tt===0)return!1;for(var jt=$t.concat([]);jt.length>0;){var Gt=jt.shift(),Bt=Gt.items;Gt.count&&Bt&&Gt.count>0&&Bt.length>0&&(Tt+=Bt.length,jt=jt.concat(Bt))}return Math.abs(At)===Tt}(_e)},[_e]),pt=at.get("bookmarkExpandedMap"),gt=rt?rt({bookmark:_e,doc:tt,depth:et,index:nt}):pt.has(lt)?pt.get(lt):!ht,ft=o$d.useState(gt),dt=ft[0],mt=ft[1],ct=_e.items&&_e.items.length>0,ut=function(){var kt=!dt;at.updateCurrentValue("bookmarkExpandedMap",function(At){return At.set(lt,kt)}),mt(kt)},vt=function(){var kt=_e.dest,At=at.get("jumpToDestination");e$d.getDestination(tt,kt).then(function($t){At&&At(n$d({label:_e.title},$t))})},bt=function(){ct&&_e.dest&&vt()},yt=function(){!ct&&_e.dest&&vt()},Et=function(kt,At){return o$d.createElement("div",{className:"rpv-bookmark__item",style:{paddingLeft:"".concat(1.25*et,"rem")},onClick:kt},At)},xt=function(kt,At){return ct?o$d.createElement("span",{className:"rpv-bookmark__toggle","data-testid":"bookmark__toggle-".concat(et,"-").concat(nt),onClick:ut},dt?kt:At):o$d.createElement("span",{className:"rpv-bookmark__toggle"})},St=function(kt){return _e.url?o$d.createElement("a",{className:"rpv-bookmark__title",href:_e.url,rel:"noopener noreferrer nofollow",target:_e.newWindow?"_blank":""},_e.title):o$d.createElement("div",{className:"rpv-bookmark__title","aria-label":_e.title,onClick:kt},_e.title)};return o$d.createElement("li",{"aria-expanded":dt?"true":"false","aria-label":_e.title,"aria-level":et+1,"aria-posinset":nt+1,"aria-setsize":ot,role:"treeitem",tabIndex:-1},st?st({bookmark:_e,depth:et,hasSubItems:ct,index:nt,isExpanded:dt,path:lt,defaultRenderItem:Et,defaultRenderTitle:St,defaultRenderToggle:xt,onClickItem:yt,onClickTitle:bt,onToggleSubItems:ut}):Et(yt,o$d.createElement(o$d.Fragment,null,xt(o$d.createElement(a$d,null),o$d.createElement(i$d,null)),St(bt))),ct&&dt&&o$d.createElement(m$9,{bookmarks:_e.items,depth:et+1,doc:tt,isBookmarkExpanded:rt,isRoot:!1,pathFromRoot:lt,renderBookmarkItem:st,store:at}))},m$9=function($){var _e=$.bookmarks,et=$.depth,tt=et===void 0?0:et,nt=$.doc,rt=$.isBookmarkExpanded,ot=$.isRoot,it=$.pathFromRoot,st=$.renderBookmarkItem,at=$.store;return o$d.createElement("ul",{className:"rpv-bookmark__list",role:ot?"tree":"group",tabIndex:-1},_e.map(function(lt,ht){return o$d.createElement(c$d,{bookmark:lt,depth:tt,doc:nt,index:ht,isBookmarkExpanded:rt,key:ht,numberOfSiblings:_e.length,pathFromRoot:it,renderBookmarkItem:st,store:at})}))};(function($){$[$.Collapse=0]="Collapse",$[$.Expand=1]="Expand"})(r$d||(r$d={}));var l$d=function($){var _e=$.bookmarks,et=$.doc,tt=$.isBookmarkExpanded,nt=$.renderBookmarkItem,rt=$.store,ot=o$d.useRef(),it=function(ht){var pt=ot.current;if(pt&&ht.target instanceof HTMLElement&&pt.contains(ht.target))switch(ht.key){case"ArrowDown":ht.preventDefault(),at(function(gt,ft){return gt.indexOf(ft)+1});break;case"ArrowLeft":ht.preventDefault(),lt(r$d.Collapse);break;case"ArrowRight":ht.preventDefault(),lt(r$d.Expand);break;case"ArrowUp":ht.preventDefault,at(function(gt,ft){return gt.indexOf(ft)-1});break;case"End":ht.preventDefault(),at(function(gt,ft){return gt.length-1});break;case" ":case"Enter":case"Space":ht.preventDefault(),st();break;case"Home":ht.preventDefault(),at(function(gt,ft){return 0})}},st=function(){var ht=document.activeElement.closest(".rpv-bookmark__item").querySelector(".rpv-bookmark__title");ht&&ht.click()},at=function(ht){var pt=ot.current,gt=[].slice.call(pt.getElementsByClassName("rpv-bookmark__item"));if(gt.length!==0){var ft=document.activeElement,dt=gt[Math.min(gt.length-1,Math.max(0,ht(gt,ft)))];ft.setAttribute("tabindex","-1"),dt.setAttribute("tabindex","0"),dt.focus()}},lt=function(ht){var pt=ot.current;if([].slice.call(pt.getElementsByClassName("rpv-bookmark__item")).length!==0){var gt=document.activeElement.closest(".rpv-bookmark__item"),ft=ht===r$d.Collapse?"true":"false";if(gt&>.parentElement.getAttribute("aria-expanded")===ft){var dt=gt.querySelector(".rpv-bookmark__toggle");dt&&dt.click()}}};return o$d.useEffect(function(){return document.addEventListener("keydown",it),function(){document.removeEventListener("keydown",it)}},[]),o$d.useEffect(function(){var ht=ot.current;if(ht){var pt=[].slice.call(ht.getElementsByClassName("rpv-bookmark__item"));pt.length>0&&(pt[0].focus(),pt[0].setAttribute("tabindex","0"))}},[]),o$d.createElement("div",{ref:ot},o$d.createElement(m$9,{bookmarks:_e,depth:0,doc:et,isBookmarkExpanded:tt,isRoot:!0,pathFromRoot:"",renderBookmarkItem:nt,store:rt}))},s$9=function($){var _e=$.doc,et=$.isBookmarkExpanded,tt=$.renderBookmarkItem,nt=$.store,rt=o$d.useContext(e$d.LocalizationContext).l10n,ot=o$d.useContext(e$d.ThemeContext).direction===e$d.TextDirection.RightToLeft,it=o$d.useState({isLoaded:!1,items:[]}),st=it[0],at=it[1];return o$d.useEffect(function(){at({isLoaded:!1,items:[]}),_e.getOutline().then(function(lt){at({isLoaded:!0,items:lt||[]})})},[_e]),st.isLoaded?st.items.length===0?o$d.createElement("div",{"data-testid":"bookmark__empty",className:e$d.classNames({"rpv-bookmark__empty":!0,"rpv-bookmark__empty--rtl":ot})},rt&&rt.bookmark?rt.bookmark.noBookmark:"There is no bookmark"):o$d.createElement("div",{"data-testid":"bookmark__container",className:e$d.classNames({"rpv-bookmark__container":!0,"rpv-bookmark__container--rtl":ot})},o$d.createElement(l$d,{bookmarks:st.items,doc:_e,isBookmarkExpanded:et,renderBookmarkItem:tt,store:nt})):o$d.createElement("div",{className:"rpv-bookmark__loader"},o$d.createElement(e$d.Spinner,null))},u$d=function($){var _e=$.isBookmarkExpanded,et=$.renderBookmarkItem,tt=$.store,nt=o$d.useState(tt.get("doc")),rt=nt[0],ot=nt[1],it=function(st){ot(st)};return o$d.useEffect(function(){return tt.subscribe("doc",it),function(){tt.unsubscribe("doc",it)}},[]),rt?o$d.createElement(s$9,{doc:rt,isBookmarkExpanded:_e,renderBookmarkItem:et,store:tt}):o$d.createElement("div",{className:"rpv-bookmark__loader"},o$d.createElement(e$d.Spinner,null))};bookmark_min.DownArrowIcon=a$d,bookmark_min.RightArrowIcon=i$d,bookmark_min.bookmarkPlugin=function(){var $=o$d.useMemo(function(){return e$d.createStore({bookmarkExpandedMap:new Map})},[]);return{install:function(_e){$.update("jumpToDestination",_e.jumpToDestination)},onDocumentLoad:function(_e){$.update("doc",_e.doc)},Bookmarks:function(_e){return o$d.createElement(u$d,{isBookmarkExpanded:_e==null?void 0:_e.isBookmarkExpanded,renderBookmarkItem:_e==null?void 0:_e.renderBookmarkItem,store:$})}}};/** + * A React component to view a PDF document + * + * @see https://react-pdf-viewer.dev + * @license https://react-pdf-viewer.dev/license + * @copyright 2019-2023 Nguyen Huu Phuoc + */lib$e.exports=bookmark_min;var libExports$f=lib$e.exports,lib$d={exports:{}},thumbnail_min={};(function($){var _e=libExports$h;function et(dt){var mt=Object.create(null);return dt&&Object.keys(dt).forEach(function(ct){if(ct!=="default"){var ut=Object.getOwnPropertyDescriptor(dt,ct);Object.defineProperty(mt,ct,ut.get?ut:{enumerable:!0,get:function(){return dt[ct]}})}}),mt.default=dt,Object.freeze(mt)}var tt,nt=et(reactExports);$.ThumbnailDirection=void 0,(tt=$.ThumbnailDirection||($.ThumbnailDirection={})).Horizontal="Horizontal",tt.Vertical="Vertical";var rt=function(){return rt=Object.assign||function(dt){for(var mt,ct=1,ut=arguments.length;ct=0&&Lt[Ft].setAttribute("tabindex","-1"),Yt(Ut))}},yn=function(){if(Vt.current){var Lt=Wt.current,Ut=Ft-1;Ut>=0&&(Ft>=0&&Lt[Ft].setAttribute("tabindex","-1"),Yt(Ut))}},$n=function(){Ft>=0&&FtLt.length)){var Ut=Lt[Ft];Ut.setAttribute("tabindex","0"),Ut.focus()}},[Ft]),_e.useIsomorphicLayoutEffect(function(){var Lt=Vt.current,Ut=Wt.current;if(!(!Lt||Ut.length===0||mt<0||mt>Ut.length)){var nn=Ut[mt].closest(".rpv-thumbnail__items");nn&&(At===$.ThumbnailDirection.Vertical?function(sn,vn){var Tn=sn.getBoundingClientRect().top-vn.getBoundingClientRect().top,Rn=sn.clientHeight,on=vn.clientHeight;Tn<0?vn.scrollTop+=Tn:Tn+Rn<=on||(vn.scrollTop+=Tn+Rn-on)}(nn,Lt):function(sn,vn){var Tn=sn.getBoundingClientRect().left-vn.getBoundingClientRect().left,Rn=sn.clientWidth,on=vn.clientWidth;Tn<0?vn.scrollLeft+=Tn:Tn+Rn<=on||(vn.scrollLeft+=Tn+Rn-on)}(nn,Lt))}},[mt,At]);var kn=nt.useCallback(function(Lt){Ot.current&&(Jt.markRendered(Lt),Ht.current=!1,un())},[Kt]),hn=nt.useCallback(function(Lt,Ut){Ut.isVisible?Jt.setVisibility(Lt,Ut.ratio):Jt.setOutOfRange(Lt),un()},[Kt]),un=nt.useCallback(function(){if(!Ht.current){var Lt=Jt.getHighestPriorityPage();Lt>-1&&(Jt.markRendering(Lt),Ht.current=!0,Mt(Lt))}},[Kt]);return nt.useEffect(function(){St>=0&&(Jt.markRendering(St),Ht.current=!0,Mt(St))},[Kt,St]),_e.useIsomorphicLayoutEffect(function(){zt!==Tt&&(Jt.markNotRendered(),un())},[Tt]),nt.createElement("div",{ref:Vt,"data-testid":"thumbnail__list",className:_e.classNames({"rpv-thumbnail__list":!0,"rpv-thumbnail__list--horizontal":At===$.ThumbnailDirection.Horizontal,"rpv-thumbnail__list--rtl":Dt,"rpv-thumbnail__list--vertical":At===$.ThumbnailDirection.Vertical}),onKeyDown:function(Lt){switch(Lt.key){case"ArrowDown":bn();break;case"ArrowUp":yn();break;case"Enter":$n()}}},gn.map(function(Lt,Ut){var nn=!1;switch(Tt){case _e.ViewMode.DualPage:nn=mt===2*Ut||mt===2*Ut+1;break;case _e.ViewMode.DualPageWithCover:nn=mt===0&&Ut===0||Ut>0&&mt===2*Ut-1||Ut>0&&mt===2*Ut;break;case _e.ViewMode.SinglePage:default:nn=mt===Ut}return nt.createElement("div",{className:_e.classNames({"rpv-thumbnail__items":!0,"rpv-thumbnail__items--dual":Tt===_e.ViewMode.DualPage,"rpv-thumbnail__items--dual-cover":Tt===_e.ViewMode.DualPageWithCover,"rpv-thumbnail__items--single":Tt===_e.ViewMode.SinglePage,"rpv-thumbnail__items--selected":nn}),key:"".concat(Ut,"___").concat(Tt)},Lt.map(function(sn){return function(vn){var Tn=Tt===_e.ViewMode.DualPageWithCover&&(vn===0||Bt%2==0&&vn===Bt-1),Rn="".concat(ct.loadingTask.docId,"___").concat(vn),on=ut.length===Bt?ut[vn]:"".concat(vn+1),Bn=Et?Et({currentPage:mt,pageIndex:vn,numPages:Bt,pageLabel:on}):on,Ln=vt.has(vn)?vt.get(vn):0,Zn=nt.createElement(pt,{doc:ct,pageHeight:bt,pageIndex:vn,pageRotation:Ln,pageWidth:yt,rotation:kt,shouldRender:wt===vn,thumbnailWidth:$t,onRenderCompleted:kn,onVisibilityChanged:hn});return xt?xt({currentPage:mt,key:Rn,numPages:Bt,pageIndex:vn,renderPageLabel:nt.createElement(nt.Fragment,null,Bn),renderPageThumbnail:Zn,onJumpToPage:function(){return jt(vn)},onRotatePage:function(Nn){return Gt(vn,Nn)}}):nt.createElement("div",{key:Rn},nt.createElement("div",{className:_e.classNames({"rpv-thumbnail__item":!0,"rpv-thumbnail__item--dual-even":Tt===_e.ViewMode.DualPage&&vn%2==0,"rpv-thumbnail__item--dual-odd":Tt===_e.ViewMode.DualPage&&vn%2==1,"rpv-thumbnail__item--dual-cover":Tn,"rpv-thumbnail__item--dual-cover-even":Tt===_e.ViewMode.DualPageWithCover&&!Tn&&vn%2==0,"rpv-thumbnail__item--dual-cover-odd":Tt===_e.ViewMode.DualPageWithCover&&!Tn&&vn%2==1,"rpv-thumbnail__item--single":Tt===_e.ViewMode.SinglePage,"rpv-thumbnail__item--selected":mt===vn}),role:"button",tabIndex:mt===vn?0:-1,onClick:function(){return jt(vn)}},Zn),nt.createElement("div",{"data-testid":"thumbnail__label-".concat(vn),className:"rpv-thumbnail__label"},Bn))}(sn)}))}))},ft=function(dt){var mt=dt.renderCurrentPageLabel,ct=dt.renderThumbnailItem,ut=dt.store,vt=dt.thumbnailDirection,bt=dt.thumbnailWidth,yt=nt.useState(ut.get("doc")),Et=yt[0],xt=yt[1],St=nt.useState(ut.get("currentPage")||0),kt=St[0],At=St[1],$t=nt.useState(ut.get("pageHeight")||0),Tt=$t[0],jt=$t[1],Gt=nt.useState(ut.get("pageWidth")||0),Bt=Gt[0],Kt=Gt[1],Vt=nt.useState(ut.get("rotation")||0),Wt=Vt[0],It=Vt[1],Ft=nt.useState(ut.get("pagesRotation")||new Map),Yt=Ft[0],Dt=Ft[1],Rt=nt.useState(ut.get("rotatedPage")||-1),wt=Rt[0],Mt=Rt[1],Ot=nt.useState(ut.get("viewMode")),zt=Ot[0],Ht=Ot[1],Jt=function(Ut){At(Ut)},pn=function(Ut){xt(Ut)},gn=function(Ut){jt(Ut)},bn=function(Ut){Kt(Ut)},yn=function(Ut){It(Ut)},$n=function(Ut){Dt(Ut)},kn=function(Ut){Mt(Ut)},hn=function(Ut){Ht(Ut)},un=function(Ut){var nn=ut.get("jumpToPage");nn&&nn(Ut)},Lt=function(Ut,nn){ut.get("rotatePage")(Ut,nn)};return nt.useEffect(function(){return ut.subscribe("doc",pn),ut.subscribe("pageHeight",gn),ut.subscribe("pageWidth",bn),ut.subscribe("rotatedPage",kn),ut.subscribe("rotation",yn),ut.subscribe("pagesRotation",$n),ut.subscribe("viewMode",hn),function(){ut.unsubscribe("doc",pn),ut.unsubscribe("pageHeight",gn),ut.unsubscribe("pageWidth",bn),ut.unsubscribe("rotatedPage",kn),ut.unsubscribe("rotation",yn),ut.unsubscribe("pagesRotation",$n),ut.unsubscribe("viewMode",hn)}},[]),_e.useIsomorphicLayoutEffect(function(){return ut.subscribe("currentPage",Jt),function(){ut.unsubscribe("currentPage",Jt)}},[]),Et?nt.createElement(_e.LazyRender,{testId:"thumbnail__list-container",attrs:{className:"rpv-thumbnail__list-container"}},nt.createElement(lt,{doc:Et},function(Ut){return nt.createElement(gt,{currentPage:kt,doc:Et,labels:Ut,pagesRotation:Yt,pageHeight:Tt,pageWidth:Bt,renderCurrentPageLabel:mt,renderThumbnailItem:ct,rotatedPage:wt,rotation:Wt,thumbnailDirection:vt,thumbnailWidth:bt,viewMode:zt,onJumpToPage:un,onRotatePage:Lt})})):nt.createElement("div",{"data-testid":"thumbnail-list__loader",className:"rpv-thumbnail__loader"},nt.useContext(at).renderSpinner())};$.thumbnailPlugin=function(dt){var mt=nt.useMemo(function(){return _e.createStore({rotatePage:function(){},viewMode:_e.ViewMode.SinglePage})},[]),ct=nt.useState(""),ut=ct[0],vt=ct[1];return{install:function(bt){mt.update("jumpToPage",bt.jumpToPage),mt.update("rotatePage",bt.rotatePage)},onDocumentLoad:function(bt){vt(bt.doc.loadingTask.docId),mt.update("doc",bt.doc)},onViewerStateChange:function(bt){return mt.update("currentPage",bt.pageIndex),mt.update("pagesRotation",bt.pagesRotation),mt.update("pageHeight",bt.pageHeight),mt.update("pageWidth",bt.pageWidth),mt.update("rotation",bt.rotation),mt.update("rotatedPage",bt.rotatedPage),mt.update("viewMode",bt.viewMode),bt},Cover:function(bt){return nt.createElement(it,rt({},bt,{renderSpinner:dt==null?void 0:dt.renderSpinner,store:mt}))},Thumbnails:nt.useCallback(function(bt){return nt.createElement(at.Provider,{value:{renderSpinner:(dt==null?void 0:dt.renderSpinner)||st}},nt.createElement(ft,{renderCurrentPageLabel:dt==null?void 0:dt.renderCurrentPageLabel,renderThumbnailItem:bt==null?void 0:bt.renderThumbnailItem,store:mt,thumbnailDirection:(bt==null?void 0:bt.thumbnailDirection)||$.ThumbnailDirection.Vertical,thumbnailWidth:(dt==null?void 0:dt.thumbnailWidth)||100}))},[ut])}}})(thumbnail_min);/** + * A React component to view a PDF document + * + * @see https://react-pdf-viewer.dev + * @license https://react-pdf-viewer.dev/license + * @copyright 2019-2023 Nguyen Huu Phuoc + */lib$d.exports=thumbnail_min;var libExports$e=lib$d.exports,lib$c={exports:{}},toolbar_min={},lib$b={exports:{}},selectionMode_min={};(function($){var _e=libExports$h;function et(ft){var dt=Object.create(null);return ft&&Object.keys(ft).forEach(function(mt){if(mt!=="default"){var ct=Object.getOwnPropertyDescriptor(ft,mt);Object.defineProperty(dt,mt,ct.get?ct:{enumerable:!0,get:function(){return ft[mt]}})}}),dt.default=ft,Object.freeze(dt)}var tt,nt=et(reactExports),rt=function(){return nt.createElement(_e.Icon,{size:16},nt.createElement("path",{d:`M11.5,5.5v-2C11.5,2.672,12.172,2,13,2s1.5,0.672,1.5,1.5v2 M14.5,11.5v-6C14.5,4.672,15.172,4,16,4 + c0.828,0,1.5,0.672,1.5,1.5v3 M17.5,13V8.5C17.5,7.672,18.172,7,19,7s1.5,0.672,1.5,1.5v10c0,2.761-2.239,5-5,5h-3.335 + c-1.712-0.001-3.305-0.876-4.223-2.321C6.22,18.467,4.083,14,4.083,14c-0.378-0.545-0.242-1.292,0.303-1.67 + c0.446-0.309,1.044-0.281,1.458,0.07L8.5,15.5v-10C8.5,4.672,9.172,4,10,4s1.5,0.672,1.5,1.5v6`}))},ot=function(){return ot=Object.assign||function(ft){for(var dt,mt=1,ct=arguments.length;mt + */lib$b.exports=selectionMode_min;var libExports$d=lib$b.exports,lib$a={exports:{}},fullScreen_min={},e$c=libExports$h;function t$c($){var _e=Object.create(null);return $&&Object.keys($).forEach(function(et){if(et!=="default"){var tt=Object.getOwnPropertyDescriptor($,et);Object.defineProperty(_e,et,tt.get?tt:{enumerable:!0,get:function(){return $[et]}})}}),_e.default=$,Object.freeze(_e)}var n$c=t$c(reactExports),r$c=function(){return n$c.createElement(e$c.Icon,{size:16},n$c.createElement("path",{d:"M11.5 23.499L11.5 14.499"}),n$c.createElement("path",{d:"M7.5 18.499L11.5 14.499 15.5 18.499"}),n$c.createElement("path",{d:"M11.5 1.499L11.5 10.499"}),n$c.createElement("path",{d:"M7.5 6.499L11.5 10.499 15.5 6.499"}),n$c.createElement("path",{d:"M20.5 12.499L1.5 12.499"}))},l$c=function(){return n$c.createElement(e$c.Icon,{size:16},n$c.createElement("path",{d:"M0.5 12L23.5 12"}),n$c.createElement("path",{d:"M11.5 1L11.5 23"}),n$c.createElement("path",{d:"M8.5 4L11.5 1 14.5 4"}),n$c.createElement("path",{d:"M20.5 9L23.5 12 20.5 15"}),n$c.createElement("path",{d:"M3.5 15L0.5 12 3.5 9"}),n$c.createElement("path",{d:"M14.5 20L11.5 23 8.5 20"}))},c$c=function(){return c$c=Object.assign||function($){for(var _e,et=1,tt=arguments.length;et + */lib$a.exports=fullScreen_min;var libExports$c=lib$a.exports,lib$9={exports:{}},getFile_min={},e$b=libExports$h;function t$b($){var _e=Object.create(null);return $&&Object.keys($).forEach(function(et){if(et!=="default"){var tt=Object.getOwnPropertyDescriptor($,et);Object.defineProperty(_e,et,tt.get?tt:{enumerable:!0,get:function(){return $[et]}})}}),_e.default=$,Object.freeze(_e)}var n$b=t$b(reactExports),o$b=function(){return n$b.createElement(e$b.Icon,{size:16},n$b.createElement("path",{d:"M5.5,11.5c-.275,0-.341.159-.146.354l6.292,6.293a.5.5,0,0,0,.709,0l6.311-6.275c.2-.193.13-.353-.145-.355L15.5,11.5V1.5a1,1,0,0,0-1-1h-5a1,1,0,0,0-1,1V11a.5.5,0,0,1-.5.5Z"}),n$b.createElement("path",{d:"M23.5,18.5v4a1,1,0,0,1-1,1H1.5a1,1,0,0,1-1-1v-4"}))},r$b=function(){return r$b=Object.assign||function($){for(var _e,et=1,tt=arguments.length;et + */lib$9.exports=getFile_min;var libExports$b=lib$9.exports,lib$8={exports:{}},open_min={},e$a=libExports$h;function t$a($){var _e=Object.create(null);return $&&Object.keys($).forEach(function(et){if(et!=="default"){var tt=Object.getOwnPropertyDescriptor($,et);Object.defineProperty(_e,et,tt.get?tt:{enumerable:!0,get:function(){return $[et]}})}}),_e.default=$,Object.freeze(_e)}var n$a=t$a(reactExports),r$a=function(){return n$a.createElement(e$a.Icon,{size:16},n$a.createElement("path",{d:"M18.5,7.5c.275,0,.341-.159.146-.354L12.354.854a.5.5,0,0,0-.708,0L5.354,7.147c-.2.195-.129.354.146.354h3v10a1,1,0,0,0,1,1h5a1,1,0,0,0,1-1V7.5Z"}),n$a.createElement("path",{d:"M23.5,18.5v4a1,1,0,0,1-1,1H1.5a1,1,0,0,1-1-1v-4"}))},o$a=function(){return o$a=Object.assign||function($){for(var _e,et=1,tt=arguments.length;et + */lib$8.exports=open_min;var libExports$a=lib$8.exports,lib$7={exports:{}},pageNavigation_min={},e$9=libExports$h;function t$9($){var _e=Object.create(null);return $&&Object.keys($).forEach(function(et){if(et!=="default"){var tt=Object.getOwnPropertyDescriptor($,et);Object.defineProperty(_e,et,tt.get?tt:{enumerable:!0,get:function(){return $[et]}})}}),_e.default=$,Object.freeze(_e)}var n$9=t$9(reactExports),a$9=function(){return n$9.createElement(e$9.Icon,{size:16},n$9.createElement("path",{d:`M2.32,2.966h19.452c0.552,0.001,1,0.449,0.999,1.001c0,0.182-0.05,0.36-0.144,0.516L12.9,20.552 + c-0.286,0.472-0.901,0.624-1.373,0.338c-0.138-0.084-0.254-0.2-0.338-0.338L1.465,4.483C1.179,4.01,1.331,3.396,1.804,3.11 + C1.96,3.016,2.138,2.966,2.32,2.966z`}))},r$9=function(){return n$9.createElement(e$9.Icon,{size:16},n$9.createElement("path",{d:`M0.541,5.627L11.666,18.2c0.183,0.207,0.499,0.226,0.706,0.043c0.015-0.014,0.03-0.028,0.043-0.043 + L23.541,5.627`}))},o$9=function(){return o$9=Object.assign||function($){for(var _e,et=1,tt=arguments.length;et=0&&(rt("".concat(gt+1)),st(gt));break;case"ArrowDown":(pt=ot+1)it?rt("".concat(ot+1)):st(ht-1)}var ht,pt,gt}}))},l$9=function($){var _e=$.children,et=$.doc,tt=e$9.useIsMounted(),nt=n$9.useState({loading:!0,labels:[]}),rt=nt[0],ot=nt[1];return n$9.useEffect(function(){et.getPageLabels().then(function(it){tt.current&&ot({loading:!1,labels:it||[]})})},[et.loadingTask.docId]),rt.loading?n$9.createElement(n$9.Fragment,null):_e(rt.labels)},s$7=function($){var _e=$.children,et=$.store,tt=function(it){var st=n$9.useState(it.get("doc")),at=st[0],lt=st[1],ht=function(pt){lt(pt)};return n$9.useEffect(function(){return it.subscribe("doc",ht),function(){it.unsubscribe("doc",ht)}},[]),at}(et),nt=i$9(et).currentPage,rt=u$9(et).numberOfPages,ot=_e||function(it){return n$9.createElement(n$9.Fragment,null,it.currentPage+1)};return tt?n$9.createElement(l$9,{doc:tt},function(it){var st=it.length===rt&&rt>0?it[nt]:"";return ot({currentPage:nt,numberOfPages:rt,pageLabel:st})}):n$9.createElement(n$9.Fragment,null)},g$5=function(){return n$9.createElement(e$9.Icon,{size:16},n$9.createElement("path",{d:`M21.783,21.034H2.332c-0.552,0-1-0.448-1-1c0-0.182,0.05-0.361,0.144-0.517L11.2,3.448 + c0.286-0.472,0.901-0.624,1.373-0.338c0.138,0.084,0.254,0.2,0.338,0.338l9.726,16.069c0.286,0.473,0.134,1.087-0.339,1.373 + C22.143,20.984,21.965,21.034,21.783,21.034z`}))},f$7={left:0,top:8},m$7=function($){var _e=$.isDisabled,et=$.onClick,tt=n$9.useContext(e$9.LocalizationContext).l10n,nt=tt&&tt.pageNavigation?tt.pageNavigation.goToFirstPage:"First page";return n$9.createElement(e$9.Tooltip,{ariaControlsSuffix:"page-navigation-first",position:e$9.Position.BottomCenter,target:n$9.createElement(e$9.MinimalButton,{ariaLabel:nt,isDisabled:_e,testId:"page-navigation__first-button",onClick:et},n$9.createElement(g$5,null)),content:function(){return nt},offset:f$7})},p$6=function($){var _e=$.children,et=$.store;return(_e||function(tt){return n$9.createElement(m$7,{isDisabled:tt.isDisabled,onClick:tt.onClick})})({isDisabled:i$9(et).currentPage===0,onClick:function(){var tt=et.get("jumpToPage");tt&&tt(0)}})},v$5=function($){var _e=$.isDisabled,et=$.onClick,tt=n$9.useContext(e$9.LocalizationContext).l10n,nt=tt&&tt.pageNavigation?tt.pageNavigation.goToFirstPage:"First page";return n$9.createElement(e$9.MenuItem,{icon:n$9.createElement(g$5,null),isDisabled:_e,testId:"page-navigation__first-menu",onClick:et},nt)},d$7={left:0,top:8},P$2=function($){var _e=$.isDisabled,et=$.onClick,tt=n$9.useContext(e$9.LocalizationContext).l10n,nt=tt&&tt.pageNavigation?tt.pageNavigation.goToLastPage:"Last page";return n$9.createElement(e$9.Tooltip,{ariaControlsSuffix:"page-navigation-last",position:e$9.Position.BottomCenter,target:n$9.createElement(e$9.MinimalButton,{ariaLabel:nt,isDisabled:_e,testId:"page-navigation__last-button",onClick:et},n$9.createElement(a$9,null)),content:function(){return nt},offset:d$7})},b$4=function($){var _e=$.children,et=$.store,tt=i$9(et).currentPage,nt=u$9(et).numberOfPages;return(_e||function(rt){return n$9.createElement(P$2,{isDisabled:rt.isDisabled,onClick:rt.onClick})})({isDisabled:tt+1>=nt,onClick:function(){var rt=et.get("jumpToPage");rt&&rt(nt-1)}})},E$4=function($){var _e=$.isDisabled,et=$.onClick,tt=n$9.useContext(e$9.LocalizationContext).l10n,nt=tt&&tt.pageNavigation?tt.pageNavigation.goToLastPage:"Last page";return n$9.createElement(e$9.MenuItem,{icon:n$9.createElement(a$9,null),isDisabled:_e,testId:"page-navigation__last-menu",onClick:et},nt)},C$3={left:0,top:8},D=function($){var _e=$.isDisabled,et=$.onClick,tt=n$9.useContext(e$9.LocalizationContext).l10n,nt=tt&&tt.pageNavigation?tt.pageNavigation.goToNextPage:"Next page";return n$9.createElement(e$9.Tooltip,{ariaControlsSuffix:"page-navigation-next",position:e$9.Position.BottomCenter,target:n$9.createElement(e$9.MinimalButton,{ariaLabel:nt,isDisabled:_e,testId:"page-navigation__next-button",onClick:et},n$9.createElement(r$9,null)),content:function(){return nt},offset:C$3})},k$3=function($){var _e=$.children,et=$.store;return(_e||function(tt){return n$9.createElement(D,{onClick:tt.onClick,isDisabled:tt.isDisabled})})({isDisabled:i$9(et).currentPage+1>=u$9(et).numberOfPages,onClick:function(){var tt=et.get("jumpToNextPage");tt&&tt()}})},T=function($){var _e=$.isDisabled,et=$.onClick,tt=n$9.useContext(e$9.LocalizationContext).l10n,nt=tt&&tt.pageNavigation?tt.pageNavigation.goToNextPage:"Next page";return n$9.createElement(e$9.MenuItem,{icon:n$9.createElement(r$9,null),isDisabled:_e,testId:"page-navigation__next-menu",onClick:et},nt)},x$1=function(){return n$9.createElement(e$9.Icon,{size:16},n$9.createElement("path",{d:`M23.535,18.373L12.409,5.8c-0.183-0.207-0.499-0.226-0.706-0.043C11.688,5.77,11.674,5.785,11.66,5.8 + L0.535,18.373`}))},L={left:0,top:8},N=function($){var _e=$.isDisabled,et=$.onClick,tt=n$9.useContext(e$9.LocalizationContext).l10n,nt=tt&&tt.pageNavigation?tt.pageNavigation.goToPreviousPage:"Previous page";return n$9.createElement(e$9.Tooltip,{ariaControlsSuffix:"page-navigation-previous",position:e$9.Position.BottomCenter,target:n$9.createElement(e$9.MinimalButton,{ariaLabel:nt,isDisabled:_e,testId:"page-navigation__previous-button",onClick:et},n$9.createElement(x$1,null)),content:function(){return nt},offset:L})},j=function($){var _e=$.store;return($.children||function(et){return n$9.createElement(N,{isDisabled:et.isDisabled,onClick:et.onClick})})({isDisabled:i$9(_e).currentPage<=0,onClick:function(){var et=_e.get("jumpToPreviousPage");et&&et()}})},I$2=function($){var _e=$.isDisabled,et=$.onClick,tt=n$9.useContext(e$9.LocalizationContext).l10n,nt=tt&&tt.pageNavigation?tt.pageNavigation.goToPreviousPage:"Previous page";return n$9.createElement(e$9.MenuItem,{icon:n$9.createElement(x$1,null),isDisabled:_e,testId:"page-navigation__previous-menu",onClick:et},nt)},h$5=function($){var _e=$.children,et=$.store,tt=u$9(et).numberOfPages;return _e?_e({numberOfPages:tt}):n$9.createElement(n$9.Fragment,null,tt)},y$1=function($){var _e=$.containerRef,et=$.numPages,tt=$.store,nt=i$9(tt).currentPage,rt=n$9.useRef(nt);rt.current=nt;var ot=n$9.useRef(!1),it=function(){ot.current=!0},st=function(){ot.current=!1},at=function(lt){var ht=_e.current,pt=ot.current||document.activeElement&&ht.contains(document.activeElement);if(ht&&pt){var gt,ft,dt=lt.altKey&<.key==="ArrowDown"||!lt.shiftKey&&!lt.altKey&<.key==="PageDown",mt=lt.altKey&<.key==="ArrowUp"||!lt.shiftKey&&!lt.altKey&<.key==="PageUp";if(dt)return lt.preventDefault(),gt=tt.get("jumpToPage"),ft=rt.current+1,void(gt&&ft=0&&ct(ut)}();if(e$9.isMac()?lt.metaKey&&!lt.ctrlKey:lt.altKey)switch(lt.key){case"ArrowLeft":lt.preventDefault(),function(){var ct=tt.get("jumpToPreviousDestination");ct&&ct()}();break;case"ArrowRight":lt.preventDefault(),function(){var ct=tt.get("jumpToNextDestination");ct&&ct()}()}}};return n$9.useEffect(function(){var lt=_e.current;if(lt)return document.addEventListener("keydown",at),lt.addEventListener("mouseenter",it),lt.addEventListener("mouseleave",st),function(){document.removeEventListener("keydown",at),lt.removeEventListener("mouseenter",it),lt.removeEventListener("mouseleave",st)}},[_e.current]),n$9.createElement(n$9.Fragment,null)};pageNavigation_min.DownArrowIcon=a$9,pageNavigation_min.NextIcon=r$9,pageNavigation_min.PreviousIcon=x$1,pageNavigation_min.UpArrowIcon=g$5,pageNavigation_min.pageNavigationPlugin=function($){var _e=n$9.useMemo(function(){return Object.assign({},{enableShortcuts:!0},$)},[]),et=n$9.useMemo(function(){return e$9.createStore()},[]),tt=function(it){return n$9.createElement(p$6,o$9({},it,{store:et}))},nt=function(it){return n$9.createElement(b$4,o$9({},it,{store:et}))},rt=function(it){return n$9.createElement(k$3,o$9({},it,{store:et}))},ot=function(it){return n$9.createElement(j,o$9({},it,{store:et}))};return{install:function(it){et.update("jumpToDestination",it.jumpToDestination),et.update("jumpToNextDestination",it.jumpToNextDestination),et.update("jumpToNextPage",it.jumpToNextPage),et.update("jumpToPage",it.jumpToPage),et.update("jumpToPreviousDestination",it.jumpToPreviousDestination),et.update("jumpToPreviousPage",it.jumpToPreviousPage)},renderViewer:function(it){var st=it.slot;if(!_e.enableShortcuts)return st;var at={children:n$9.createElement(n$9.Fragment,null,n$9.createElement(y$1,{containerRef:it.containerRef,numPages:it.doc.numPages,store:et}),st.children)};return o$9(o$9({},st),at)},onDocumentLoad:function(it){et.update("doc",it.doc),et.update("numberOfPages",it.doc.numPages)},onViewerStateChange:function(it){return et.update("currentPage",it.pageIndex),it},jumpToNextPage:function(){var it=et.get("jumpToNextPage");it&&it()},jumpToPage:function(it){var st=et.get("jumpToPage");st&&st(it)},jumpToPreviousPage:function(){var it=et.get("jumpToPreviousPage");it&&it()},CurrentPageInput:function(){return n$9.createElement(c$9,{store:et})},CurrentPageLabel:function(it){return n$9.createElement(s$7,o$9({},it,{store:et}))},GoToFirstPage:tt,GoToFirstPageButton:function(){return n$9.createElement(tt,null,function(it){return n$9.createElement(m$7,o$9({},it))})},GoToFirstPageMenuItem:function(it){return n$9.createElement(tt,null,function(st){return n$9.createElement(v$5,{isDisabled:st.isDisabled,onClick:function(){st.onClick(),it.onClick()}})})},GoToLastPage:nt,GoToLastPageButton:function(){return n$9.createElement(nt,null,function(it){return n$9.createElement(P$2,o$9({},it))})},GoToLastPageMenuItem:function(it){return n$9.createElement(nt,null,function(st){return n$9.createElement(E$4,{isDisabled:st.isDisabled,onClick:function(){st.onClick(),it.onClick()}})})},GoToNextPage:rt,GoToNextPageButton:function(){return n$9.createElement(rt,null,function(it){return n$9.createElement(D,o$9({},it))})},GoToNextPageMenuItem:function(it){return n$9.createElement(rt,null,function(st){return n$9.createElement(T,{isDisabled:st.isDisabled,onClick:function(){st.onClick(),it.onClick()}})})},GoToPreviousPage:ot,GoToPreviousPageButton:function(){return n$9.createElement(ot,null,function(it){return n$9.createElement(N,o$9({},it))})},GoToPreviousPageMenuItem:function(it){return n$9.createElement(ot,null,function(st){return n$9.createElement(I$2,{isDisabled:st.isDisabled,onClick:function(){st.onClick(),it.onClick()}})})},NumberOfPages:function(it){return n$9.createElement(h$5,o$9({},it,{store:et}))}}};/** + * A React component to view a PDF document + * + * @see https://react-pdf-viewer.dev + * @license https://react-pdf-viewer.dev/license + * @copyright 2019-2023 Nguyen Huu Phuoc + */lib$7.exports=pageNavigation_min;var libExports$9=lib$7.exports,lib$6={exports:{}},print_min={},define_process_env_default={},e$8=libExports$h,t$8=reactExports,n$8=reactDomExports;function r$8($){var _e=Object.create(null);return $&&Object.keys($).forEach(function(et){if(et!=="default"){var tt=Object.getOwnPropertyDescriptor($,et);Object.defineProperty(_e,et,tt.get?tt:{enumerable:!0,get:function(){return $[et]}})}}),_e.default=$,Object.freeze(_e)}var o$8,a$8=r$8(t$8),i$8=function(){return a$8.createElement(e$8.Icon,{size:16},a$8.createElement("path",{d:`M7.5,19.499h9 M7.5,16.499h9 M5.5,16.5h-3c-1.103-0.003-1.997-0.897-2-2v-6c0.003-1.103,0.897-1.997,2-2h19 + c1.103,0.003,1.997,0.897,2,2v6c-0.003,1.103-0.897,1.997-2,2h-3 + M5.5,4.5v-4h9.586c0.265,0,0.52,0.105,0.707,0.293l2.414,2.414 + C18.395,3.394,18.5,3.649,18.5,3.914V4.5 + M18.5,22.5c0,0.552-0.448,1-1,1h-11c-0.552,0-1-0.448-1-1v-9h13V22.5z + M3.5,8.499 + c0.552,0,1,0.448,1,1s-0.448,1-1,1s-1-0.448-1-1S2.948,8.499,3.5,8.499z + M14.5,0.499v4h4`}))},c$8=function(){return c$8=Object.assign||function($){for(var _e,et=1,tt=arguments.length;et=0&&vt=0&&nt<_e.numPages})}},print_min.getEvenPagesNumbers=function($){return Array($.numPages).fill(0).map(function(_e,et){return et}).filter(function(_e){return(_e+1)%2==0})},print_min.getOddPagesNumbers=function($){return Array($.numPages).fill(0).map(function(_e,et){return et}).filter(function(_e){return(_e+1)%2==1})},print_min.printPlugin=function($){var _e=a$8.useMemo(function(){return Object.assign({},{enableShortcuts:!0,setPages:function(nt){return Array(nt.numPages).fill(0).map(function(rt,ot){return ot})}},$)},[]),et=a$8.useMemo(function(){return e$8.createStore({printStatus:o$8.Inactive})},[]),tt=function(nt){return a$8.createElement(l$8,c$8({enableShortcuts:_e.enableShortcuts},nt,{store:et}))};return{print:function(){et.update("printStatus",o$8.CheckingPermission)},renderViewer:function(nt){var rt=nt.slot,ot={children:a$8.createElement(a$8.Fragment,null,_e.enableShortcuts&&a$8.createElement(E$3,{containerRef:nt.containerRef,store:et}),a$8.createElement(v$4,{doc:nt.doc,pagesRotation:nt.pagesRotation,pageSizes:nt.pageSizes,renderProgressBar:$==null?void 0:$.renderProgressBar,rotation:nt.rotation,setPages:_e.setPages,store:et}),rt.children)};return c$8(c$8({},rt),ot)},Print:tt,PrintButton:function(){return a$8.createElement(tt,null,function(nt){return a$8.createElement(s$6,c$8({},nt))})},PrintMenuItem:function(nt){return a$8.createElement(tt,null,function(rt){return a$8.createElement(h$4,{onClick:function(){rt.onClick(),nt.onClick()}})})},setPages:function(nt){_e.setPages=nt}}};/** + * A React component to view a PDF document + * + * @see https://react-pdf-viewer.dev + * @license https://react-pdf-viewer.dev/license + * @copyright 2019-2023 Nguyen Huu Phuoc + */lib$6.exports=print_min;var libExports$8=lib$6.exports,lib$5={exports:{}},properties_min={},e$7=libExports$h;function t$7($){var _e=Object.create(null);return $&&Object.keys($).forEach(function(et){if(et!=="default"){var tt=Object.getOwnPropertyDescriptor($,et);Object.defineProperty(_e,et,tt.get?tt:{enumerable:!0,get:function(){return $[et]}})}}),_e.default=$,Object.freeze(_e)}var r$7=t$7(reactExports),n$7=function(){return r$7.createElement(e$7.Icon,{size:16},r$7.createElement("path",{d:`M12,1.001c6.075,0,11,4.925,11,11s-4.925,11-11,11s-11-4.925-11-11S5.925,1.001,12,1.001z + M14.5,17.005H13 + c-0.552,0-1-0.448-1-1v-6.5c0-0.276-0.224-0.5-0.5-0.5H10 + M11.745,6.504L11.745,6.504 + M11.745,6.5c-0.138,0-0.25,0.112-0.25,0.25 + S11.607,7,11.745,7s0.25-0.112,0.25-0.25S11.883,6.5,11.745,6.5`}))},o$7=function(){return o$7=Object.assign||function($){for(var _e,et=1,tt=arguments.length;et=_e&&nt<=et?nt:tt},p$4=function($){var _e=$.doc,et=$.fileName,tt=$.onToggle,nt=r$7.useContext(e$7.LocalizationContext).l10n,rt=function(ot){var it=function(st){var at=l$7.exec(st);if(!at)return null;var lt=parseInt(at[1],10),ht=c$7(at[2],1,12,1)-1,pt=c$7(at[3],1,31,1),gt=c$7(at[4],0,23,0),ft=c$7(at[5],0,59,0),dt=c$7(at[6],0,59,0),mt=at[7]||"Z",ct=c$7(at[8],0,23,0),ut=c$7(at[9],0,59,0);switch(mt){case"-":gt+=ct,ft+=ut;break;case"+":gt-=ct,ft-=ut}return new Date(Date.UTC(lt,ht,pt,gt,ft,dt))}(ot);return it?"".concat(it.toLocaleDateString(),", ").concat(it.toLocaleTimeString()):""};return r$7.createElement("div",{className:"rpv-properties__modal"},r$7.createElement(a$7,{doc:_e,render:function(ot){return r$7.createElement(r$7.Fragment,null,r$7.createElement("div",{className:"rpv-properties__modal-section"},r$7.createElement(i$7,{label:nt&&nt.properties?nt.properties.fileName:"File name",value:ot.fileName||(at=et,lt=at.split("/").pop(),lt?lt.split("#")[0].split("?")[0]:at)}),r$7.createElement(i$7,{label:nt&&nt.properties?nt.properties.fileSize:"File size",value:(it=ot.length,st=Math.floor(Math.log(it)/Math.log(1024)),"".concat((it/Math.pow(1024,st)).toFixed(2)," ").concat(["B","kB","MB","GB","TB"][st]))})),r$7.createElement(e$7.Separator,null),r$7.createElement("div",{className:"rpv-properties__modal-section"},r$7.createElement(i$7,{label:nt&&nt.properties?nt.properties.title:"Title",value:ot.info.Title}),r$7.createElement(i$7,{label:nt&&nt.properties?nt.properties.author:"Author",value:ot.info.Author}),r$7.createElement(i$7,{label:nt&&nt.properties?nt.properties.subject:"Subject",value:ot.info.Subject}),r$7.createElement(i$7,{label:nt&&nt.properties?nt.properties.keywords:"Keywords",value:ot.info.Keywords}),r$7.createElement(i$7,{label:nt&&nt.properties?nt.properties.creator:"Creator",value:ot.info.Creator}),r$7.createElement(i$7,{label:nt&&nt.properties?nt.properties.creationDate:"Creation date",value:rt(ot.info.CreationDate)}),r$7.createElement(i$7,{label:nt&&nt.properties?nt.properties.modificationDate:"Modification date",value:rt(ot.info.ModDate)})),r$7.createElement(e$7.Separator,null),r$7.createElement("div",{className:"rpv-properties__modal-section"},r$7.createElement(i$7,{label:nt&&nt.properties?nt.properties.pdfProducer:"PDF producer",value:ot.info.Producer}),r$7.createElement(i$7,{label:nt&&nt.properties?nt.properties.pdfVersion:"PDF version",value:ot.info.PDFFormatVersion}),r$7.createElement(i$7,{label:nt&&nt.properties?nt.properties.pageCount:"Page count",value:"".concat(_e.numPages)})));var it,st,at,lt}}),r$7.createElement("div",{className:"rpv-properties__modal-footer"},r$7.createElement(e$7.Button,{onClick:tt},nt&&nt.properties?nt.properties.close:"Close")))},s$5={left:0,top:8},u$7=function($){var _e=$.onClick,et=r$7.useContext(e$7.LocalizationContext).l10n,tt=et&&et.properties?et.properties.showProperties:"Show properties";return r$7.createElement(e$7.Tooltip,{ariaControlsSuffix:"properties",position:e$7.Position.BottomCenter,target:r$7.createElement(e$7.MinimalButton,{ariaLabel:tt,testId:"properties__button",onClick:_e},r$7.createElement(n$7,null)),content:function(){return tt},offset:s$5})},m$5=function($){var _e=$.children,et=$.store,tt=function(ot){var it=r$7.useState(ot.get("doc")),st=it[0],at=it[1],lt=function(ht){at(ht)};return r$7.useEffect(function(){return ot.subscribe("doc",lt),function(){ot.unsubscribe("doc",lt)}},[]),{currentDoc:st}}(et).currentDoc,nt=et.get("fileName")||"",rt=_e||function(ot){return r$7.createElement(u$7,o$7({},ot))};return tt?r$7.createElement(e$7.Modal,{ariaControlsSuffix:"properties",target:function(ot){return rt({onClick:ot})},content:function(ot){return r$7.createElement(p$4,{doc:tt,fileName:nt,onToggle:ot})},closeOnClickOutside:!0,closeOnEscape:!0}):r$7.createElement(r$7.Fragment,null)},f$5=function($){var _e=$.onClick,et=r$7.useContext(e$7.LocalizationContext).l10n,tt=et&&et.properties?et.properties.showProperties:"Show properties";return r$7.createElement(e$7.MenuItem,{icon:r$7.createElement(n$7,null),testId:"properties__menu",onClick:_e},tt)};properties_min.InfoIcon=n$7,properties_min.propertiesPlugin=function(){var $=r$7.useMemo(function(){return e$7.createStore({fileName:""})},[]),_e=function(et){return r$7.createElement(m$5,o$7({},et,{store:$}))};return{onDocumentLoad:function(et){$.update("doc",et.doc)},onViewerStateChange:function(et){return $.update("fileName",et.file.name),et},ShowProperties:_e,ShowPropertiesButton:function(){return r$7.createElement(m$5,{store:$})},ShowPropertiesMenuItem:function(et){return r$7.createElement(_e,null,function(tt){return r$7.createElement(f$5,o$7({},tt))})}}};/** + * A React component to view a PDF document + * + * @see https://react-pdf-viewer.dev + * @license https://react-pdf-viewer.dev/license + * @copyright 2019-2023 Nguyen Huu Phuoc + */lib$5.exports=properties_min;var libExports$7=lib$5.exports,lib$4={exports:{}},rotate_min={},t$6=libExports$h;function e$6($){var _e=Object.create(null);return $&&Object.keys($).forEach(function(et){if(et!=="default"){var tt=Object.getOwnPropertyDescriptor($,et);Object.defineProperty(_e,et,tt.get?tt:{enumerable:!0,get:function(){return $[et]}})}}),_e.default=$,Object.freeze(_e)}var r$6=e$6(reactExports),n$6=function(){return r$6.createElement(t$6.Icon,{ignoreDirection:!0,size:16},r$6.createElement("path",{d:`M3.434,10.537c0.141-0.438,0.316-0.864,0.523-1.274 + M3.069,14.425C3.023,14.053,3,13.679,3,13.305 c0-0.291,0.014-0.579,0.041-0.863 + M4.389,18.111c-0.341-0.539-0.623-1.112-0.843-1.711 + M7.163,20.9 c-0.543-0.345-1.048-0.747-1.506-1.2 + M10.98,22.248c-0.65-0.074-1.29-0.218-1.909-0.431 + M10,4.25h2 c4.987,0.015,9.017,4.069,9.003,9.055c-0.013,4.581-3.456,8.426-8.008,8.945 + M13.5,1.75L10,4.25l3.5,2.5`}))},o$6=function(){return r$6.createElement(t$6.Icon,{ignoreDirection:!0,size:16},r$6.createElement("path",{d:`M20.566,10.537c-0.141-0.438-0.316-0.864-0.523-1.274 + M20.931,14.425C20.977,14.053,21,13.679,21,13.305 c0-0.291-0.014-0.579-0.041-0.863 + M19.611,18.111c0.341-0.539,0.624-1.114,0.843-1.713 + M16.837,20.9 c0.543-0.345,1.048-0.747,1.506-1.2 + M13.02,22.248c0.65-0.074,1.29-0.218,1.909-0.431 + M14,4.25h-2 c-4.987,0.015-9.017,4.069-9.003,9.055c0.013,4.581,3.456,8.426,8.008,8.945 + M10.5,1.75l3.5,2.5l-3.5,2.5`}))},c$6=function(){return c$6=Object.assign||function($){for(var _e,et=1,tt=arguments.length;et + */lib$4.exports=rotate_min;var libExports$6=lib$4.exports,lib$3={exports:{}},scrollMode_min={},e$5=libExports$h;function o$5($){var _e=Object.create(null);return $&&Object.keys($).forEach(function(et){if(et!=="default"){var tt=Object.getOwnPropertyDescriptor($,et);Object.defineProperty(_e,et,tt.get?tt:{enumerable:!0,get:function(){return $[et]}})}}),_e.default=$,Object.freeze(_e)}var t$5=o$5(reactExports),l$5=function(){return t$5.createElement(e$5.Icon,{size:16},t$5.createElement("rect",{x:"0.5",y:"0.497",width:"22",height:"22",rx:"1",ry:"1"}),t$5.createElement("line",{x1:"0.5",y1:"6.497",x2:"22.5",y2:"6.497"}),t$5.createElement("line",{x1:"11.5",y1:"6.497",x2:"11.5",y2:"22.497"}))},c$5=function(){return t$5.createElement(e$5.Icon,{size:16},t$5.createElement("rect",{x:"0.5",y:"0.497",width:"22",height:"22",rx:"1",ry:"1"}),t$5.createElement("line",{x1:"11.5",y1:"0.497",x2:"11.5",y2:"22.497"}))},n$5=function(){return t$5.createElement(e$5.Icon,{size:16},t$5.createElement("path",{d:`M6.5,21.5c0,0.552-0.448,1-1,1h-4c-0.552,0-1-0.448-1-1v-20c0-0.552,0.448-1,1-1h4c0.552,0,1,0.448,1,1V21.5z + M14.5,21.5c0,0.552-0.448,1-1,1h-4c-0.552,0-1-0.448-1-1v-20c0-0.552,0.448-1,1-1h4c0.552,0,1,0.448,1,1V21.5z + M22.5,21.5 c0,0.552-0.448,1-1,1h-4c-0.552,0-1-0.448-1-1v-20c0-0.552,0.448-1,1-1h4c0.552,0,1,0.448,1,1V21.5z`}))},r$5=function(){return t$5.createElement(e$5.Icon,{size:16},t$5.createElement("rect",{x:"0.5",y:"0.497",width:"22",height:"22",rx:"1",ry:"1"}))},i$5=function(){return i$5=Object.assign||function($){for(var _e,et=1,tt=arguments.length;et + */lib$3.exports=scrollMode_min;var libExports$5=lib$3.exports,lib$2={exports:{}},search_min={},e$4=libExports$h;function t$4($){var _e=Object.create(null);return $&&Object.keys($).forEach(function(et){if(et!=="default"){var tt=Object.getOwnPropertyDescriptor($,et);Object.defineProperty(_e,et,tt.get?tt:{enumerable:!0,get:function(){return $[et]}})}}),_e.default=$,Object.freeze(_e)}var r$4=t$4(reactExports),n$4=function(){return r$4.createElement(e$4.Icon,{size:16},r$4.createElement("path",{d:`M0.541,5.627L11.666,18.2c0.183,0.207,0.499,0.226,0.706,0.043c0.015-0.014,0.03-0.028,0.043-0.043 + L23.541,5.627`}))},o$4=function(){return r$4.createElement(e$4.Icon,{size:16},r$4.createElement("path",{d:`M23.535,18.373L12.409,5.8c-0.183-0.207-0.499-0.226-0.706-0.043C11.688,5.77,11.674,5.785,11.66,5.8 + L0.535,18.373`}))},a$4=function(){return r$4.createElement(e$4.Icon,{ignoreDirection:!0,size:16},r$4.createElement("path",{d:`M10.5,0.5c5.523,0,10,4.477,10,10s-4.477,10-10,10s-10-4.477-10-10S4.977,0.5,10.5,0.5z + M23.5,23.5 + l-5.929-5.929`}))},c$4=function(){return c$4=Object.assign||function($){for(var _e,et=1,tt=arguments.length;et_e.top?1:$.left<_e.left?-1:$.left>_e.left?1:0},f$3=function($){var _e=$.numPages,et=$.pageIndex,tt=$.renderHighlights,nt=$.store,rt=$.onHighlightKeyword,ot=r$4.useRef(),it=r$4.useCallback(function(Gt){return r$4.createElement(r$4.Fragment,null,Gt.highlightAreas.map(function(Bt,Kt){return r$4.createElement(s$3,{index:Kt,key:Kt,area:Bt,onHighlightKeyword:rt})}))},[]),st=tt||it,at=r$4.useState(nt.get("matchPosition")),lt=at[0],ht=at[1],pt=r$4.useState(nt.get("keyword")||[u$4]),gt=pt[0],ft=pt[1],dt=r$4.useState({pageIndex:et,scale:1,status:e$4.LayerRenderStatus.PreRender}),mt=dt[0],ct=dt[1],ut=r$4.useRef(null),vt=r$4.useRef([]),bt=r$4.useState([]),yt=bt[0],Et=bt[1],xt=function(){return!0},St=r$4.useCallback(function(){return nt.get("targetPageFilter")||xt},[nt.get("targetPageFilter")]),kt=function(Gt){var Bt=vt.current;if(Bt.length===0)return[];var Kt=[],Vt=[].slice.call(Gt.querySelectorAll(".rpv-core__text-layer-text")),Wt=Bt.map(function(It){return It.char}).join("");return gt.forEach(function(It){var Ft=It.keyword;if(Ft.trim()){for(var Yt,Dt=It.regExp.flags.indexOf("g")===-1?new RegExp(It.regExp,"".concat(It.regExp.flags,"g")):It.regExp,Rt=[];(Yt=Dt.exec(Wt))!==null;)Rt.push({keyword:Dt,startIndex:Yt.index,endIndex:Dt.lastIndex});Rt.map(function(wt){return{keyword:wt.keyword,indexes:Bt.slice(wt.startIndex,wt.endIndex)}}).forEach(function(wt){var Mt=wt.indexes.reduce(function(Ot,zt){return Ot[zt.spanIndex]=(Ot[zt.spanIndex]||[]).concat([zt]),Ot},{});Object.values(Mt).forEach(function(Ot){if(Ot.length!==1||Ot[0].char.trim()!==""){var zt=It.wholeWords?Ot.slice(1,-1):Ot,Ht=function(Jt,pn,gn,bn,yn){var $n=document.createRange(),kn=bn.firstChild;if(!kn||kn.nodeType!==Node.TEXT_NODE)return null;var hn=kn.textContent.length,un=yn[0].charIndexInSpan,Lt=yn.length===1?un:yn[yn.length-1].charIndexInSpan;if(un>hn||Lt+1>hn)return null;$n.setStart(kn,un),$n.setEnd(kn,Lt+1);var Ut=document.createElement("span");$n.surroundContents(Ut);var nn=Ut.getBoundingClientRect(),sn=gn.getBoundingClientRect(),vn=sn.height,Tn=sn.width,Rn=100*(nn.left-sn.left)/Tn,on=100*(nn.top-sn.top)/vn,Bn=100*nn.height/vn,Ln=100*nn.width/Tn;return h$2(Ut),{keyword:pn,keywordStr:Jt,numPages:_e,pageIndex:et,left:Rn,top:on,height:Bn,width:Ln,pageHeight:vn,pageWidth:Tn}}(Ft,wt.keyword,Gt,Vt[zt[0].spanIndex],zt);Ht&&Kt.push(Ht)}})})}}),Kt.sort(d$3)},At=function(Gt){Gt&&Gt.length>0&&ft(Gt)},$t=function(Gt){return ht(Gt)},Tt=function(Gt){if(Gt.has(et)){var Bt=Gt.get(et);Bt&&ct({ele:Bt.ele,pageIndex:et,scale:Bt.scale,status:Bt.status})}},jt=function(){return gt.length===0||gt.length===1&>[0].keyword.trim()===""};return r$4.useEffect(function(){if(!jt()&&mt.status===e$4.LayerRenderStatus.DidRender&&!vt.current.length){var Gt=mt.ele,Bt=[].slice.call(Gt.querySelectorAll(".rpv-core__text-layer-text")).map(function(Kt){return Kt.textContent}).reduce(function(Kt,Vt,Wt){return Kt.concat(Vt.split("").map(function(It,Ft){return{char:It,charIndexInSpan:Ft,spanIndex:Wt}}))},[{char:"",charIndexInSpan:0,spanIndex:0}]).slice(1);vt.current=Bt}},[gt,mt.status]),r$4.useEffect(function(){if(!jt()&&mt.ele&&mt.status===e$4.LayerRenderStatus.DidRender&&St()({pageIndex:et,numPages:_e})){var Gt=mt.ele,Bt=kt(Gt);Et(Bt)}},[gt,lt,mt.status,vt.current]),r$4.useEffect(function(){jt()&&mt.ele&&mt.status===e$4.LayerRenderStatus.DidRender&&Et([])},[gt,mt.status]),r$4.useEffect(function(){if(yt.length!==0){var Gt=ot.current;if(lt.pageIndex===et&&Gt&&mt.status===e$4.LayerRenderStatus.DidRender){var Bt=Gt.querySelector('.rpv-search__highlight[data-index="'.concat(lt.matchIndex,'"]'));if(Bt){var Kt=function(Ft,Yt){for(var Dt=Ft.offsetTop,Rt=Ft.offsetLeft,wt=Ft.parentElement;wt&&wt!==Yt;)Dt+=wt.offsetTop,Rt+=wt.offsetLeft,wt=wt.parentElement;return{left:Rt,top:Dt}}(Bt,Gt),Vt=Kt.left,Wt=Kt.top,It=nt.get("jumpToDestination");It&&(It({pageIndex:et,bottomOffset:(Gt.getBoundingClientRect().height-Wt)/mt.scale,leftOffset:Vt/mt.scale,scaleTo:mt.scale}),ut.current&&ut.current.classList.remove("rpv-search__highlight--current"),ut.current=Bt,Bt.classList.add("rpv-search__highlight--current"))}}}},[yt,lt]),r$4.useEffect(function(){return nt.subscribe("keyword",At),nt.subscribe("matchPosition",$t),nt.subscribe("renderStatus",Tt),function(){nt.unsubscribe("keyword",At),nt.unsubscribe("matchPosition",$t),nt.unsubscribe("renderStatus",Tt)}},[]),r$4.createElement("div",{className:"rpv-search__highlights","data-testid":"search__highlights-".concat(et),ref:ot},st({getCssProperties:i$4,highlightAreas:yt}))},p$2=function($){var _e,et=$.wholeWords?" ".concat($.keyword," "):$.keyword,tt=$.matchCase?"g":"gi";return{keyword:$.keyword,regExp:new RegExp((_e=et,_e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),tt),wholeWords:$.wholeWords||!1}},g$2=function($,_e,et){return $ instanceof RegExp?{keyword:$.source,regExp:$,wholeWords:et||!1}:typeof $=="string"?$===""?u$4:p$2({keyword:$,matchCase:_e||!1,wholeWords:et||!1}):(_e!==void 0&&($.matchCase=_e),et!==void 0&&($.wholeWords=et),p$2($))},m$3=function($){var _e,et=$.get("initialKeyword"),tt=r$4.useMemo(function(){if(et&&et.length===1){var $t=g$2(et[0]);return{matchCase:$t.regExp.flags.indexOf("i")===-1,wholeWords:$t.wholeWords}}return{matchCase:!1,wholeWords:!1}},[]),nt=function($t){var Tt=r$4.useRef($t.get("doc")),jt=function(Gt){Tt.current=Gt};return r$4.useEffect(function(){return $t.subscribe("doc",jt),function(){$t.unsubscribe("doc",jt)}},[]),Tt}($),rt=r$4.useState(et),ot=rt[0],it=rt[1],st=r$4.useState([]),at=st[0],lt=st[1],ht=r$4.useState(0),pt=ht[0],gt=ht[1],ft=r$4.useState(tt.matchCase),dt=ft[0],mt=ft[1],ct=r$4.useRef([]),ut=r$4.useState(tt.wholeWords),vt=ut[0],bt=ut[1],yt=function(){return!0},Et=r$4.useCallback(function(){return $.get("targetPageFilter")||yt},[$.get("targetPageFilter")]),xt=function($t){var Tt=at.length;if(ot.length===0||Tt===0)return null;var jt=$t===Tt+1?1:Math.max(1,Math.min(Tt,$t));return gt(jt),kt(at[jt-1])},St=function($t){return it($t===""?[]:[$t])},kt=function($t){var Tt=$.get("jumpToPage");return Tt&&Tt($t.pageIndex),$.update("matchPosition",{matchIndex:$t.matchIndex,pageIndex:$t.pageIndex}),$t},At=function($t,Tt,jt){var Gt=nt.current;if(!Gt)return Promise.resolve([]);var Bt=Gt.numPages,Kt=$t.map(function(Vt){return g$2(Vt,Tt,jt)});return $.update("keyword",Kt),gt(0),lt([]),new Promise(function(Vt,Wt){var It=ct.current.length===0?function(){var Ft=nt.current;if(!Ft)return Promise.resolve([]);var Yt=Array(Ft.numPages).fill(0).map(function(Dt,Rt){return e$4.getPage(Ft,Rt).then(function(wt){return wt.getTextContent()}).then(function(wt){var Mt=wt.items.map(function(Ot){return Ot.str||""}).join("");return Promise.resolve({pageContent:Mt,pageIndex:Rt})})});return Promise.all(Yt).then(function(Dt){return Dt.sort(function(Rt,wt){return Rt.pageIndex-wt.pageIndex}),Promise.resolve(Dt.map(function(Rt){return Rt.pageContent}))})}().then(function(Ft){return ct.current=Ft,Promise.resolve(Ft)}):Promise.resolve(ct.current);It.then(function(Ft){var Yt=[];Ft.forEach(function(Dt,Rt){Et()({pageIndex:Rt,numPages:Bt})&&Kt.forEach(function(wt){for(var Mt,Ot=0;(Mt=wt.regExp.exec(Dt))!==null;)Yt.push({keyword:wt.regExp,matchIndex:Ot,pageIndex:Rt,pageText:Dt,startIndex:Mt.index,endIndex:wt.regExp.lastIndex}),Ot++})}),lt(Yt),Yt.length>0&&(gt(1),kt(Yt[0])),Vt(Yt)})})};return r$4.useEffect(function(){ct.current=[]},[nt.current]),{clearKeyword:function(){$.update("keyword",[u$4]),St(""),gt(0),lt([]),mt(!1),bt(!1)},changeMatchCase:function($t){mt($t),ot.length>0&&At(ot,$t,vt)},changeWholeWords:function($t){bt($t),ot.length>0&&At(ot,dt,$t)},currentMatch:pt,jumpToMatch:xt,jumpToNextMatch:function(){return xt(pt+1)},jumpToPreviousMatch:function(){return xt(pt-1)},keywords:ot,matchCase:dt,numberOfMatches:at.length,wholeWords:vt,search:function(){return At(ot,dt,vt)},searchFor:At,setKeywords:it,keyword:ot.length===0?"":(_e=ot[0],_e instanceof RegExp?_e.source:typeof _e=="string"?_e:_e.keyword),setKeyword:St,setTargetPages:function($t){$.update("targetPageFilter",$t)}}},v$2=function($){var _e=$.children,et=$.store,tt=m$3(et),nt=r$4.useState(!1),rt=nt[0],ot=nt[1],it=function(st){return ot(!0)};return r$4.useEffect(function(){return et.subscribe("doc",it),function(){et.unsubscribe("doc",it)}},[]),_e(c$4(c$4({},tt),{isDocumentLoaded:rt}))},x=function($){var _e=$.containerRef,et=$.store,tt=r$4.useRef(!1),nt=function(){tt.current=!0},rt=function(){tt.current=!1},ot=function(it){var st=_e.current;st&&(it.shiftKey||it.altKey||it.key!=="f"||(e$4.isMac()?it.metaKey&&!it.ctrlKey:it.ctrlKey)&&(tt.current||document.activeElement&&st.contains(document.activeElement))&&(it.preventDefault(),et.update("areShortcutsPressed",!0)))};return r$4.useEffect(function(){var it=_e.current;if(it)return document.addEventListener("keydown",ot),it.addEventListener("mouseenter",nt),it.addEventListener("mouseleave",rt),function(){document.removeEventListener("keydown",ot),it.removeEventListener("mouseenter",nt),it.removeEventListener("mouseleave",rt)}},[_e.current]),r$4.createElement(r$4.Fragment,null)},y={left:0,top:8},E$2=function($){var _e=$.store,et=$.onToggle,tt=r$4.useContext(e$4.LocalizationContext).l10n,nt=r$4.useContext(e$4.ThemeContext).direction,rt=r$4.useState(!1),ot=rt[0],it=rt[1],st=r$4.useState(!1),at=st[0],lt=st[1],ht=nt===e$4.TextDirection.RightToLeft,pt=m$3(_e),gt=pt.clearKeyword,ft=pt.changeMatchCase,dt=pt.changeWholeWords,mt=pt.currentMatch,ct=pt.jumpToNextMatch,ut=pt.jumpToPreviousMatch,vt=pt.keyword,bt=pt.matchCase,yt=pt.numberOfMatches,Et=pt.wholeWords,xt=pt.search,St=pt.setKeyword,kt=function(Gt){it(!0),xt().then(function(Bt){it(!1),lt(!0),Gt&&Gt()})};r$4.useEffect(function(){var Gt=_e.get("initialKeyword");Gt&&Gt.length===1&&vt&&kt(function(){_e.update("initialKeyword",[])})},[]);var At=tt&&tt.search?tt.search.enterToSearch:"Enter to search",$t=tt&&tt.search?tt.search.previousMatch:"Previous match",Tt=tt&&tt.search?tt.search.nextMatch:"Next match",jt=tt&&tt.search?tt.search.close:"Close";return r$4.createElement("div",{className:"rpv-search__popover"},r$4.createElement("div",{className:"rpv-search__popover-input-counter"},r$4.createElement(e$4.TextBox,{ariaLabel:At,autoFocus:!0,placeholder:At,type:"text",value:vt,onChange:function(Gt){lt(!1),St(Gt)},onKeyDown:function(Gt){Gt.key==="Enter"&&vt&&(at?ct():kt())}}),r$4.createElement("div",{className:e$4.classNames({"rpv-search__popover-counter":!0,"rpv-search__popover-counter--ltr":!ht,"rpv-search__popover-counter--rtl":ht})},ot&&r$4.createElement(e$4.Spinner,{testId:"search__popover-searching",size:"1rem"}),!ot&&r$4.createElement("span",{"data-testid":"search__popover-num-matches"},mt,"/",yt))),r$4.createElement("label",{className:"rpv-search__popover-label"},r$4.createElement("input",{className:"rpv-search__popover-label-checkbox","data-testid":"search__popover-match-case",checked:bt,type:"checkbox",onChange:function(Gt){lt(!1),ft(Gt.target.checked)}})," ",tt&&tt.search?tt.search.matchCase:"Match case"),r$4.createElement("label",{className:"rpv-search__popover-label"},r$4.createElement("input",{className:"rpv-search__popover-label-checkbox",checked:Et,"data-testid":"search__popover-whole-words",type:"checkbox",onChange:function(Gt){lt(!1),dt(Gt.target.checked)}})," ",tt&&tt.search?tt.search.wholeWords:"Whole words"),r$4.createElement("div",{className:"rpv-search__popover-footer"},r$4.createElement("div",{className:"rpv-search__popover-footer-item"},r$4.createElement(e$4.Tooltip,{ariaControlsSuffix:"search-previous-match",position:ht?e$4.Position.BottomRight:e$4.Position.BottomCenter,target:r$4.createElement(e$4.MinimalButton,{ariaLabel:$t,isDisabled:mt<=1,onClick:ut},r$4.createElement(o$4,null)),content:function(){return $t},offset:y})),r$4.createElement("div",{className:"rpv-search__popover-footer-item"},r$4.createElement(e$4.Tooltip,{ariaControlsSuffix:"search-next-match",position:e$4.Position.BottomCenter,target:r$4.createElement(e$4.MinimalButton,{ariaLabel:Tt,isDisabled:mt>yt-1,onClick:ct},r$4.createElement(n$4,null)),content:function(){return Tt},offset:y})),r$4.createElement("div",{className:e$4.classNames({"rpv-search__popover-footer-button":!0,"rpv-search__popover-footer-button--ltr":!ht,"rpv-search__popover-footer-button--rtl":ht})},r$4.createElement(e$4.Button,{onClick:function(){et(),gt()}},jt))))},w=function($){var _e=$.children,et=$.onClick,tt=r$4.useContext(e$4.LocalizationContext).l10n,nt=tt&&tt.search?tt.search.search:"Search";return _e({icon:r$4.createElement(a$4,null),label:nt,onClick:et})},b$2={left:0,top:8},k$1=function($){var _e=$.enableShortcuts,et=$.store,tt=$.onClick,nt=_e?e$4.isMac()?"Meta+F":"Ctrl+F":"",rt=function(ot){ot&&tt()};return r$4.useEffect(function(){return et.subscribe("areShortcutsPressed",rt),function(){et.unsubscribe("areShortcutsPressed",rt)}},[]),r$4.createElement(w,{onClick:tt},function(ot){return r$4.createElement(e$4.Tooltip,{ariaControlsSuffix:"search-popover",position:e$4.Position.BottomCenter,target:r$4.createElement(e$4.MinimalButton,{ariaKeyShortcuts:nt,ariaLabel:ot.label,testId:"search__popover-button",onClick:tt},ot.icon),content:function(){return ot.label},offset:b$2})})},S$2={left:0,top:8},C$1=function($){var _e=$.children,et=$.enableShortcuts,tt=$.store,nt=r$4.useContext(e$4.ThemeContext).direction===e$4.TextDirection.RightToLeft?e$4.Position.BottomRight:e$4.Position.BottomLeft,rt=_e||function(ot){return r$4.createElement(k$1,c$4({enableShortcuts:et,store:tt},ot))};return r$4.createElement(e$4.Popover,{ariaControlsSuffix:"search",lockScroll:!1,position:nt,target:function(ot){return rt({onClick:ot})},content:function(ot){return r$4.createElement(E$2,{store:tt,onToggle:ot})},offset:S$2,closeOnClickOutside:!1,closeOnEscape:!0})},P$1=function($){return Array.isArray($)?$.map(function(_e){return g$2(_e)}):[g$2($)]};search_min.NextIcon=n$4,search_min.PreviousIcon=o$4,search_min.SearchIcon=a$4,search_min.searchPlugin=function($){var _e=r$4.useMemo(function(){return Object.assign({},{enableShortcuts:!0,onHighlightKeyword:function(){}},$)},[]),et=r$4.useMemo(function(){return e$4.createStore({initialKeyword:$&&$.keyword?Array.isArray($.keyword)?$.keyword:[$.keyword]:[],keyword:$&&$.keyword?P$1($.keyword):[u$4],matchPosition:{matchIndex:-1,pageIndex:-1},renderStatus:new Map})},[]),tt=m$3(et),nt=tt.clearKeyword,rt=tt.jumpToMatch,ot=tt.jumpToNextMatch,it=tt.jumpToPreviousMatch,st=tt.searchFor,at=tt.setKeywords,lt=tt.setTargetPages,ht=function(pt){return r$4.createElement(C$1,c$4({enableShortcuts:_e.enableShortcuts},pt,{store:et}))};return{install:function(pt){var gt=$&&$.keyword?Array.isArray($.keyword)?$.keyword:[$.keyword]:[],ft=$&&$.keyword?P$1($.keyword):[u$4];et.update("initialKeyword",gt),et.update("jumpToDestination",pt.jumpToDestination),et.update("jumpToPage",pt.jumpToPage),et.update("keyword",ft)},renderPageLayer:function(pt){return r$4.createElement(f$3,{key:pt.pageIndex,numPages:pt.doc.numPages,pageIndex:pt.pageIndex,renderHighlights:$==null?void 0:$.renderHighlights,store:et,onHighlightKeyword:_e.onHighlightKeyword})},renderViewer:function(pt){var gt=pt.slot;return gt.subSlot&&(gt.subSlot.children=r$4.createElement(r$4.Fragment,null,_e.enableShortcuts&&r$4.createElement(x,{containerRef:pt.containerRef,store:et}),gt.subSlot.children)),gt},uninstall:function(pt){var gt=et.get("renderStatus");gt&>.clear()},onDocumentLoad:function(pt){et.update("doc",pt.doc)},onTextLayerRender:function(pt){var gt=et.get("renderStatus");gt&&(gt=gt.set(pt.pageIndex,pt),et.update("renderStatus",gt))},Search:function(pt){return r$4.createElement(v$2,c$4({},pt,{store:et}))},ShowSearchPopover:ht,ShowSearchPopoverButton:function(){return r$4.createElement(ht,null,function(pt){return r$4.createElement(k$1,c$4({enableShortcuts:_e.enableShortcuts,store:et},pt))})},clearHighlights:function(){nt()},highlight:function(pt){var gt=Array.isArray(pt)?pt:[pt];return at(gt),st(gt)},jumpToMatch:rt,jumpToNextMatch:ot,jumpToPreviousMatch:it,setTargetPages:lt}};/** + * A React component to view a PDF document + * + * @see https://react-pdf-viewer.dev + * @license https://react-pdf-viewer.dev/license + * @copyright 2019-2023 Nguyen Huu Phuoc + */lib$2.exports=search_min;var libExports$4=lib$2.exports,lib$1={exports:{}},theme_min={},e$3=libExports$h;function t$3($){var _e=Object.create(null);return $&&Object.keys($).forEach(function(et){if(et!=="default"){var tt=Object.getOwnPropertyDescriptor($,et);Object.defineProperty(_e,et,tt.get?tt:{enumerable:!0,get:function(){return $[et]}})}}),_e.default=$,Object.freeze(_e)}var n$3=t$3(reactExports),r$3=function(){return n$3.createElement(e$3.Icon,{size:16},n$3.createElement("path",{d:"M19.5,15.106l2.4-2.4a1,1,0,0,0,0-1.414l-2.4-2.4V5.5a1,1,0,0,0-1-1H15.106l-2.4-2.4a1,1,0,0,0-1.414,0l-2.4,2.4H5.5a1,1,0,0,0-1,1V8.894l-2.4,2.4a1,1,0,0,0,0,1.414l2.4,2.4V18.5a1,1,0,0,0,1,1H8.894l2.4,2.4a1,1,0,0,0,1.414,0l2.4-2.4H18.5a1,1,0,0,0,1-1Z"}),n$3.createElement("path",{d:"M10,6.349a6,6,0,0,1,0,11.3,6,6,0,1,0,0-11.3Z"}))},c$3=function(){return n$3.createElement(e$3.Icon,{size:16},n$3.createElement("path",{d:"M19.491,15.106l2.4-2.4a1,1,0,0,0,0-1.414l-2.4-2.4V5.5a1,1,0,0,0-1-1H15.1L12.7,2.1a1,1,0,0,0-1.414,0l-2.4,2.4H5.491a1,1,0,0,0-1,1V8.894l-2.4,2.4a1,1,0,0,0,0,1.414l2.4,2.4V18.5a1,1,0,0,0,1,1H8.885l2.4,2.4a1,1,0,0,0,1.414,0l2.4-2.4h3.394a1,1,0,0,0,1-1Z"}),n$3.createElement("path",{d:"M11.491,6c4,0,6,2.686,6,6s-2,6-6,6Z"}))},o$3=function(){return o$3=Object.assign||function($){for(var _e,et=1,tt=arguments.length;et + */lib$1.exports=theme_min;var libExports$3=lib$1.exports,lib={exports:{}},zoom_min={},e$2=libExports$h;function t$2($){var _e=Object.create(null);return $&&Object.keys($).forEach(function(et){if(et!=="default"){var tt=Object.getOwnPropertyDescriptor($,et);Object.defineProperty(_e,et,tt.get?tt:{enumerable:!0,get:function(){return $[et]}})}}),_e.default=$,Object.freeze(_e)}var n$2=t$2(reactExports),o$2=function(){return n$2.createElement(e$2.Icon,{ignoreDirection:!0,size:16},n$2.createElement("path",{d:`M10.5,0.499c5.523,0,10,4.477,10,10s-4.477,10-10,10s-10-4.477-10-10S4.977,0.499,10.5,0.499z + M23.5,23.499 + l-5.929-5.929 + M5.5,10.499h10 + M10.5,5.499v10`}))},r$2=function(){return n$2.createElement(e$2.Icon,{ignoreDirection:!0,size:16},n$2.createElement("path",{d:`M10.5,0.499c5.523,0,10,4.477,10,10s-4.477,10-10,10s-10-4.477-10-10S4.977,0.499,10.5,0.499z + M23.5,23.499 + l-5.929-5.929 + M5.5,10.499h10`}))},c$2=function(){return c$2=Object.assign||function($){for(var _e,et=1,tt=arguments.length;et$})||$},v$1=function($){var _e=m$2.findIndex(function(et){return et>=$});return _e===-1||_e===0?$:m$2[_e-1]},p$1=function($){var _e=$.containerRef,et=$.store,tt=function(nt){if(!nt.shiftKey&&!nt.altKey&&(e$2.isMac()?nt.metaKey:nt.ctrlKey)){var rt=_e.current;if(rt&&document.activeElement&&rt.contains(document.activeElement)){var ot=et.get("zoom");if(ot){var it=et.get("scale")||1,st=1;switch(nt.key){case"-":st=v$1(it);break;case"=":st=f$2(it);break;case"0":st=1;break;default:st=it}st!==it&&(nt.preventDefault(),ot(st))}}}};return n$2.useEffect(function(){if(_e.current)return document.addEventListener("keydown",tt),function(){document.removeEventListener("keydown",tt)}},[_e.current]),n$2.createElement(n$2.Fragment,null)},z=[.5,.75,1,1.25,1.5,2,3,4],E$1={left:0,top:8},d$2=function($){var _e=$.levels,et=_e===void 0?z:_e,tt=$.scale,nt=$.onZoom,rt=n$2.useContext(e$2.LocalizationContext).l10n,ot=n$2.useContext(e$2.ThemeContext).direction===e$2.TextDirection.RightToLeft,it=rt&&rt.zoom?rt.zoom.zoomDocument:"Zoom document";return n$2.createElement(e$2.Popover,{ariaControlsSuffix:"zoom",ariaHasPopup:"menu",position:e$2.Position.BottomCenter,target:function(st){return n$2.createElement(e$2.MinimalButton,{ariaLabel:it,testId:"zoom__popover-target",onClick:function(){st()}},n$2.createElement("span",{className:"rpv-zoom__popover-target"},n$2.createElement("span",{"data-testid":"zoom__popover-target-scale",className:e$2.classNames({"rpv-zoom__popover-target-scale":!0,"rpv-zoom__popover-target-scale--ltr":!ot,"rpv-zoom__popover-target-scale--rtl":ot})},Math.round(100*tt),"%"),n$2.createElement("span",{className:"rpv-zoom__popover-target-arrow"})))},content:function(st){return n$2.createElement(e$2.Menu,null,Object.keys(e$2.SpecialZoomLevel).map(function(at){var lt=at;return n$2.createElement(e$2.MenuItem,{key:lt,onClick:function(){st(),nt(lt)}},function(ht){switch(ht){case e$2.SpecialZoomLevel.ActualSize:return rt&&rt.zoom?rt.zoom.actualSize:"Actual size";case e$2.SpecialZoomLevel.PageFit:return rt&&rt.zoom?rt.zoom.pageFit:"Page fit";case e$2.SpecialZoomLevel.PageWidth:return rt&&rt.zoom?rt.zoom.pageWidth:"Page width"}}(lt))}),n$2.createElement(e$2.MenuDivider,null),et.map(function(at){return n$2.createElement(e$2.MenuItem,{key:at,onClick:function(){st(),nt(at)}},"".concat(Math.round(100*at),"%"))}))},offset:E$1,closeOnClickOutside:!0,closeOnEscape:!0})},g$1=function($){var _e=$.children,et=$.levels,tt=$.store;return(_e||function(nt){return n$2.createElement(d$2,{levels:et,scale:nt.scale,onZoom:nt.onZoom})})({scale:a$2(tt).scale,onZoom:function(nt){var rt=tt.get("zoom");rt&&rt(nt)}})},C={left:0,top:8},h$1=function($){var _e=$.enableShortcuts,et=$.onClick,tt=n$2.useContext(e$2.LocalizationContext).l10n,nt=tt&&tt.zoom?tt.zoom.zoomIn:"Zoom in",rt=_e?e$2.isMac()?"Meta+=":"Ctrl+=":"";return n$2.createElement(e$2.Tooltip,{ariaControlsSuffix:"zoom-in",position:e$2.Position.BottomCenter,target:n$2.createElement(e$2.MinimalButton,{ariaKeyShortcuts:rt,ariaLabel:nt,testId:"zoom__in-button",onClick:et},n$2.createElement(o$2,null)),content:function(){return nt},offset:C})},b$1=function($){var _e=$.children,et=$.enableShortcuts,tt=$.store,nt=a$2(tt).scale;return(_e||h$1)({enableShortcuts:et,onClick:function(){var rt=tt.get("zoom");rt&&rt(f$2(nt))}})},k=function($){var _e=$.onClick,et=n$2.useContext(e$2.LocalizationContext).l10n,tt=et&&et.zoom?et.zoom.zoomIn:"Zoom in";return n$2.createElement(e$2.MenuItem,{icon:n$2.createElement(o$2,null),testId:"zoom__in-menu",onClick:_e},tt)},S$1={left:0,top:8},M$1=function($){var _e=$.enableShortcuts,et=$.onClick,tt=n$2.useContext(e$2.LocalizationContext).l10n,nt=tt&&tt.zoom?tt.zoom.zoomOut:"Zoom out",rt=_e?e$2.isMac()?"Meta+-":"Ctrl+-":"";return n$2.createElement(e$2.Tooltip,{ariaControlsSuffix:"zoom-out",position:e$2.Position.BottomCenter,target:n$2.createElement(e$2.MinimalButton,{ariaKeyShortcuts:rt,ariaLabel:nt,testId:"zoom__out-button",onClick:et},n$2.createElement(r$2,null)),content:function(){return nt},offset:S$1})},I$1=function($){var _e=$.children,et=$.enableShortcuts,tt=$.store,nt=a$2(tt).scale;return(_e||M$1)({enableShortcuts:et,onClick:function(){var rt=tt.get("zoom");rt&&rt(v$1(nt))}})},Z=function($){var _e=$.onClick,et=n$2.useContext(e$2.LocalizationContext).l10n,tt=et&&et.zoom?et.zoom.zoomOut:"Zoom out";return n$2.createElement(e$2.MenuItem,{icon:n$2.createElement(r$2,null),testId:"zoom__out-menu",onClick:_e},tt)};zoom_min.ZoomInIcon=o$2,zoom_min.ZoomOutIcon=r$2,zoom_min.zoomPlugin=function($){var _e=n$2.useMemo(function(){return Object.assign({},{enableShortcuts:!0},$)},[]),et=n$2.useMemo(function(){return e$2.createStore({})},[]),tt=function(ot){return n$2.createElement(b$1,c$2({enableShortcuts:_e.enableShortcuts},ot,{store:et}))},nt=function(ot){return n$2.createElement(I$1,c$2({enableShortcuts:_e.enableShortcuts},ot,{store:et}))},rt=function(ot){return n$2.createElement(g$1,c$2({},ot,{store:et}))};return{renderViewer:function(ot){var it=ot.slot;if(!_e.enableShortcuts)return it;var st={children:n$2.createElement(n$2.Fragment,null,n$2.createElement(p$1,{containerRef:ot.containerRef,store:et}),n$2.createElement(s$2,{pagesContainerRef:ot.pagesContainerRef,store:et}),it.children)};return c$2(c$2({},it),st)},install:function(ot){et.update("zoom",ot.zoom)},onViewerStateChange:function(ot){return et.update("scale",ot.scale),ot},zoomTo:function(ot){var it=et.get("zoom");it&&it(ot)},CurrentScale:function(ot){return n$2.createElement(u$2,c$2({},ot,{store:et}))},ZoomIn:tt,ZoomInButton:function(){return n$2.createElement(tt,null,function(ot){return n$2.createElement(h$1,c$2({},ot))})},ZoomInMenuItem:function(ot){return n$2.createElement(tt,null,function(it){return n$2.createElement(k,{onClick:function(){it.onClick(),ot.onClick()}})})},ZoomOut:nt,ZoomOutButton:function(){return n$2.createElement(nt,null,function(ot){return n$2.createElement(M$1,c$2({},ot))})},ZoomOutMenuItem:function(ot){return n$2.createElement(nt,null,function(it){return n$2.createElement(Z,{onClick:function(){it.onClick(),ot.onClick()}})})},Zoom:rt,ZoomPopover:function(ot){return n$2.createElement(rt,null,function(it){return n$2.createElement(d$2,c$2({levels:ot==null?void 0:ot.levels},it))})}}};/** + * A React component to view a PDF document + * + * @see https://react-pdf-viewer.dev + * @license https://react-pdf-viewer.dev/license + * @copyright 2019-2023 Nguyen Huu Phuoc + */lib.exports=zoom_min;var libExports$2=lib.exports,e$1=libExports$h,t$1=libExports$d,r$1=reactExports,n$1=libExports$c,o$1=libExports$b,a$1=libExports$a,l$1=libExports$9,i$1=libExports$8,c$1=libExports$7,m$1=libExports$6,u$1=libExports$5,s$1=libExports$4,d$1=libExports$3,p=libExports$2;function v($){var _e=Object.create(null);return $&&Object.keys($).forEach(function(et){if(et!=="default"){var tt=Object.getOwnPropertyDescriptor($,et);Object.defineProperty(_e,et,tt.get?tt:{enumerable:!0,get:function(){return $[et]}})}}),_e.default=$,Object.freeze(_e)}var _=v(r$1),E=function(){return _.createElement(e$1.Icon,{size:16},_.createElement("path",{d:`M12,0.5c1.381,0,2.5,1.119,2.5,2.5S13.381,5.5,12,5.5S9.5,4.381,9.5,3S10.619,0.5,12,0.5z + M12,9.5 + c1.381,0,2.5,1.119,2.5,2.5s-1.119,2.5-2.5,2.5S9.5,13.381,9.5,12S10.619,9.5,12,9.5z + M12,18.5c1.381,0,2.5,1.119,2.5,2.5 + s-1.119,2.5-2.5,2.5S9.5,22.381,9.5,21S10.619,18.5,12,18.5z`}))},g={left:0,top:8},P=function($){var _e=$.toolbarSlot,et=_.useContext(e$1.LocalizationContext).l10n,tt=_.useContext(e$1.ThemeContext).direction===e$1.TextDirection.RightToLeft?e$1.Position.BottomLeft:e$1.Position.BottomRight,nt=_e.DownloadMenuItem,rt=_e.EnterFullScreenMenuItem,ot=_e.GoToFirstPageMenuItem,it=_e.GoToLastPageMenuItem,st=_e.GoToNextPageMenuItem,at=_e.GoToPreviousPageMenuItem,lt=_e.OpenMenuItem,ht=_e.PrintMenuItem,pt=_e.RotateBackwardMenuItem,gt=_e.RotateForwardMenuItem,ft=_e.ShowPropertiesMenuItem,dt=_e.SwitchScrollModeMenuItem,mt=_e.SwitchSelectionModeMenuItem,ct=_e.SwitchViewModeMenuItem,ut=_e.SwitchThemeMenuItem;return _.createElement(e$1.Popover,{ariaControlsSuffix:"toolbar-more-actions",ariaHasPopup:"menu",position:tt,target:function(vt,bt){var yt=et&&et.toolbar?et.toolbar.moreActions:"More actions";return _.createElement(e$1.Tooltip,{ariaControlsSuffix:"toolbar-more-actions",position:tt,target:_.createElement(e$1.MinimalButton,{ariaLabel:yt,isSelected:bt,testId:"toolbar__more-actions-popover-target",onClick:vt},_.createElement(E,null)),content:function(){return yt},offset:g})},content:function(vt){return _.createElement(e$1.Menu,null,_.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},_.createElement(ut,{onClick:vt})),_.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},_.createElement(rt,{onClick:vt})),_.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},_.createElement(lt,null)),_.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},_.createElement(ht,{onClick:vt})),_.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},_.createElement(nt,{onClick:vt})),_.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},_.createElement(e$1.MenuDivider,null)),_.createElement(ot,{onClick:vt}),_.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},_.createElement(at,{onClick:vt})),_.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},_.createElement(st,{onClick:vt})),_.createElement(it,{onClick:vt}),_.createElement(e$1.MenuDivider,null),_.createElement(gt,{onClick:vt}),_.createElement(pt,{onClick:vt}),_.createElement(e$1.MenuDivider,null),_.createElement(mt,{mode:t$1.SelectionMode.Text,onClick:vt}),_.createElement(mt,{mode:t$1.SelectionMode.Hand,onClick:vt}),_.createElement(e$1.MenuDivider,null),_.createElement(dt,{mode:e$1.ScrollMode.Page,onClick:vt}),_.createElement(dt,{mode:e$1.ScrollMode.Vertical,onClick:vt}),_.createElement(dt,{mode:e$1.ScrollMode.Horizontal,onClick:vt}),_.createElement(dt,{mode:e$1.ScrollMode.Wrapped,onClick:vt}),_.createElement(e$1.MenuDivider,null),_.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},_.createElement(ct,{mode:e$1.ViewMode.SinglePage,onClick:vt})),_.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},_.createElement(ct,{mode:e$1.ViewMode.DualPage,onClick:vt})),_.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},_.createElement(ct,{mode:e$1.ViewMode.DualPageWithCover,onClick:vt})),_.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},_.createElement(e$1.MenuDivider,null)),_.createElement(ft,{onClick:vt}))},offset:g,closeOnClickOutside:!0,closeOnEscape:!0})},M=function(){return M=Object.assign||function($){for(var _e,et=1,tt=arguments.length;et + */lib$c.exports=toolbar_min;var libExports$1=lib$c.exports,e=libExports$h,t=reactExports,n=libExports$g,a=libExports$f,r=libExports$e,o=libExports$1;function l($){var _e=Object.create(null);return $&&Object.keys($).forEach(function(et){if(et!=="default"){var tt=Object.getOwnPropertyDescriptor($,et);Object.defineProperty(_e,et,tt.get?tt:{enumerable:!0,get:function(){return $[et]}})}}),_e.default=$,Object.freeze(_e)}var u=l(t),c=function(){return u.createElement(e.Icon,{size:16},u.createElement("path",{d:`M11.5,1.5h11c0.552,0,1,0.448,1,1v20c0,0.552-0.448,1-1,1h-21c-0.552,0-1-0.448-1-1v-20c0-0.552,0.448-1,1-1h3 + M11.5,10.5c0,0.55-0.3,0.661-0.659,0.248L8,7.5l-2.844,3.246c-0.363,0.414-0.659,0.3-0.659-0.247v-9c0-0.552,0.448-1,1-1h5 + c0.552,0,1,0.448,1,1L11.5,10.5z + M14.5,6.499h6 + M14.5,10.499h6 + M3.5,14.499h17 + M3.5,18.499h16.497`}))},i=function(){return i=Object.assign||function($){for(var _e,et=1,tt=arguments.length;et=0&&vt<=mt.length-1&&(tt.update("isCurrentTabOpened",!0),gt(vt))},ut=function(vt){lt(vt)};return u.useEffect(function(){return tt.subscribe("currentTab",ct),tt.subscribe("isCurrentTabOpened",ut),function(){tt.unsubscribe("currentTab",ct),tt.unsubscribe("isCurrentTabOpened",ut)}},[]),mt.length===0?u.createElement(u.Fragment,null):u.createElement(u.Fragment,null,u.createElement("div",{"data-testid":"default-layout__sidebar",className:e.classNames({"rpv-default-layout__sidebar":!0,"rpv-default-layout__sidebar--opened":at,"rpv-default-layout__sidebar--ltr":!ft,"rpv-default-layout__sidebar--rtl":ft}),ref:ot},u.createElement("div",{className:"rpv-default-layout__sidebar-tabs"},u.createElement("div",{className:"rpv-default-layout__sidebar-headers",role:"tablist","aria-orientation":"vertical"},mt.map(function(vt,bt){return u.createElement("div",{"aria-controls":"rpv-default-layout__sidebar-content","aria-selected":pt===bt,key:bt,className:"rpv-default-layout__sidebar-header",id:"rpv-default-layout__sidebar-tab-".concat(bt),role:"tab"},u.createElement(e.Tooltip,{ariaControlsSuffix:"default-layout-sidebar-tab-".concat(bt),position:ft?e.Position.LeftCenter:e.Position.RightCenter,target:u.createElement(e.MinimalButton,{ariaLabel:vt.title,isSelected:pt===bt,onClick:function(){return function(yt){if(pt===yt){tt.update("isCurrentTabOpened",!tt.get("isCurrentTabOpened"));var Et=ot.current;Et&&Et.style.width&&Et.style.removeProperty("width")}else tt.update("currentTab",yt)}(bt)}},vt.icon),content:function(){return vt.title},offset:ft?f:b}))})),u.createElement("div",{"aria-labelledby":"rpv-default-layout__sidebar-tab-".concat(pt),id:"rpv-default-layout__sidebar-content",className:e.classNames({"rpv-default-layout__sidebar-content":!0,"rpv-default-layout__sidebar-content--opened":at,"rpv-default-layout__sidebar-content--ltr":!ft,"rpv-default-layout__sidebar-content--rtl":ft}),role:"tabpanel",tabIndex:-1},mt[pt].content))),at&&u.createElement(e.Splitter,{constrain:function(vt){return vt.firstHalfPercentage>=20&&vt.firstHalfPercentage<=80}}))};defaultLayout_min.BookmarkIcon=c,defaultLayout_min.FileIcon=s,defaultLayout_min.ThumbnailIcon=d,defaultLayout_min.defaultLayoutPlugin=function($){var _e=u.useMemo(function(){return e.createStore({isCurrentTabOpened:!1,currentTab:0})},[]),et=n.attachmentPlugin(),tt=a.bookmarkPlugin(),nt=r.thumbnailPlugin($?$.thumbnailPlugin:{}),rt=o.toolbarPlugin($?$.toolbarPlugin:{}),ot=et.Attachments,it=tt.Bookmarks,st=nt.Thumbnails,at=rt.Toolbar,lt=$?$.sidebarTabs:function(pt){return pt},ht=[et,tt,nt,rt];return{attachmentPluginInstance:et,bookmarkPluginInstance:tt,thumbnailPluginInstance:nt,toolbarPluginInstance:rt,activateTab:function(pt){_e.update("currentTab",pt)},toggleTab:function(pt){var gt=_e.get("currentTab");_e.update("isCurrentTabOpened",!_e.get("isCurrentTabOpened")),gt!==pt&&_e.update("currentTab",pt)},install:function(pt){ht.forEach(function(gt){gt.install&>.install(pt)})},renderPageLayer:function(pt){return u.createElement(u.Fragment,null,ht.map(function(gt,ft){return gt.renderPageLayer?u.createElement(u.Fragment,{key:ft},gt.renderPageLayer(pt)):u.createElement(u.Fragment,{key:ft},u.createElement(u.Fragment,null))}))},renderViewer:function(pt){var gt=pt.slot;ht.forEach(function(dt){dt.renderViewer&&(gt=dt.renderViewer(i(i({},pt),{slot:gt})))});var ft=gt.subSlot&>.subSlot.attrs?{className:gt.subSlot.attrs.className,"data-testid":gt.subSlot.attrs["data-testid"],ref:gt.subSlot.attrs.ref,style:gt.subSlot.attrs.style}:{};return gt.children=u.createElement("div",{className:"rpv-default-layout__container"},u.createElement("div",{"data-testid":"default-layout__main",className:e.classNames({"rpv-default-layout__main":!0,"rpv-default-layout__main--rtl":pt.themeContext.direction===e.TextDirection.RightToLeft})},u.createElement(m,{attachmentTabContent:u.createElement(ot,null),bookmarkTabContent:u.createElement(it,null),store:_e,thumbnailTabContent:u.createElement(st,null),tabs:lt}),u.createElement("div",{className:"rpv-default-layout__body","data-testid":"default-layout__body"},u.createElement("div",{className:"rpv-default-layout__toolbar"},$&&$.renderToolbar?$.renderToolbar(at):u.createElement(at,null)),u.createElement("div",i({},ft),gt.subSlot.children))),gt.children),gt.subSlot.attrs={},gt.subSlot.children=u.createElement(u.Fragment,null),gt},uninstall:function(pt){ht.forEach(function(gt){gt.uninstall&>.uninstall(pt)})},onDocumentLoad:function(pt){ht.forEach(function(gt){gt.onDocumentLoad&>.onDocumentLoad(pt)}),$&&$.setInitialTab&&$.setInitialTab(pt.doc).then(function(gt){_e.update("currentTab",gt),_e.update("isCurrentTabOpened",!0)})},onAnnotationLayerRender:function(pt){ht.forEach(function(gt){gt.onAnnotationLayerRender&>.onAnnotationLayerRender(pt)})},onTextLayerRender:function(pt){ht.forEach(function(gt){gt.onTextLayerRender&>.onTextLayerRender(pt)})},onViewerStateChange:function(pt){var gt=pt;return ht.forEach(function(ft){ft.onViewerStateChange&&(gt=ft.onViewerStateChange(gt))}),gt}}},defaultLayout_min.setInitialTabFromPageMode=function($){return new Promise(function(_e,et){$.getPageMode().then(function(tt){if(tt)switch(tt){case e.PageMode.Attachments:_e(2);break;case e.PageMode.Bookmarks:_e(1);break;case e.PageMode.Thumbnails:_e(0);break;default:_e(-1)}else _e(-1)})})};/** + * A React component to view a PDF document + * + * @see https://react-pdf-viewer.dev + * @license https://react-pdf-viewer.dev/license + * @copyright 2019-2023 Nguyen Huu Phuoc + */lib$g.exports=defaultLayout_min;var libExports=lib$g.exports,Upgrade={},_interopRequireDefault$2=interopRequireDefaultExports;Object.defineProperty(Upgrade,"__esModule",{value:!0});var default_1$2=Upgrade.default=void 0,_createSvgIcon$2=_interopRequireDefault$2(requireCreateSvgIcon()),_jsxRuntime$2=jsxRuntimeExports;default_1$2=Upgrade.default=(0,_createSvgIcon$2.default)((0,_jsxRuntime$2.jsx)("path",{d:"M16 18v2H8v-2zM11 7.99V16h2V7.99h3L12 4 8 7.99z"}),"Upgrade");const ChatBox=()=>{const[$,_e]=reactExports.useState(""),[et,tt]=reactExports.useState([]),[nt,rt]=reactExports.useState(0),[ot,it]=reactExports.useState(null),[st,at]=reactExports.useState(null),[lt,ht]=reactExports.useState(null),[pt,gt]=reactExports.useState(!0),ft="User",dt=libExports.defaultLayoutPlugin();reactExports.useEffect(()=>{(async()=>{console.log("Testing the useEffect function in chat"),gt(!0);try{const xt=await axios.get(`${API_BASE_URL}/document_view`),St=`${API_BASE_URL}/document_view/pdf`;it(St),at(xt.data.meta_data),ht(xt.data.raw_text),console.log(xt)}catch(xt){console.error("Error fetching data:",xt)}finally{gt(!1)}})()},[]);const mt=async Et=>{console.log(Et);const xt=new FormData;xt.append("prompt",Et);try{const St=await axios.post(`${API_BASE_URL}/chat_bot`,xt);return console.log(St.data),St.data.Answer}catch(St){console.error("Error fetching AI response",St)}},ct=async()=>{if($.trim()==="")return;const Et={sender:ft,text:$,type:"user"},St={sender:"Contract negotiation AI",text:await mt($),type:"ai"};tt(kt=>[...kt,Et,St]),_e("")},ut=(Et,xt)=>{rt(xt)},[vt,bt]=reactExports.useState(!1),yt=()=>{bt(!vt)};return pt?jsxRuntimeExports.jsx(Box,{sx:{display:"flex",justifyContent:"center"},children:jsxRuntimeExports.jsx(CircularProgress,{sx:{color:"#f08030"}})}):jsxRuntimeExports.jsxs(Grid,{container:!0,spacing:3,style:{backgroundColor:"#f5f5f5"},children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:2,md:1.8,style:{position:"relative",zIndex:1},children:jsxRuntimeExports.jsx(Sidebar,{})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:10,md:4,style:{padding:"80px 40px 0 40px"},children:jsxRuntimeExports.jsxs(Paper,{elevation:3,style:{height:"808px",overflowY:"auto",padding:"20px",backgroundColor:"#fff",position:"relative"},children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",textAlign:"center"},children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",gutterBottom:!0,style:{fontWeight:"bold",color:"#f08030"},children:"Chat Box"}),jsxRuntimeExports.jsx(IconButton,{children:jsxRuntimeExports.jsx(default_1$2,{style:{cursor:"pointer",fontSize:"30px",color:"black"}})})]}),jsxRuntimeExports.jsxs(Typography,{style:{display:"flex",justifyContent:"start",padding:"10px 0",cursor:"pointer"},onClick:yt,children:["Recent",jsxRuntimeExports.jsx(default_1$3,{})]}),jsxRuntimeExports.jsxs(Collapse,{in:vt,children:[jsxRuntimeExports.jsxs(Typography,{variant:"span",style:{display:"inline-block",padding:"5px 8px",margin:"0px 8px 0px 0",backgroundColor:"#F582204D",borderRadius:"10px"},children:["Heading of the document"," "]}),jsxRuntimeExports.jsx(Typography,{variant:"span",style:{display:"inline-block",padding:"5px 8px",margin:"10px 8px 0px 0",backgroundColor:"#F582204D",borderRadius:"10px"},children:"Contract id"}),jsxRuntimeExports.jsxs(Typography,{variant:"span",style:{display:"inline-block",padding:"5px 8px",margin:"10px 8px 0px 0",backgroundColor:"#F582204D",borderRadius:"10px"},children:["Heading"," "]}),jsxRuntimeExports.jsxs(Typography,{variant:"span",style:{display:"inline-block",padding:"5px 8px",margin:"10px 8px 0px 0",backgroundColor:"#F582204D",borderRadius:"10px"},children:["Heading of the document"," "]})]}),jsxRuntimeExports.jsx(TextField,{fullWidth:!0,placeholder:"Enter Your Prompt",value:$,onChange:Et=>_e(Et.target.value),variant:"outlined",style:{margin:"20px 0"},onKeyDown:Et=>{Et.key==="Enter"&&ct()},InputProps:{endAdornment:jsxRuntimeExports.jsx(InputAdornment,{position:"end",children:jsxRuntimeExports.jsx(IconButton,{onClick:ct,edge:"end",children:jsxRuntimeExports.jsx(default_1$4,{style:{color:"#f08030"}})})})}}),jsxRuntimeExports.jsx(Box,{mb:2,style:{display:"flex",flexDirection:"column",gap:"10px"},children:et.map((Et,xt)=>jsxRuntimeExports.jsxs(Box,{style:{display:"flex",flexDirection:Et.type==="user"?"row-reverse":"row",marginBottom:"12px",alignItems:"flex-end",gap:"20px"},children:[jsxRuntimeExports.jsx(Avatar,{children:Et.sender[0]}),jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsx(Typography,{style:{fontWeight:"bold",marginBottom:"2px",textAlign:Et.type==="user"?"right":"left",color:"#f08030"},children:Et.sender}),jsxRuntimeExports.jsx(Typography,{style:{backgroundColor:Et.type==="user"?"#e0f7fa":"#f5f5f5",padding:"10px",borderRadius:"10px",maxWidth:"100%",textAlign:"left"},children:Et.text})]})]},xt))})]})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,md:6,style:{padding:"80px 40px 0 40px"},children:jsxRuntimeExports.jsxs(Paper,{elevation:3,style:{padding:"0px 5px",backgroundColor:"#fff"},children:[jsxRuntimeExports.jsxs(Tabs,{value:nt,onChange:ut,indicatorColor:"none",children:[jsxRuntimeExports.jsx(Tab,{label:"Doc View",sx:{fontWeight:"bolder","&.Mui-selected":{color:"#FF6600",backgroundColor:"transparent"}}}),jsxRuntimeExports.jsx(Tab,{label:"Raw View",sx:{fontWeight:"bolder","&.Mui-selected":{color:"#FF6600",backgroundColor:"transparent"}}}),jsxRuntimeExports.jsx(Tab,{label:"Meta Data",sx:{fontWeight:"bolder","&.Mui-selected":{color:"#FF6600",backgroundColor:"transparent"}}})]}),jsxRuntimeExports.jsxs(Box,{style:{height:"800px",overflowY:"auto"},children:[nt===0&&jsxRuntimeExports.jsx(Box,{style:{height:"800px",backgroundColor:"#f5f5f5",textAlign:"center"},children:ot?jsxRuntimeExports.jsx(libExports$h.Worker,{workerUrl:"https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js",children:jsxRuntimeExports.jsx("div",{style:{height:"100%",overflow:"hidden"},children:jsxRuntimeExports.jsx(libExports$h.Viewer,{fileUrl:ot,plugins:[dt]})})}):jsxRuntimeExports.jsx(Typography,{children:"No PDF available at the moment."})}),nt===1&&jsxRuntimeExports.jsx(Box,{style:{padding:"20px 60px",height:"700px",overflowY:"auto"},children:jsxRuntimeExports.jsx("div",{style:{whiteSpace:"pre-wrap",textAlign:"center"},dangerouslySetInnerHTML:{__html:lt||"No Raw Text Available"}})}),nt===2&&jsxRuntimeExports.jsx("div",{style:{padding:"20px 60px",textAlign:"center",textAlign:"center"},children:st?Object.keys(st).map((Et,xt)=>jsxRuntimeExports.jsxs(Typography,{children:[jsxRuntimeExports.jsxs("strong",{children:[" ",Et,":"]})," ",st[Et]]},xt)):jsxRuntimeExports.jsx(Typography,{children:"No Meta Data available."})})]})]})})]})};var KeyboardArrowLeftOutlined={},_interopRequireDefault$1=interopRequireDefaultExports;Object.defineProperty(KeyboardArrowLeftOutlined,"__esModule",{value:!0});var default_1$1=KeyboardArrowLeftOutlined.default=void 0,_createSvgIcon$1=_interopRequireDefault$1(requireCreateSvgIcon()),_jsxRuntime$1=jsxRuntimeExports;default_1$1=KeyboardArrowLeftOutlined.default=(0,_createSvgIcon$1.default)((0,_jsxRuntime$1.jsx)("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeftOutlined");var ReportProblem={},_interopRequireDefault=interopRequireDefaultExports;Object.defineProperty(ReportProblem,"__esModule",{value:!0});var default_1=ReportProblem.default=void 0,_createSvgIcon=_interopRequireDefault(requireCreateSvgIcon()),_jsxRuntime=jsxRuntimeExports;default_1=ReportProblem.default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"ReportProblem");const DocumentUpload=()=>{const[$,_e]=reactExports.useState([]),[et,tt]=reactExports.useState([]),[nt,rt]=reactExports.useState(null),[ot,it]=reactExports.useState([]),[st,at]=reactExports.useState(null),[lt,ht]=reactExports.useState(null),[pt,gt]=reactExports.useState(null),[ft,dt]=reactExports.useState(!1),[mt,ct]=reactExports.useState(!1),[ut,vt]=reactExports.useState(0),[bt,yt]=reactExports.useState(null),[Et,xt]=reactExports.useState(!1),[St,kt]=reactExports.useState(!1),At=useNavigate(),$t=(Ft,Yt)=>{Yt(Ft.target.files[0])},Tt=Ft=>{Ft(null)},jt=(Ft,Yt)=>{Ft.preventDefault();const Dt=Ft.dataTransfer.files[0];Yt(Dt),dt(!1),ct(!1)},Gt=(Ft,Yt)=>{Ft.preventDefault(),Yt(!0)},Bt=Ft=>{Ft(!1)};reactExports.useEffect(()=>{nt&&_e(Array(nt.length).fill(!1)),st&&tt(Array(st.length).fill(!1))},[nt,st]);const Kt=async()=>{if(lt&&pt){const Ft=new FormData;Ft.append("standardTermFile",lt),Ft.append("draftAgreementFile",pt);try{const Yt=await axios.post(`${API_BASE_URL}/Deviation_uploader`,Ft,{headers:{"Content-Type":"multipart/form-data"}});console.log("Upload successful",Yt.data),kt(!0);const Dt=await axios.get(`${API_BASE_URL}/Meta_data`),Rt=Object.entries(Dt.data.draft_meta_data).map(([Ot,zt])=>({name:Ot,value:zt?String(zt):"N/A"}));rt(Rt);const wt=await axios.get(`${API_BASE_URL}/Deviation`);it(wt.data.deviation_result);const Mt=await axios.get(`${API_BASE_URL}/report`);at(Mt.data.Result),xt(!0),kt(!1)}catch(Yt){console.error("Error during upload or fetching data:",Yt)}}else console.log("Both files must be selected before uploading.")},Vt=async()=>{try{const Ft=await axios.get(`${API_BASE_URL}/export`,{responseType:"blob"}),Yt=window.URL.createObjectURL(new Blob([Ft.data])),Dt=document.createElement("a");Dt.href=Yt,Dt.setAttribute("download","data.xlsx"),document.body.appendChild(Dt),Dt.click(),document.body.removeChild(Dt),window.URL.revokeObjectURL(Yt)}catch(Ft){console.error("Error exporting data",Ft)}},Wt=Ft=>{console.log(Ft);let Yt=ot.filter((Dt,Rt)=>Dt.deviation===Ft?Dt:null);console.log(Yt),yt(Yt),vt(2)},It=(Ft,Yt)=>{vt(Yt)};return jsxRuntimeExports.jsxs(Box,{sx:{padding:"15px",width:"1200px",margin:"0 auto"},children:[jsxRuntimeExports.jsx(IconButton,{onClick:()=>At(-1),children:jsxRuntimeExports.jsx(default_1$1,{sx:{color:"#f59e0b",fontSize:"35px"}})}),jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"50px",marginTop:"20px"},children:[jsxRuntimeExports.jsx(Card,{sx:{marginBottom:"20px",padding:"10px 30px",width:"500px"},children:jsxRuntimeExports.jsxs(CardContent,{children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",children:"Upload Standard Terms"}),jsxRuntimeExports.jsxs(Grid,{container:!0,alignItems:"center",spacing:2,sx:{marginTop:"10px"},children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:11,children:jsxRuntimeExports.jsxs(Box,{onDragOver:Ft=>Gt(Ft,dt),onDragLeave:()=>Bt(dt),onDrop:Ft=>jt(Ft,ht),sx:{border:lt?"2px dashed #f59e0b":"2px dashed grey",padding:"20px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:"#000",cursor:"pointer"},children:[jsxRuntimeExports.jsx("input",{type:"file",onChange:Ft=>$t(Ft,ht),style:{display:"none"},id:"standardTermFile"}),jsxRuntimeExports.jsx(default_1$b,{sx:{paddingRight:"10px",color:"#f59e0b",fontSize:"35px"}}),jsxRuntimeExports.jsx("label",{htmlFor:"standardTermFile",children:lt?lt.name:"Drag and drop file here or click to upload"})]})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:1,children:lt&&jsxRuntimeExports.jsx(IconButton,{onClick:()=>Tt(ht),children:jsxRuntimeExports.jsx(default_1$a,{})})})]})]})}),jsxRuntimeExports.jsx(Card,{sx:{marginBottom:"20px",padding:"10px 30px",width:"500px"},children:jsxRuntimeExports.jsxs(CardContent,{children:[jsxRuntimeExports.jsx(Typography,{variant:"h6",children:"Upload Draft Agreement"}),jsxRuntimeExports.jsxs(Grid,{container:!0,alignItems:"center",spacing:2,sx:{marginTop:"10px"},children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:11,children:jsxRuntimeExports.jsxs(Box,{onDragOver:Ft=>Gt(Ft,ct),onDragLeave:()=>Bt(ct),onDrop:Ft=>jt(Ft,gt),sx:{border:pt?"2px dashed #f59e0b":"2px dashed grey",padding:"20px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:"#000",cursor:"pointer"},children:[jsxRuntimeExports.jsx("input",{type:"file",onChange:Ft=>$t(Ft,gt),style:{display:"none"},id:"draftAgreementFile"}),jsxRuntimeExports.jsx(default_1$b,{sx:{paddingRight:"10px",color:"#f59e0b",fontSize:"35px"}}),jsxRuntimeExports.jsx("label",{htmlFor:"draftAgreementFile",children:pt?pt.name:"Drag and drop file here or click to upload"})]})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:1,children:pt&&jsxRuntimeExports.jsx(IconButton,{onClick:()=>Tt(gt),children:jsxRuntimeExports.jsx(default_1$a,{})})})]})]})})]}),jsxRuntimeExports.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:jsxRuntimeExports.jsx(Button,{variant:"contained",onClick:Kt,disabled:!lt||!pt,sx:{backgroundColor:"#f59e0b",color:"#fff","&:hover":{backgroundColor:"#d97706"},width:"100px",height:"40px"},children:"Submit"})}),ut!==null&&jsxRuntimeExports.jsxs(Paper,{sx:{marginTop:"20px",padding:"20px"},children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[jsxRuntimeExports.jsxs(Tabs,{value:ut,TabIndicatorProps:{style:{backgroundColor:"#FF6600"}},onChange:It,children:[jsxRuntimeExports.jsx(Tab,{label:"Report",sx:{fontWeight:"bolder",borderBottom:"none","&.Mui-selected":{color:"#FF6600",borderBottom:"none",backgroundColor:"transparent"}}}),jsxRuntimeExports.jsx(Tab,{label:"Meta Data (Draft Agreement)",disabled:!Et,sx:{color:"grey",fontWeight:"bolder",borderBottom:"none","&.Mui-selected":{color:"#FF6600",borderBottom:"none",backgroundColor:"transparent"}}}),jsxRuntimeExports.jsx(Tab,{label:"Deviation in Clause",disabled:!Et,onClick:()=>yt(ot),sx:{color:"grey",fontWeight:"bolder",borderBottom:"none","&.Mui-selected":{color:"#FF6600",borderBottom:"none",backgroundColor:"transparent"}}})]}),jsxRuntimeExports.jsx(Button,{variant:"contained",color:"success",disabled:!Et,onClick:Vt,style:{height:"40px",alignItems:"center"},children:"EXPORT"})]}),jsxRuntimeExports.jsxs(Box,{sx:{marginTop:"20px"},children:[ut===0&&jsxRuntimeExports.jsx(Box,{sx:{background:"linear-gradient(-15deg, #fbd38d, #f68b1f)",minHeight:"40vh",padding:"40px",display:"flex",justifyContent:"center",alignItems:"center"},children:jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsx(Typography,{variant:"h4",gutterBottom:!0,sx:{color:"#fff",textAlign:"center",fontWeight:"bold",marginBottom:"40px",fontFamily:"serif"},children:"Contract Review Report"}),St&&jsxRuntimeExports.jsx(Box,{sx:{display:"flex",justifyContent:"center",marginTop:"20px"},children:jsxRuntimeExports.jsx(CircularProgress,{sx:{color:"#fff"}})}),jsxRuntimeExports.jsx(Grid,{container:!0,spacing:4,justifyContent:"center",children:st==null?void 0:st.map((Ft,Yt)=>jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,sm:6,md:4,children:jsxRuntimeExports.jsx(Card,{sx:{backgroundColor:"#fff",borderRadius:"16px",boxShadow:"0px 10px 20px rgba(0, 0, 0, 0.2)",transition:"transform 0.3s ease","&:hover":{transform:"scale(1.05)"}},onClick:()=>Wt(Ft.category),children:jsxRuntimeExports.jsxs(CardContent,{sx:{textAlign:"center"},children:[Ft.category==="Need Review"?jsxRuntimeExports.jsx(default_1,{style:{fontSize:40,color:"#fbd38d"}}):Ft.category==="Matched"?jsxRuntimeExports.jsx(Done,{style:{fontSize:40,color:"#4CAF50"}}):Ft.category==="Missed Clause"?jsxRuntimeExports.jsx(ErrorOutline,{style:{fontSize:40,color:"red"}}):null,jsxRuntimeExports.jsx(Typography,{variant:"h5",sx:{marginTop:"10px",fontFamily:"serif"},children:Ft.category}),jsxRuntimeExports.jsx(Typography,{variant:"h4",sx:{color:"#3E4551",fontWeight:"bold",marginTop:"10px"},children:Ft.count})]})})},Yt))})]})}),ut===1&&jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(TableContainer,{component:Paper,sx:{width:"100%",margin:"0 auto",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)",transition:"box-shadow 0.3s ease","&:hover":{boxShadow:"0 8px 16px rgba(0, 0, 0, 0.2)"},height:"500px",overflowY:"auto"},children:jsxRuntimeExports.jsxs(Table,{size:"large","aria-label":"meta data table",children:[jsxRuntimeExports.jsx(TableHead,{children:jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{sx:{fontWeight:"bold",backgroundColor:"#f59e0b",color:"white",borderRight:"1px solid #d1d5db",position:"sticky",top:0,zIndex:1},children:"Meta Data"}),jsxRuntimeExports.jsx(TableCell,{sx:{fontWeight:"bold",backgroundColor:"#f59e0b",color:"white",position:"sticky",top:0,zIndex:1},children:"Meta Data Value"})]})}),jsxRuntimeExports.jsx(TableBody,{children:nt.map((Ft,Yt)=>jsxRuntimeExports.jsxs(TableRow,{sx:{transition:"background-color 0.3s ease","&:hover":{backgroundColor:"#f3f4f6"}},children:[jsxRuntimeExports.jsx(TableCell,{sx:{borderRight:"1px solid #d1d5db"},children:Ft.name}),jsxRuntimeExports.jsx(TableCell,{sx:{borderRight:"1px solid #d1d5db"},children:Ft.value||"None"})]},Yt))})]})})}),ut===2&&jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(TableContainer,{component:Paper,sx:{width:"100%",margin:"0 auto",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)",transition:"box-shadow 0.3s ease","&:hover":{boxShadow:"0 8px 16px rgba(0, 0, 0, 0.2)"},maxHeight:"500px",overflowY:"auto"},children:jsxRuntimeExports.jsxs(Table,{size:"large","aria-label":"meta data table",children:[jsxRuntimeExports.jsx(TableHead,{children:jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{sx:{fontWeight:"bold",backgroundColor:"#f59e0b",color:"white",borderRight:"1px solid #d1d5db",position:"sticky",top:0,zIndex:1},children:"Question"}),jsxRuntimeExports.jsx(TableCell,{sx:{fontWeight:"bold",backgroundColor:"#f59e0b",color:"white",borderRight:"1px solid #d1d5db",position:"sticky",top:0,zIndex:1},children:"Standard"}),jsxRuntimeExports.jsx(TableCell,{sx:{fontWeight:"bold",backgroundColor:"#f59e0b",color:"white",borderRight:"1px solid #d1d5db",position:"sticky",top:0,zIndex:1},children:"Draft"}),jsxRuntimeExports.jsx(TableCell,{sx:{fontWeight:"bold",backgroundColor:"#f59e0b",color:"white",borderRight:"1px solid #d1d5db",position:"sticky",top:0,zIndex:1},children:"Deviation"})]})}),jsxRuntimeExports.jsx(TableBody,{children:bt.map((Ft,Yt)=>jsxRuntimeExports.jsxs(TableRow,{sx:{transition:"background-color 0.3s ease","&:hover":{backgroundColor:"#f3f4f6"}},children:[jsxRuntimeExports.jsx(TableCell,{sx:{fontSize:"16px",borderRight:"1px solid #d1d5db"},children:Ft.question}),jsxRuntimeExports.jsx(TableCell,{sx:{fontSize:"16px",borderRight:"1px solid #d1d5db"},children:Ft.standard||"None"}),jsxRuntimeExports.jsx(TableCell,{sx:{fontSize:"16px",borderRight:"1px solid #d1d5db"},children:Ft.draft||"None"}),jsxRuntimeExports.jsx(TableCell,{sx:{fontSize:"16px",borderRight:"1px solid #d1d5db"},children:Ft.deviation||"-"})]},Yt))})]})})})]})]})]})},DemoDashboard=()=>{const[$,_e]=reactExports.useState(""),et=[{id:1,name:"DocumentFinalizationDeadline",value:"None"},{id:2,name:"LatePaymentCharge",value:"None"},{id:3,name:"EndOfProductLife",value:"If requested by the Buyer, the Supplier will supply past model year Service Parts."},{id:4,name:"WarrantyPeriod",value:"A Government Requirement may include specific warranty periods or terms."},{id:5,name:"ProductNonConformanceNoticePeriod",value:"The Buyer will inform the Supplier about the nonconformity as soon as practicable."},{id:6,name:"ProductReturnProcedure",value:""}],[tt,nt]=reactExports.useState(et),[rt,ot]=reactExports.useState(!1),it=useNavigate(),st=at=>{_e(at)};return jsxRuntimeExports.jsxs("div",{style:{textAlign:"center",padding:"20px",width:"100%"},children:[jsxRuntimeExports.jsx(IconButton,{onClick:()=>it(-1),sx:{display:"flex",justifyContent:"center"},children:jsxRuntimeExports.jsx(default_1$1,{sx:{color:"#f59e0b",fontSize:"35px"}})}),jsxRuntimeExports.jsx("h1",{style:{fontSize:"45px"},children:"Dashboard"}),jsxRuntimeExports.jsxs("div",{style:{marginBottom:"80px"},children:[jsxRuntimeExports.jsx(Button,{variant:"contained",onClick:()=>st("metaData"),sx:{fontSize:"18px",marginRight:"30px",padding:"10px 20px",backgroundColor:"#f59e0b","&:hover":{backgroundColor:"#d97706"},color:"white"},children:"Meta Data"}),jsxRuntimeExports.jsx(Button,{variant:"contained",onClick:()=>st("deviation"),sx:{fontSize:"18px",marginRight:"30px",padding:"10px 20px",backgroundColor:"#f59e0b","&:hover":{backgroundColor:"#d97706"},color:"white"},children:"Deviation in Clause"}),jsxRuntimeExports.jsx(Button,{variant:"contained",onClick:()=>st("report"),sx:{fontSize:"18px",padding:"10px 20px",backgroundColor:"#f59e0b","&:hover":{backgroundColor:"#d97706"},color:"white"},children:"Report"})]}),rt?jsxRuntimeExports.jsx(CircularProgress,{color:"warning"}):$==="metaData"&&tt.length>0?jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Typography,{style:{textAlign:"start",width:"80%",margin:"0 auto",marginBottom:"20px",fontSize:"30px"},children:"Draft Document Meta Data"}),jsxRuntimeExports.jsx(TableContainer,{component:Paper,sx:{width:"80%",margin:"0 auto",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)",transition:"box-shadow 0.3s ease","&:hover":{boxShadow:"0 8px 16px rgba(0, 0, 0, 0.2)"}},children:jsxRuntimeExports.jsxs(Table,{size:"large","aria-label":"meta data table",children:[jsxRuntimeExports.jsx(TableHead,{children:jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{sx:{fontWeight:"bold",backgroundColor:"#f59e0b",color:"white",borderRight:"1px solid #d1d5db"},children:"Meta Data"}),jsxRuntimeExports.jsx(TableCell,{sx:{fontWeight:"bold",backgroundColor:"#f59e0b",color:"white"},children:"Meta Data Value"})]})}),jsxRuntimeExports.jsx(TableBody,{children:tt.map(at=>jsxRuntimeExports.jsxs(TableRow,{sx:{transition:"background-color 0.3s ease","&:hover":{backgroundColor:"#f3f4f6"}},children:[jsxRuntimeExports.jsx(TableCell,{sx:{borderRight:"1px solid #d1d5db"},children:at.name}),jsxRuntimeExports.jsx(TableCell,{sx:{borderRight:"1px solid #d1d5db"},children:at.value||"None"})]},at.id))})]})})]}):$==="deviation"&&tt.length>0?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Typography,{style:{textAlign:"start",width:"80%",margin:"0 auto",marginBottom:"20px",fontSize:"30px"},children:"Standard and Draft Document Deviation"})}):jsxRuntimeExports.jsx("p",{})]})};function App(){return jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(Login,{})}),jsxRuntimeExports.jsx(Route,{path:"/signup",element:jsxRuntimeExports.jsx(Signup,{})}),jsxRuntimeExports.jsx(Route,{path:"/dashboard",element:jsxRuntimeExports.jsx(Dashboard,{})}),jsxRuntimeExports.jsx(Route,{path:"/document-ingestion",element:jsxRuntimeExports.jsx(DocumentIngestion,{})}),jsxRuntimeExports.jsx(Route,{path:"/workflow",element:jsxRuntimeExports.jsx(Workflow,{})}),jsxRuntimeExports.jsx(Route,{path:"/digital-library",element:jsxRuntimeExports.jsx(DigitalLibrary,{})}),jsxRuntimeExports.jsx(Route,{path:"/chat-box",element:jsxRuntimeExports.jsx(ChatBox,{})}),jsxRuntimeExports.jsx(Route,{path:"/upload-doc",element:jsxRuntimeExports.jsx(DocumentUpload,{})}),jsxRuntimeExports.jsx(Route,{path:"/demo-dashboard",element:jsxRuntimeExports.jsx(DemoDashboard,{})})]})}const root=client.createRoot(document.getElementById("root"));root.render(jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(App,{})})})); diff --git a/assets/jlogo-Dx61QuEK.jpg b/assets/jlogo-Dx61QuEK.jpg new file mode 100644 index 0000000..07f4cbd Binary files /dev/null and b/assets/jlogo-Dx61QuEK.jpg differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..2575366 --- /dev/null +++ b/index.html @@ -0,0 +1,15 @@ + + + + + + + + Vite + React + + + + +
+ + diff --git a/vite.svg b/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file