shipday-chat 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/shipday-chat.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see shipday-chat.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("ShipdayChat",[],t):"object"==typeof exports?exports.ShipdayChat=t():e.ShipdayChat=t()}(self,(function(){return function(){var e={9087:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".app-container {\n width: 250px;\n position: absolute;\n bottom: 0;\n right: 0;\n background: #eaeaea;\n height: 400px;\n text-align: center;\n}\n\n.app-container .header {\n background: orange;\n color: white;\n height: 40px;\n margin: auto;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.hide {\n display: none;\n}\n",""]),t.Z=a},7911:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".chat-image-preview {\n max-height: 350px;\n min-width: 100px;\n max-width: 280px;\n object-fit: contain;\n border-radius: 5px;\n overflow: hidden;\n cursor: pointer;\n}\n\n.chat-image-preview img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n.chat-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.85);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 9999;\n opacity: 1;\n transition: opacity 0.3s ease;\n}\n\n.chat-modal-content {\n position: relative;\n max-width: 90%;\n max-height: 90%;\n overflow: hidden;\n text-align: center;\n}\n\n.chat-modal-image {\n max-width: 100%;\n max-height: 100%;\n min-height: 100px;\n min-width: 100px;\n object-fit: contain;\n animation: chat-img-zoom-in;\n animation-duration: 0.3s;\n}\n\n.chat-modal-close-btn {\n position: absolute;\n top: 20px;\n right: 20px;\n width: 30px;\n height: 30px;\n background-color: rgba(255, 255, 255, 0.8);\n border: none;\n border-radius: 50%;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n font-weight: bold;\n font-size: 18px;\n transition: transform 0.3s ease;\n}\n\n.chat-modal-overlay.open {\n opacity: 1;\n}\n\n@keyframes chat-img-zoom-in {\n from {transform: scale(0.1)}\n to {transform: scale(1)}\n}",""]),t.Z=a},9834:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,'.shipday-chat-wrapper {\n --sd-base-green-400: rgb(92, 211, 171);\n --sd-primary-500: #2EB487;\n --sd-primary-100: #17C289;\n --sd-neutral-100: #ffffff;\n --sd-neutral-200: #F7F9FA;\n --sd-neutral-300: #EFEFEF;\n --sd-neutral-400: #D3D3D3;\n --sd-neutral-500: #7C7C7C;\n --sd-neutral-600: #4A4A4A;\n --sd-neutral-700: #242424;\n --sd-neutral-800: #101010;\n --chat-hover-grey: #e6e9eb;\n --chat-active-green: #1DF425;\n --chat-inactive-grey: #D9D4D4;\n --chat-date-grey: #8E8E93;\n}\n\n[data-theme="dark"] .shipday-chat-wrapper {\n --sd-primary-500: #2EB487;\n --sd-neutral-100: #141414;\n --sd-neutral-200: #1f1f1f;\n --sd-neutral-300: #303030;\n --sd-base-gray-400: #d5d5d5;\n --sd-neutral-450: #969696;\n --sd-neutral-500: #D3D3D3;\n --sd-neutral-700: #D6D6D6;\n --sd-neutral-800: #D6D6D6;\n --sd-primary-100: #32C896;\n --chat-hover-grey: #2f2f2f;\n --chat-active-green: #1DF425;\n --chat-inactive-grey: #D9D4D4;\n --chat-date-grey: #8E8E93;\n}\n\n@supports (not (-webkit-scrollbar: none)) {\n /* For Firefox */\n .chat-content {\n scrollbar-width: thin;\n scrollbar-color: var(--sd-neutral-400) var(--sd-neutral-200);\n }\n\n /* For Internet Explorer and Microsoft Edge */\n .chat-content {\n -ms-overflow-style: scrollbar;\n }\n}\n\n.chat-init-btn {\n position: absolute;\n height: 30px;\n width: 30px;\n bottom: calc(min(20px, 5vh));\n right: calc(min(20px, 5vw));\n /* Primary / 100 */\n background: var(--sd-primary-100);\n box-shadow: 0px 15px 80px rgba(0, 0, 0, 0.13), 0px 6.26664px 33.4221px rgba(0, 0, 0, 0.0934511), 0px 3.35045px 17.869px rgba(0, 0, 0, 0.0774939), 0px 1.87823px 10.0172px rgba(0, 0, 0, 0.065), 0px 0.997515px 5.32008px rgba(0, 0, 0, 0.0525061), 0px 0.415088px 2.21381px rgba(0, 0, 0, 0.0365489);\n border-radius: 40px;\n padding: 14px;\n display: flex;\n align-items: center;\n text-align: center;\n letter-spacing: 0.01em;\n justify-content: center;\n cursor: pointer;\n}\n\n#chat-minimize-icon {\n padding-top: 2px;\n}\n\n.chat-notification-banner {\n height: 18px;\n width: 18px;\n border: 2px solid #ffffff;\n color: #ffffff;\n background: #EF5458;\n border-radius: 50%;\n position: fixed;\n bottom: 60px;\n right: 18px;\n font-weight: 600;\n font-size: 10px;\n line-height: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n letter-spacing: 0.01em;\n}\n\n.chat-body-wrapper {\n flex-direction: column;\n position: absolute;\n bottom: 100px;\n opacity: 1;\n right: calc(min(20px, 5vw));\n width: 20vw;\n min-width: 400px;\n max-width: 500px;\n max-height: calc(100vh - 160px);\n height: 583px;\n z-index: 999;\n border-radius: 13px;\n border: 1px solid var(--sd-neutral-300);\n /* border: 1px solid var(--sd-neutral-300); */\n background: var(--sd-neutral-100);\n box-shadow: 0px 54px 80px rgba(0, 0, 0, 0.02), 0px 22.5599px 33.4221px rgba(0, 0, 0, 0.0143771), 0px 12.0616px 17.869px rgba(0, 0, 0, 0.0119221), 0px 6.76164px 10.0172px rgba(0, 0, 0, 0.01), 0px 3.59106px 5.32008px rgba(0, 0, 0, 0.00807786), 0px 1.49432px 2.21381px rgba(0, 0, 0, 0.00562291);\n transition: width 100ms ease 0s, height 100ms ease 0s, max-height 100ms ease 0s, transform 150ms cubic-bezier(0, 1.2, 1, 1) 0s, opacity 50ms ease-out 0s;\n transform-origin: right bottom;\n transform: scale(0);\n}\n\n.chat-full-scale {\n transform: scale(1);\n}\n\n@media screen and (max-width: 575px) {\n .customer-chat.chat-body-wrapper {\n max-width: 100vw;\n max-height: 100vh;\n min-width: 100vw;\n min-height: 100vh;\n width: 100vw;\n height: 100vh;\n top: 0;\n right: 0;\n bottom: 0;\n border-radius: 0;\n transform: scale(1);\n }\n\n .customer-chat .chat-content {\n height: calc(100vh - 67px) !important;\n }\n\n .customer-chat .chat-msgs-list {\n height: 100% !important;\n }\n}\n\n.chat-header {\n display: flex;\n flex-direction: column;\n height: 70px;\n}\n\n.chat-header-long {\n height: 132px !important;\n}\n\n.chat-header-short {\n height: 70px !important;\n}\n\n.chat-header-title {\n height: 100%;\n padding: 10px 12px;\n text-align: center;\n font-size: 18px;\n line-height: 24px;\n /* var(--sd-neutal-800) */\n color: var(--sd-neutral-800);\n /* var(--sd-neutral-200) */\n background: var(--sd-neutral-200);\n /* var(--sd-neutral-300); */\n border-bottom: 1px solid var(--sd-neutral-300);\n border-radius: 14px 14px 0px 0px;\n}\n\n.chat-header-title {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.chat-header-title span {\n text-align: center;\n flex: 1;\n padding-left: 43px;\n}\n\n.chat-new-room-title span {\n text-align: center;\n flex: 1;\n padding-left: 0;\n margin-left: -32px;\n}\n\n.chat-header-new-btn {\n margin-left: 10px;\n /*!* Neutral/100 *!*/\n /*background: var(--sd-neutral-100);*/\n /*!* Neutral/300 *!*/\n /*border: 1px solid var(--sd-neutral-300);*/\n border-radius: 4px;\n padding: 13px 14px;\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n align-items: center;\n cursor: pointer;\n}\n\n.non-visible {\n opacity: 0;\n pointer-events: none;\n}\n\n.chat-header-types-wrapper {\n padding: 10px 16px;\n /* var(--sd-neutral-300); */\n border-bottom: 1px solid var(--sd-neutral-300);\n height: 63px;\n}\n\n.chat-header-types {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: 3px;\n border-radius: 10px;\n /* var(--sd-neutral-300); */\n /* var(--sd-neutral-200) */\n background: var(--sd-neutral-200);\n gap: 3px;\n}\n\n.chat-single-type-btn {\n font-size: 14px;\n width: 100%;\n font-weight: 500;\n /* var(--sd-neutal-500) */\n color: var(--sd-neutral-500);\n align-items: center;\n text-align: center;\n border-radius: 8px;\n padding: 8px;\n cursor: pointer;\n display: flex;\n justify-content: center;\n position: relative;\n}\n\n.chat-type-unseen-count {\n position: absolute;\n right: 5px;\n color: var(--sd-neutral-600);\n background: var(--sd-neutral-400);\n border-radius: 50%;\n min-width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.chat-type-selected {\n background: var(--sd-neutral-100);\n color: var(--sd-neutral-800);\n}\n\n[data-theme="dark"] .chat-type-selected {\n border: 1px solid var(--sd-neutral-800);\n}\n\n.chat-single-type-btn:not(.chat-type-selected):hover {\n background-color: var(--chat-hover-grey);\n border-radius: 8px;\n}\n\n.chat-header-return-btn {\n cursor: pointer;\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 13px 18px 13px 5px;\n z-index: 2;\n /* Neutral/100 */\n /*background: var(--sd-neutral-100);*/\n /* Neutral/300 */\n /*border: 1px solid var(--sd-neutral-300);*/\n /*border-radius: 4px;*/\n}\n\n.chat-header-sender-preview {\n display: flex;\n align-items: center;\n gap: 2px;\n padding: 13px;\n /* var(--sd-neutral-300); */\n border-bottom: 1px solid var(--sd-neutral-300);\n background: var(--sd-neutral-200);\n border-radius: 14px 14px 0px 0px;\n}\n\n.chat-header-sender-details {\n display: flex;\n}\n\n.chat-content {\n height: 512px;\n max-height: calc(100% - 70px);\n overflow: hidden;\n border-radius: 0 0 12px 12px;\n}\n\n.chat-content-short {\n height: 450px !important;\n max-height: calc(100% - 132px);\n}\n\n.chat-list {\n overflow: auto;\n height: 100%;\n animation: slideInLeft 0.3s ease forwards;\n}\n\n.chat-list-team {\n animation: slideInLeft 0.3s ease forwards;\n}\n\n.chat-list-customer {\n animation: slideIn 0.3s ease forwards;\n}\n\n.chat-single-thread {\n padding: 12px 16px;\n display: flex;\n flex-direction: row;\n position: relative;\n}\n\n.chat-single-thread:hover {\n background-color: var(--sd-neutral-200);\n cursor: pointer;\n}\n\n.chat-single-thread:before {\n content: "";\n position: absolute;\n left: 68px;\n bottom: 0;\n height: 1px;\n width: calc(100% - 68px); /* or 100px */\n border-bottom: 1px solid var(--sd-neutral-300);\n}\n\n.chat-sender-img {\n display: flex;\n position: relative;\n height: 40px;\n}\n\n.chat-sender-img img {\n height: 40px;\n width: 40px;\n object-fit: cover;\n border-radius: 50%;\n}\n\n.chat-sender-img-sm, .chat-sender-img-sm img, .chat-sender-img-sm .custom-user-img {\n height: 36px !important;\n width: 36px !important;\n}\n\n.chat-sender-img-container {\n width: 36px;\n}\n\n.chat-active-identity {\n position: absolute;\n bottom: 0;\n right: 0;\n width: 11px;\n height: 11px;\n border: 1px solid var(--sd-neutral-100);\n border-radius: 50%;\n}\n\n.chat-active {\n background: var(--chat-active-green);\n}\n\n.chat-inactive {\n background: var(--chat-inactive-grey);;\n}\n\n.chat-header-details {\n display: flex;\n padding-left: 8px;\n align-items: center;\n}\n\n.chat-details {\n display: flex;\n flex-direction: column;\n padding: 0 8px 0 12px;\n /*neutral 500*/\n color: var(--sd-neutral-500);\n width: 100%;\n line-height: 18px;\n}\n\n.chat-sender-details {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n font-size: 14px;\n height: 20px;\n flex: none;\n order: 0;\n align-self: stretch;\n flex-grow: 0;\n}\n\n.chat-sender-name, .single-connected-user-name {\n font-weight: 500;\n /* neutral 800 */\n color: var(--sd-neutral-800);\n font-size: 14px;\n line-height: 16px;\n max-width: 200px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.chat-sender-name-bold {\n font-weight: 600;\n font-size: 16px;\n line-height: 20px;\n}\n\n.chat-sent-time-preview {\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n /* or 133% */\n\n display: flex;\n align-items: center;\n text-align: right;\n letter-spacing: 0.02em;\n /* Neutral/500 */\n\n color: var(--sd-neutral-500);\n}\n\n.chat-sent-time-preview.bolder-text {\n color: var(--sd-neutral-700);\n}\n\n.chat-sent-time {\n font-weight: 400;\n font-size: 11px;\n line-height: 14px;\n color: var(--sd-neutral-100);\n padding-top: 2px;\n}\n\n.chat-single-received .chat-sent-time {\n /* Neutral/500 */\n color: var(--sd-neutral-500);\n}\n\n.chat-text-preview {\n font-weight: 400;\n font-size: 14px;\n line-height: 18px;\n /* identical to box height, or 129% */\n\n display: flex;\n align-items: center;\n letter-spacing: 0.02em;\n\n /* Neutral/500 */\n\n color: var(--sd-neutral-500);\n}\n\n.chat-view-all-btn {\n display: flex;\n align-items: center;\n}\n\n.chat-controllers {\n display: flex;\n justify-content: space-between;\n padding: 14px 63px 18px;\n gap: 32px;\n /* neutral 500 */\n color: var(--sd-neutral-500);\n border-top: 1px solid var(--sd-neutral-300);\n}\n\n.chat-controller-single {\n cursor: pointer;\n align-items: center;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.chat-controller-selected {\n /* var(--sd-neutal-800) */\n color: var(--sd-neutral-800);\n}\n\n.chat-msgs {\n display: flex;\n flex-direction: column;\n /*width: 100%;*/\n padding: 0 8px;\n overflow: hidden;\n height: calc(100% - 64px);\n animation: slideIn 0.3s ease forwards;\n}\n\n.chat-msgs-list {\n display: flex;\n flex-direction: column;\n height: 450px;\n overflow: auto;\n overflow-x: hidden;\n}\n\n.empty-msgs-list {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n color: var(--sd-neutral-400);\n text-align: center;\n}\n\n.chat-connected-users-list {\n overflow: auto;\n height: 100%;\n position: relative;\n animation: slideIn 0.3s ease-in-out;\n}\n\n.chat-single-wrapper {\n display: flex;\n align-items: flex-end;\n gap: 12px;\n margin-bottom: 8px;\n width: 99%;\n}\n\n.chat-single-wrapper:first-child {\n margin-top: 5px;\n}\n\n.chat-single-sent {\n margin-left: auto;\n}\n\n.chat-single-received {\n margin-right: auto;\n}\n\n.chat-date-span {\n text-align: center;\n margin: 10px 0;\n font-size: 12px;\n color: var(--chat-date-grey);\n text-transform: uppercase;\n letter-spacing: 0.5px;\n font-weight: bold;\n}\n\n.chat-single-container {\n width: fit-content;\n padding: 10px;\n position: relative;\n background: var(--sd-neutral-200);\n /*box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);*/\n border-radius: 10px;\n}\n\n.chat-single-container.chat-single-sent {\n margin-left: auto;\n color: var(--sd-neutral-100);\n background: var(--sd-primary-100);\n /*box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);*/\n border-radius: 10px;\n}\n\n.chat-single-container.chat-single-received {\n margin-right: auto;\n}\n\n.chat-msg-status-container {\n display: flex;\n justify-content: end;\n clear: both;\n gap: 5px;\n margin-right: 0;\n align-items: center;\n}\n\n.chat-inline-phone {\n color: inherit !important;\n}\n\n.chat-inline-link {\n color: inherit !important;\n text-decoration: underline !important;\n}\n\n.justify-start {\n justify-content: start !important;\n}\n\n.chat-delivery-state {\n display: block;\n font-size: 11px;\n color: var(--sd-neutral-100);\n margin-top: 2px;\n}\n\n.chat-msg-content {\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n color: var(--sd-neutral-700);\n}\n\n.chat-single-sent .chat-msg-content {\n color: var(--sd-neutral-100);\n}\n\n\n.chat-input-form {\n display: flex;\n align-items: center;\n padding: 12px 8px;\n border-top: 1px solid var(--sd-neutral-300);\n}\n\n.chat-input-group {\n display: flex;\n flex: 1;\n margin: 0;\n gap: 8px;\n}\n\n.input-group-prepend, .input-group-append {\n display: flex;\n}\n\n.input-group-text {\n font-size: 24px;\n color: var(--sd-neutral-500);\n background-color: transparent;\n border: none;\n}\n\n.input-add-doc-btn {\n font-style: normal;\n font-weight: 400;\n font-size: 18px;\n line-height: 16px;\n /* identical to box height, or 89% */\n\n /*display: flex;*/\n align-items: center;\n text-align: center;\n letter-spacing: 0.01em;\n\n /* Neutral/500 */\n\n color: var(--sd-neutral-500);\n cursor: pointer;\n display: none;\n}\n\n.chat-text-input {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 6px 8px;\n gap: 8px;\n /* Neutral/200 */\n\n background: var(--sd-neutral-200);\n /* Neutral/300 */\n\n border: 1px solid var(--sd-neutral-300);\n border-radius: 8px;\n\n /* Inside auto layout */\n\n flex: none;\n order: 0;\n flex-grow: 1;\n\n font-size: 17px;\n line-height: 24px;\n color: var(--sd-neutral-800);\n}\n\n.chat-text-input::placeholder {\n padding-top:2px;\n font-size: 15px;\n color: var(--sd-neutral-400);\n}\n\n.btn-primary {\n border-radius: 15px;\n}\n\n.chat-submit-btn {\n background: var(--sd-primary-100);\n border-radius: 8px;\n cursor: pointer;\n\n /* Inside auto layout */\n flex: none;\n order: 1;\n flex-grow: 0;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n padding: 10px;\n color: var(--sd-neutral-100);\n border: none;\n}\n\n.chat-single-container {\n max-width: 255px;\n word-wrap: break-word;\n line-height: 24px;\n position: relative;\n padding: 10px 20px;\n margin: 0 5px 2px;\n}\n\n.chat-single-sent {\n align-self: flex-end;\n}\n\n.chat-single-sent:before {\n content: "";\n position: absolute;\n bottom: 0;\n right: -7px;\n height: 25px;\n width: 20px;\n background: var(--sd-primary-100);\n border-bottom-left-radius: 16px 14px;\n}\n\n.chat-single-sent:after {\n content: "";\n position: absolute;\n bottom: 0;\n right: -10px;\n height: 25px;\n width: 10px;\n background-color: var(--sd-neutral-100);\n border-bottom-left-radius: 10px;\n}\n\n.chat-single-received {\n align-self: flex-start;\n}\n\n.chat-single-received:before {\n content: "";\n position: absolute;\n bottom: 0;\n left: -7px;\n height: 25px;\n width: 20px;\n background: var(--sd-neutral-200);\n border-bottom-right-radius: 16px;\n /*box-shadow: -1px 1px 0 0 rgba(0, 0, 0, 0.1);*/\n}\n\n.chat-single-received:after {\n content: "";\n position: absolute;\n bottom: 0;\n left: -10px;\n height: 25px;\n width: 10px;\n background-color: var(--sd-neutral-100);\n border-bottom-right-radius: 10px;\n}\n\n.custom-user-img {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n background-color: var(--sd-primary-100);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--sd-neutral-100);\n font-weight: bold;\n font-size: 18px;\n}\n\n.bolder-text {\n font-weight: 600;\n}\n\n[data-theme="dark"] .bolder-text {\n font-weight: 700;\n color: white;\n}\n\n.chat-unseen-count {\n font-size: 12px;\n padding: 2px 3px 3px;\n background-color: var(--sd-primary-100);\n border-radius: 50%;\n height: 20px;\n width: 20px;\n text-align: center;\n color: var(--sd-neutral-100);\n opacity: 0.75;\n margin-right: 5px;\n position: absolute;\n right: 20px;\n}\n\n.chat-connected-user-search-wrapper {\n display: flex;\n gap: 5px;\n padding: 10px 20px;\n border-bottom: 1px solid var(--sd-neutral-300);\n font-size: 16px;\n position: sticky;\n top: 0;\n background-color: var(--sd-neutral-100);\n z-index: 5;\n}\n\n.chat-connected-user-search-wrapper span{\n color: var(--sd-neutral-800);\n}\n\n.chat-connected-user-search-wrapper input {\n border: none;\n user-focus: none;\n font-size: 15px;\n color: var(--sd-neutral-700);\n width: 100%;\n background: var(--sd-neutral-100);\n}\n\n.shipday-chat-wrapper input:focus, .shipday-chat-wrapper input:focus-visible {\n outline: none;\n}\n\n.single-connected-user {\n display: flex;\n gap: 12px;\n align-items: center;\n padding: 10px 20px;\n cursor: pointer;\n position: relative;\n}\n\n.single-connected-user:hover {\n background-color: var(--sd-neutral-200);\n}\n\n.single-connected-user:before {\n content: "";\n position: absolute;\n left: 68px;\n bottom: 0;\n height: 1px;\n width: calc(100% - 68px); /* or 100px */\n border-bottom: 1px solid var(--sd-neutral-300);\n}\n\n.chat-no-connections-found {\n font-size: 14px;\n color: var(--sd-neutral-500);\n text-align: center;\n padding-top: 30px;\n}\n\n.no-padding {\n padding: 0 !important;\n}\n\n.pe-1 {\n padding-right: 30px !important;\n}\n\n\n/*-----------*/\n\n.chat-banner-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 80px;\n height: 100%;\n background: radial-gradient(130.60% 118.53% at -1.50% -2.00%, #17C289 0%, rgba(23, 194, 137, 0.00) 100%), #FFF;\n}\n\n.chat-circle-images {\n position: relative;\n margin-bottom: 20px;\n}\n\n.chat-circle-image {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n margin: 0 5px;\n}\n\n.chat-circle-image:nth-child(2) {\n margin-left: -15px;\n}\n\n.chat-banner-text {\n text-align: left;\n margin-bottom: 24px;\n color: var(--sd-neutral-600);\n font-size: 32px;\n line-height: 32px;\n font-weight: 600;\n width: calc(100% - 40px);\n}\n\n.chat-sub-text {\n margin-top: 8px;\n color: var(--sd-neutral-800);\n font-size: 32px;\n line-height: 32px;\n font-weight: 600;\n}\n\n.chat-rounded-div {\n background-color: #ffffff;\n display: flex;\n align-items: center;\n cursor: pointer;\n width: calc(100% - 40px);\n border-radius: 12px;\n border: 1px solid var(--sd-neutral-300, #EFEFEF);\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.01), 0 2px 3px 0 rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.03);\n animation: fadeIn 0.3s ease-in-out;\n}\n\n.chat-rounded-div .chat-list {\n width: 100%;\n animation: none;\n}\n\n.chat-rounded-div .chat-single-thread {\n padding: 16px;\n}\n\n.chat-rounded-div .chat-single-thread:hover{\n border-radius: 10px;\n}\n\n.chat-rounded-div .chat-list .chat-single-thread:before {\n display: none;\n}\n\n.chat-rounded-div .chat-list .chat-single-thread:not(:last-child) {\n border-bottom: 1px solid var(--sd-neutral-300);\n}\n\n.chat-rounded-div .chat-list .chat-single-thread .chat-sender-details {\n display: none !important;\n}\n\n.chat-rounded-div .chat-list .chat-single-thread .chat-details {\n justify-content: center;\n}\n\n.chat-rounded-div .chat-list .chat-single-thread .chat-details .chat-text-preview {\n font-size: 16px;\n color: var(--sd-neutral-800);\n line-height: 16px;\n font-weight: 500;\n height: 16px;\n}\n\n.chat-rounded-div .chat-list .chat-single-thread .chat-active-identity {\n display: none;\n}\n /*.chat-rounded-div .chat-list .chat-single-thread .chat-view-all-btn path{*/\n/* fill: var(--sd-neutral-500);*/\n/*}*/\n\n.chat-inner-div {\n display: flex;\n justify-content: center;\n flex-direction: column;\n text-align: start;\n gap: 5px;\n}\n\n.chat-inner-div > div:nth-child(1) {\n color: var(--sd-neutral-800);\n font-weight: 600;\n font-size: 14px;\n line-height: 15px;\n}\n\n.chat-inner-div > div:nth-child(2) {\n color: var(--sd-neutral-400);\n font-size: 14px;\n line-height: 15px;\n font-weight: normal;\n}\n\n\n.chat-send-message {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.chat-send-icon {\n height: 16px;\n width: 17px;\n margin-left: 10px;\n align-items: center;\n padding: 10px;\n border-radius: 5px;\n background-color: #5CD3AB3C;\n border: var(--sd-neutral-300) 1px solid;\n}\n\n.chat-single-animate {\n animation: slideIn 0.3s ease forwards;\n}\n\n@keyframes slideIn {\n 0% {\n opacity: 0;\n transform: translateX(30%);\n }\n 100% {\n opacity: 1;\n transform: translateX(0);\n }\n}\n\n.chat-single-animate-other {\n animation: slideInLeft 0.3s ease forwards;\n}\n\n@keyframes slideInLeft {\n 0% {\n opacity: 0;\n transform: translateX(-30%);\n }\n 100% {\n opacity: 1;\n transform: translateX(0);\n }\n}\n\n@keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n',""]),t.Z=a},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var u=this[l][0];null!=u&&(a[u]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&a[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},8081:function(e){"use strict";e.exports=function(e){return e[1]}},9960:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},284:function(e){var t=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return t()}try{return __global__||t()}finally{delete Object.prototype.__global__}}()},8679:function(e,t,n){"use strict";var r=n(1296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var l=u(t),m=u(n),y=0;y<a.length;++y){var v=a[y];if(!(i[v]||r&&r[v]||m&&m[v]||l&&l[v])){var g=d(n,v);try{s(t,v,g)}catch(e){}}}}return t}},6103:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case s:case d:case y:case m:case u:return e;default:return t}}case o:return t}}}function S(e){return x(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=s,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||x(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===s},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===y},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===l},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===u||e.$$typeof===s||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},1296:function(e,t,n){"use strict";e.exports=n(6103)},885:function(e,t){t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},8276:function(e){var t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/,i=/<head[^]*>/i,a=/<body[^]*>/i,l=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},s="object"==typeof window&&window.DOMParser;if("function"==typeof s){var c=new s;l=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),c.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var f=document.implementation.createHTMLDocument();l=function(e,t){return t?(f.documentElement.querySelector(t).innerHTML=e,f):(f.documentElement.innerHTML=e,f)}}var d,p="object"==typeof document?document.createElement("template"):{};p.content&&(d=function(e){return p.innerHTML=e,p.content.childNodes}),e.exports=function(e){var s,c,f,p,h=e.match(o);switch(h&&h[1]&&(s=h[1].toLowerCase()),s){case t:return c=u(e),i.test(e)||(f=c.querySelector(n))&&f.parentNode.removeChild(f),a.test(e)||(f=c.querySelector(r))&&f.parentNode.removeChild(f),c.querySelectorAll(t);case n:case r:return p=(c=l(e)).querySelectorAll(s),a.test(e)&&i.test(e)?p[0].parentNode.childNodes:p;default:return d?d(e):(f=l(e,r).querySelector(r)).childNodes}}},4152:function(e,t,n){var r=n(8276),o=n(1507).formatDOM,i=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(i);return n&&n[1]&&(t=n[1]),o(r(e),null,t)}},1507:function(e,t,n){for(var r,o=n(4584),i=n(885).CASE_SENSITIVE_TAG_NAMES,a=o.Comment,l=o.Element,u=o.ProcessingInstruction,s=o.Text,c={},f=0,d=i.length;f<d;f++)r=i[f],c[r.toLowerCase()]=r;function p(e){for(var t,n={},r=0,o=e.length;r<o;r++)n[(t=e[r]).name]=t.value;return n}function h(e){return function(e){return c[e]}(e=e.toLowerCase())||e}t.formatAttributes=p,t.formatDOM=function e(t,n,r){n=n||null;for(var o,i=[],c=0,f=t.length;c<f;c++){var d,m=t[c];switch(m.nodeType){case 1:o=h(m.nodeName),(d=new l(o,p(m.attributes))).children=e("template"===o?m.content.childNodes:m.childNodes,d);break;case 3:d=new s(m.nodeValue);break;case 8:d=new a(m.nodeValue);break;default:continue}var y=i[c-1]||null;y&&(y.next=d),d.parent=n,d.prev=y,d.next=null,i.push(d)}return r&&((d=new u(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=i[0]||null,d.parent=n,i.unshift(d),i[1]&&(i[1].prev=i[0])),i}},4584:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(9960),a=n(1642);o(n(1642),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=u,t.default=u},1642:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n(9960),l=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),S(this,e)},e}();t.Node=l;var u=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=u;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(u);t.Text=s;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(u);t.Comment=c;var f=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=a.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(u);t.ProcessingInstruction=f;var d=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=d;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(d);t.CDATA=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(d);t.Document=h;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(d);function y(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function g(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function x(e){return e.type===a.ElementType.Root}function S(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new s(e.data);else if(b(e))n=new c(e.data);else if(y(e)){var r=t?E(e.children):[],o=new m(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(v(e)){r=t?E(e.children):[];var a=new p(r);r.forEach((function(e){return e.parent=a})),n=a}else if(x(e)){r=t?E(e.children):[];var l=new h(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var u=new f(e.name,e.data);null!=e["x-name"]&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),n=u}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function E(e){for(var t=e.map((function(e){return S(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=y,t.isCDATA=v,t.isText=g,t.isComment=b,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=S},488:function(e,t,n){var r=n(7384),o=n(4152),i=n(484),a=n(3670);o="function"==typeof o.default?o.default:o;var l={lowerCaseAttributeNames:!1};function u(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:a(o(e,(t=t||{}).htmlparser2||l),t)}u.domToReact=a,u.htmlToDOM=o,u.attributesToProps=i,u.Comment=r.Comment,u.Element=r.Element,u.ProcessingInstruction=r.ProcessingInstruction,u.Text=r.Text,e.exports=u,u.default=u},484:function(e,t,n){var r=n(5726),o=n(4606),i=["checked","value"],a=["input","select","textarea"],l={reset:!0,submit:!0};function u(e){return r.possibleStandardNames[e]}e.exports=function(e,t){var n,s,c,f,d,p={},h=(e=e||{}).type&&l[e.type];for(n in e)if(c=e[n],r.isCustomAttribute(n))p[n]=c;else if(f=u(s=n.toLowerCase()))switch(d=r.getPropertyInfo(f),-1===i.indexOf(f)||-1===a.indexOf(t)||h||(f=u("default"+s)),p[f]=c,d&&d.type){case r.BOOLEAN:p[f]=!0;break;case r.OVERLOADED_BOOLEAN:""===c&&(p[f]=!0)}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(p[n]=c);return o.setStyleProp(e.style,p),p}},3670:function(e,t,n){var r=n(7294),o=n(484),i=n(4606),a=i.setStyleProp,l=i.canTextBeChildOfNode;function u(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&i.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var i,s,c,f,d,p=(n=n||{}).library||r,h=p.cloneElement,m=p.createElement,y=p.isValidElement,v=[],g="function"==typeof n.replace,b=n.trim,w=0,x=t.length;w<x;w++)if(i=t[w],g&&y(c=n.replace(i)))x>1&&(c=h(c,{key:c.key||w})),v.push(c);else if("text"!==i.type){switch(f=i.attribs,u(i)?a(f.style,f):f&&(f=o(f,i.name)),d=null,i.type){case"script":case"style":i.children[0]&&(f.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?f.defaultValue=i.children[0].data:i.children&&i.children.length&&(d=e(i.children,n));break;default:continue}x>1&&(f.key=w),v.push(m(i.name,f,d))}else{if((s=!i.data.trim().length)&&i.parent&&!l(i.parent))continue;if(b&&s)continue;v.push(i.data)}return 1===v.length?v[0]:v}},4606:function(e,t,n){var r=n(7294),o=n(1476).default,i={reactCompat:!0},a=r.version.split(".")[0]>=16,l=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,o="function"==typeof t,i={},a={};for(n in e)r=e[n],o&&(i=t(n,r))&&2===i.length?a[i[0]]=i[1]:"string"==typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=o(e,i)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!l.has(e.name)},elementsWithNoTextChildren:l}},7384:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(9960),a=n(5079);o(n(5079),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=u,t.default=u},5079:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n(9960),l=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),S(this,e)},e}();t.Node=l;var u=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=u;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(u);t.Text=s;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(u);t.Comment=c;var f=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=a.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(u);t.ProcessingInstruction=f;var d=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=d;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(d);t.CDATA=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(d);t.Document=h;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(d);function y(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function g(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function x(e){return e.type===a.ElementType.Root}function S(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new s(e.data);else if(b(e))n=new c(e.data);else if(y(e)){var r=t?E(e.children):[],o=new m(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(v(e)){r=t?E(e.children):[];var a=new p(r);r.forEach((function(e){return e.parent=a})),n=a}else if(x(e)){r=t?E(e.children):[];var l=new h(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var u=new f(e.name,e.data);null!=e["x-name"]&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),n=u}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function E(e){for(var t=e.map((function(e){return S(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=y,t.isCDATA=v,t.isText=g,t.isComment=b,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=S},5717:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},8139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,s="";function c(e){return e?e.replace(u,s):s}e.exports=function(e,u){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];u=u||{};var f=1,d=1;function p(e){var t=e.match(n);t&&(f+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function h(){var e={line:f,column:d};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:f,column:d},this.source=u.source}m.prototype.content=e;var y=[];function v(t){var n=new Error(u.source+":"+f+":"+d+": "+t);if(n.reason=t,n.filename=u.source,n.line=f,n.column=d,n.source=e,!u.silent)throw n;y.push(n)}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){g(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;s!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,s===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function S(){var e=h(),n=g(o);if(n){if(x(),!g(i))return v("property missing ':'");var r=g(a),u=e({type:"declaration",property:c(n[0].replace(t,s)),value:r?c(r[0].replace(t,s)):s});return g(l),u}}return b(),function(){var e,t=[];for(w(t);e=S();)!1!==e&&(t.push(e),w(t));return t}()}},5456:function(e,t,n){var r=n(5456);for(k in r)n.g[k]=r[k]},7129:function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,i,a=[];for(i in"string"!=typeof t&&(t="?"),e)if(n.call(e,i)){if((r=e[i])||null!=r&&!isNaN(r)||(r=""),i=o(i),r=o(r),null===i||null===r)continue;a.push(i+"="+r)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var i=r(t[1]),a=r(t[2]);null===i||null===a||i in o||(o[i]=a)}return o}},4448:function(e,t,n){"use strict";var r=n(7294),o=n(3840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function u(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[: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]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new m(e,2,!1,e,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(e){y[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=y.hasOwnProperty(t)?y[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),_=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var A=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var D,M=Object.assign;function F(e){if(void 0===D)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var z=!1;function U(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var u="\n"+o[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=l);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function B(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return U(e.type,!1);case 11:return U(e.type.render,!1);case 1:return U(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case S:return"Portal";case C:return"Profiler";case k:return"StrictMode";case N:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return V(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===k?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Z(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Y(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return M({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ie(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={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},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=M({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 ge(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ee=null,ke=null;function Ce(e){if(e=wo(e)){if("function"!=typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function Oe(e){Ee?ke?ke.push(e):ke=[e]:Ee=e}function _e(){if(Ee){var e=Ee,t=ke;if(ke=Ee=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Te(e,t){return e(t)}function Ne(){}var Pe=!1;function Ie(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Te(e,t,n)}finally{Pe=!1,(null!==Ee||null!==ke)&&(Ne(),_e())}}function Le(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var je=!1;if(c)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){je=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch(ce){je=!1}function Re(e,t,n,r,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var De=!1,Me=null,Fe=!1,ze=null,Ue={onError:function(e){De=!0,Me=e}};function Be(e,t,n,r,o,i,a,l,u){De=!1,Me=null,Re.apply(Ue,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function We(e){if(Ve(e)!==e)throw Error(i(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return We(o),e;if(a===r)return We(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=a;break}if(u===r){l=!0,r=o,n=a;break}u=u.sibling}if(!l){for(u=a.child;u;){if(u===n){l=!0,n=a,r=o;break}if(u===r){l=!0,r=a,n=o;break}u=u.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ge=o.unstable_scheduleCallback,Qe=o.unstable_cancelCallback,Ke=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Ze=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ye=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2,st=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=ft(l):0!=(i&=a)&&(r=ft(i))}else 0!=(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=st;return 0==(4194240&(st<<=1))&&(st=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var xt,St,Et,kt,Ct,Ot=!1,_t=[],Tt=null,Nt=null,Pt=null,It=new Map,Lt=new Map,jt=[],At="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function Dt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Mt(e){var t=bo(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Ct(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function zt(e,t,n){Ft(e)&&n.delete(t)}function Ut(){Ot=!1,null!==Tt&&Ft(Tt)&&(Tt=null),null!==Nt&&Ft(Nt)&&(Nt=null),null!==Pt&&Ft(Pt)&&(Pt=null),It.forEach(zt),Lt.forEach(zt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ut)))}function Vt(e){function t(t){return Bt(t,e)}if(0<_t.length){Bt(_t[0],e);for(var n=1;n<_t.length;n++){var r=_t[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Bt(Tt,e),null!==Nt&&Bt(Nt,e),null!==Pt&&Bt(Pt,e),It.forEach(t),Lt.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)Mt(n),null===n.blockedOn&&jt.shift()}var Ht=w.ReactCurrentBatchConfig,Wt=!0;function $t(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=1,Gt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function qt(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=4,Gt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function Gt(e,t,n,r){if(Wt){var o=Kt(e,t,n,r);if(null===o)Wr(e,t,r,Qt,n),Rt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=Dt(Tt,e,t,n,r,o),!0;case"dragenter":return Nt=Dt(Nt,e,t,n,r,o),!0;case"mouseover":return Pt=Dt(Pt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Dt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Lt.set(i,Dt(Lt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Rt(e,r),4&t&&-1<At.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Kt(e,t,n,r))&&Wr(e,t,r,Qt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Qt=null;function Kt(e,t,n,r){if(Qt=null,null!==(e=bo(e=xe(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ye:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Zt=null,Jt=null,Yt=null;function en(){if(Yt)return Yt;var e,t,n=Jt,r=n.length,o="value"in Zt?Zt.value:Zt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Yt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return M(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,un,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(sn),fn=M({},sn,{view:0,detail:0}),dn=on(fn),pn=M({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),mn=on(M({},pn,{dataTransfer:0})),yn=on(M({},fn,{relatedTarget:0})),vn=on(M({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=M({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(gn),wn=on(M({},sn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Cn(){return kn}var On=M({},fn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_n=on(On),Tn=on(M({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=on(M({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Pn=on(M({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=M({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ln=on(In),jn=[9,13,27,32],An=c&&"CompositionEvent"in window,Rn=null;c&&"documentMode"in document&&(Rn=document.documentMode);var Dn=c&&"TextEvent"in window&&!Rn,Mn=c&&(!An||Rn&&8<Rn&&11>=Rn),Fn=String.fromCharCode(32),zn=!1;function Un(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1,Hn={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 Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function $n(e,t,n,r){Oe(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Gn=null;function Qn(e){Fr(e,0)}function Kn(e){if(G(xo(e)))return e}function Xn(e,t){if("change"===e)return t}var Zn=!1;if(c){var Jn;if(c){var Yn="oninput"in document;if(!Yn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Yn="function"==typeof er.oninput}Jn=Yn}else Jn=!1;Zn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Gn=qn=null)}function nr(e){if("value"===e.propertyName&&Kn(Gn)){var t=[];$n(t,Gn,e,xe(e)),Ie(Qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Gn)}function ir(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ur(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,yr=null,vr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==yr||yr!==Q(r)||(r="selectionStart"in(r=yr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&ur(gr,r)||(gr=r,0<(r=qr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Er={},kr={};function Cr(e){if(Er[e])return Er[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Er[e]=n[t];return e}c&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Or=Cr("animationend"),_r=Cr("animationiteration"),Tr=Cr("animationstart"),Nr=Cr("transitionend"),Pr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Lr(e,t){Pr.set(e,t),u(t,[e])}for(var jr=0;jr<Ir.length;jr++){var Ar=Ir[jr];Lr(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}Lr(Or,"onAnimationEnd"),Lr(_r,"onAnimationIteration"),Lr(Tr,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(Nr,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rr));function Mr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,u,s){if(Be.apply(this,arguments),De){if(!De)throw Error(i(198));var c=Me;De=!1,Me=null,Fe||(Fe=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;Mr(o,l,s),i=u}else for(a=0;a<r.length;a++){if(u=(l=r[a]).instance,s=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;Mr(o,l,s),i=u}}}if(Fe)throw e=ze,Fe=!1,ze=null,e}function zr(e,t){var n=t[yo];void 0===n&&(n=t[yo]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Ur("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Xt(t)){case 1:var o=$t;break;case 4:o=qt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=bo(l)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}l=l.parentNode}}r=r.return}Ie((function(){var r=i,o=xe(n),a=[];e:{var l=Pr.get(e);if(void 0!==l){var u=cn,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=_n;break;case"focusin":s="focus",u=yn;break;case"focusout":s="blur",u=yn;break;case"beforeblur":case"afterblur":u=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Nn;break;case Or:case _r:case Tr:u=vn;break;case Nr:u=Pn;break;case"scroll":u=dn;break;case"wheel":u=Ln;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Tn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&null!=(m=Le(h,d))&&c.push($r(h,m,p))),f)break;h=h.return}0<c.length&&(l=new u(l,s,null,n,o),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(s=n.relatedTarget||n.fromElement)||!bo(s)&&!s[mo])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?bo(s):null)&&(s!==(f=Ve(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=hn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?l:xo(u),p=null==s?l:xo(s),(l=new c(m,h+"leave",u,n,o)).target=f,l.relatedTarget=p,m=null,bo(o)===r&&((c=new c(d,h+"enter",s,n,o)).target=p,c.relatedTarget=f,m=c),f=m,u&&s)e:{for(d=s,h=0,p=c=u;p;p=Gr(p))h++;for(p=0,m=d;m;m=Gr(m))p++;for(;0<h-p;)c=Gr(c),h--;for(;0<p-h;)d=Gr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Gr(c),d=Gr(d)}c=null}else c=null;null!==u&&Qr(a,l,u,c,!1),null!==s&&null!==f&&Qr(a,f,s,c,!0)}if("select"===(u=(l=r?xo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var y=Xn;else if(Wn(l))if(Zn)y=ar;else{y=or;var v=rr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(y=ir);switch(y&&(y=y(e,r))?$n(a,y,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&ee(l,"number",l.value)),v=r?xo(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(yr=v,vr=r,gr=null);break;case"focusout":gr=vr=yr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var g;if(An)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(g=en()):(Jt="value"in(Zt=o)?Zt.value:Zt.textContent,Vn=!0)),0<(v=qr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:v}),(g||null!==(g=Bn(n)))&&(b.data=g))),(g=Dn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(zn=!0,Fn);case"textInput":return(e=t.data)===Fn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!An&&Un(e,t)?(e=en(),Yt=Jt=Zt=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g)}Fr(a,t)}))}function $r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Le(e,n))&&r.unshift($r(e,i,o)),null!=(i=Le(e,t))&&r.push($r(e,i,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=Le(n,i))&&a.unshift($r(n,u,l)):o||null!=(u=Le(n,i))&&a.push($r(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Zr(e){return("string"==typeof e?e:""+e).replace(Kr,"\n").replace(Xr,"")}function Jr(e,t,n){if(t=Zr(t),Zr(e)!==t&&n)throw Error(i(425))}function Yr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function uo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Vt(t)}function so(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,yo="__reactEvents$"+fo,vo="__reactListeners$"+fo,go="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function So(e){return e[ho]||null}var Eo=[],ko=-1;function Co(e){return{current:e}}function Oo(e){0>ko||(e.current=Eo[ko],Eo[ko]=null,ko--)}function _o(e,t){ko++,Eo[ko]=e.current,e.current=t}var To={},No=Co(To),Po=Co(!1),Io=To;function Lo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function jo(e){return null!=e.childContextTypes}function Ao(){Oo(Po),Oo(No)}function Ro(e,t,n){if(No.current!==To)throw Error(i(168));_o(No,t),_o(Po,n)}function Do(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,H(e)||"Unknown",o));return M({},n,r)}function Mo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Io=No.current,_o(No,e),_o(Po,Po.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Do(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,Oo(Po),Oo(No),_o(No,e)):Oo(Po),_o(Po,n)}var zo=null,Uo=!1,Bo=!1;function Vo(e){null===zo?zo=[e]:zo.push(e)}function Ho(){if(!Bo&&null!==zo){Bo=!0;var e=0,t=bt;try{var n=zo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}zo=null,Uo=!1}catch(t){throw null!==zo&&(zo=zo.slice(e+1)),Ge(Ye,Ho),t}finally{bt=t,Bo=!1}}return null}var Wo=[],$o=0,qo=null,Go=0,Qo=[],Ko=0,Xo=null,Zo=1,Jo="";function Yo(e,t){Wo[$o++]=Go,Wo[$o++]=qo,qo=e,Go=t}function ei(e,t,n){Qo[Ko++]=Zo,Qo[Ko++]=Jo,Qo[Ko++]=Xo,Xo=e;var r=Zo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Zo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Zo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Yo(e,1),ei(e,1,0))}function ni(e){for(;e===qo;)qo=Wo[--$o],Wo[$o]=null,Go=Wo[--$o],Wo[$o]=null;for(;e===Xo;)Xo=Qo[--Ko],Qo[Ko]=null,Jo=Qo[--Ko],Qo[Ko]=null,Zo=Qo[--Ko],Qo[Ko]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Ls(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ui(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Zo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ls(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function si(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!ui(e,t)){if(si(e))throw Error(i(418));t=so(n.nextSibling);var r=ri;t&&ui(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(si(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function di(e){if(e!==ri)return!1;if(!ii)return fi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(si(e))throw pi(),Error(i(418));for(;t;)li(e,t),t=so(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=so(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?so(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=so(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var yi=w.ReactCurrentBatchConfig;function vi(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var gi=Co(null),bi=null,wi=null,xi=null;function Si(){xi=wi=bi=null}function Ei(e){var t=gi.current;Oo(gi),e._currentValue=t}function ki(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ci(e,t){bi=e,xi=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(wl=!0),e.firstContext=null)}function Oi(e){var t=e._currentValue;if(xi!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===bi)throw Error(i(308));wi=e,bi.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var _i=null;function Ti(e){null===_i?_i=[e]:_i.push(e)}function Ni(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ti(t)):(n.next=o.next,o.next=n),t.interleaved=n,Pi(e,r)}function Pi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ii=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ai(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ri(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Nu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Pi(e,n)}return null===(o=r.interleaved)?(t.next=t,Ti(r)):(t.next=o.next,o.next=t),r.interleaved=t,Pi(e,n)}function Di(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Mi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fi(e,t,n,r){var o=e.updateQueue;Ii=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,s=u.next;u.next=null,null===a?i=s:a.next=s,a=u;var c=e.alternate;null!==c&&(l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=s:l.next=s,c.lastBaseUpdate=u)}if(null!==i){var f=o.baseState;for(a=0,c=s=u=null,l=i;;){var d=l.lane,p=l.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(d=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=m.payload)?h.call(p,f,d):h))break e;f=M({},f,d);break e;case 2:Ii=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(s=c=p,u=f):c=c.next=p,a|=d;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(d=l).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(u=f),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Mu|=a,e.lanes=a,e.memoizedState=f}}function zi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Ui=(new r.Component).refs;function Bi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:M({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Vi={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ts(),o=ns(e),i=Ai(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ri(e,i,o))&&(rs(t,e,o,r),Di(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ts(),o=ns(e),i=Ai(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ri(e,i,o))&&(rs(t,e,o,r),Di(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ts(),r=ns(e),o=Ai(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ri(e,o,r))&&(rs(t,e,r,n),Di(t,e,r))}};function Hi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&ur(n,r)&&ur(o,i))}function Wi(e,t,n){var r=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=Oi(i):(o=jo(t)?Io:No.current,i=(r=null!=(r=t.contextTypes))?Lo(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Vi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function $i(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vi.enqueueReplaceState(t,t.state,null)}function qi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Ui,Li(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Oi(i):(i=jo(t)?Io:No.current,o.context=Lo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Bi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Vi.enqueueReplaceState(o,o.state,null),Fi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Gi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===Ui&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Qi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ki(e){return(0,e._init)(e._payload)}function Xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=As(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Fs(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===E?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===L&&Ki(i)===t.type)?((r=o(t,n.props)).ref=Gi(e,t,n),r.return=e,r):((r=Rs(n.type,n.key,n.props,null,e.mode,r)).ref=Gi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zs(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Ds(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Fs(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Rs(t.type,t.key,t.props,null,e.mode,n)).ref=Gi(e,null,t),n.return=e,n;case S:return(t=zs(t,e.mode,n)).return=e,t;case L:return d(e,(0,t._init)(t._payload),n)}if(te(t)||R(t))return(t=Ds(t,e.mode,n,null)).return=e,t;Qi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?s(e,t,n,r):null;case S:return n.key===o?c(e,t,n,r):null;case L:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||R(n))return null!==o?null:f(e,t,n,r,null);Qi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case L:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||R(r))return f(t,e=e.get(n)||null,r,o,null);Qi(t,r)}return null}function m(o,i,l,u){for(var s=null,c=null,f=i,m=i=0,y=null;null!==f&&m<l.length;m++){f.index>m?(y=f,f=null):y=f.sibling;var v=p(o,f,l[m],u);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(o,f),i=a(v,i,m),null===c?s=v:c.sibling=v,c=v,f=y}if(m===l.length)return n(o,f),ii&&Yo(o,m),s;if(null===f){for(;m<l.length;m++)null!==(f=d(o,l[m],u))&&(i=a(f,i,m),null===c?s=f:c.sibling=f,c=f);return ii&&Yo(o,m),s}for(f=r(o,f);m<l.length;m++)null!==(y=h(f,o,m,l[m],u))&&(e&&null!==y.alternate&&f.delete(null===y.key?m:y.key),i=a(y,i,m),null===c?s=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(o,e)})),ii&&Yo(o,m),s}function y(o,l,u,s){var c=R(u);if("function"!=typeof c)throw Error(i(150));if(null==(u=c.call(u)))throw Error(i(151));for(var f=c=null,m=l,y=l=0,v=null,g=u.next();null!==m&&!g.done;y++,g=u.next()){m.index>y?(v=m,m=null):v=m.sibling;var b=p(o,m,g.value,s);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),l=a(b,l,y),null===f?c=b:f.sibling=b,f=b,m=v}if(g.done)return n(o,m),ii&&Yo(o,y),c;if(null===m){for(;!g.done;y++,g=u.next())null!==(g=d(o,g.value,s))&&(l=a(g,l,y),null===f?c=g:f.sibling=g,f=g);return ii&&Yo(o,y),c}for(m=r(o,m);!g.done;y++,g=u.next())null!==(g=h(m,o,y,g.value,s))&&(e&&null!==g.alternate&&m.delete(null===g.key?y:g.key),l=a(g,l,y),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(o,e)})),ii&&Yo(o,y),c}return function e(r,i,a,u){if("object"==typeof a&&null!==a&&a.type===E&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var s=a.key,c=i;null!==c;){if(c.key===s){if((s=a.type)===E){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===L&&Ki(s)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=Gi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===E?((i=Ds(a.props.children,r.mode,u,a.key)).return=r,r=i):((u=Rs(a.type,a.key,a.props,null,r.mode,u)).ref=Gi(r,i,a),u.return=r,r=u)}return l(r);case S:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=zs(a,r.mode,u)).return=r,r=i}return l(r);case L:return e(r,i,(c=a._init)(a._payload),u)}if(te(a))return m(r,i,a,u);if(R(a))return y(r,i,a,u);Qi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Fs(a,r.mode,u)).return=r,r=i),l(r)):n(r,i)}}var Zi=Xi(!0),Ji=Xi(!1),Yi={},ea=Co(Yi),ta=Co(Yi),na=Co(Yi);function ra(e){if(e===Yi)throw Error(i(174));return e}function oa(e,t){switch(_o(na,t),_o(ta,e),_o(ea,Yi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(ea),_o(ea,t)}function ia(){Oo(ea),Oo(ta),Oo(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=ue(t,e.type);t!==n&&(_o(ta,e),_o(ea,n))}function la(e){ta.current===e&&(Oo(ea),Oo(ta))}var ua=Co(0);function sa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function fa(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var da=w.ReactCurrentDispatcher,pa=w.ReactCurrentBatchConfig,ha=0,ma=null,ya=null,va=null,ga=!1,ba=!1,wa=0,xa=0;function Sa(){throw Error(i(321))}function Ea(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ka(e,t,n,r,o,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,da.current=null===e||null===e.memoizedState?ll:ul,e=n(r,o),ba){a=0;do{if(ba=!1,wa=0,25<=a)throw Error(i(301));a+=1,va=ya=null,t.updateQueue=null,da.current=sl,e=n(r,o)}while(ba)}if(da.current=al,t=null!==ya&&null!==ya.next,ha=0,va=ya=ma=null,ga=!1,t)throw Error(i(300));return e}function Ca(){var e=0!==wa;return wa=0,e}function Oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===va?ma.memoizedState=va=e:va=va.next=e,va}function _a(){if(null===ya){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ya.next;var t=null===va?ma.memoizedState:va.next;if(null!==t)va=t,ya=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ya=e).memoizedState,baseState:ya.baseState,baseQueue:ya.baseQueue,queue:ya.queue,next:null},null===va?ma.memoizedState=va=e:va=va.next=e}return va}function Ta(e,t){return"function"==typeof t?t(e):t}function Na(e){var t=_a(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ya,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var u=l=null,s=null,c=a;do{var f=c.lane;if((ha&f)===f)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(u=s=d,l=r):s=s.next=d,ma.lanes|=f,Mu|=f}c=c.next}while(null!==c&&c!==a);null===s?l=r:s.next=u,lr(r,t.memoizedState)||(wl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ma.lanes|=a,Mu|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Pa(e){var t=_a(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(wl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ia(){}function La(e,t){var n=ma,r=_a(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,wl=!0),r=r.queue,Wa(Ra.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==va&&1&va.memoizedState.tag){if(n.flags|=2048,za(9,Aa.bind(null,n,r,o,t),void 0,null),null===Pu)throw Error(i(349));0!=(30&ha)||ja(n,t,o)}return o}function ja(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Aa(e,t,n,r){t.value=n,t.getSnapshot=r,Da(t)&&Ma(e)}function Ra(e,t,n){return n((function(){Da(t)&&Ma(e)}))}function Da(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Ma(e){var t=Pi(e,1);null!==t&&rs(t,e,1,-1)}function Fa(e){var t=Oa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,ma,e),[t.memoizedState,e]}function za(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ua(){return _a().memoizedState}function Ba(e,t,n,r){var o=Oa();ma.flags|=e,o.memoizedState=za(1|t,n,void 0,void 0===r?null:r)}function Va(e,t,n,r){var o=_a();r=void 0===r?null:r;var i=void 0;if(null!==ya){var a=ya.memoizedState;if(i=a.destroy,null!==r&&Ea(r,a.deps))return void(o.memoizedState=za(t,n,i,r))}ma.flags|=e,o.memoizedState=za(1|t,n,i,r)}function Ha(e,t){return Ba(8390656,8,e,t)}function Wa(e,t){return Va(2048,8,e,t)}function $a(e,t){return Va(4,2,e,t)}function qa(e,t){return Va(4,4,e,t)}function Ga(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qa(e,t,n){return n=null!=n?n.concat([e]):null,Va(4,4,Ga.bind(null,t,e),n)}function Ka(){}function Xa(e,t){var n=_a();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ea(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Za(e,t){var n=_a();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ea(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ja(e,t,n){return 0==(21&ha)?(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n):(lr(n,t)||(n=mt(),ma.lanes|=n,Mu|=n,e.baseState=!0),t)}function Ya(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{bt=n,pa.transition=r}}function el(){return _a().memoizedState}function tl(e,t,n){var r=ns(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e)?ol(t,n):null!==(n=Ni(e,t,n,r))&&(rs(n,e,r,ts()),il(n,t,r))}function nl(e,t,n){var r=ns(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))ol(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var u=t.interleaved;return null===u?(o.next=o,Ti(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ni(e,t,o,r))&&(rs(n,e,r,o=ts()),il(n,t,r))}}function rl(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function ol(e,t){ba=ga=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function il(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var al={readContext:Oi,useCallback:Sa,useContext:Sa,useEffect:Sa,useImperativeHandle:Sa,useInsertionEffect:Sa,useLayoutEffect:Sa,useMemo:Sa,useReducer:Sa,useRef:Sa,useState:Sa,useDebugValue:Sa,useDeferredValue:Sa,useTransition:Sa,useMutableSource:Sa,useSyncExternalStore:Sa,useId:Sa,unstable_isNewReconciler:!1},ll={readContext:Oi,useCallback:function(e,t){return Oa().memoizedState=[e,void 0===t?null:t],e},useContext:Oi,useEffect:Ha,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ba(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=Oa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Oa().memoizedState=e},useState:Fa,useDebugValue:Ka,useDeferredValue:function(e){return Oa().memoizedState=e},useTransition:function(){var e=Fa(!1),t=e[0];return e=Ya.bind(null,e[1]),Oa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,o=Oa();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Pu)throw Error(i(349));0!=(30&ha)||ja(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ha(Ra.bind(null,r,a,e),[e]),r.flags|=2048,za(9,Aa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Oa(),t=Pu.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Zo&~(1<<32-at(Zo)-1)).toString(32)+n),0<(n=wa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ul={readContext:Oi,useCallback:Xa,useContext:Oi,useEffect:Wa,useImperativeHandle:Qa,useInsertionEffect:$a,useLayoutEffect:qa,useMemo:Za,useReducer:Na,useRef:Ua,useState:function(){return Na(Ta)},useDebugValue:Ka,useDeferredValue:function(e){return Ja(_a(),ya.memoizedState,e)},useTransition:function(){return[Na(Ta)[0],_a().memoizedState]},useMutableSource:Ia,useSyncExternalStore:La,useId:el,unstable_isNewReconciler:!1},sl={readContext:Oi,useCallback:Xa,useContext:Oi,useEffect:Wa,useImperativeHandle:Qa,useInsertionEffect:$a,useLayoutEffect:qa,useMemo:Za,useReducer:Pa,useRef:Ua,useState:function(){return Pa(Ta)},useDebugValue:Ka,useDeferredValue:function(e){var t=_a();return null===ya?t.memoizedState=e:Ja(t,ya.memoizedState,e)},useTransition:function(){return[Pa(Ta)[0],_a().memoizedState]},useMutableSource:Ia,useSyncExternalStore:La,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function fl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pl="function"==typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=Ai(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$u||($u=!0,qu=r),dl(0,t)},n}function ml(e,t,n){(n=Ai(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Gu?Gu=new Set([this]):Gu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function yl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Os.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gl(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ai(-1,1)).tag=2,Ri(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bl=w.ReactCurrentOwner,wl=!1;function xl(e,t,n,r){t.child=null===e?Ji(t,null,n,r):Zi(t,e.child,n,r)}function Sl(e,t,n,r,o){n=n.render;var i=t.ref;return Ci(t,o),r=ka(e,t,n,r,i,o),n=Ca(),null===e||wl?(ii&&n&&ti(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$l(e,t,o))}function El(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||js(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rs(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,kl(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return $l(e,t,o)}return t.flags|=1,(e=As(i,r)).ref=t.ref,e.return=t,t.child=e}function kl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ur(i,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,$l(e,t,o);0!=(131072&e.flags)&&(wl=!0)}}return _l(e,t,n,r,o)}function Cl(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_o(Au,ju),ju|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_o(Au,ju),ju|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,_o(Au,ju),ju|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,_o(Au,ju),ju|=r;return xl(e,t,o,n),t.child}function Ol(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _l(e,t,n,r,o){var i=jo(n)?Io:No.current;return i=Lo(t,i),Ci(t,o),n=ka(e,t,n,r,i,o),r=Ca(),null===e||wl?(ii&&r&&ti(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$l(e,t,o))}function Tl(e,t,n,r,o){if(jo(n)){var i=!0;Mo(t)}else i=!1;if(Ci(t,o),null===t.stateNode)Wl(e,t),Wi(t,n,r),qi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;s="object"==typeof s&&null!==s?Oi(s):Lo(t,s=jo(n)?Io:No.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==s)&&$i(t,a,r,s),Ii=!1;var d=t.memoizedState;a.state=d,Fi(t,r,a,o),u=t.memoizedState,l!==r||d!==u||Po.current||Ii?("function"==typeof c&&(Bi(t,n,c,r),u=t.memoizedState),(l=Ii||Hi(t,n,l,r,d,u,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ji(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:vi(t.type,l),a.props=s,f=t.pendingProps,d=a.context,u="object"==typeof(u=n.contextType)&&null!==u?Oi(u):Lo(t,u=jo(n)?Io:No.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==u)&&$i(t,a,r,u),Ii=!1,d=t.memoizedState,a.state=d,Fi(t,r,a,o);var h=t.memoizedState;l!==f||d!==h||Po.current||Ii?("function"==typeof p&&(Bi(t,n,p,r),h=t.memoizedState),(s=Ii||Hi(t,n,s,r,d,h,u)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Nl(e,t,n,r,i,o)}function Nl(e,t,n,r,o,i){Ol(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Fo(t,n,!1),$l(e,t,i);r=t.stateNode,bl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Zi(t,e.child,null,i),t.child=Zi(t,null,l,i)):xl(e,t,l,i),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function Pl(e){var t=e.stateNode;t.pendingContext?Ro(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ro(0,t.context,!1),oa(e,t.containerInfo)}function Il(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xl(e,t,n,r),t.child}var Ll,jl,Al,Rl,Dl={dehydrated:null,treeContext:null,retryLane:0};function Ml(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fl(e,t,n){var r,o=t.pendingProps,a=ua.current,l=!1,u=0!=(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),_o(ua,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=o.children,e=o.fallback,l?(o=t.mode,l=t.child,u={mode:"hidden",children:u},0==(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=u):l=Ms(u,o,0,null),e=Ds(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ml(n),t.memoizedState=Dl,e):zl(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,Ul(e,t,l,r=fl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Ms({mode:"visible",children:r.children},o,0,null),(a=Ds(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Zi(t,e.child,null,l),t.child.memoizedState=Ml(l),t.memoizedState=Dl,a);if(0==(1&t.mode))return Ul(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var u=r.dgst;return r=u,Ul(e,t,l,r=fl(a=Error(i(419)),r,void 0))}if(u=0!=(l&e.childLanes),wl||u){if(null!==(r=Pu)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|l))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Pi(e,o),rs(r,e,o,-1))}return ys(),Ul(e,t,l,r=fl(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ts.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=so(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Qo[Ko++]=Zo,Qo[Ko++]=Jo,Qo[Ko++]=Xo,Zo=e.id,Jo=e.overflow,Xo=t),(t=zl(t,r.children)).flags|=4096,t)}(e,t,u,o,r,a,n);if(l){l=o.fallback,u=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&u)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=As(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?l=As(r,l):(l=Ds(l,u,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,u=null===(u=e.child.memoizedState)?Ml(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~n,t.memoizedState=Dl,o}return e=(l=e.child).sibling,o=As(l,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function zl(e,t){return(t=Ms({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ul(e,t,n,r){return null!==r&&mi(r),Zi(t,e.child,null,n),(e=zl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ki(e.return,t,n)}function Vl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Hl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xl(e,t,r.children,n),0!=(2&(r=ua.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bl(e,n,t);else if(19===e.tag)Bl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_o(ua,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===sa(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===sa(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vl(t,!0,n,null,i);break;case"together":Vl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $l(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Mu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=As(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=As(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ql(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ql(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gl(t),null;case 1:case 17:return jo(t.type)&&Ao(),Gl(t),null;case 3:return r=t.stateNode,ia(),Oo(Po),Oo(No),fa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ai&&(ls(ai),ai=null))),jl(e,t),Gl(t),null;case 5:la(t);var o=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Al(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Gl(t),null}if(e=ra(ea.current),di(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=0!=(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(o=0;o<Rr.length;o++)zr(Rr[o],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":X(r,a),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},zr("invalid",r);break;case"textarea":oe(r,a),zr("invalid",r)}for(var u in ge(n,a),o=null,a)if(a.hasOwnProperty(u)){var s=a[u];"children"===u?"string"==typeof s?r.textContent!==s&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,s,e),o=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,s,e),o=["children",""+s]):l.hasOwnProperty(u)&&null!=s&&"onScroll"===u&&zr("scroll",r)}switch(n){case"input":q(r),Y(r,a,!0);break;case"textarea":q(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Yr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[po]=t,e[ho]=r,Ll(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),o=r;break;case"iframe":case"object":case"embed":zr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Rr.length;o++)zr(Rr[o],e);o=r;break;case"source":zr("error",e),o=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),o=r;break;case"details":zr("toggle",e),o=r;break;case"input":X(e,r),o=K(e,r),zr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=M({},r,{value:void 0}),zr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),zr("invalid",e)}for(a in ge(n,o),s=o)if(s.hasOwnProperty(a)){var c=s[a];"style"===a?ye(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=c&&"onScroll"===a&&zr("scroll",e):null!=c&&b(e,a,c,u))}switch(n){case"input":q(e),Y(e,r,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Yr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gl(t),null;case 6:if(e&&null!=t.stateNode)Rl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=ra(na.current),ra(ea.current),di(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Gl(t),null;case 13:if(Oo(ua),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=di(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gl(t),a=!1}else null!==ai&&(ls(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ua.current)?0===Ru&&(Ru=3):ys())),null!==t.updateQueue&&(t.flags|=4),Gl(t),null);case 4:return ia(),jl(e,t),null===e&&Vr(t.stateNode.containerInfo),Gl(t),null;case 10:return Ei(t.type._context),Gl(t),null;case 19:if(Oo(ua),null===(a=t.memoizedState))return Gl(t),null;if(r=0!=(128&t.flags),null===(u=a.rendering))if(r)ql(a,!1);else{if(0!==Ru||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=sa(e))){for(t.flags|=128,ql(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _o(ua,1&ua.current|2),t.child}e=e.sibling}null!==a.tail&&Ze()>Hu&&(t.flags|=128,r=!0,ql(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=sa(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ql(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!ii)return Gl(t),null}else 2*Ze()-a.renderingStartTime>Hu&&1073741824!==n&&(t.flags|=128,r=!0,ql(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ze(),t.sibling=null,n=ua.current,_o(ua,r?1&n|2:1&n),t):(Gl(t),null);case 22:case 23:return ds(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&ju)&&(Gl(t),6&t.subtreeFlags&&(t.flags|=8192)):Gl(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Kl(e,t){switch(ni(t),t.tag){case 1:return jo(t.type)&&Ao(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),Oo(Po),Oo(No),fa(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return la(t),null;case 13:if(Oo(ua),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(ua),null;case 4:return ia(),null;case 10:return Ei(t.type._context),null;case 22:case 23:return ds(),null;default:return null}}Ll=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},jl=function(){},Al=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ra(ea.current);var i,a=null;switch(n){case"input":o=K(e,o),r=K(e,r),a=[];break;case"select":o=M({},o,{value:void 0}),r=M({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Yr)}for(c in ge(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var u=o[c];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(a=a||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&zr("scroll",e),a||u===s||(a=[])):(a=a||[]).push(c,s))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Rl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xl=!1,Zl=!1,Jl="function"==typeof WeakSet?WeakSet:Set,Yl=null;function eu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cs(e,t,n)}else n.current=null}function tu(e,t,n){try{n()}catch(n){Cs(e,t,n)}}var nu=!1;function ru(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&tu(t,n,i)}o=o.next}while(o!==r)}}function ou(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function iu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function au(e){var t=e.alternate;null!==t&&(e.alternate=null,au(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[yo],delete t[vo],delete t[go]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function lu(e){return 5===e.tag||3===e.tag||4===e.tag}function uu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||lu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function su(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Yr));else if(4!==r&&null!==(e=e.child))for(su(e,t,n),e=e.sibling;null!==e;)su(e,t,n),e=e.sibling}function cu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cu(e,t,n),e=e.sibling;null!==e;)cu(e,t,n),e=e.sibling}var fu=null,du=!1;function pu(e,t,n){for(n=n.child;null!==n;)hu(e,t,n),n=n.sibling}function hu(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Zl||eu(n,t);case 6:var r=fu,o=du;fu=null,pu(e,t,n),du=o,null!==(fu=r)&&(du?(e=fu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):fu.removeChild(n.stateNode));break;case 18:null!==fu&&(du?(e=fu,n=n.stateNode,8===e.nodeType?uo(e.parentNode,n):1===e.nodeType&&uo(e,n),Vt(e)):uo(fu,n.stateNode));break;case 4:r=fu,o=du,fu=n.stateNode.containerInfo,du=!0,pu(e,t,n),fu=r,du=o;break;case 0:case 11:case 14:case 15:if(!Zl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&tu(n,t,a),o=o.next}while(o!==r)}pu(e,t,n);break;case 1:if(!Zl&&(eu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cs(n,t,e)}pu(e,t,n);break;case 21:pu(e,t,n);break;case 22:1&n.mode?(Zl=(r=Zl)||null!==n.memoizedState,pu(e,t,n),Zl=r):pu(e,t,n);break;default:pu(e,t,n)}}function mu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Jl),t.forEach((function(t){var r=Ns.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function yu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,u=l;e:for(;null!==u;){switch(u.tag){case 5:fu=u.stateNode,du=!1;break e;case 3:case 4:fu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===fu)throw Error(i(160));hu(a,l,o),fu=null,du=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Cs(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vu(t,e),t=t.sibling}function vu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yu(t,e),gu(e),4&r){try{ru(3,e,e.return),ou(3,e)}catch(t){Cs(e,e.return,t)}try{ru(5,e,e.return)}catch(t){Cs(e,e.return,t)}}break;case 1:yu(t,e),gu(e),512&r&&null!==n&&eu(n,n.return);break;case 5:if(yu(t,e),gu(e),512&r&&null!==n&&eu(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){Cs(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,u=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===u&&"radio"===a.type&&null!=a.name&&Z(o,a),be(u,l);var c=be(u,a);for(l=0;l<s.length;l+=2){var f=s[l],d=s[l+1];"style"===f?ye(o,d):"dangerouslySetInnerHTML"===f?fe(o,d):"children"===f?de(o,d):b(o,f,d,c)}switch(u){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){Cs(e,e.return,t)}}break;case 6:if(yu(t,e),gu(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Cs(e,e.return,t)}}break;case 3:if(yu(t,e),gu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){Cs(e,e.return,t)}break;case 4:default:yu(t,e),gu(e);break;case 13:yu(t,e),gu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Vu=Ze())),4&r&&mu(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Zl=(c=Zl)||f,yu(t,e),Zl=c):yu(t,e),gu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!=(1&e.mode))for(Yl=e,f=e.child;null!==f;){for(d=Yl=f;null!==Yl;){switch(h=(p=Yl).child,p.tag){case 0:case 11:case 14:case 15:ru(4,p,p.return);break;case 1:eu(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Cs(r,n,e)}}break;case 5:eu(p,p.return);break;case 22:if(null!==p.memoizedState){Su(d);continue}}null!==h?(h.return=p,Yl=h):Su(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=d.stateNode,l=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,u.style.display=me("display",l))}catch(t){Cs(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Cs(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:yu(t,e),gu(e),4&r&&mu(e);case 21:}}function gu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(lu(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),cu(e,uu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;su(e,uu(e),a);break;default:throw Error(i(161))}}catch(t){Cs(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bu(e,t,n){Yl=e,wu(e,t,n)}function wu(e,t,n){for(var r=0!=(1&e.mode);null!==Yl;){var o=Yl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Xl;if(!a){var l=o.alternate,u=null!==l&&null!==l.memoizedState||Zl;l=Xl;var s=Zl;if(Xl=a,(Zl=u)&&!s)for(Yl=o;null!==Yl;)u=(a=Yl).child,22===a.tag&&null!==a.memoizedState?Eu(o):null!==u?(u.return=a,Yl=u):Eu(o);for(;null!==i;)Yl=i,wu(i,t,n),i=i.sibling;Yl=o,Xl=l,Zl=s}xu(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Yl=i):xu(e)}}function xu(e){for(;null!==Yl;){var t=Yl;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Zl||ou(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Zl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:vi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&zi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}zi(t,l,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Vt(d)}}}break;default:throw Error(i(163))}Zl||512&t.flags&&iu(t)}catch(e){Cs(t,t.return,e)}}if(t===e){Yl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Yl=n;break}Yl=t.return}}function Su(e){for(;null!==Yl;){var t=Yl;if(t===e){Yl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Yl=n;break}Yl=t.return}}function Eu(e){for(;null!==Yl;){var t=Yl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ou(4,t)}catch(e){Cs(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cs(t,o,e)}}var i=t.return;try{iu(t)}catch(e){Cs(t,i,e)}break;case 5:var a=t.return;try{iu(t)}catch(e){Cs(t,a,e)}}}catch(e){Cs(t,t.return,e)}if(t===e){Yl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Yl=l;break}Yl=t.return}}var ku,Cu=Math.ceil,Ou=w.ReactCurrentDispatcher,_u=w.ReactCurrentOwner,Tu=w.ReactCurrentBatchConfig,Nu=0,Pu=null,Iu=null,Lu=0,ju=0,Au=Co(0),Ru=0,Du=null,Mu=0,Fu=0,zu=0,Uu=null,Bu=null,Vu=0,Hu=1/0,Wu=null,$u=!1,qu=null,Gu=null,Qu=!1,Ku=null,Xu=0,Zu=0,Ju=null,Yu=-1,es=0;function ts(){return 0!=(6&Nu)?Ze():-1!==Yu?Yu:Yu=Ze()}function ns(e){return 0==(1&e.mode)?1:0!=(2&Nu)&&0!==Lu?Lu&-Lu:null!==yi.transition?(0===es&&(es=mt()),es):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function rs(e,t,n,r){if(50<Zu)throw Zu=0,Ju=null,Error(i(185));vt(e,n,r),0!=(2&Nu)&&e===Pu||(e===Pu&&(0==(2&Nu)&&(Fu|=n),4===Ru&&us(e,Lu)),os(e,r),1===n&&0===Nu&&0==(1&t.mode)&&(Hu=Ze()+500,Uo&&Ho()))}function os(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,u=o[a];-1===u?0!=(l&n)&&0==(l&r)||(o[a]=pt(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=dt(e,e===Pu?Lu:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){Uo=!0,Vo(e)}(ss.bind(null,e)):Vo(ss.bind(null,e)),ao((function(){0==(6&Nu)&&Ho()})),n=null;else{switch(wt(r)){case 1:n=Ye;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ps(n,is.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function is(e,t){if(Yu=-1,es=0,0!=(6&Nu))throw Error(i(327));var n=e.callbackNode;if(Es()&&e.callbackNode!==n)return null;var r=dt(e,e===Pu?Lu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=vs(e,r);else{t=r;var o=Nu;Nu|=2;var a=ms();for(Pu===e&&Lu===t||(Wu=null,Hu=Ze()+500,ps(e,t));;)try{bs();break}catch(t){hs(e,t)}Si(),Ou.current=a,Nu=o,null!==Iu?t=0:(Pu=null,Lu=0,t=Ru)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=as(e,o)),1===t)throw n=Du,ps(e,0),us(e,r),os(e,Ze()),n;if(6===t)us(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=vs(e,r))&&0!==(a=ht(e))&&(r=a,t=as(e,a)),1===t))throw n=Du,ps(e,0),us(e,r),os(e,Ze()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Ss(e,Bu,Wu);break;case 3:if(us(e,r),(130023424&r)===r&&10<(t=Vu+500-Ze())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ts(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Ss.bind(null,e,Bu,Wu),t);break}Ss(e,Bu,Wu);break;case 4:if(us(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cu(r/1960))-r)){e.timeoutHandle=ro(Ss.bind(null,e,Bu,Wu),r);break}Ss(e,Bu,Wu);break;default:throw Error(i(329))}}}return os(e,Ze()),e.callbackNode===n?is.bind(null,e):null}function as(e,t){var n=Uu;return e.current.memoizedState.isDehydrated&&(ps(e,t).flags|=256),2!==(e=vs(e,t))&&(t=Bu,Bu=n,null!==t&&ls(t)),e}function ls(e){null===Bu?Bu=e:Bu.push.apply(Bu,e)}function us(e,t){for(t&=~zu,t&=~Fu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function ss(e){if(0!=(6&Nu))throw Error(i(327));Es();var t=dt(e,0);if(0==(1&t))return os(e,Ze()),null;var n=vs(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=as(e,r))}if(1===n)throw n=Du,ps(e,0),us(e,t),os(e,Ze()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ss(e,Bu,Wu),os(e,Ze()),null}function cs(e,t){var n=Nu;Nu|=1;try{return e(t)}finally{0===(Nu=n)&&(Hu=Ze()+500,Uo&&Ho())}}function fs(e){null!==Ku&&0===Ku.tag&&0==(6&Nu)&&Es();var t=Nu;Nu|=1;var n=Tu.transition,r=bt;try{if(Tu.transition=null,bt=1,e)return e()}finally{bt=r,Tu.transition=n,0==(6&(Nu=t))&&Ho()}}function ds(){ju=Au.current,Oo(Au)}function ps(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Iu)for(n=Iu.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ao();break;case 3:ia(),Oo(Po),Oo(No),fa();break;case 5:la(r);break;case 4:ia();break;case 13:case 19:Oo(ua);break;case 10:Ei(r.type._context);break;case 22:case 23:ds()}n=n.return}if(Pu=e,Iu=e=As(e.current,null),Lu=ju=t,Ru=0,Du=null,zu=Fu=Mu=0,Bu=Uu=null,null!==_i){for(t=0;t<_i.length;t++)if(null!==(r=(n=_i[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}_i=null}return e}function hs(e,t){for(;;){var n=Iu;try{if(Si(),da.current=al,ga){for(var r=ma.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ga=!1}if(ha=0,va=ya=ma=null,ba=!1,wa=0,_u.current=null,null===n||null===n.return){Ru=1,Du=t,Iu=null;break}e:{var a=e,l=n.return,u=n,s=t;if(t=Lu,u.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,f=u,d=f.tag;if(0==(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=vl(l);if(null!==h){h.flags&=-257,gl(h,l,u,0,t),1&h.mode&&yl(a,c,t),s=c;var m=(t=h).updateQueue;if(null===m){var y=new Set;y.add(s),t.updateQueue=y}else m.add(s);break e}if(0==(1&t)){yl(a,c,t),ys();break e}s=Error(i(426))}else if(ii&&1&u.mode){var v=vl(l);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),gl(v,l,u,0,t),mi(cl(s,u));break e}}a=s=cl(s,u),4!==Ru&&(Ru=2),null===Uu?Uu=[a]:Uu.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Mi(a,hl(0,s,t));break e;case 1:u=s;var g=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof g.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Gu||!Gu.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Mi(a,ml(a,u,t));break e}}a=a.return}while(null!==a)}xs(n)}catch(e){t=e,Iu===n&&null!==n&&(Iu=n=n.return);continue}break}}function ms(){var e=Ou.current;return Ou.current=al,null===e?al:e}function ys(){0!==Ru&&3!==Ru&&2!==Ru||(Ru=4),null===Pu||0==(268435455&Mu)&&0==(268435455&Fu)||us(Pu,Lu)}function vs(e,t){var n=Nu;Nu|=2;var r=ms();for(Pu===e&&Lu===t||(Wu=null,ps(e,t));;)try{gs();break}catch(t){hs(e,t)}if(Si(),Nu=n,Ou.current=r,null!==Iu)throw Error(i(261));return Pu=null,Lu=0,Ru}function gs(){for(;null!==Iu;)ws(Iu)}function bs(){for(;null!==Iu&&!Ke();)ws(Iu)}function ws(e){var t=ku(e.alternate,e,ju);e.memoizedProps=e.pendingProps,null===t?xs(e):Iu=t,_u.current=null}function xs(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ql(n,t,ju)))return void(Iu=n)}else{if(null!==(n=Kl(n,t)))return n.flags&=32767,void(Iu=n);if(null===e)return Ru=6,void(Iu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Iu=t);Iu=t=e}while(null!==t);0===Ru&&(Ru=5)}function Ss(e,t,n){var r=bt,o=Tu.transition;try{Tu.transition=null,bt=1,function(e,t,n,r){do{Es()}while(null!==Ku);if(0!=(6&Nu))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Pu&&(Iu=Pu=null,Lu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Qu||(Qu=!0,Ps(tt,(function(){return Es(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Tu.transition,Tu.transition=null;var l=bt;bt=1;var u=Nu;Nu|=4,_u.current=null,function(e,t){if(eo=Wt,pr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,u=-1,s=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==n||0!==o&&3!==d.nodeType||(u=l+o),d!==a||0!==r&&3!==d.nodeType||(s=l+r),3===d.nodeType&&(l+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++c===o&&(u=l),p===a&&++f===r&&(s=l),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}n=-1===u||-1===s?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Wt=!1,Yl=t;null!==Yl;)if(e=(t=Yl).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Yl=e;else for(;null!==Yl;){t=Yl;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var y=m.memoizedProps,v=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:vi(t.type,y),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){Cs(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Yl=e;break}Yl=t.return}m=nu,nu=!1}(e,n),vu(n,e),hr(to),Wt=!!eo,to=eo=null,e.current=n,bu(n,e,o),Xe(),Nu=u,bt=l,Tu.transition=a}else e.current=n;if(Qu&&(Qu=!1,Ku=e,Xu=o),0===(a=e.pendingLanes)&&(Gu=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),os(e,Ze()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if($u)throw $u=!1,e=qu,qu=null,e;0!=(1&Xu)&&0!==e.tag&&Es(),0!=(1&(a=e.pendingLanes))?e===Ju?Zu++:(Zu=0,Ju=e):Zu=0,Ho()}(e,t,n,r)}finally{Tu.transition=o,bt=r}return null}function Es(){if(null!==Ku){var e=wt(Xu),t=Tu.transition,n=bt;try{if(Tu.transition=null,bt=16>e?16:e,null===Ku)var r=!1;else{if(e=Ku,Ku=null,Xu=0,0!=(6&Nu))throw Error(i(331));var o=Nu;for(Nu|=4,Yl=e.current;null!==Yl;){var a=Yl,l=a.child;if(0!=(16&Yl.flags)){var u=a.deletions;if(null!==u){for(var s=0;s<u.length;s++){var c=u[s];for(Yl=c;null!==Yl;){var f=Yl;switch(f.tag){case 0:case 11:case 15:ru(8,f,a)}var d=f.child;if(null!==d)d.return=f,Yl=d;else for(;null!==Yl;){var p=(f=Yl).sibling,h=f.return;if(au(f),f===c){Yl=null;break}if(null!==p){p.return=h,Yl=p;break}Yl=h}}}var m=a.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(null!==y)}}Yl=a}}if(0!=(2064&a.subtreeFlags)&&null!==l)l.return=a,Yl=l;else e:for(;null!==Yl;){if(0!=(2048&(a=Yl).flags))switch(a.tag){case 0:case 11:case 15:ru(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Yl=g;break e}Yl=a.return}}var b=e.current;for(Yl=b;null!==Yl;){var w=(l=Yl).child;if(0!=(2064&l.subtreeFlags)&&null!==w)w.return=l,Yl=w;else e:for(l=b;null!==Yl;){if(0!=(2048&(u=Yl).flags))try{switch(u.tag){case 0:case 11:case 15:ou(9,u)}}catch(e){Cs(u,u.return,e)}if(u===l){Yl=null;break e}var x=u.sibling;if(null!==x){x.return=u.return,Yl=x;break e}Yl=u.return}}if(Nu=o,Ho(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Tu.transition=t}}return!1}function ks(e,t,n){e=Ri(e,t=hl(0,t=cl(n,t),1),1),t=ts(),null!==e&&(vt(e,1,t),os(e,t))}function Cs(e,t,n){if(3===e.tag)ks(e,e,n);else for(;null!==t;){if(3===t.tag){ks(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gu||!Gu.has(r))){t=Ri(t,e=ml(t,e=cl(n,e),1),1),e=ts(),null!==t&&(vt(t,1,e),os(t,e));break}}t=t.return}}function Os(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ts(),e.pingedLanes|=e.suspendedLanes&n,Pu===e&&(Lu&n)===n&&(4===Ru||3===Ru&&(130023424&Lu)===Lu&&500>Ze()-Vu?ps(e,0):zu|=n),os(e,t)}function _s(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=ts();null!==(e=Pi(e,t))&&(vt(e,t,n),os(e,n))}function Ts(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_s(e,n)}function Ns(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),_s(e,n)}function Ps(e,t){return Ge(e,t)}function Is(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ls(e,t,n,r){return new Is(e,t,n,r)}function js(e){return!(!(e=e.prototype)||!e.isReactComponent)}function As(e,t){var n=e.alternate;return null===n?((n=Ls(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rs(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)js(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case E:return Ds(n.children,o,a,t);case k:l=8,o|=8;break;case C:return(e=Ls(12,n,t,2|o)).elementType=C,e.lanes=a,e;case N:return(e=Ls(13,n,t,o)).elementType=N,e.lanes=a,e;case P:return(e=Ls(19,n,t,o)).elementType=P,e.lanes=a,e;case j:return Ms(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case _:l=9;break e;case T:l=11;break e;case I:l=14;break e;case L:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Ls(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Ds(e,t,n,r){return(e=Ls(7,e,r,t)).lanes=n,e}function Ms(e,t,n,r){return(e=Ls(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={isHidden:!1},e}function Fs(e,t,n){return(e=Ls(6,e,null,t)).lanes=n,e}function zs(e,t,n){return(t=Ls(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Us(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bs(e,t,n,r,o,i,a,l,u){return e=new Us(e,t,n,l,u),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ls(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function Vs(e){if(!e)return To;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(jo(n))return Do(e,n,t)}return t}function Hs(e,t,n,r,o,i,a,l,u){return(e=Bs(n,r,!0,e,0,i,0,l,u)).context=Vs(null),n=e.current,(i=Ai(r=ts(),o=ns(n))).callback=null!=t?t:null,Ri(n,i,o),e.current.lanes=o,vt(e,o,r),os(e,r),e}function Ws(e,t,n,r){var o=t.current,i=ts(),a=ns(o);return n=Vs(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ai(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ri(o,t,a))&&(rs(e,o,a,i),Di(e,o,a)),a}function $s(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gs(e,t){qs(e,t),(e=e.alternate)&&qs(e,t)}ku=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Po.current)wl=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return wl=!1,function(e,t,n){switch(t.tag){case 3:Pl(t),hi();break;case 5:aa(t);break;case 1:jo(t.type)&&Mo(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;_o(gi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_o(ua,1&ua.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Fl(e,t,n):(_o(ua,1&ua.current),null!==(e=$l(e,t,n))?e.sibling:null);_o(ua,1&ua.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Hl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),_o(ua,ua.current),r)break;return null;case 22:case 23:return t.lanes=0,Cl(e,t,n)}return $l(e,t,n)}(e,t,n);wl=0!=(131072&e.flags)}else wl=!1,ii&&0!=(1048576&t.flags)&&ei(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var o=Lo(t,No.current);Ci(t,n),o=ka(null,t,r,e,o,n);var a=Ca();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,jo(r)?(a=!0,Mo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Li(t),o.updater=Vi,t.stateNode=o,o._reactInternals=t,qi(t,r,e,n),t=Nl(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),xl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return js(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===I)return 14}return 2}(r),e=vi(r,e),o){case 0:t=_l(null,t,r,e,n);break e;case 1:t=Tl(null,t,r,e,n);break e;case 11:t=Sl(null,t,r,e,n);break e;case 14:t=El(null,t,r,vi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,_l(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 1:return r=t.type,o=t.pendingProps,Tl(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 3:e:{if(Pl(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,ji(e,t),Fi(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Il(e,t,r,n,o=cl(Error(i(423)),t));break e}if(r!==o){t=Il(e,t,r,n,o=cl(Error(i(424)),t));break e}for(oi=so(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ji(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=$l(e,t,n);break e}xl(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),Ol(e,t),xl(e,t,l,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Fl(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Zi(t,null,r,n):xl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Sl(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 7:return xl(e,t,t.pendingProps,n),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,_o(gi,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!Po.current){t=$l(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){l=a.child;for(var s=u.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=Ai(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),ki(a.return,n,t),u.lanes|=n;break}s=s.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ki(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}xl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ci(t,n),r=r(o=Oi(o)),t.flags|=1,xl(e,t,r,n),t.child;case 14:return o=vi(r=t.type,t.pendingProps),El(e,t,r,o=vi(r.type,o),n);case 15:return kl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vi(r,o),Wl(e,t),t.tag=1,jo(r)?(e=!0,Mo(t)):e=!1,Ci(t,n),Wi(t,r,o),qi(t,r,o,n),Nl(null,t,r,!0,e,n);case 19:return Hl(e,t,n);case 22:return Cl(e,t,n)}throw Error(i(156,t.tag))};var Qs="function"==typeof reportError?reportError:function(e){console.error(e)};function Ks(e){this._internalRoot=e}function Xs(e){this._internalRoot=e}function Zs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Js(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ys(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=$s(a);l.call(e)}}Ws(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=$s(a);i.call(e)}}var a=Hs(t,r,e,0,null,!1,0,"",Ys);return e._reactRootContainer=a,e[mo]=a.current,Vr(8===e.nodeType?e.parentNode:e),fs(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=$s(u);l.call(e)}}var u=Bs(e,0,!1,null,0,!1,0,"",Ys);return e._reactRootContainer=u,e[mo]=u.current,Vr(8===e.nodeType?e.parentNode:e),fs((function(){Ws(t,u,n,r)})),u}(n,t,e,o,r);return $s(a)}Xs.prototype.render=Ks.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Ws(e,t,null,null)},Xs.prototype.unmount=Ks.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fs((function(){Ws(null,e,null,null)})),t[mo]=null}},Xs.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&Mt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(gt(t,1|n),os(t,Ze()),0==(6&Nu)&&(Hu=Ze()+500,Ho()))}break;case 13:fs((function(){var t=Pi(e,1);if(null!==t){var n=ts();rs(t,e,1,n)}})),Gs(e,1)}},St=function(e){if(13===e.tag){var t=Pi(e,134217728);null!==t&&rs(t,e,134217728,ts()),Gs(e,134217728)}},Et=function(e){if(13===e.tag){var t=ns(e),n=Pi(e,t);null!==n&&rs(n,e,t,ts()),Gs(e,t)}},kt=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=So(r);if(!o)throw Error(i(90));G(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cs,Ne=fs;var tc={usingClientEntryPoint:!1,Events:[wo,xo,So,Oe,_e,cs]},nc={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zs(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Zs(e))throw Error(i(299));var n=!1,r="",o=Qs;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Bs(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Vr(8===e.nodeType?e.parentNode:e),new Ks(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e){return fs(e)},t.hydrate=function(e,t,n){if(!Js(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Zs(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=Qs;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Hs(t,null,e,1,null!=n?n:null,o,0,a,l),e[mo]=t.current,Vr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Xs(t)},t.render=function(e,t,n){if(!Js(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Js(e))throw Error(i(40));return!!e._reactRootContainer&&(fs((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cs,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Js(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},3935:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4448)},5726:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var o=2,i=3,a=4;function l(e,t,n,r,l,u,s){this.acceptsBooleans=t===o||t===i||t===a,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=s}var u={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){u[e]=new l(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t,n,o=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];u[i]=new l(i,1,!1,a,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){u[e]=new l(e,o,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){u[e]=new l(e,o,!1,e,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"].forEach((function(e){u[e]=new l(e,i,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){u[e]=new l(e,i,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){u[e]=new l(e,a,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){u[e]=new l(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){u[e]=new l(e,5,!1,e.toLowerCase(),null,!1,!1)}));var s=/[\-\:]([a-z])/g,c=function(e){return e[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"].forEach((function(e){var t=e.replace(s,c);u[t]=new l(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(s,c);u[t]=new l(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(s,c);u[t]=new l(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){u[e]=new l(e,1,!1,e.toLowerCase(),null,!1,!1)})),u.xlinkHref=new l("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){u[e]=new l(e,1,!1,e.toLowerCase(),null,!0,!0)}));var f=n(8229),d=f.CAMELCASE,p=f.SAME,h=f.possibleStandardNames,m=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[: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]*$")),y=Object.keys(h).reduce((function(e,t){var n=h[t];return n===p?e[t]=t:n===d?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=i,t.BOOLEANISH_STRING=o,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=a,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return u.hasOwnProperty(e)?u[e]:null},t.isCustomAttribute=m,t.possibleStandardNames=y},8229:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},8359:function(e,t){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference")},2973:function(e,t,n){"use strict";n(8359)},2408:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var w=b.prototype=new g;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,E={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!k.hasOwnProperty(o)&&(i[o]=t[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:E.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var _=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function N(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return a=a(u=e),e=""===i?"."+T(u,0):i,x(a)?(o="",null!=e&&(o=e.replace(_,"$&/")+"/"),N(a,t,o,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+e)),t.push(a)),1;if(u=0,i=""===i?".":i+":",x(e))for(var s=0;s<e.length;s++){var c=i+T(l=e[s],s);u+=N(l,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),s=0;!(l=e.next()).done;)u+=N(l=l.value,t,o,c=i+T(l,s++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function P(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},j={transition:null},A={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:j,ReactCurrentOwner:E};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=E.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)S.call(t,s)&&!k.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==u?u[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){u=Array(s);for(var c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=j.transition;j.transition={};try{e()}finally{j.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return L.current.useCallback(e,t)},t.useContext=function(e){return L.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return L.current.useDeferredValue(e)},t.useEffect=function(e,t){return L.current.useEffect(e,t)},t.useId=function(){return L.current.useId()},t.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return L.current.useMemo(e,t)},t.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},t.useRef=function(e){return L.current.useRef(e)},t.useState=function(e){return L.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return L.current.useTransition()},t.version="18.2.0"},7294:function(e,t,n){"use strict";e.exports=n(2408)},7418:function(e){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},53:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,u=e[l],s=l+1,c=e[s];if(0>i(u,n))s<o&&0>i(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[l]=n,r=l);else{if(!(s<o&&0>i(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var s=[],c=[],f=1,d=null,p=3,h=!1,m=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(s,t)}t=r(c)}}function x(e){if(y=!1,w(e),!m)if(null!==r(s))m=!0,j(S);else{var t=r(c);null!==t&&A(x,t.startTime-e)}}function S(e,n){m=!1,y&&(y=!1,g(O),O=-1),h=!0;var i=p;try{for(w(n),d=r(s);null!==d&&(!(d.expirationTime>n)||e&&!N());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?d.callback=l:d===r(s)&&o(s),w(n)}else o(s);d=r(s)}if(null!==d)var u=!0;else{var f=r(c);null!==f&&A(x,f.startTime-n),u=!1}return u}finally{d=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,k=!1,C=null,O=-1,_=5,T=-1;function N(){return!(t.unstable_now()-T<_)}function P(){if(null!==C){var e=t.unstable_now();T=e;var n=!0;try{n=C(!0,e)}finally{n?E():(k=!1,C=null)}}else k=!1}if("function"==typeof b)E=function(){b(P)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,L=I.port2;I.port1.onmessage=P,E=function(){L.postMessage(null)}}else E=function(){v(P,0)};function j(e){C=e,k||(k=!0,E())}function A(e,n){O=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,j(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(s)&&e===r(c)&&(y?(g(O),O=-1):y=!0,A(x,i-a))):(e.sortIndex=l,n(s,e),m||h||(m=!0,j(S))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},3840:function(e,t,n){"use strict";e.exports=n(53)},8e3:function(e,t,n){"use strict";var r=n(7581);e.exports=n(3626)(r),"_sockjs_onload"in n.g&&setTimeout(n.g._sockjs_onload,1)},2530:function(e,t,n){"use strict";var r=n(5717),o=n(685);function i(){o.call(this),this.initEvent("close",!1,!1),this.wasClean=!1,this.code=0,this.reason=""}r(i,o),e.exports=i},3212:function(e,t,n){"use strict";var r=n(5717),o=n(3184);function i(){o.call(this)}r(i,o),i.prototype.removeAllListeners=function(e){e?delete this._listeners[e]:this._listeners={}},i.prototype.once=function(e,t){var n=this,r=!1;this.on(e,(function o(){n.removeListener(e,o),r||(r=!0,t.apply(this,arguments))}))},i.prototype.emit=function(){var e=arguments[0],t=this._listeners[e];if(t){for(var n=arguments.length,r=new Array(n-1),o=1;o<n;o++)r[o-1]=arguments[o];for(var i=0;i<t.length;i++)t[i].apply(this,r)}},i.prototype.on=i.prototype.addListener=o.prototype.addEventListener,i.prototype.removeListener=o.prototype.removeEventListener,e.exports.v=i},685:function(e){"use strict";function t(e){this.type=e}t.prototype.initEvent=function(e,t,n){return this.type=e,this.bubbles=t,this.cancelable=n,this.timeStamp=+new Date,this},t.prototype.stopPropagation=function(){},t.prototype.preventDefault=function(){},t.CAPTURING_PHASE=1,t.AT_TARGET=2,t.BUBBLING_PHASE=3,e.exports=t},3184:function(e){"use strict";function t(){this._listeners={}}t.prototype.addEventListener=function(e,t){e in this._listeners||(this._listeners[e]=[]);var n=this._listeners[e];-1===n.indexOf(t)&&(n=n.concat([t])),this._listeners[e]=n},t.prototype.removeEventListener=function(e,t){var n=this._listeners[e];if(n){var r=n.indexOf(t);-1===r||(n.length>1?this._listeners[e]=n.slice(0,r).concat(n.slice(r+1)):delete this._listeners[e])}},t.prototype.dispatchEvent=function(){var e=arguments[0],t=e.type,n=1===arguments.length?[e]:Array.apply(null,arguments);if(this["on"+t]&&this["on"+t].apply(this,n),t in this._listeners)for(var r=this._listeners[t],o=0;o<r.length;o++)r[o].apply(this,n)},e.exports=t},3326:function(e,t,n){"use strict";var r=n(5717),o=n(685);function i(e){o.call(this),this.initEvent("message",!1,!1),this.data=e}r(i,o),e.exports=i},691:function(e,t,n){"use strict";var r=n(3683);function o(e){this._transport=e,e.on("message",this._transportMessage.bind(this)),e.on("close",this._transportClose.bind(this))}o.prototype._transportClose=function(e,t){r.postMessage("c",JSON.stringify([e,t]))},o.prototype._transportMessage=function(e){r.postMessage("t",e)},o.prototype._send=function(e){this._transport.send(e)},o.prototype._close=function(){this._transport.close(),this._transport.removeAllListeners()},e.exports=o},551:function(e,t,n){"use strict";var r=n(273),o=n(7705),i=n(691),a=n(6311),l=n(3683),u=n(7486);e.exports=function(e,t){var n,s={};t.forEach((function(e){e.facadeTransport&&(s[e.facadeTransport.transportName]=e.facadeTransport)})),s[a.transportName]=a,e.bootstrap_iframe=function(){var t;l.currentWindowId=u.hash.slice(1),o.attachEvent("message",(function(o){if(o.source===parent&&(void 0===n&&(n=o.origin),o.origin===n)){var a;try{a=JSON.parse(o.data)}catch(e){return void o.data}if(a.windowId===l.currentWindowId)switch(a.type){case"s":var c;try{c=JSON.parse(a.data)}catch(e){a.data;break}var f=c[0],d=c[1],p=c[2],h=c[3];if(f!==e.version)throw new Error('Incompatible SockJS! Main site uses: "'+f+'", the iframe: "'+e.version+'".');if(!r.isOriginEqual(p,u.href)||!r.isOriginEqual(h,u.href))throw new Error("Can't connect to different domain from within an iframe. ("+u.href+", "+p+", "+h+")");t=new i(new s[d](p,h));break;case"m":t._send(a.data);break;case"c":t&&t._close(),t=null}}})),l.postMessage("s")}}},2550:function(e,t,n){"use strict";var r=n(3212).v,o=n(5717),i=n(2217);function a(e,t){r.call(this);var n=this,o=+new Date;this.xo=new t("GET",e),this.xo.once("finish",(function(e,t){var r,a;if(200===e){if(a=+new Date-o,t)try{r=JSON.parse(t)}catch(e){}i.isObject(r)||(r={})}n.emit("finish",r,a),n.removeAllListeners()}))}o(a,r),a.prototype.close=function(){this.removeAllListeners(),this.xo.close()},e.exports=a},6311:function(e,t,n){"use strict";var r=n(5717),o=n(3212).v,i=n(3515),a=n(2550);function l(e){var t=this;o.call(this),this.ir=new a(e,i),this.ir.once("finish",(function(e,n){t.ir=null,t.emit("message",JSON.stringify([e,n]))}))}r(l,o),l.transportName="iframe-info-receiver",l.prototype.close=function(){this.ir&&(this.ir.close(),this.ir=null),this.removeAllListeners()},e.exports=l},3616:function(e,t,n){"use strict";var r=n(3212).v,o=n(5717),i=n(7705),a=n(5088),l=n(6311);function u(e,t){var o=this;r.call(this);var u=function(){var n=o.ifr=new a(l.transportName,t,e);n.once("message",(function(e){if(e){var t;try{t=JSON.parse(e)}catch(e){return o.emit("finish"),void o.close()}var n=t[0],r=t[1];o.emit("finish",n,r)}o.close()})),n.once("close",(function(){o.emit("finish"),o.close()}))};n.g.document.body?u():i.attachEvent("load",u)}o(u,r),u.enabled=function(){return a.enabled()},u.prototype.close=function(){this.ifr&&this.ifr.close(),this.removeAllListeners(),this.ifr=null},e.exports=u},5172:function(e,t,n){"use strict";var r=n(3212).v,o=n(5717),i=n(273),a=n(6073),l=n(9033),u=n(3515),s=n(7103),c=n(3616),f=n(2550),d=function(){};function p(e,t){d(e);var n=this;r.call(this),setTimeout((function(){n.doXhr(e,t)}),0)}o(p,r),p._getReceiver=function(e,t,n){return n.sameOrigin?new f(t,u):l.enabled?new f(t,l):a.enabled&&n.sameScheme?new f(t,a):c.enabled()?new c(e,t):new f(t,s)},p.prototype.doXhr=function(e,t){var n=this,r=i.addPath(e,"/info");d("doXhr",r),this.xo=p._getReceiver(e,r,t),this.timeoutRef=setTimeout((function(){d("timeout"),n._cleanup(!1),n.emit("finish")}),p.timeout),this.xo.once("finish",(function(e,t){d("finish",e,t),n._cleanup(!0),n.emit("finish",e,t)}))},p.prototype._cleanup=function(e){d("_cleanup"),clearTimeout(this.timeoutRef),this.timeoutRef=null,!e&&this.xo&&this.xo.close(),this.xo=null},p.prototype.close=function(){d("close"),this.removeAllListeners(),this._cleanup(!1)},p.timeout=8e3,e.exports=p},7486:function(e,t,n){"use strict";e.exports=n.g.location||{origin:"http://localhost:80",protocol:"http:",host:"localhost",port:80,href:"http://localhost/",hash:""}},3626:function(e,t,n){"use strict";n(1247);var r,o=n(4564),i=n(5717),a=n(8915),l=n(8028),u=n(273),s=n(7705),c=n(5581),f=n(2217),d=n(8510),p=n(4886),h=n(685),m=n(3184),y=n(7486),v=n(2530),g=n(3326),b=n(5172),w=function(){};function x(e,t,n){if(!(this instanceof x))return new x(e,t,n);if(arguments.length<1)throw new TypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present");m.call(this),this.readyState=x.CONNECTING,this.extensions="",this.protocol="",(n=n||{}).protocols_whitelist&&p.warn("'protocols_whitelist' is DEPRECATED. Use 'transports' instead."),this._transportsWhitelist=n.transports,this._transportOptions=n.transportOptions||{},this._timeout=n.timeout||0;var r=n.sessionId||8;if("function"==typeof r)this._generateSessionId=r;else{if("number"!=typeof r)throw new TypeError("If sessionId is used in the options, it needs to be a number or a function.");this._generateSessionId=function(){return a.string(r)}}this._server=n.server||a.numberString(1e3);var i=new o(e);if(!i.host||!i.protocol)throw new SyntaxError("The URL '"+e+"' is invalid");if(i.hash)throw new SyntaxError("The URL must not contain a fragment");if("http:"!==i.protocol&&"https:"!==i.protocol)throw new SyntaxError("The URL's scheme must be either 'http:' or 'https:'. '"+i.protocol+"' is not allowed.");var l="https:"===i.protocol;if("https:"===y.protocol&&!l&&!u.isLoopbackAddr(i.hostname))throw new Error("SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS");t?Array.isArray(t)||(t=[t]):t=[];var s=t.sort();s.forEach((function(e,t){if(!e)throw new SyntaxError("The protocols entry '"+e+"' is invalid.");if(t<s.length-1&&e===s[t+1])throw new SyntaxError("The protocols entry '"+e+"' is duplicated.")}));var c=u.getOrigin(y.href);this._origin=c?c.toLowerCase():null,i.set("pathname",i.pathname.replace(/\/+$/,"")),this.url=i.href,w("using url",this.url),this._urlInfo={nullOrigin:!d.hasDomain(),sameOrigin:u.isOriginEqual(this.url,y.href),sameScheme:u.isSchemeEqual(this.url,y.href)},this._ir=new b(this.url,this._urlInfo),this._ir.once("finish",this._receiveInfo.bind(this))}function S(e){return 1e3===e||e>=3e3&&e<=4999}i(x,m),x.prototype.close=function(e,t){if(e&&!S(e))throw new Error("InvalidAccessError: Invalid code");if(t&&t.length>123)throw new SyntaxError("reason argument has an invalid length");this.readyState!==x.CLOSING&&this.readyState!==x.CLOSED&&this._close(e||1e3,t||"Normal closure",!0)},x.prototype.send=function(e){if("string"!=typeof e&&(e=""+e),this.readyState===x.CONNECTING)throw new Error("InvalidStateError: The connection has not been established yet");this.readyState===x.OPEN&&this._transport.send(l.quote(e))},x.version=n(2828),x.CONNECTING=0,x.OPEN=1,x.CLOSING=2,x.CLOSED=3,x.prototype._receiveInfo=function(e,t){if(w("_receiveInfo",t),this._ir=null,e){this._rto=this.countRTO(t),this._transUrl=e.base_url?e.base_url:this.url,e=f.extend(e,this._urlInfo),w("info",e);var n=r.filterToEnabled(this._transportsWhitelist,e);this._transports=n.main,w(this._transports.length+" enabled transports"),this._connect()}else this._close(1002,"Cannot connect to server")},x.prototype._connect=function(){for(var e=this._transports.shift();e;e=this._transports.shift()){if(w("attempt",e.transportName),e.needBody&&(!n.g.document.body||void 0!==n.g.document.readyState&&"complete"!==n.g.document.readyState&&"interactive"!==n.g.document.readyState))return w("waiting for body"),this._transports.unshift(e),void s.attachEvent("load",this._connect.bind(this));var t=Math.max(this._timeout,this._rto*e.roundTrips||5e3);this._transportTimeoutId=setTimeout(this._transportTimeout.bind(this),t),w("using timeout",t);var r=u.addPath(this._transUrl,"/"+this._server+"/"+this._generateSessionId()),o=this._transportOptions[e.transportName];w("transport url",r);var i=new e(r,this._transUrl,o);return i.on("message",this._transportMessage.bind(this)),i.once("close",this._transportClose.bind(this)),i.transportName=e.transportName,void(this._transport=i)}this._close(2e3,"All transports failed",!1)},x.prototype._transportTimeout=function(){w("_transportTimeout"),this.readyState===x.CONNECTING&&(this._transport&&this._transport.close(),this._transportClose(2007,"Transport timed out"))},x.prototype._transportMessage=function(e){w("_transportMessage",e);var t,n=this,r=e.slice(0,1),o=e.slice(1);switch(r){case"o":return void this._open();case"h":return this.dispatchEvent(new h("heartbeat")),void w("heartbeat",this.transport)}if(o)try{t=JSON.parse(o)}catch(e){w("bad json",o)}if(void 0!==t)switch(r){case"a":Array.isArray(t)&&t.forEach((function(e){w("message",n.transport,e),n.dispatchEvent(new g(e))}));break;case"m":w("message",this.transport,t),this.dispatchEvent(new g(t));break;case"c":Array.isArray(t)&&2===t.length&&this._close(t[0],t[1],!0)}else w("empty payload",o)},x.prototype._transportClose=function(e,t){w("_transportClose",this.transport,e,t),this._transport&&(this._transport.removeAllListeners(),this._transport=null,this.transport=null),S(e)||2e3===e||this.readyState!==x.CONNECTING?this._close(e,t):this._connect()},x.prototype._open=function(){w("_open",this._transport&&this._transport.transportName,this.readyState),this.readyState===x.CONNECTING?(this._transportTimeoutId&&(clearTimeout(this._transportTimeoutId),this._transportTimeoutId=null),this.readyState=x.OPEN,this.transport=this._transport.transportName,this.dispatchEvent(new h("open")),w("connected",this.transport)):this._close(1006,"Server lost session")},x.prototype._close=function(e,t,n){w("_close",this.transport,e,t,n,this.readyState);var r=!1;if(this._ir&&(r=!0,this._ir.close(),this._ir=null),this._transport&&(this._transport.close(),this._transport=null,this.transport=null),this.readyState===x.CLOSED)throw new Error("InvalidStateError: SockJS has already been closed");this.readyState=x.CLOSING,setTimeout(function(){this.readyState=x.CLOSED,r&&this.dispatchEvent(new h("error"));var o=new v("close");o.wasClean=n||!1,o.code=e||1e3,o.reason=t,this.dispatchEvent(o),this.onmessage=this.onclose=this.onerror=null,w("disconnected")}.bind(this),0)},x.prototype.countRTO=function(e){return e>100?4*e:300+e},e.exports=function(e){return r=c(e),n(551)(x,e),x}},1247:function(){"use strict";var e,t=Array.prototype,n=Object.prototype,r=Function.prototype,o=String.prototype,i=t.slice,a=n.toString,l=function(e){return"[object Function]"===n.toString.call(e)},u=function(e){return"[object String]"===a.call(e)},s=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}();e=s?function(e,t,n,r){!r&&t in e||Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(e,t,n,r){!r&&t in e||(e[t]=n)};var c=function(t,r,o){for(var i in r)n.hasOwnProperty.call(r,i)&&e(t,i,r[i],o)},f=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)};function d(){}c(r,{bind:function(e){var t=this;if(!l(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n=i.call(arguments,1),r=Math.max(0,t.length-n.length),o=[],a=0;a<r;a++)o.push("$"+a);var u=Function("binder","return function ("+o.join(",")+"){ return binder.apply(this, arguments); }")((function(){if(this instanceof u){var r=t.apply(this,n.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,n.concat(i.call(arguments)))}));return t.prototype&&(d.prototype=t.prototype,u.prototype=new d,d.prototype=null),u}}),c(Array,{isArray:function(e){return"[object Array]"===a.call(e)}});var p,h,m,y=Object("a"),v="a"!==y[0]||!(0 in y);c(t,{forEach:function(e){var t=f(this),n=v&&u(this)?this.split(""):t,r=arguments[1],o=-1,i=n.length>>>0;if(!l(e))throw new TypeError;for(;++o<i;)o in n&&e.call(r,n[o],o,t)}},(p=t.forEach,h=!0,m=!0,p&&(p.call("foo",(function(e,t,n){"object"!=typeof n&&(h=!1)})),p.call([1],(function(){m="string"==typeof this}),"x")),!(p&&h&&m)));var g=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);c(t,{indexOf:function(e){var t=v&&u(this)?this.split(""):f(this),n=t.length>>>0;if(!n)return-1;var r,o=0;for(arguments.length>1&&((r=+arguments[1])!=r?r=0:0!==r&&r!==1/0&&r!==-1/0&&(r=(r>0||-1)*Math.floor(Math.abs(r))),o=r),o=o>=0?o:Math.max(0,n+o);o<n;o++)if(o in t&&t[o]===e)return o;return-1}},g);var b,w=o.split;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?(b=void 0===/()??/.exec("")[1],o.split=function(e,n){var r=this;if(void 0===e&&0===n)return[];if("[object RegExp]"!==a.call(e))return w.call(this,e,n);var o,i,l,u,s=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":""),f=0;for(e=new RegExp(e.source,c+"g"),r+="",b||(o=new RegExp("^"+e.source+"$(?!\\s)",c)),n=void 0===n?-1>>>0:n>>>0;(i=e.exec(r))&&!((l=i.index+i[0].length)>f&&(s.push(r.slice(f,i.index)),!b&&i.length>1&&i[0].replace(o,(function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(i[e]=void 0)})),i.length>1&&i.index<r.length&&t.push.apply(s,i.slice(1)),u=i[0].length,f=l,s.length>=n));)e.lastIndex===i.index&&e.lastIndex++;return f===r.length?!u&&e.test("")||s.push(""):s.push(r.slice(f)),s.length>n?s.slice(0,n):s}):"0".split(void 0,0).length&&(o.split=function(e,t){return void 0===e&&0===t?[]:w.call(this,e,t)});var x=o.substr;c(o,{substr:function(e,t){return x.call(this,e<0&&(e=this.length+e)<0?0:e,t)}},"".substr&&"b"!=="0b".substr(-1))},7581:function(e,t,n){"use strict";e.exports=[n(2412),n(9842),n(4620),n(3004),n(882)(n(3004)),n(5616),n(882)(n(5616)),n(2387),n(9998),n(882)(n(2387)),n(5375)]},2940:function(e,t,n){"use strict";var r=n(3212).v,o=n(5717),i=n(7705),a=n(273),l=n.g.XMLHttpRequest,u=function(){};function s(e,t,n,o){u(e,t);var i=this;r.call(this),setTimeout((function(){i._start(e,t,n,o)}),0)}o(s,r),s.prototype._start=function(e,t,n,r){var o=this;try{this.xhr=new l}catch(e){}if(!this.xhr)return u("no xhr"),this.emit("finish",0,"no xhr support"),void this._cleanup();t=a.addQuery(t,"t="+ +new Date),this.unloadRef=i.unloadAdd((function(){u("unload cleanup"),o._cleanup(!0)}));try{this.xhr.open(e,t,!0),this.timeout&&"timeout"in this.xhr&&(this.xhr.timeout=this.timeout,this.xhr.ontimeout=function(){u("xhr timeout"),o.emit("finish",0,""),o._cleanup(!1)})}catch(e){return u("exception",e),this.emit("finish",0,""),void this._cleanup(!1)}if(r&&r.noCredentials||!s.supportsCORS||(u("withCredentials"),this.xhr.withCredentials=!0),r&&r.headers)for(var c in r.headers)this.xhr.setRequestHeader(c,r.headers[c]);this.xhr.onreadystatechange=function(){if(o.xhr){var e,t,n=o.xhr;switch(u("readyState",n.readyState),n.readyState){case 3:try{t=n.status,e=n.responseText}catch(e){}u("status",t),1223===t&&(t=204),200===t&&e&&e.length>0&&(u("chunk"),o.emit("chunk",t,e));break;case 4:t=n.status,u("status",t),1223===t&&(t=204),12005!==t&&12029!==t||(t=0),u("finish",t,n.responseText),o.emit("finish",t,n.responseText),o._cleanup(!1)}}};try{o.xhr.send(n)}catch(e){o.emit("finish",0,""),o._cleanup(!1)}},s.prototype._cleanup=function(e){if(u("cleanup"),this.xhr){if(this.removeAllListeners(),i.unloadDel(this.unloadRef),this.xhr.onreadystatechange=function(){},this.xhr.ontimeout&&(this.xhr.ontimeout=null),e)try{this.xhr.abort()}catch(e){}this.unloadRef=this.xhr=null}},s.prototype.close=function(){u("close"),this._cleanup(!0)},s.enabled=!!l;var c=["Active"].concat("Object").join("X");!s.enabled&&c in n.g&&(u("overriding xmlhttprequest"),l=function(){try{return new n.g[c]("Microsoft.XMLHTTP")}catch(e){return null}},s.enabled=!!new l);var f=!1;try{f="withCredentials"in new l}catch(e){}s.supportsCORS=f,e.exports=s},3759:function(e,t,n){e.exports=n.g.EventSource},9334:function(e,t,n){"use strict";var r=n.g.WebSocket||n.g.MozWebSocket;e.exports=r?function(e){return new r(e)}:void 0},3004:function(e,t,n){"use strict";var r=n(5717),o=n(9395),i=n(6709),a=n(9033),l=n(3759);function u(e){if(!u.enabled())throw new Error("Transport created when disabled");o.call(this,e,"/eventsource",i,a)}r(u,o),u.enabled=function(){return!!l},u.transportName="eventsource",u.roundTrips=2,e.exports=u},5616:function(e,t,n){"use strict";var r=n(5717),o=n(3608),i=n(3515),a=n(9395);function l(e){if(!o.enabled)throw new Error("Transport created when disabled");a.call(this,e,"/htmlfile",o,i)}r(l,a),l.enabled=function(e){return o.enabled&&e.sameOrigin},l.transportName="htmlfile",l.roundTrips=2,e.exports=l},5088:function(e,t,n){"use strict";var r=n(5717),o=n(3212).v,i=n(2828),a=n(273),l=n(3683),u=n(7705),s=n(8915),c=function(){};function f(e,t,n){if(!f.enabled())throw new Error("Transport created when disabled");o.call(this);var r=this;this.origin=a.getOrigin(n),this.baseUrl=n,this.transUrl=t,this.transport=e,this.windowId=s.string(8);var i=a.addPath(n,"/iframe.html")+"#"+this.windowId;c(e,t,i),this.iframeObj=l.createIframe(i,(function(e){c("err callback"),r.emit("close",1006,"Unable to load an iframe ("+e+")"),r.close()})),this.onmessageCallback=this._message.bind(this),u.attachEvent("message",this.onmessageCallback)}r(f,o),f.prototype.close=function(){if(c("close"),this.removeAllListeners(),this.iframeObj){u.detachEvent("message",this.onmessageCallback);try{this.postMessage("c")}catch(e){}this.iframeObj.cleanup(),this.iframeObj=null,this.onmessageCallback=this.iframeObj=null}},f.prototype._message=function(e){if(c("message",e.data),a.isOriginEqual(e.origin,this.origin)){var t;try{t=JSON.parse(e.data)}catch(t){return void c("bad json",e.data)}if(t.windowId===this.windowId)switch(t.type){case"s":this.iframeObj.loaded(),this.postMessage("s",JSON.stringify([i,this.transport,this.transUrl,this.baseUrl]));break;case"t":this.emit("message",t.data);break;case"c":var n;try{n=JSON.parse(t.data)}catch(e){return void c("bad json",t.data)}this.emit("close",n[0],n[1]),this.close()}else c("mismatched window id",t.windowId,this.windowId)}else c("not same origin",e.origin,this.origin)},f.prototype.postMessage=function(e,t){c("postMessage",e,t),this.iframeObj.post(JSON.stringify({windowId:this.windowId,type:e,data:t||""}),this.origin)},f.prototype.send=function(e){c("send",e),this.postMessage("m",e)},f.enabled=function(){return l.iframeEnabled},f.transportName="iframe",f.roundTrips=2,e.exports=f},5375:function(e,t,n){"use strict";var r=n(5717),o=n(8347),i=n(514),a=n(771);function l(e){if(!l.enabled())throw new Error("Transport created when disabled");o.call(this,e,"/jsonp",a,i)}r(l,o),l.enabled=function(){return!!n.g.document},l.transportName="jsonp-polling",l.roundTrips=1,l.needBody=!0,e.exports=l},9395:function(e,t,n){"use strict";var r=n(5717),o=n(273),i=n(8347);function a(e,t,n,r){i.call(this,e,t,function(e){return function(t,n,r){var i={};"string"==typeof n&&(i.headers={"Content-type":"text/plain"});var a=o.addPath(t,"/xhr_send"),l=new e("POST",a,n,i);return l.once("finish",(function(e){if(l=null,200!==e&&204!==e)return r(new Error("http status "+e));r()})),function(){l.close(),l=null;var e=new Error("Aborted");e.code=1e3,r(e)}}}(r),n,r)}r(a,i),e.exports=a},1851:function(e,t,n){"use strict";var r=n(5717),o=n(3212).v,i=function(){};function a(e,t){i(e),o.call(this),this.sendBuffer=[],this.sender=t,this.url=e}r(a,o),a.prototype.send=function(e){i("send",e),this.sendBuffer.push(e),this.sendStop||this.sendSchedule()},a.prototype.sendScheduleWait=function(){i("sendScheduleWait");var e,t=this;this.sendStop=function(){i("sendStop"),t.sendStop=null,clearTimeout(e)},e=setTimeout((function(){i("timeout"),t.sendStop=null,t.sendSchedule()}),25)},a.prototype.sendSchedule=function(){i("sendSchedule",this.sendBuffer.length);var e=this;if(this.sendBuffer.length>0){var t="["+this.sendBuffer.join(",")+"]";this.sendStop=this.sender(this.url,t,(function(t){e.sendStop=null,t?(i("error",t),e.emit("close",t.code||1006,"Sending error: "+t),e.close()):e.sendScheduleWait()})),this.sendBuffer=[]}},a.prototype._cleanup=function(){i("_cleanup"),this.removeAllListeners()},a.prototype.close=function(){i("close"),this._cleanup(),this.sendStop&&(this.sendStop(),this.sendStop=null)},e.exports=a},882:function(e,t,n){"use strict";var r=n(5717),o=n(5088),i=n(2217);e.exports=function(e){function t(t,n){o.call(this,e.transportName,t,n)}return r(t,o),t.enabled=function(t,r){if(!n.g.document)return!1;var a=i.extend({},r);return a.sameOrigin=!0,e.enabled(a)&&o.enabled()},t.transportName="iframe-"+e.transportName,t.needBody=!0,t.roundTrips=o.roundTrips+e.roundTrips-1,t.facadeTransport=e,t}},1265:function(e,t,n){"use strict";var r=n(5717),o=n(3212).v,i=function(){};function a(e,t,n){i(t),o.call(this),this.Receiver=e,this.receiveUrl=t,this.AjaxObject=n,this._scheduleReceiver()}r(a,o),a.prototype._scheduleReceiver=function(){i("_scheduleReceiver");var e=this,t=this.poll=new this.Receiver(this.receiveUrl,this.AjaxObject);t.on("message",(function(t){i("message",t),e.emit("message",t)})),t.once("close",(function(n,r){i("close",n,r,e.pollIsClosing),e.poll=t=null,e.pollIsClosing||("network"===r?e._scheduleReceiver():(e.emit("close",n||1006,r),e.removeAllListeners()))}))},a.prototype.abort=function(){i("abort"),this.removeAllListeners(),this.pollIsClosing=!0,this.poll&&this.poll.abort()},e.exports=a},8347:function(e,t,n){"use strict";var r=n(5717),o=n(273),i=n(1851),a=n(1265),l=function(){};function u(e,t,n,r,u){var s=o.addPath(e,t);l(s);var c=this;i.call(this,e,n),this.poll=new a(r,s,u),this.poll.on("message",(function(e){l("poll message",e),c.emit("message",e)})),this.poll.once("close",(function(e,t){l("poll close",e,t),c.poll=null,c.emit("close",e,t),c.close()}))}r(u,i),u.prototype.close=function(){i.prototype.close.call(this),l("close"),this.removeAllListeners(),this.poll&&(this.poll.abort(),this.poll=null)},e.exports=u},6709:function(e,t,n){"use strict";var r=n(5717),o=n(3212).v,i=n(3759),a=function(){};function l(e){a(e),o.call(this);var t=this,n=this.es=new i(e);n.onmessage=function(e){a("message",e.data),t.emit("message",decodeURI(e.data))},n.onerror=function(e){a("error",n.readyState,e);var r=2!==n.readyState?"network":"permanent";t._cleanup(),t._close(r)}}r(l,o),l.prototype.abort=function(){a("abort"),this._cleanup(),this._close("user")},l.prototype._cleanup=function(){a("cleanup");var e=this.es;e&&(e.onmessage=e.onerror=null,e.close(),this.es=null)},l.prototype._close=function(e){a("close",e);var t=this;setTimeout((function(){t.emit("close",null,e),t.removeAllListeners()}),200)},e.exports=l},3608:function(e,t,n){"use strict";var r=n(5717),o=n(3683),i=n(273),a=n(3212).v,l=n(8915),u=function(){};function s(e){u(e),a.call(this);var t=this;o.polluteGlobalNamespace(),this.id="a"+l.string(6),e=i.addQuery(e,"c="+decodeURIComponent(o.WPrefix+"."+this.id)),u("using htmlfile",s.htmlfileEnabled);var r=s.htmlfileEnabled?o.createHtmlfile:o.createIframe;n.g[o.WPrefix][this.id]={start:function(){u("start"),t.iframeObj.loaded()},message:function(e){u("message",e),t.emit("message",e)},stop:function(){u("stop"),t._cleanup(),t._close("network")}},this.iframeObj=r(e,(function(){u("callback"),t._cleanup(),t._close("permanent")}))}r(s,a),s.prototype.abort=function(){u("abort"),this._cleanup(),this._close("user")},s.prototype._cleanup=function(){u("_cleanup"),this.iframeObj&&(this.iframeObj.cleanup(),this.iframeObj=null),delete n.g[o.WPrefix][this.id]},s.prototype._close=function(e){u("_close",e),this.emit("close",null,e),this.removeAllListeners()},s.htmlfileEnabled=!1;var c=["Active"].concat("Object").join("X");if(c in n.g)try{s.htmlfileEnabled=!!new n.g[c]("htmlfile")}catch(e){}s.enabled=s.htmlfileEnabled||o.iframeEnabled,e.exports=s},514:function(e,t,n){"use strict";var r=n(3683),o=n(8915),i=n(8510),a=n(273),l=n(5717),u=n(3212).v,s=function(){};function c(e){s(e);var t=this;u.call(this),r.polluteGlobalNamespace(),this.id="a"+o.string(6);var i=a.addQuery(e,"c="+encodeURIComponent(r.WPrefix+"."+this.id));n.g[r.WPrefix][this.id]=this._callback.bind(this),this._createScript(i),this.timeoutId=setTimeout((function(){s("timeout"),t._abort(new Error("JSONP script loaded abnormally (timeout)"))}),c.timeout)}l(c,u),c.prototype.abort=function(){if(s("abort"),n.g[r.WPrefix][this.id]){var e=new Error("JSONP user aborted read");e.code=1e3,this._abort(e)}},c.timeout=35e3,c.scriptErrorTimeout=1e3,c.prototype._callback=function(e){s("_callback",e),this._cleanup(),this.aborting||(e&&(s("message",e),this.emit("message",e)),this.emit("close",null,"network"),this.removeAllListeners())},c.prototype._abort=function(e){s("_abort",e),this._cleanup(),this.aborting=!0,this.emit("close",e.code,e.message),this.removeAllListeners()},c.prototype._cleanup=function(){if(s("_cleanup"),clearTimeout(this.timeoutId),this.script2&&(this.script2.parentNode.removeChild(this.script2),this.script2=null),this.script){var e=this.script;e.parentNode.removeChild(e),e.onreadystatechange=e.onerror=e.onload=e.onclick=null,this.script=null}delete n.g[r.WPrefix][this.id]},c.prototype._scriptError=function(){s("_scriptError");var e=this;this.errorTimer||(this.errorTimer=setTimeout((function(){e.loadedOkay||e._abort(new Error("JSONP script loaded abnormally (onerror)"))}),c.scriptErrorTimeout))},c.prototype._createScript=function(e){s("_createScript",e);var t,r=this,a=this.script=n.g.document.createElement("script");if(a.id="a"+o.string(8),a.src=e,a.type="text/javascript",a.charset="UTF-8",a.onerror=this._scriptError.bind(this),a.onload=function(){s("onload"),r._abort(new Error("JSONP script loaded abnormally (onload)"))},a.onreadystatechange=function(){if(s("onreadystatechange",a.readyState),/loaded|closed/.test(a.readyState)){if(a&&a.htmlFor&&a.onclick){r.loadedOkay=!0;try{a.onclick()}catch(e){}}a&&r._abort(new Error("JSONP script loaded abnormally (onreadystatechange)"))}},void 0===a.async&&n.g.document.attachEvent)if(i.isOpera())(t=this.script2=n.g.document.createElement("script")).text="try{var a = document.getElementById('"+a.id+"'); if(a)a.onerror();}catch(x){};",a.async=t.async=!1;else{try{a.htmlFor=a.id,a.event="onclick"}catch(e){}a.async=!0}void 0!==a.async&&(a.async=!0);var l=n.g.document.getElementsByTagName("head")[0];l.insertBefore(a,l.firstChild),t&&l.insertBefore(t,l.firstChild)},e.exports=c},1044:function(e,t,n){"use strict";var r=n(5717),o=n(3212).v,i=function(){};function a(e,t){i(e),o.call(this);var n=this;this.bufferPosition=0,this.xo=new t("POST",e,null),this.xo.on("chunk",this._chunkHandler.bind(this)),this.xo.once("finish",(function(e,t){i("finish",e,t),n._chunkHandler(e,t),n.xo=null;var r=200===e?"network":"permanent";i("close",r),n.emit("close",null,r),n._cleanup()}))}r(a,o),a.prototype._chunkHandler=function(e,t){if(i("_chunkHandler",e),200===e&&t)for(var n=-1;;this.bufferPosition+=n+1){var r=t.slice(this.bufferPosition);if(-1===(n=r.indexOf("\n")))break;var o=r.slice(0,n);o&&(i("message",o),this.emit("message",o))}},a.prototype._cleanup=function(){i("_cleanup"),this.removeAllListeners()},a.prototype.abort=function(){i("abort"),this.xo&&(this.xo.close(),i("close"),this.emit("close",null,"user"),this.xo=null),this._cleanup()},e.exports=a},771:function(e,t,n){"use strict";var r,o,i=n(8915),a=n(273);e.exports=function(e,t,l){r||((r=n.g.document.createElement("form")).style.display="none",r.style.position="absolute",r.method="POST",r.enctype="application/x-www-form-urlencoded",r.acceptCharset="UTF-8",(o=n.g.document.createElement("textarea")).name="d",r.appendChild(o),n.g.document.body.appendChild(r));var u="a"+i.string(8);r.target=u,r.action=a.addQuery(a.addPath(e,"/jsonp_send"),"i="+u);var s=function(e){try{return n.g.document.createElement('<iframe name="'+e+'">')}catch(r){var t=n.g.document.createElement("iframe");return t.name=e,t}}(u);s.id=u,s.style.display="none",r.appendChild(s);try{o.value=t}catch(e){}r.submit();var c=function(e){s.onerror&&(s.onreadystatechange=s.onerror=s.onload=null,setTimeout((function(){s.parentNode.removeChild(s),s=null}),500),o.value="",l(e))};return s.onerror=function(){c()},s.onload=function(){c()},s.onreadystatechange=function(e){s.readyState,"complete"===s.readyState&&c()},function(){c(new Error("Aborted"))}}},6073:function(e,t,n){"use strict";var r=n(3212).v,o=n(5717),i=n(7705),a=n(8510),l=n(273),u=function(){};function s(e,t,n){u(e,t);var o=this;r.call(this),setTimeout((function(){o._start(e,t,n)}),0)}o(s,r),s.prototype._start=function(e,t,r){u("_start");var o=this,a=new n.g.XDomainRequest;t=l.addQuery(t,"t="+ +new Date),a.onerror=function(){u("onerror"),o._error()},a.ontimeout=function(){u("ontimeout"),o._error()},a.onprogress=function(){u("progress",a.responseText),o.emit("chunk",200,a.responseText)},a.onload=function(){u("load"),o.emit("finish",200,a.responseText),o._cleanup(!1)},this.xdr=a,this.unloadRef=i.unloadAdd((function(){o._cleanup(!0)}));try{this.xdr.open(e,t),this.timeout&&(this.xdr.timeout=this.timeout),this.xdr.send(r)}catch(e){this._error()}},s.prototype._error=function(){this.emit("finish",0,""),this._cleanup(!1)},s.prototype._cleanup=function(e){if(u("cleanup",e),this.xdr){if(this.removeAllListeners(),i.unloadDel(this.unloadRef),this.xdr.ontimeout=this.xdr.onerror=this.xdr.onprogress=this.xdr.onload=null,e)try{this.xdr.abort()}catch(e){}this.unloadRef=this.xdr=null}},s.prototype.close=function(){u("close"),this._cleanup(!0)},s.enabled=!(!n.g.XDomainRequest||!a.hasDomain()),e.exports=s},9033:function(e,t,n){"use strict";var r=n(5717),o=n(2940);function i(e,t,n,r){o.call(this,e,t,n,r)}r(i,o),i.enabled=o.enabled&&o.supportsCORS,e.exports=i},7103:function(e,t,n){"use strict";var r=n(3212).v;function o(){var e=this;r.call(this),this.to=setTimeout((function(){e.emit("finish",200,"{}")}),o.timeout)}n(5717)(o,r),o.prototype.close=function(){clearTimeout(this.to)},o.timeout=2e3,e.exports=o},3515:function(e,t,n){"use strict";var r=n(5717),o=n(2940);function i(e,t,n){o.call(this,e,t,n,{noCredentials:!0})}r(i,o),i.enabled=o.enabled,e.exports=i},2412:function(e,t,n){"use strict";var r=n(7705),o=n(273),i=n(5717),a=n(3212).v,l=n(9334),u=function(){};function s(e,t,n){if(!s.enabled())throw new Error("Transport created when disabled");a.call(this),u("constructor",e);var i=this,c=o.addPath(e,"/websocket");c="https"===c.slice(0,5)?"wss"+c.slice(5):"ws"+c.slice(4),this.url=c,this.ws=new l(this.url,[],n),this.ws.onmessage=function(e){u("message event",e.data),i.emit("message",e.data)},this.unloadRef=r.unloadAdd((function(){u("unload"),i.ws.close()})),this.ws.onclose=function(e){u("close event",e.code,e.reason),i.emit("close",e.code,e.reason),i._cleanup()},this.ws.onerror=function(e){u("error event",e),i.emit("close",1006,"WebSocket connection broken"),i._cleanup()}}i(s,a),s.prototype.send=function(e){var t="["+e+"]";u("send",t),this.ws.send(t)},s.prototype.close=function(){u("close");var e=this.ws;this._cleanup(),e&&e.close()},s.prototype._cleanup=function(){u("_cleanup");var e=this.ws;e&&(e.onmessage=e.onclose=e.onerror=null),r.unloadDel(this.unloadRef),this.unloadRef=this.ws=null,this.removeAllListeners()},s.enabled=function(){return u("enabled"),!!l},s.transportName="websocket",s.roundTrips=2,e.exports=s},9998:function(e,t,n){"use strict";var r=n(5717),o=n(9395),i=n(4620),a=n(1044),l=n(6073);function u(e){if(!l.enabled)throw new Error("Transport created when disabled");o.call(this,e,"/xhr",a,l)}r(u,o),u.enabled=i.enabled,u.transportName="xdr-polling",u.roundTrips=2,e.exports=u},4620:function(e,t,n){"use strict";var r=n(5717),o=n(9395),i=n(1044),a=n(6073);function l(e){if(!a.enabled)throw new Error("Transport created when disabled");o.call(this,e,"/xhr_streaming",i,a)}r(l,o),l.enabled=function(e){return!e.cookie_needed&&!e.nullOrigin&&a.enabled&&e.sameScheme},l.transportName="xdr-streaming",l.roundTrips=2,e.exports=l},2387:function(e,t,n){"use strict";var r=n(5717),o=n(9395),i=n(1044),a=n(9033),l=n(3515);function u(e){if(!l.enabled&&!a.enabled)throw new Error("Transport created when disabled");o.call(this,e,"/xhr",i,a)}r(u,o),u.enabled=function(e){return!e.nullOrigin&&(!(!l.enabled||!e.sameOrigin)||a.enabled)},u.transportName="xhr-polling",u.roundTrips=2,e.exports=u},9842:function(e,t,n){"use strict";var r=n(5717),o=n(9395),i=n(1044),a=n(9033),l=n(3515),u=n(8510);function s(e){if(!l.enabled&&!a.enabled)throw new Error("Transport created when disabled");o.call(this,e,"/xhr_streaming",i,a)}r(s,o),s.enabled=function(e){return!e.nullOrigin&&!u.isOpera()&&a.enabled},s.transportName="xhr-streaming",s.roundTrips=2,s.needBody=!!n.g.document,e.exports=s},2017:function(e,t,n){"use strict";n.g.crypto&&n.g.crypto.getRandomValues?e.exports.randomBytes=function(e){var t=new Uint8Array(e);return n.g.crypto.getRandomValues(t),t}:e.exports.randomBytes=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=Math.floor(256*Math.random());return t}},8510:function(e,t,n){"use strict";e.exports={isOpera:function(){return n.g.navigator&&/opera/i.test(n.g.navigator.userAgent)},isKonqueror:function(){return n.g.navigator&&/konqueror/i.test(n.g.navigator.userAgent)},hasDomain:function(){if(!n.g.document)return!0;try{return!!n.g.document.domain}catch(e){return!1}}}},8028:function(e){"use strict";var t,n=/[\x00-\x1f\ud800-\udfff\ufffe\uffff\u0300-\u0333\u033d-\u0346\u034a-\u034c\u0350-\u0352\u0357-\u0358\u035c-\u0362\u0374\u037e\u0387\u0591-\u05af\u05c4\u0610-\u0617\u0653-\u0654\u0657-\u065b\u065d-\u065e\u06df-\u06e2\u06eb-\u06ec\u0730\u0732-\u0733\u0735-\u0736\u073a\u073d\u073f-\u0741\u0743\u0745\u0747\u07eb-\u07f1\u0951\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e38-\u0e39\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u0f72-\u0f76\u0f78\u0f80-\u0f83\u0f93\u0f9d\u0fa2\u0fa7\u0fac\u0fb9\u1939-\u193a\u1a17\u1b6b\u1cda-\u1cdb\u1dc0-\u1dcf\u1dfc\u1dfe\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbe\u1fc9\u1fcb\u1fd3\u1fdb\u1fe3\u1feb\u1fee-\u1fef\u1ff9\u1ffb\u1ffd\u2000-\u2001\u20d0-\u20d1\u20d4-\u20d7\u20e7-\u20e9\u2126\u212a-\u212b\u2329-\u232a\u2adc\u302b-\u302c\uaab2-\uaab3\uf900-\ufa0d\ufa10\ufa12\ufa15-\ufa1e\ufa20\ufa22\ufa25-\ufa26\ufa2a-\ufa2d\ufa30-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufb4e\ufff0-\uffff]/g;e.exports={quote:function(e){var r=JSON.stringify(e);return n.lastIndex=0,n.test(r)?(t||(t=function(e){var t,n={},r=[];for(t=0;t<65536;t++)r.push(String.fromCharCode(t));return e.lastIndex=0,r.join("").replace(e,(function(e){return n[e]="\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4),""})),e.lastIndex=0,n}(n)),r.replace(n,(function(e){return t[e]}))):r}}},7705:function(e,t,n){"use strict";var r=n(8915),o={},i=!1,a=n.g.chrome&&n.g.chrome.app&&n.g.chrome.app.runtime;e.exports={attachEvent:function(e,t){void 0!==n.g.addEventListener?n.g.addEventListener(e,t,!1):n.g.document&&n.g.attachEvent&&(n.g.document.attachEvent("on"+e,t),n.g.attachEvent("on"+e,t))},detachEvent:function(e,t){void 0!==n.g.addEventListener?n.g.removeEventListener(e,t,!1):n.g.document&&n.g.detachEvent&&(n.g.document.detachEvent("on"+e,t),n.g.detachEvent("on"+e,t))},unloadAdd:function(e){if(a)return null;var t=r.string(8);return o[t]=e,i&&setTimeout(this.triggerUnloadCallbacks,0),t},unloadDel:function(e){e in o&&delete o[e]},triggerUnloadCallbacks:function(){for(var e in o)o[e](),delete o[e]}},a||e.exports.attachEvent("unload",(function(){i||(i=!0,e.exports.triggerUnloadCallbacks())}))},3683:function(e,t,n){"use strict";var r=n(7705),o=n(8510);e.exports={WPrefix:"_jp",currentWindowId:null,polluteGlobalNamespace:function(){e.exports.WPrefix in n.g||(n.g[e.exports.WPrefix]={})},postMessage:function(t,r){n.g.parent!==n.g&&n.g.parent.postMessage(JSON.stringify({windowId:e.exports.currentWindowId,type:t,data:r||""}),"*")},createIframe:function(e,t){var o,i,a=n.g.document.createElement("iframe"),l=function(){clearTimeout(o);try{a.onload=null}catch(e){}a.onerror=null},u=function(){a&&(l(),setTimeout((function(){a&&a.parentNode.removeChild(a),a=null}),0),r.unloadDel(i))},s=function(e){a&&(u(),t(e))};return a.src=e,a.style.display="none",a.style.position="absolute",a.onerror=function(){s("onerror")},a.onload=function(){clearTimeout(o),o=setTimeout((function(){s("onload timeout")}),2e3)},n.g.document.body.appendChild(a),o=setTimeout((function(){s("timeout")}),15e3),i=r.unloadAdd(u),{post:function(e,t){setTimeout((function(){try{a&&a.contentWindow&&a.contentWindow.postMessage(e,t)}catch(e){}}),0)},cleanup:u,loaded:l}},createHtmlfile:function(t,o){var i,a,l,u=["Active"].concat("Object").join("X"),s=new n.g[u]("htmlfile"),c=function(){clearTimeout(i),l.onerror=null},f=function(){s&&(c(),r.unloadDel(a),l.parentNode.removeChild(l),l=s=null,CollectGarbage())},d=function(e){s&&(f(),o(e))};s.open(),s.write('<html><script>document.domain="'+n.g.document.domain+'";<\/script></html>'),s.close(),s.parentWindow[e.exports.WPrefix]=n.g[e.exports.WPrefix];var p=s.createElement("div");return s.body.appendChild(p),l=s.createElement("iframe"),p.appendChild(l),l.src=t,l.onerror=function(){d("onerror")},i=setTimeout((function(){d("timeout")}),15e3),a=r.unloadAdd(f),{post:function(e,t){try{setTimeout((function(){l&&l.contentWindow&&l.contentWindow.postMessage(e,t)}),0)}catch(e){}},cleanup:f,loaded:c}}},e.exports.iframeEnabled=!1,n.g.document&&(e.exports.iframeEnabled=("function"==typeof n.g.postMessage||"object"==typeof n.g.postMessage)&&!o.isKonqueror())},4886:function(e,t,n){"use strict";var r={};["log","debug","warn"].forEach((function(e){var t;try{t=n.g.console&&n.g.console[e]&&n.g.console[e].apply}catch(e){}r[e]=t?function(){return n.g.console[e].apply(n.g.console,arguments)}:"log"===e?function(){}:r.log})),e.exports=r},2217:function(e){"use strict";e.exports={isObject:function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},extend:function(e){if(!this.isObject(e))return e;for(var t,n,r=1,o=arguments.length;r<o;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}}},8915:function(e,t,n){"use strict";var r=n(2017);e.exports={string:function(e){for(var t=r.randomBytes(e),n=[],o=0;o<e;o++)n.push("abcdefghijklmnopqrstuvwxyz012345".substr(t[o]%32,1));return n.join("")},number:function(e){return Math.floor(Math.random()*e)},numberString:function(e){var t=(""+(e-1)).length;return(new Array(t+1).join("0")+this.number(e)).slice(-t)}}},5581:function(e){"use strict";e.exports=function(e){return{filterToEnabled:function(t,n){var r={main:[],facade:[]};return t?"string"==typeof t&&(t=[t]):t=[],e.forEach((function(e){e&&("websocket"===e.transportName&&!1===n.websocket||(t.length&&-1===t.indexOf(e.transportName)?e.transportName:e.enabled(n)?(e.transportName,r.main.push(e),e.facadeTransport&&r.facade.push(e.facadeTransport)):e.transportName))})),r}}}},273:function(e,t,n){"use strict";var r=n(4564);e.exports={getOrigin:function(e){if(!e)return null;var t=new r(e);if("file:"===t.protocol)return null;var n=t.port;return n||(n="https:"===t.protocol?"443":"80"),t.protocol+"//"+t.hostname+":"+n},isOriginEqual:function(e,t){return this.getOrigin(e)===this.getOrigin(t)},isSchemeEqual:function(e,t){return e.split(":")[0]===t.split(":")[0]},addPath:function(e,t){var n=e.split("?");return n[0]+t+(n[1]?"?"+n[1]:"")},addQuery:function(e,t){return e+(-1===e.indexOf("?")?"?"+t:"&"+t)},isLoopbackAddr:function(e){return/^127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^\[::1\]$/.test(e)}}},2828:function(e){e.exports="1.6.1"},4774:function(e,t,n){var r=n(7106),o=n(907);e.exports=r.Stomp,e.exports.overTCP=o.overTCP,e.exports.overWS=o.overWS},907:function(e,t,n){(function(){var e,r,o,i,a,l;e=n(7106),r=n(5456),e.Stomp.setInterval=function(e,t){return setInterval(t,e)},e.Stomp.clearInterval=function(e){return clearInterval(e)},a=function(e,t){var n,o;return n=null,o={url:"tcp:// "+t+":"+e,send:function(e){return n.write(e)},close:function(){return n.end()}},(n=r.connect(e,t,(function(e){return o.onopen()}))).on("error",(function(e){return"function"==typeof o.onclose?o.onclose(e):void 0})),n.on("close",(function(e){return"function"==typeof o.onclose?o.onclose(e):void 0})),n.on("data",(function(e){var t;return t={data:e.toString()},o.onmessage(t)})),o},l=function(e){var t,r,o,i;return t=n(5840).client,r=null,i={url:e,send:function(e){return r.sendUTF(e)},close:function(){return r.close()}},(o=new t).on("connect",(function(e){return r=e,i.onopen(),r.on("error",(function(e){return"function"==typeof i.onclose?i.onclose(e):void 0})),r.on("close",(function(){return"function"==typeof i.onclose?i.onclose():void 0})),r.on("message",(function(e){var t;if("utf8"===e.type)return t={data:e.utf8Data},i.onmessage(t)}))})),o.connect(e),i},o=function(t,n){var r;return r=a(n,t),e.Stomp.over(r)},i=function(t){var n;return n=l(t),e.Stomp.over(n)},t.overTCP=o,t.overWS=i}).call(this)},7106:function(e,t){(function(){var e,n,r,o,i={}.hasOwnProperty,a=[].slice;e={LF:"\n",NULL:"\0"},r=function(){var t;function n(e,t,n){this.command=e,this.headers=null!=t?t:{},this.body=null!=n?n:""}return n.prototype.toString=function(){var t,r,o,a,l;for(r in t=[this.command],(o=!1===this.headers["content-length"])&&delete this.headers["content-length"],l=this.headers)i.call(l,r)&&(a=l[r],t.push(r+":"+a));return this.body&&!o&&t.push("content-length:"+n.sizeOfUTF8(this.body)),t.push(e.LF+this.body),t.join(e.LF)},n.sizeOfUTF8=function(e){return e?encodeURI(e).match(/%..|./g).length:0},t=function(t){var r,o,i,a,l,u,s,c,f,d,p,h,m,y,v,g,b;for(a=t.search(RegExp(""+e.LF+e.LF)),i=(l=t.substring(0,a).split(e.LF)).shift(),u={},h=function(e){return e.replace(/^\s+|\s+$/g,"")},m=0,v=(g=l.reverse()).length;m<v;m++)c=(d=g[m]).indexOf(":"),u[h(d.substring(0,c))]=h(d.substring(c+1));if(r="",p=a+2,u["content-length"])f=parseInt(u["content-length"]),r=(""+t).substring(p,p+f);else for(o=null,s=y=p,b=t.length;(p<=b?y<b:y>b)&&(o=t.charAt(s))!==e.NULL;s=p<=b?++y:--y)r+=o;return new n(i,u,r)},n.unmarshall=function(n){var r;return function(){var o,i,a,l;for(l=[],o=0,i=(a=n.split(RegExp(""+e.NULL+e.LF+"*"))).length;o<i;o++)(null!=(r=a[o])?r.length:void 0)>0&&l.push(t(r));return l}()},n.marshall=function(t,r,o){return new n(t,r,o).toString()+e.NULL},n}(),n=function(){var t;function n(e){this.ws=e,this.ws.binaryType="arraybuffer",this.counter=0,this.connected=!1,this.heartbeat={outgoing:1e4,incoming:1e4},this.maxWebSocketFrameSize=16384,this.subscriptions={}}return n.prototype.debug=function(e){var t;return"undefined"!=typeof window&&null!==window&&null!=(t=window.console)?t.log(e):void 0},t=function(){return Date.now?Date.now():(new Date).valueOf},n.prototype._transmit=function(e,t,n){var o;for(o=r.marshall(e,t,n),"function"==typeof this.debug&&this.debug(">>> "+o);;){if(!(o.length>this.maxWebSocketFrameSize))return this.ws.send(o);this.ws.send(o.substring(0,this.maxWebSocketFrameSize)),o=o.substring(this.maxWebSocketFrameSize),"function"==typeof this.debug&&this.debug("remaining = "+o.length)}},n.prototype._setupHeartbeat=function(n){var r,i,a,l,u,s,c;if((u=n.version)===o.VERSIONS.V1_1||u===o.VERSIONS.V1_2)return i=(s=function(){var e,t,r,o;for(o=[],e=0,t=(r=n["heart-beat"].split(",")).length;e<t;e++)l=r[e],o.push(parseInt(l));return o}())[0],r=s[1],0!==this.heartbeat.outgoing&&0!==r&&(a=Math.max(this.heartbeat.outgoing,r),"function"==typeof this.debug&&this.debug("send PING every "+a+"ms"),this.pinger=o.setInterval(a,(c=this,function(){return c.ws.send(e.LF),"function"==typeof c.debug?c.debug(">>> PING"):void 0}))),0!==this.heartbeat.incoming&&0!==i?(a=Math.max(this.heartbeat.incoming,i),"function"==typeof this.debug&&this.debug("check PONG every "+a+"ms"),this.ponger=o.setInterval(a,function(e){return function(){var n;if((n=t()-e.serverActivity)>2*a)return"function"==typeof e.debug&&e.debug("did not receive server activity for the last "+n+"ms"),e.ws.close()}}(this))):void 0},n.prototype._parseConnect=function(){var e,t,n,r;switch(r={},(e=1<=arguments.length?a.call(arguments,0):[]).length){case 2:r=e[0],t=e[1];break;case 3:e[1]instanceof Function?(r=e[0],t=e[1],n=e[2]):(r.login=e[0],r.passcode=e[1],t=e[2]);break;case 4:r.login=e[0],r.passcode=e[1],t=e[2],n=e[3];break;default:r.login=e[0],r.passcode=e[1],t=e[2],n=e[3],r.host=e[4]}return[r,t,n]},n.prototype.connect=function(){var n,i,l,u,s;return n=1<=arguments.length?a.call(arguments,0):[],u=this._parseConnect.apply(this,n),l=u[0],this.connectCallback=u[1],i=u[2],"function"==typeof this.debug&&this.debug("Opening Web Socket..."),this.ws.onmessage=(s=this,function(n){var o,a,l,u,c,f,d,p,h,m,y,v;if(u="undefined"!=typeof ArrayBuffer&&n.data instanceof ArrayBuffer?(o=new Uint8Array(n.data),"function"==typeof s.debug&&s.debug("--- got data length: "+o.length),function(){var e,t,n;for(n=[],e=0,t=o.length;e<t;e++)a=o[e],n.push(String.fromCharCode(a));return n}().join("")):n.data,s.serverActivity=t(),u!==e.LF){for("function"==typeof s.debug&&s.debug("<<< "+u),v=[],h=0,m=(y=r.unmarshall(u)).length;h<m;h++)switch((c=y[h]).command){case"CONNECTED":"function"==typeof s.debug&&s.debug("connected to server "+c.headers.server),s.connected=!0,s._setupHeartbeat(c.headers),v.push("function"==typeof s.connectCallback?s.connectCallback(c):void 0);break;case"MESSAGE":p=c.headers.subscription,(d=s.subscriptions[p]||s.onreceive)?(l=s,f=c.headers["message-id"],c.ack=function(e){return null==e&&(e={}),l.ack(f,p,e)},c.nack=function(e){return null==e&&(e={}),l.nack(f,p,e)},v.push(d(c))):v.push("function"==typeof s.debug?s.debug("Unhandled received MESSAGE: "+c):void 0);break;case"RECEIPT":v.push("function"==typeof s.onreceipt?s.onreceipt(c):void 0);break;case"ERROR":v.push("function"==typeof i?i(c):void 0);break;default:v.push("function"==typeof s.debug?s.debug("Unhandled frame: "+c):void 0)}return v}"function"==typeof s.debug&&s.debug("<<< PONG")}),this.ws.onclose=function(e){return function(){var t;return t="Whoops! Lost connection to "+e.ws.url,"function"==typeof e.debug&&e.debug(t),e._cleanUp(),"function"==typeof i?i(t):void 0}}(this),this.ws.onopen=function(e){return function(){return"function"==typeof e.debug&&e.debug("Web Socket Opened..."),l["accept-version"]=o.VERSIONS.supportedVersions(),l["heart-beat"]=[e.heartbeat.outgoing,e.heartbeat.incoming].join(","),e._transmit("CONNECT",l)}}(this)},n.prototype.disconnect=function(e,t){return null==t&&(t={}),this._transmit("DISCONNECT",t),this.ws.onclose=null,this.ws.close(),this._cleanUp(),"function"==typeof e?e():void 0},n.prototype._cleanUp=function(){if(this.connected=!1,this.pinger&&o.clearInterval(this.pinger),this.ponger)return o.clearInterval(this.ponger)},n.prototype.send=function(e,t,n){return null==t&&(t={}),null==n&&(n=""),t.destination=e,this._transmit("SEND",t,n)},n.prototype.subscribe=function(e,t,n){var r;return null==n&&(n={}),n.id||(n.id="sub-"+this.counter++),n.destination=e,this.subscriptions[n.id]=t,this._transmit("SUBSCRIBE",n),r=this,{id:n.id,unsubscribe:function(){return r.unsubscribe(n.id)}}},n.prototype.unsubscribe=function(e){return delete this.subscriptions[e],this._transmit("UNSUBSCRIBE",{id:e})},n.prototype.begin=function(e){var t,n;return n=e||"tx-"+this.counter++,this._transmit("BEGIN",{transaction:n}),t=this,{id:n,commit:function(){return t.commit(n)},abort:function(){return t.abort(n)}}},n.prototype.commit=function(e){return this._transmit("COMMIT",{transaction:e})},n.prototype.abort=function(e){return this._transmit("ABORT",{transaction:e})},n.prototype.ack=function(e,t,n){return null==n&&(n={}),n["message-id"]=e,n.subscription=t,this._transmit("ACK",n)},n.prototype.nack=function(e,t,n){return null==n&&(n={}),n["message-id"]=e,n.subscription=t,this._transmit("NACK",n)},n}(),o={VERSIONS:{V1_0:"1.0",V1_1:"1.1",V1_2:"1.2",supportedVersions:function(){return"1.1,1.0"}},client:function(e,t){var r;return null==t&&(t=["v10.stomp","v11.stomp"]),r=new(o.WebSocketClass||WebSocket)(e,t),new n(r)},over:function(e){return new n(e)},Frame:r},null!==t&&(t.Stomp=o),"undefined"!=typeof window&&null!==window?(o.setInterval=function(e,t){return window.setInterval(t,e)},o.clearInterval=function(e){return window.clearInterval(e)},window.Stomp=o):t||(self.Stomp=o)}).call(this)},3379:function(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],l=0;l<e.length;l++){var u=e[l],s=r.base?u[0]+r.base:u[0],c=i[s]||0,f="".concat(s," ").concat(c);i[s]=c+1;var d=n(f),p={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var h=o(p,r);r.byIndex=l,t.splice(l,0,{identifier:f,updater:h,references:1})}a.push(f)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var l=n(i[a]);t[l].references--}for(var u=r(e,o),s=0;s<i.length;s++){var c=n(i[s]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=u}}},569:function(e){"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},9216:function(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:function(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:function(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1476:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var o=r(n(7848)),i=n(6678);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)})),n):n}},6678:function(e,t){"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,u):e.replace(i,u)).replace(r,l))}},7848:function(e,t,n){var r=n(8139);function o(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var i,a,l=r(e),u="function"==typeof t,s=0,c=l.length;s<c;s++)i=(n=l[s]).property,a=n.value,u?t(i,a,n):a&&(o||(o={}),o[i]=a);return o}e.exports=o,e.exports.default=o},4564:function(e,t,n){"use strict";var r=n(7418),o=n(7129),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,l=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;function f(e){return(e||"").toString().replace(i,"")}var d=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],p={hash:1,query:1};function h(e){var t,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},o={},i=typeof(e=e||r);if("blob:"===e.protocol)o=new v(unescape(e.pathname),{});else if("string"===i)for(t in o=new v(e,{}),p)delete o[t];else if("object"===i){for(t in e)t in p||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=l.test(e.href))}return o}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function y(e,t){e=(e=f(e)).replace(a,""),t=t||{};var n,r=s.exec(e),o=r[1]?r[1].toLowerCase():"",i=!!r[2],l=!!r[3],u=0;return i?l?(n=r[2]+r[3]+r[4],u=r[2].length+r[3].length):(n=r[2]+r[4],u=r[2].length):l?(n=r[3]+r[4],u=r[3].length):n=r[4],"file:"===o?u>=2&&(n=n.slice(2)):m(o)?n=r[4]:o?i&&(n=n.slice(2)):u>=2&&m(t.protocol)&&(n=r[4]),{protocol:o,slashes:i||m(o),slashesCount:u,rest:n}}function v(e,t,n){if(e=(e=f(e)).replace(a,""),!(this instanceof v))return new v(e,t,n);var i,l,u,s,p,g,b=d.slice(),w=typeof t,x=this,S=0;for("object"!==w&&"string"!==w&&(n=t,t=null),n&&"function"!=typeof n&&(n=o.parse),i=!(l=y(e||"",t=h(t))).protocol&&!l.slashes,x.slashes=l.slashes||i&&t.slashes,x.protocol=l.protocol||t.protocol||"",e=l.rest,("file:"===l.protocol&&(2!==l.slashesCount||c.test(e))||!l.slashes&&(l.protocol||l.slashesCount<2||!m(x.protocol)))&&(b[3]=[/(.*)/,"pathname"]);S<b.length;S++)"function"!=typeof(s=b[S])?(u=s[0],g=s[1],u!=u?x[g]=e:"string"==typeof u?~(p="@"===u?e.lastIndexOf(u):e.indexOf(u))&&("number"==typeof s[2]?(x[g]=e.slice(0,p),e=e.slice(p+s[2])):(x[g]=e.slice(p),e=e.slice(0,p))):(p=u.exec(e))&&(x[g]=p[1],e=e.slice(0,p.index)),x[g]=x[g]||i&&s[3]&&t[g]||"",s[4]&&(x[g]=x[g].toLowerCase())):e=s(e,x);n&&(x.query=n(x.query)),i&&t.slashes&&"/"!==x.pathname.charAt(0)&&(""!==x.pathname||""!==t.pathname)&&(x.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],i=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(i=!0),n.splice(r,1),a--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(x.pathname,t.pathname)),"/"!==x.pathname.charAt(0)&&m(x.protocol)&&(x.pathname="/"+x.pathname),r(x.port,x.protocol)||(x.host=x.hostname,x.port=""),x.username=x.password="",x.auth&&(~(p=x.auth.indexOf(":"))?(x.username=x.auth.slice(0,p),x.username=encodeURIComponent(decodeURIComponent(x.username)),x.password=x.auth.slice(p+1),x.password=encodeURIComponent(decodeURIComponent(x.password))):x.username=encodeURIComponent(decodeURIComponent(x.auth)),x.auth=x.password?x.username+":"+x.password:x.username),x.origin="file:"!==x.protocol&&m(x.protocol)&&x.host?x.protocol+"//"+x.host:"null",x.href=x.toString()}v.prototype={set:function(e,t,n){var i=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||o.parse)(t)),i[e]=t;break;case"port":i[e]=t,r(t,i.protocol)?t&&(i.host=i.hostname+":"+t):(i.host=i.hostname,i[e]="");break;case"hostname":i[e]=t,i.port&&(t+=":"+i.port),i.host=t;break;case"host":i[e]=t,u.test(t)?(t=t.split(":"),i.port=t.pop(),i.hostname=t.join(":")):(i.hostname=t,i.port="");break;case"protocol":i.protocol=t.toLowerCase(),i.slashes=!n;break;case"pathname":case"hash":if(t){var a="pathname"===e?"/":"#";i[e]=t.charAt(0)!==a?a+t:t}else i[e]=t;break;case"username":case"password":i[e]=encodeURIComponent(t);break;case"auth":var l=t.indexOf(":");~l?(i.username=t.slice(0,l),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=t.slice(l+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(t))}for(var s=0;s<d.length;s++){var c=d[s];c[4]&&(i[c[1]]=i[c[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin="file:"!==i.protocol&&m(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(e){e&&"function"==typeof e||(e=o.stringify);var t,n=this,r=n.host,i=n.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var a=i+(n.protocol&&n.slashes||m(n.protocol)?"//":"");return n.username?(a+=n.username,n.password&&(a+=":"+n.password),a+="@"):n.password?(a+=":"+n.password,a+="@"):"file:"!==n.protocol&&m(n.protocol)&&!r&&"/"!==n.pathname&&(a+="@"),(":"===r[r.length-1]||u.test(n.hostname)&&!n.port)&&(r+=":"),a+=r+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(a+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(a+=n.hash),a}},v.extractProtocol=y,v.location=h,v.trimLeft=f,v.qs=o,e.exports=v},3250:function(e,t,n){"use strict";var r=n(7294),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,l=r.useLayoutEffect,u=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return l((function(){o.value=n,o.getSnapshot=t,s(o)&&c({inst:o})}),[e,n,t]),a((function(){return s(o)&&c({inst:o}),e((function(){s(o)&&c({inst:o})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},139:function(e,t,n){"use strict";var r=n(7294),o=n(1688),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,l=r.useRef,u=r.useEffect,s=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=l(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=s((function(){function e(e){if(!u){if(u=!0,a=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return l=t}return l=e}if(t=l,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,l=n)}var a,l,u=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,o]);var p=a(e,f[0],f[1]);return u((function(){d.hasValue=!0,d.value=p}),[p]),c(p),p}},1688:function(e,t,n){"use strict";e.exports=n(3250)},2798:function(e,t,n){"use strict";e.exports=n(139)},5840:function(e,t,n){var r;if("object"==typeof globalThis)r=globalThis;else try{r=n(284)}catch(e){}finally{if(r||"undefined"==typeof window||(r=window),!r)throw new Error("Could not determine global this")}var o=r.WebSocket||r.MozWebSocket,i=n(9387);function a(e,t){return t?new o(e,t):new o(e)}o&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(e){Object.defineProperty(a,e,{get:function(){return o[e]}})})),e.exports={w3cwebsocket:o?a:null,version:i}},9387:function(e,t,n){e.exports=n(9794).version},9794:function(e){"use strict";e.exports={version:"1.0.34"}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};return function(){"use strict";n.r(r),n.d(r,{default:function(){return Xa}});var e=n(7294),t=n(3935),o=n(3379),i=n.n(o),a=n(7795),l=n.n(a),u=n(569),s=n.n(u),c=n(3565),f=n.n(c),d=n(9216),p=n.n(d),h=n(4589),m=n.n(h),y=n(9087),v={};v.styleTagTransform=m(),v.setAttributes=f(),v.insert=s().bind(null,"head"),v.domAPI=l(),v.insertStyleElement=p(),i()(y.Z,v),y.Z&&y.Z.locals&&y.Z.locals;var g=n(9834),b={};b.styleTagTransform=m(),b.setAttributes=f(),b.insert=s().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=p(),i()(g.Z,b),g.Z&&g.Z.locals&&g.Z.locals;var w=n(1688),x=n(2798);let S=function(e){e()};const E=()=>S,k=(0,e.createContext)(null);function C(){return(0,e.useContext)(k)}let O=()=>{throw new Error("uSES not initialized!")};const _=(e,t)=>e===t;function T(t=k){const n=t===k?C:()=>(0,e.useContext)(t);return function(t,r=_){const{store:o,subscription:i,getServerState:a}=n(),l=O(i.addNestedSub,o.getState,a||o.getState,t,r);return(0,e.useDebugValue)(l),l}}const N=T();n(8679),n(2973);const P={notify(){},get:()=>[]};const I="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;let L=null;var j=function({store:t,context:n,children:r,serverState:o}){const i=(0,e.useMemo)((()=>{const e=function(e,t){let n,r=P;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){const e=E();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}const a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=P)},getListeners:()=>r};return a}(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0}}),[t,o]),a=(0,e.useMemo)((()=>t.getState()),[t]);I((()=>{const{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[i,a]);const l=n||k;return e.createElement(l.Provider,{value:i},r)};function A(t=k){const n=t===k?C:()=>(0,e.useContext)(t);return function(){const{store:e}=n();return e}}const R=A();function D(e=k){const t=e===k?R:A(e);return function(){return t().dispatch}}const M=D();var F;function z(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function U(e){return!!e&&!!e[Oe]}function B(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===_e}(e)||Array.isArray(e)||!!e[Ce]||!!(null===(t=e.constructor)||void 0===t?void 0:t[Ce])||G(e)||Q(e))}function V(e,t,n){void 0===n&&(n=!1),0===H(e)?(n?Object.keys:Te)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function H(e){var t=e[Oe];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:G(e)?2:Q(e)?3:0}function W(e,t){return 2===H(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $(e,t,n){var r=H(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function q(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function G(e){return xe&&e instanceof Map}function Q(e){return Se&&e instanceof Set}function K(e){return e.o||e.t}function X(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Ne(e);delete t[Oe];for(var n=Te(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Z(e,t){return void 0===t&&(t=!1),Y(e)||U(e)||!B(e)||(H(e)>1&&(e.set=e.add=e.clear=e.delete=J),Object.freeze(e),t&&V(e,(function(e,t){return Z(t,!0)}),!0)),e}function J(){z(2)}function Y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function ee(e){var t=Pe[e];return t||z(18,e),t}function te(){return be}function ne(e,t){t&&(ee("Patches"),e.u=[],e.s=[],e.v=t)}function re(e){oe(e),e.p.forEach(ae),e.p=null}function oe(e){e===be&&(be=e.l)}function ie(e){return be={p:[],l:be,h:e,m:!0,_:0}}function ae(e){var t=e[Oe];0===t.i||1===t.i?t.j():t.g=!0}function le(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||ee("ES5").S(t,e,r),r?(n[Oe].P&&(re(t),z(4)),B(e)&&(e=ue(t,e),t.l||ce(t,e)),t.u&&ee("Patches").M(n[Oe].t,e,t.u,t.s)):e=ue(t,n,[]),re(t),t.u&&t.v(t.u,t.s),e!==ke?e:void 0}function ue(e,t,n){if(Y(t))return t;var r=t[Oe];if(!r)return V(t,(function(o,i){return se(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return ce(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=X(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),V(i,(function(t,i){return se(e,r,o,t,i,n,a)})),ce(e,o,!1),n&&e.u&&ee("Patches").N(r,n,e.u,e.s)}return r.o}function se(e,t,n,r,o,i,a){if(U(o)){var l=ue(e,o,i&&t&&3!==t.i&&!W(t.R,r)?i.concat(r):void 0);if($(n,r,l),!U(l))return;e.m=!1}else a&&n.add(o);if(B(o)&&!Y(o)){if(!e.h.D&&e._<1)return;ue(e,o),t&&t.A.l||ce(e,o)}}function ce(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&Z(t,n)}function fe(e,t){var n=e[Oe];return(n?K(n):e)[t]}function de(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function pe(e){e.P||(e.P=!0,e.l&&pe(e.l))}function he(e){e.o||(e.o=X(e.t))}function me(e,t,n){var r=G(t)?ee("MapSet").F(t,n):Q(t)?ee("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:te(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Ie;n&&(o=[r],i=Le);var a=Proxy.revocable(o,i),l=a.revoke,u=a.proxy;return r.k=u,r.j=l,u}(t,n):ee("ES5").J(t,n);return(n?n.A:te()).p.push(r),r}function ye(e){return U(e)||z(22,e),function e(t){if(!B(t))return t;var n,r=t[Oe],o=H(t);if(r){if(!r.P&&(r.i<4||!ee("ES5").K(r)))return r.t;r.I=!0,n=ve(t,o),r.I=!1}else n=ve(t,o);return V(n,(function(t,o){r&&function(e,t){return 2===H(e)?e.get(t):e[t]}(r.t,t)===o||$(n,t,e(o))})),3===o?new Set(n):n}(e)}function ve(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return X(e)}(e=>{O=e})(x.useSyncExternalStoreWithSelector),(e=>{L=e})(w.useSyncExternalStore),F=t.unstable_batchedUpdates,S=F;var ge,be,we="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),xe="undefined"!=typeof Map,Se="undefined"!=typeof Set,Ee="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ke=we?Symbol.for("immer-nothing"):((ge={})["immer-nothing"]=!0,ge),Ce=we?Symbol.for("immer-draftable"):"__$immer_draftable",Oe=we?Symbol.for("immer-state"):"__$immer_state",_e=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Te="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Ne=Object.getOwnPropertyDescriptors||function(e){var t={};return Te(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Pe={},Ie={get:function(e,t){if(t===Oe)return e;var n=K(e);if(!W(n,t))return function(e,t,n){var r,o=de(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!B(r)?r:r===fe(e.t,t)?(he(e),e.o[t]=me(e.A.h,r,e)):r},has:function(e,t){return t in K(e)},ownKeys:function(e){return Reflect.ownKeys(K(e))},set:function(e,t,n){var r=de(K(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=fe(K(e),t),i=null==o?void 0:o[Oe];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(q(n,o)&&(void 0!==n||W(e.t,t)))return!0;he(e),pe(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==fe(e.t,t)||t in e.t?(e.R[t]=!1,he(e),pe(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=K(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){z(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){z(12)}},Le={};V(Ie,(function(e,t){Le[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Le.deleteProperty=function(e,t){return Le.set.call(this,e,t,void 0)},Le.set=function(e,t,n){return Ie.set.call(this,e[0],t,n,e[0])};var je=function(){function e(e){var t=this;this.O=Ee,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&z(6),void 0!==r&&"function"!=typeof r&&z(7),B(e)){var l=ie(t),u=me(t,e,void 0),s=!0;try{a=n(u),s=!1}finally{s?re(l):oe(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return ne(l,r),le(e,l)}),(function(e){throw re(l),e})):(ne(l,r),le(a,l))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===ke&&(a=void 0),t.D&&Z(a,!0),r){var c=[],f=[];ee("Patches").M(e,a,c,f),r(c,f)}return a}z(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))};var r,o,i=t.produce(e,n,(function(e,t){r=e,o=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,o]})):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){B(e)||z(8),U(e)&&(e=ye(e));var t=ie(this),n=me(this,e,void 0);return n[Oe].C=!0,oe(t),n},t.finishDraft=function(e,t){var n=(e&&e[Oe]).A;return ne(n,t),le(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!Ee&&z(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=ee("Patches").$;return U(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Ae=new je,Re=Ae.produce,De=(Ae.produceWithPatches.bind(Ae),Ae.setAutoFreeze.bind(Ae),Ae.setUseProxies.bind(Ae),Ae.applyPatches.bind(Ae),Ae.createDraft.bind(Ae),Ae.finishDraft.bind(Ae),Re);function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}function Fe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Me(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Me(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){Fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Be(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ve="function"==typeof Symbol&&Symbol.observable||"@@observable",He=function(){return Math.random().toString(36).substring(7).split("").join(".")},We={INIT:"@@redux/INIT"+He(),REPLACE:"@@redux/REPLACE"+He(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+He()}};function $e(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Be(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Be(1));return n($e)(e,t)}if("function"!=typeof e)throw new Error(Be(2));var o=e,i=t,a=[],l=a,u=!1;function s(){l===a&&(l=a.slice())}function c(){if(u)throw new Error(Be(3));return i}function f(e){if("function"!=typeof e)throw new Error(Be(4));if(u)throw new Error(Be(5));var t=!0;return s(),l.push(e),function(){if(t){if(u)throw new Error(Be(6));t=!1,s();var n=l.indexOf(e);l.splice(n,1),a=null}}}function d(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Be(7));if(void 0===e.type)throw new Error(Be(8));if(u)throw new Error(Be(9));try{u=!0,i=o(i,e)}finally{u=!1}for(var t=a=l,n=0;n<t.length;n++)(0,t[n])();return e}return d({type:We.INIT}),(r={dispatch:d,subscribe:f,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Be(10));o=e,d({type:We.REPLACE})}})[Ve]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Be(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[Ve]=function(){return this},e},r}function qe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Ge(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(Be(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=qe.apply(void 0,i)(n.dispatch),Ue(Ue({},n),{},{dispatch:r})}}}function Qe(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var Ke=Qe();Ke.withExtraArgument=Qe;var Xe,Ze=Ke,Je=(Xe=function(e,t){return Xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Xe(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Xe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ye=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},et=Object.defineProperty,tt=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,at=function(e,t,n){return t in e?et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},lt=function(e,t){for(var n in t||(t={}))ot.call(t,n)&&at(e,n,t[n]);if(rt)for(var r=0,o=rt(t);r<o.length;r++)n=o[r],it.call(t,n)&&at(e,n,t[n]);return e},ut=function(e,t){return tt(e,nt(t))},st="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?qe:qe.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var ct=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Je(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,Ye([void 0],e[0].concat(this)))):new(t.bind.apply(t,Ye([void 0],e.concat(this))))},t}(Array),ft=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Je(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,Ye([void 0],e[0].concat(this)))):new(t.bind.apply(t,Ye([void 0],e.concat(this))))},t}(Array);function dt(e){return B(e)?De(e,(function(){})):e}function pt(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return lt(lt({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function ht(e){var t,n={},r=[],o={addCase:function(e,t){var r="string"==typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,o},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[n,r,t]}function mt(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:dt(e.initialState),o=e.reducers||{},i=Object.keys(o),a={},l={},u={};function s(){var t="function"==typeof e.extraReducers?ht(e.extraReducers):[e.extraReducers],n=t[0],o=void 0===n?{}:n,i=t[1],a=void 0===i?[]:i,u=t[2],s=void 0===u?void 0:u,c=lt(lt({},o),l);return function(e,t,n,r){void 0===n&&(n=[]);var o,i=ht(t),a=i[0],l=i[1],u=i[2];if(function(e){return"function"==typeof e}(e))o=function(){return dt(e())};else{var s=dt(e);o=function(){return s}}function c(e,t){void 0===e&&(e=o());var n=Ye([a[t.type]],l.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[u]),n.reduce((function(e,n){if(n){var r;if(U(e))return void 0===(r=n(e,t))?e:r;if(B(e))return De(e,(function(e){return n(e,t)}));if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return c.getInitialState=o,c}(r,(function(e){for(var t in c)e.addCase(t,c[t]);for(var n=0,r=a;n<r.length;n++){var o=r[n];e.addMatcher(o.matcher,o.reducer)}s&&e.addDefaultCase(s)}))}return i.forEach((function(e){var n,r,i=o[e],s=t+"/"+e;"reducer"in i?(n=i.reducer,r=i.prepare):n=i,a[e]=n,l[s]=n,u[e]=r?pt(s,r):pt(s)})),{name:t,reducer:function(e,t){return n||(n=s()),n(e,t)},actions:u,caseReducers:a,getInitialState:function(){return n||(n=s()),n.getInitialState()}}}var yt=["name","message","stack","code"],vt=function(e,t){this.payload=e,this.meta=t},gt=function(e,t){this.payload=e,this.meta=t},bt=function(e){if("object"==typeof e&&null!==e){for(var t={},n=0,r=yt;n<r.length;n++){var o=r[n];"string"==typeof e[o]&&(t[o]=e[o])}return t}return{message:String(e)}};function wt(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}!function(){function e(e,t,n){var r=pt(e+"/fulfilled",(function(e,t,n,r){return{payload:e,meta:ut(lt({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),o=pt(e+"/pending",(function(e,t,n){return{payload:void 0,meta:ut(lt({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),i=pt(e+"/rejected",(function(e,t,r,o,i){return{payload:o,error:(n&&n.serializeError||bt)(e||"Rejected"),meta:ut(lt({},i||{}),{arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){},e}();return Object.assign((function(e){return function(l,u,s){var c,f=(null==n?void 0:n.idGenerator)?n.idGenerator(e):function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}(),d=new a;function p(e){c=e,d.abort()}var h=function(){return a=this,h=null,m=function(){var a,h,m,y,v,g;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),null===(w=y=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,e,{getState:u,extra:s}))||"object"!=typeof w||"function"!=typeof w.then?[3,2]:[4,y];case 1:y=b.sent(),b.label=2;case 2:if(!1===y||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=new Promise((function(e,t){return d.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:c||"Aborted"})}))})),l(o(f,e,null==(h=null==n?void 0:n.getPendingMeta)?void 0:h.call(n,{requestId:f,arg:e},{getState:u,extra:s}))),[4,Promise.race([v,Promise.resolve(t(e,{dispatch:l,getState:u,extra:s,requestId:f,signal:d.signal,abort:p,rejectWithValue:function(e,t){return new vt(e,t)},fulfillWithValue:function(e,t){return new gt(e,t)}})).then((function(t){if(t instanceof vt)throw t;return t instanceof gt?r(t.payload,f,e,t.meta):r(t,f,e)}))])];case 3:return m=b.sent(),[3,5];case 4:return g=b.sent(),m=g instanceof vt?i(null,f,e,g.payload,g.meta):i(g,f,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(m)&&m.meta.condition||l(m),[2,m]}var w}))},new Promise((function(e,t){var n=function(e){try{o(m.next(e))}catch(e){t(e)}},r=function(e){try{o(m.throw(e))}catch(e){t(e)}},o=function(t){return t.done?e(t.value):Promise.resolve(t.value).then(n,r)};o((m=m.apply(a,h)).next())}));var a,h,m}();return Object.assign(h,{abort:p,requestId:f,arg:e,unwrap:function(){return h.then(wt)}})}}),{pending:o,rejected:i,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}(),Object.assign;var xt="listenerMiddleware";pt(xt+"/add"),pt(xt+"/removeAll"),pt(xt+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:void 0!==n.g?n.g:globalThis);"undefined"!=typeof window&&window.requestAnimationFrame&&window.requestAnimationFrame,function(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[Oe];return Ie.get(t,e)},set:function(t){var n=this[Oe];Ie.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][Oe];if(!o.P)switch(o.i){case 5:r(o)&&pe(o);break;case 4:n(o)&&pe(o)}}}function n(e){for(var t=e.t,n=e.k,r=Te(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==Oe){var a=t[i];if(void 0===a&&!W(t,i))return!0;var l=n[i],u=l&&l[Oe];if(u?u.t!==a:!q(l,a))return!0}}var s=!!t[Oe];return r.length!==Te(t).length+(s?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var o={};!function(e,t){Pe[e]||(Pe[e]=t)}("ES5",{J:function(t,n){var r=Array.isArray(t),o=function(t,n){if(t){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,e(o,!0));return r}var i=Ne(n);delete i[Oe];for(var a=Te(i),l=0;l<a.length;l++){var u=a[l];i[u]=e(u,t||!!i[u].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:te(),P:!1,I:!1,R:{},l:n,t:t,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Oe,{value:i,writable:!0}),o},S:function(e,n,o){o?U(n)&&n[Oe].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[Oe];if(n){var o=n.t,i=n.k,a=n.R,l=n.i;if(4===l)V(i,(function(t){t!==Oe&&(void 0!==o[t]||W(o,t)?a[t]||e(i[t]):(a[t]=!0,pe(n)))})),V(o,(function(e){void 0!==i[e]||W(i,e)||(a[e]=!1,pe(n))}));else if(5===l){if(r(n)&&(pe(n),a.length=!0),i.length<o.length)for(var u=i.length;u<o.length;u++)a[u]=!1;else for(var s=o.length;s<i.length;s++)a[s]=!0;for(var c=Math.min(i.length,o.length),f=0;f<c;f++)i.hasOwnProperty(f)||(a[f]=!0),void 0===a[f]&&e(i[f])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}();var St="chat-content",Et=mt({name:"currentView",initialState:"chat-preview",reducers:{setView:function(e,t){return t.payload}}}),kt=Et.actions.setView,Ct=Et.reducer;function Ot(e){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ot(e)}function _t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){Pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ot(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ot(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var It=mt({name:"chatRooms",initialState:null,reducers:{initChatRooms:function(e,t){return t.payload},updateChatRooms:function(e,t){var n=t.payload;for(var r in n)e[r]=Nt(Nt({},e[r]),n[r]);return e},addChatRoom:function(e,t){var n=t.payload.roomId,r=t.payload.room;return Nt(Nt({},e),{},Pt({},n,r))},removeChatRoom:function(e,t){return delete e[t.payload.roomId],e},addChatInRoom:function(e,t){var n,r=t.payload,o=r.roomId,i=r.message;return Nt(Nt({},e),{},Pt({},o,Nt(Nt({},e[o]),{},{messages:[].concat((n=e[o].messages,function(e){if(Array.isArray(e))return _t(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return _t(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_t(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[i])})))},updateSingleChatInRoom:function(e,t){var n=t.payload,r=n.roomId,o=n.messageId,i=n.msgTrackingId,a=n.seen,l=n.delivered,u=e[r].messages.map((function(e){return e.messageId===i?Nt(Nt({},e),{},{messageId:o,seen:a,delivered:l}):e}));return Nt(Nt({},e),{},Pt({},r,Nt(Nt({},e[r]),{},{messages:u})))},updateSingleChatSeenInRoom:function(e,t){var n=t.payload,r=n.roomId,o=n.messageId,i=e[r].messages.map((function(e){return e.messageId===o?Nt(Nt({},e),{},{seen:!0,delivered:!0}):e}));return Nt(Nt({},e),{},Pt({},r,Nt(Nt({},e[r]),{},{messages:i})))},updateAllReceivedMessageStatus:function(e,t){var n,r=t.payload,o=r.roomId,i=r.selfRefId,a=null===(n=e[o].messages)||void 0===n?void 0:n.map((function(e){return e.senderReferenceId!==i?Nt(Nt({},e),{},{seen:!0,delivered:!0}):e}));return Nt(Nt({},e),{},Pt({},o,Nt(Nt({},e[o]),{},{messages:a})))},updateSingleChatAnimatedInRoom:function(e,t){var n=t.payload,r=n.roomId,o=n.messageId,i=e[r].messages.map((function(e){return e.messageId===o?Nt(Nt({},e),{},{animate:!1}):e}));return Nt(Nt({},e),{},Pt({},r,Nt(Nt({},e[r]),{},{messages:i})))}}}),Lt=It.actions,jt=Lt.initChatRooms,At=Lt.updateChatRooms,Rt=Lt.addChatRoom,Dt=Lt.removeChatRoom,Mt=Lt.addChatInRoom,Ft=Lt.updateSingleChatInRoom,zt=Lt.updateSingleChatSeenInRoom,Ut=Lt.updateAllReceivedMessageStatus,Bt=(Lt.updateSingleChatAnimatedInRoom,It.reducer),Vt=mt({name:"connectedUsers",initialState:null,reducers:{initUsers:function(e,t){return t.payload},addUser:function(e,t){return e[t.payload.userId]=t.payload.user,e}}}),Ht=Vt.actions,Wt=Ht.initUsers,$t=Ht.addUser,qt=Vt.reducer,Gt=mt({name:"selfProfile",initialState:null,reducers:{initSelf:function(e,t){return t.payload}}}),Qt=Gt.actions.initSelf,Kt=Gt.reducer,Xt=mt({name:"selectedRoom",initialState:null,reducers:{setSelectedRoom:function(e,t){return t.payload}}}),Zt=Xt.actions.setSelectedRoom,Jt=Xt.reducer;function Yt(e){return Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yt(e)}function en(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Yt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Yt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Yt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=mt({name:"announcementRoom",initialState:null,reducers:{initAnnouncement:function(e,t){return t.payload},updateAnnouncement:function(e,t){return nn(nn({},e),{},{messages:t.payload.messages||[]})},updateSingleChatInAnnouncement:function(e,t){var n=t.payload,r=n.messageId,o=n.msgTrackingId,i=n.seen,a=n.delivered,l=e.messages.map((function(e){return e.messageId===o?nn(nn({},e),{},{messageId:r,seen:i,delivered:a}):e}));return nn(nn({},e),{},{messages:l})},addChatInAnnouncement:function(e,t){return nn(nn({},e),{},{messages:[].concat((n=e.messages,function(e){if(Array.isArray(e))return en(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return en(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[t.payload])});var n}}}),an=on.actions,ln=an.initAnnouncement,un=an.updateAnnouncement,sn=an.addChatInAnnouncement,cn=an.updateSingleChatInAnnouncement,fn=on.reducer,dn=mt({name:"themeTracker",initialState:{theme:"dark"},reducers:{updateTheme:function(e,t){return{theme:t.payload}}}}),pn=dn.actions.updateTheme,hn=dn.reducer;function mn(e){return mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mn(e)}function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(n),!0).forEach((function(t){gn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==mn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==mn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===mn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bn=mt({name:"connectedUserToChatRoomLink",initialState:{},reducers:{initConnectedUserToChatRoomLink:function(e,t){return t.payload},addConnectedUserToChatRoomLink:function(e,t){var n=t.payload,r=n.roomId,o=n.participantRefId;return vn(vn({},e),{},gn({},o,r))}}}),wn=bn.actions,xn=wn.initConnectedUserToChatRoomLink,Sn=wn.addConnectedUserToChatRoomLink,En=bn.reducer;function kn(e){return kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kn(e)}function Cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(n),!0).forEach((function(t){_n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==kn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==kn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===kn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tn=mt({name:"unseenCount",initialState:{totalCount:0,customerCount:0,teamCount:0},reducers:{updateCount:function(e,t){return On(On({},e),t.payload)},clearTotalCount:function(e,t){return On(On({},e),{},{totalCount:0})},clearCount:function(e,t){return{totalCount:0,customerCount:0,teamCount:0}}}}),Nn=Tn.actions,Pn=Nn.updateCount,In=(Nn.clearCount,Nn.clearTotalCount),Ln=Tn.reducer,jn=mt({name:"chatIsOpen",initialState:!1,reducers:{updateChatIsOpenState:function(e,t){return t.payload}}}),An=jn.actions.updateChatIsOpenState,Rn=jn.reducer,Dn=mt({name:"token",initialState:null,reducers:{updateToken:function(e,t){return t.payload}}}),Mn=Dn.actions.updateToken,Fn=Dn.reducer,zn="ADMIN",Un="CUSTOMER",Bn=mt({name:"userRole",initialState:zn,reducers:{initRole:function(e,t){return t.payload}}}),Vn=Bn.actions.initRole,Hn=Bn.reducer,Wn="CUSTOMER",$n="TEAM",qn=mt({name:"chatPreviewType",initialState:$n,reducers:{updateChatPreviewType:function(e,t){return t.payload}}}),Gn=qn.actions.updateChatPreviewType,Qn={token:Fn,chatIsOpen:Rn,currentView:Ct,chatRooms:Bt,announcementRoom:fn,connectedUsers:qt,selfProfile:Kt,selectedRoom:Jt,themeTracker:hn,connectedUserToChatRoomLink:En,unseenCount:Ln,userRole:Hn,chatPreviewType:qn.reducer},Kn=n(8e3),Xn=n.n(Kn),Zn=n(4774),Jn=n.n(Zn);function Yn(e){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(e)}function er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tr(r.key),r)}}function tr(e){var t=function(e,t){if("object"!==Yn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Yn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Yn(t)?t:String(t)}var nr=function(){function e(t){var n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o="https://realtime.shipday.com",(r=tr(r="BASE_URL"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.token=t,this.connected=!1,this.createClient()}var t,n,r;return t=e,n=[{key:"createClient",value:function(){var e=new(Xn())(this.BASE_URL+"/ws/chat-messages?token="+this.token);this.stompClient=Jn().over(e),this.stompClient.heartbeat.incoming=6e4,this.stompClient.heartbeat.outgoing=3e4}},{key:"connect",value:function(e){var t=this;this.stompClient||this.createClient(),this.stompClient.connect({},(function(n){t.connected=!0,e()}),(function(){}))}},{key:"disconnect",value:function(e){this.connected=!1,this.stompClient&&this.stompClient.connected&&this.stompClient.disconnect(),this.stompClient=null}},{key:"reconnectHandler",value:function(){var e=this;this.stompClient.onclose=function(){e.connected&&(console.log("Reconnecting Websocket"),setTimeout((function(){e.connected})))}}},{key:"subscriber",value:function(e,t){try{this.stompClient.subscribe(e,(function(e){var n=JSON.parse(e.body);t(n)}))}catch(e){console.error(e)}}},{key:"subscribeIncomingChat",value:function(e){this.subscriber("/user/topic/chat-messages",e)}},{key:"subscribeChatConfirm",value:function(e){this.subscriber("/user/topic/chat-confirm",e)}},{key:"subscribeChatSeen",value:function(e){this.subscriber("/user/topic/ack-messages",e)}},{key:"subscribeRoomCreated",value:function(e){this.subscriber("/user/topic/room-created",e)}},{key:"sendMessage",value:function(){var e={message:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",roomId:arguments.length>1?arguments[1]:void 0,messageType:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"TEXT",msgTrackingId:arguments.length>3&&void 0!==arguments[3]?arguments[3]:null};this.stompClient.send("/ws/chat/send",{},JSON.stringify(e))}},{key:"sendACK",value:function(e){var t="/ws/chat/ack/delivered/"+e;this.stompClient.send(t,{},"{}")}},{key:"sendSeen",value:function(e){var t="/ws/chat/ack/seen/"+e;this.stompClient.send(t,{},"{}")}},{key:"createRoom",value:function(e){var t="/ws/chat/create/"+e;this.stompClient.send(t,{},"{}")}}],r=[{key:"getInstance",value:function(t){return e.instance||(e.instance=new e(t)),e.instance}}],n&&er(t.prototype,n),r&&er(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),rr=nr;function or(e){return or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},or(e)}function ir(e,t){return ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ir(e,t)}function ar(e){return ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ar(e)}function lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==or(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===or(o)?o:String(o)),r)}var o}function sr(e,t,n){return t&&ur(e.prototype,t),n&&ur(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var cr=function(){function e(t,n,r,o,i,a,l,u,s){var c=arguments.length>9&&void 0!==arguments[9]&&arguments[9];lr(this,e),this.message=t,this.roomId=n,this.roomName=r,this.senderReferenceId=o,this.sendAt=i,this.messageId=a,this.messageType=l,this.delivered=u,this.seen=s,this.animate=c}return sr(e,[{key:"getSenderReferenceId",value:function(){return this.senderReferenceId}},{key:"getSendAt",value:function(){return new Date(1e3*this.sendAt).getTime()}},{key:"getMessageId",value:function(){return this.messageId}},{key:"getMessageType",value:function(){return this.messageType}},{key:"isDelivered",value:function(){return this.delivered}},{key:"isSeen",value:function(){return this.seen}}]),e}(),fr=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0;lr(this,e),this.roomId=t,this.roomName=n,this.participants=o,this.messages=r.map((function(e){return new cr(e.message,e.roomId,e.roomName,e.senderReferenceId,e.sendAt,e.messageId,e.messageType,e.delivered,e.seen)})),this.sortMessages()}return sr(e,[{key:"sortMessages",value:function(){this.messages.sort((function(e,t){return e.sendAt-t.sendAt}))}},{key:"getLastMessage",value:function(){var e=this.messages[this.messages.length-1],t=e.getSendAt();return{message:e.message,sentTime:t}}},{key:"getAllMessages",value:function(){return this.messages}}]),e}(),dr=function(){function e(t,n,r,o,i,a,l){lr(this,e),this.involvedRooms=t,this.referenceId=n,this.name=r,this.imageUrl=o,this.lastSeenAt=i,this.enabled=a,this.online=l}return sr(e,[{key:"getInvolvedRooms",value:function(){return this.involvedRooms}},{key:"getReferenceId",value:function(){return this.referenceId}},{key:"getName",value:function(){return this.name}},{key:"getImageUrl",value:function(){return this.imageUrl}},{key:"getLastSeenAt",value:function(){return this.lastSeenAt}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isOnline",value:function(){return this.online}}]),e}(),pr=function(){function e(t,n,r,o,i,a,l){lr(this,e),this.referenceId=t,this.name=n,this.imageUrl=r,this.lastSeenAt=o,this.enabled=i,this.commonRoomId=a,this.driverChatEnabled=l}return sr(e,[{key:"getReferenceId",value:function(){return this.referenceId}},{key:"getName",value:function(){return this.name}},{key:"getImageUrl",value:function(){return this.imageUrl}},{key:"getLastSeenAt",value:function(){return this.lastSeenAt}},{key:"isEnabled",value:function(){return this.enabled}},{key:"getCommonRoomId",value:function(){return this.commonRoomId}},{key:"isDriverChatEnabled",value:function(){return this.driverChatEnabled}}]),e}(),hr=function(){function e(t,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];lr(this,e),this.userRefId=n,this.roomId=t,this.userImgUrl=r,this.userName=o,this.announcement=i}return sr(e,[{key:"isAnnouncement",value:function(){return this.announcement}},{key:"getName",value:function(){return this.userName}},{key:"getRoomId",value:function(){return this.roomId}},{key:"getUserRefId",value:function(){return this.userRefId}},{key:"getImgUrl",value:function(){return this.userImgUrl}}]),e}(),mr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ir(e,t)}(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=ar(t);if(n){var o=ar(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===or(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e,t,n){return lr(this,o),r.call(this,e,t,n)}return sr(o)}(fr),yr=function(e){var t={},n={};return e.forEach((function(e){e&&e.roomName.startsWith("company_")?n=xr(e.roomId,e.roomName,e.chatMessages):t[e.roomId]=wr(e.roomId,e.roomName,e.chatMessages)})),{chatRoomsObj:t,announcementRoom:n}},vr=function(e,t){var n={},r={},o={};return t.forEach((function(t){var i=[],a=t.roomId,l=t.roomName,u=t.roomParticipants;l.startsWith("company_")?r=xr(a,l,[]):(u.forEach((function(t){t.referenceId!==e&&(o[t.referenceId]=a,i.push(t.referenceId))})),n[a]=wr(a,l,[],i))})),{chatRoomsObj:n,announcementRoom:r,connectedUserToChatRoomsLink:o}},gr=function(e,t,n,r,o,i,a,l,u,s){return new cr(e,t,n,r,o,i,a,l,u,s)},br=function(e,t,n,r,o,i,a){return new pr(e,t,n,r,o,i,a)},wr=function(e,t){return new fr(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3?arguments[3]:void 0)},xr=function(e,t){return new mr(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])},Sr=function(){var e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){e[t.referenceId]=Er(t.involvedRooms,t.referenceId,t.name,t.imageUrl,t.lastSeenAt,t.enabled,t.online)})),e},Er=function(e,t,n,r,o,i,a){return new dr(e,t,n,r,o,i,a)},kr=function(e,t,n,r,o){return new hr(e,t,n,r,o)},Cr="CHAT_WEBSOCKET_CONNECT",Or="CHAT_WEBSOCKET_DISCONNECT",_r="CHAT_WEBSOCKET_SEND_MESSAGE",Tr="CHAT_WEBSOCKET_SEND_SEEN",Nr="CHAT_WEBSOCKET_CREATE_ROOM",Pr=function(e){var t,n=function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,new ct);return n&&(function(e){return"boolean"==typeof e}(n)?r.push(Ze):r.push(Ze.withExtraArgument(n.extraArgument))),r}(e)},r=e||{},o=r.reducer,i=void 0===o?void 0:o,a=r.middleware,l=void 0===a?n():a,u=r.devTools,s=void 0===u||u,c=r.preloadedState,f=void 0===c?void 0:c,d=r.enhancers,p=void 0===d?void 0:d;if("function"==typeof i)t=i;else{if(!function(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:We.INIT}))throw new Error(Be(12));if(void 0===n(void 0,{type:We.PROBE_UNKNOWN_ACTION()}))throw new Error(Be(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},l=0;l<a.length;l++){var u=a[l],s=n[u],c=e[u],f=s(c,t);if(void 0===f)throw t&&t.type,new Error(Be(14));o[u]=f,r=r||f!==c}return(r=r||a.length!==Object.keys(e).length)?o:e}}(i)}var h=l;"function"==typeof h&&(h=h(n));var m=Ge.apply(void 0,h),y=qe;s&&(y=st(lt({trace:!1},"object"==typeof s&&s)));var v=new ft(m),g=v;return Array.isArray(p)?g=Ye([m],p):"function"==typeof p&&(g=p(v)),$e(t,f,y.apply(void 0,g))}({reducer:Qn,middleware:function(e){return e({serializableCheck:!1}).concat((t=null,function(e){return function(n){return function(r){var o=e.dispatch,i=e.getState;switch(r.type){case Cr:(t=rr.getInstance(r.payload.token)).connect((function(){o({type:"CHAT_WEBSOCKET_OPEN",payload:!0}),t.subscribeIncomingChat((function(e){!function(e){var n=e.message,r=e.messageId,a=e.messageType,l=e.roomId,u=e.senderReferenceId,s=e.sendAt,c=(e.delivered,e.seen),f=i(),d=f.announcementRoom,p=f.selectedRoom,h=f.currentView,m=f.chatIsOpen;t.sendACK(r);var y=gr(n,l,"",u,s,r,a,!0,c,!0);h===St&&p.roomId===l&&m&&(y.seen=!0,t.sendSeen(r)),d.roomId!==l?o(Mt({roomId:l,message:y})):o(sn(y))}(e)})),t.subscribeChatConfirm((function(e){var t=e.message;!function(e,t,n,r,a){i().announcementRoom.roomId===t?o(cn({messageId:e,msgTrackingId:n,seen:r,delivered:a})):o(Ft({roomId:t,messageId:e,msgTrackingId:n,seen:r,delivered:a}))}(t.messageId,t.roomId,e.msgTrackingId,t.seen,t.delivered)})),t.subscribeRoomCreated((function(e){!function(e){var t=e.roomId,n=e.roomName,r=e.roomParticipants,a=i(),l=a.connectedUserToChatRoomLink,u=a.connectedUsers,s=a.selfProfile,c=a.selectedRoom,f=[],d=null,p=null;r.forEach((function(e){e.referenceId!==s.referenceId&&(f.push(e.referenceId),p=Er(e.involvedRooms,e.referenceId,e.name,e.imageUrl,e.lastSeenAt,e.enabled,e.online))})),1===f.length&&(d=f[0]),void 0===u[d]&&o($t({userId:d,user:p}));var h=l[d],m=wr(t,n,[],f);h?(o(Dt({roomId:h})),o(Rt({roomId:t,room:m})),c.roomId===h&&o(Zt(kr(t,c.userRefId,c.userImgUrl,c.userName,!1)))):o(Rt({roomId:t,room:m}))}(e)})),t.subscribeChatSeen((function(e){!function(e){var t=e.messageId,n=e.roomId;n===i().announcementRoom.roomId||o(zt({roomId:n,messageId:t}))}(e)}))}));break;case Or:t&&t.disconnect();break;case _r:t.sendMessage(r.payload.msg,r.payload.roomId,r.payload.type,r.payload.msgTrackingId);break;case"CHAT_WEBSOCKET_SEND_ACK":t.sendACK(r.payload.messageId);break;case Tr:var a=i(),l=a.selfProfile,u=a.announcementRoom,s=a.chatRooms,c=r.payload.roomId,f=l.referenceId;u.roomId===c||s[c].messages.forEach((function(e){e.senderReferenceId===f||e.seen||t.sendSeen(e.messageId)}));break;case Nr:t.createRoom(r.payload.referenceId);break;default:return n(r)}}}}));var t}}),Ir=function(){var t=N((function(e){return e.chatPreviewType})),n=M(),r=N((function(e){return e.unseenCount})),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return 0===e?"":"".concat(e)},i=function(e){n(Gn(e))};return e.createElement("div",{className:"chat-header-types-wrapper"},e.createElement("div",{className:"chat-header-types"},e.createElement("div",{className:"chat-single-type-btn chat-type-team ".concat(t===$n?"chat-type-selected":""),onClick:function(){return i($n)}},e.createElement("div",null,"Team"),r.teamCount>0&&e.createElement("div",{className:"chat-type-unseen-count"},o(r.teamCount))),e.createElement("div",{className:"chat-single-type-btn chat-type-others ".concat(t===Wn?"chat-type-selected":""),onClick:function(){return i(Wn)}},e.createElement("div",null,"Customer"),r.customerCount>0&&e.createElement("div",{className:"chat-type-unseen-count"},o(r.customerCount)))))},Lr=function(t){var n=t.name;return e.createElement("div",{className:"custom-user-img"},function(e){var t=e.split(" ");return t.length>1?t[0][0].toUpperCase()+t[1][0].toUpperCase():t[0].substring(0,2).toUpperCase()}(n))};function jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ar=function(t){var n=t.imgSrc,r=t.name,o=t.additionalClass,i=void 0===o?"":o,a=t.showActiveStatus,l=void 0!==a&&a,u=t.activeStatus,s=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(!1),2),c=s[0],f=s[1];return e.createElement("div",{className:"chat-sender-img "+i},"Announcement"===n?e.createElement("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("circle",{cx:"20",cy:"20",r:"20",fill:"#17C289"}),e.createElement("circle",{cx:"20",cy:"20",r:"20",fill:"url(#paint0_linear_1615_8476)",fillOpacity:"0.2"}),e.createElement("path",{d:"M18.6116 16.25C20.5257 16.25 22.3577 15.5117 23.7249 14.1445L24.764 13.1055C25.3108 12.5586 26.2679 12.9414 26.2679 13.7344V17.6719C26.76 17.918 27.1429 18.5742 27.1429 19.3125C27.1429 20.0781 26.76 20.7344 26.2679 20.9805V24.918C26.2679 25.7109 25.3108 26.0938 24.764 25.5469L23.7249 24.5078C22.4124 23.1953 20.6624 22.4297 18.8304 22.4023V25.2188C18.8304 26.0664 18.1194 26.75 17.2991 26.75H16.4241C15.5765 26.75 14.8929 26.0664 14.8929 25.2188V22.375C13.9085 22.375 13.1429 21.6094 13.1429 20.625V18C13.1429 17.043 13.9085 16.25 14.8929 16.25H18.6116ZM24.9554 14.7734L24.6546 15.0742C23.096 16.6328 21.0179 17.5078 18.8304 17.5625V21.0898C21.0179 21.1172 23.096 22.0195 24.6546 23.5781L24.9554 23.8789V14.7734ZM16.2054 25.2188C16.2054 25.3555 16.2874 25.4375 16.4241 25.4375H17.2991C17.4085 25.4375 17.5179 25.3555 17.5179 25.2188V22.375H16.2054V25.2188ZM14.4554 18V20.625C14.4554 20.8711 14.6468 21.0625 14.8929 21.0625H17.5179V17.5625H14.8929C14.6468 17.5625 14.4554 17.7812 14.4554 18Z",fill:"white"}),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_1615_8476",x1:"20",y1:"0",x2:"20",y2:"40",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"white"}),e.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})))):c||null===n?e.createElement(Lr,{name:r}):e.createElement("img",{alt:r,src:n,onError:function(e){f(!0)}}),l?u?e.createElement("div",{className:"chat-active-identity chat-active"}):e.createElement("div",{className:"chat-active-identity chat-inactive"}):null)},Rr=function(e){return new Date(1e3*e).getTime()},Dr=n(7911),Mr={};function Fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Mr.styleTagTransform=m(),Mr.setAttributes=f(),Mr.insert=s().bind(null,"head"),Mr.domAPI=l(),Mr.insertStyleElement=p(),i()(Dr.Z,Mr),Dr.Z&&Dr.Z.locals&&Dr.Z.locals;var zr=function(t){var n=t.imgSrc,r=t.text,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(!1),2),i=o[0],a=o[1],l=(0,e.useRef)(null),u=(0,e.useRef)(null);return(0,e.useEffect)((function(){var e;i&&l.current?l.current.classList.add("zoom-in"):null===(e=l.current)||void 0===e||e.classList.remove("zoom-in")}),[i]),(0,e.useEffect)((function(){return function(){var e;null===(e=l.current)||void 0===e||e.classList.remove("zoom-in")}}),[]),e.createElement("div",null,e.createElement("div",{className:"chat-image-preview",onClick:function(){a(!0)}},e.createElement("img",{src:n,alt:r})),i&&e.createElement("div",{className:"chat-modal-overlay"},e.createElement("button",{className:"chat-modal-close-btn",onClick:function(){l.current.classList.remove("zoom-in"),a(!1)}},e.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M10.6875 9.3125C11.0938 9.6875 11.0938 10.3438 10.6875 10.7188C10.5 10.9062 10.25 11 10 11C9.71875 11 9.46875 10.9062 9.28125 10.7188L6 7.4375L2.6875 10.7188C2.5 10.9062 2.25 11 2 11C1.71875 11 1.46875 10.9062 1.28125 10.7188C0.875 10.3438 0.875 9.6875 1.28125 9.3125L4.5625 6L1.28125 2.71875C0.875 2.34375 0.875 1.6875 1.28125 1.3125C1.65625 0.90625 2.3125 0.90625 2.6875 1.3125L6 4.59375L9.28125 1.3125C9.65625 0.90625 10.3125 0.90625 10.6875 1.3125C11.0938 1.6875 11.0938 2.34375 10.6875 2.71875L7.40625 6.03125L10.6875 9.3125Z",fill:"#242424"}))),e.createElement("div",{className:"chat-modal-content"},e.createElement("div",{ref:u,className:"chat-modal-image-wrapper"},e.createElement("img",{ref:l,className:"chat-modal-image",src:n,alt:r})))))},Ur=n(488),Br=(Ur.domToReact,Ur.htmlToDOM,Ur.attributesToProps,Ur.Comment,Ur.Element,Ur.ProcessingInstruction,Ur.Text,Ur),Vr=function(t){var n=t.isSenderSelf,r=t.seen;return e.createElement(e.Fragment,null,n?r?e.createElement("svg",{width:"14",height:"12",viewBox:"0 -4 16 14",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M9.76559 1.23434L9.76487 1.23505L4.81178 6.20819L2.58793 3.98434C2.19931 3.59572 1.56046 3.59572 1.17184 3.98434C0.776037 4.38014 0.744949 5.02713 1.17968 5.42976L4.08593 8.33601C4.47577 8.75648 5.12774 8.75649 5.51758 8.33601L11.1738 2.67975C11.6086 2.27712 11.5775 1.63013 11.1817 1.23434C10.7931 0.845716 10.1542 0.845716 9.76559 1.23434Z",fill:"white",stroke:"#17C289"}),e.createElement("path",{d:"M9.76559 6.46866L9.76487 6.46938L4.81178 11.4319L2.58793 8.99706C2.19931 8.60834 1.56046 8.60834 1.17184 8.99706C0.776037 9.39266 0.744949 10.0396 1.17968 10.4422L4.08593 13.3485C4.47577 13.778 5.12774 13.7781 5.51758 13.3485L11.1738 7.68127C11.6086 7.27864 11.5775 6.63165 11.1817 6.23567C10.7931 5.84705 10.1542 5.84705 9.76559 6.23567Z",fill:"white",stroke:"#17C289",transform:"translate(5 -5)"})):e.createElement("svg",{width:"12",height:"10",viewBox:"0 -2 12 10",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M9.76559 1.23434L9.76487 1.23505L4.81178 6.20819L2.58793 3.98434C2.19931 3.59572 1.56046 3.59572 1.17184 3.98434C0.776037 4.38014 0.744949 5.02713 1.17968 5.42976L4.08593 8.33601C4.47577 8.75648 5.12774 8.75649 5.51758 8.33601L11.1738 2.67975C11.6086 2.27712 11.5775 1.63013 11.1817 1.23434C10.7931 0.845716 10.1542 0.845716 9.76559 1.23434Z",fill:"white",stroke:"#17C289"})):null)},Hr="TEXT",Wr="IMAGE",$r=function(t){t.roomId,t.messageId;var n,r,o,i=t.messageContent,a=t.messageType,l=t.sendTime,u=t.isSenderSelf,s=t.senderImg,c=t.senderName,f=t.seen,d=(t.delivered,t.entangleWithNext);return e.createElement("div",{className:"chat-single-wrapper"},e.createElement("div",{className:"chat-sender-img-container"},!u&&!d&&e.createElement(Ar,{name:c,additionalClass:"chat-sender-img-sm",imgSrc:s,showActiveStatus:!1})),e.createElement("div",{className:"chat-single-container ".concat(u?"chat-single-sent":"chat-single-received")},e.createElement("div",{className:"chat-msg-content"},function(){switch(a){case Hr:var t=i.replace(/\+?\d{5,}/g,(function(e){return'<a class="chat-inline-phone" href="tel:'.concat(e,'">').concat(e," </a>")})),n=t.replace(/(?:https?|ftp):\/\/[\S]+/gi,(function(e){return'<a class="chat-inline-link" href="'.concat(e,'" target="_blank" rel="noopener noreferrer">').concat(e," </a>")}));return t=t.toString(),n=n.toString(),Br(n);case Wr:return e.createElement(zr,{imgSrc:i});default:return null}}()),e.createElement("div",{className:"chat-msg-status-container ".concat(u?"":"justify-start")},e.createElement("div",{className:"chat-sent-time"},((r=(n=new Date(l)).getHours())%12||12)+":"+((o=n.getMinutes())<10?"0"+o:o)+" "+(r>=12?"PM":"AM")),e.createElement(Vr,{isSenderSelf:u,seen:f}))))},qr=function(t){var n=t.dateStamp;return e.createElement("div",{className:"chat-date-span"},function(e){try{var t=new Date(e),n=new Date,r=new Date(n);if(r.setDate(r.getDate()-1),t.toDateString()===n.toDateString())return"Today";if(t.toDateString()===r.toDateString())return"Yesterday";var o=new Date(n);return o.setDate(n.getDate()-n.getDay()),t>=o?t.toLocaleString("en-US",{weekday:"long"}):t.toLocaleString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch(e){return console.error(e),""}}(n))},Gr=function(){return e.createElement("div",{className:"empty-msgs-list"},e.createElement("span",null,"Type your first message below to start the conversation"))};function Qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Kr=function(){var t,n=N((function(e){return e.selfProfile})),r=N((function(e){return e.chatRooms})),o=N((function(e){return e.selectedRoom})),i=N((function(e){return e.announcementRoom})),a=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(!1),2),l=a[0],u=a[1],s=(0,e.useRef)(o.isAnnouncement()?i.messages.length||0:(null===(t=r[o.getRoomId()])||void 0===t?void 0:t.messages.length)||0),c=(0,e.useRef)(null);if((0,e.useEffect)((function(){c.current.scrollTop=c.current.scrollHeight,u(!0)}),[]),(0,e.useEffect)((function(){if(l){var e,t=c.current,n=t.scrollHeight,r=t.scrollTop;requestAnimationFrame((function o(i){e||(e=i);var a=i-e;t.scrollTop=function(e,t,n,r){return n*(e/=r)*e*e+t}(a,r,n-r,300),a<300&&requestAnimationFrame(o)}))}}),[s.current]),(0,e.useEffect)((function(){var e;o.isAnnouncement()?s.current=i.messages.length||0:s.current=(null===(e=r[o.getRoomId()])||void 0===e?void 0:e.messages.length)||0}),[i,r,o]),null===n||null===r)return e.createElement(e.Fragment,null);var f=[];try{var d;f=o.isAnnouncement()?i.messages||[]:(null===(d=r[o.getRoomId()])||void 0===d?void 0:d.messages)||[]}catch(e){console.error(e),f=[]}var p,h,m=n.getReferenceId(),y=o.getImgUrl(),v=o.getName();return e.createElement("div",{className:"chat-msgs"},e.createElement("div",{className:"chat-msgs-list",ref:c},(p=[],h=null,f.forEach((function(t,n){var r=t.senderReferenceId,o=r===m,i=n<f.length-1&&r===f[n+1].senderReferenceId,a=new Date(Rr(t.sendAt)).toLocaleDateString();a!==h&&(p.push(e.createElement(qr,{key:a,dateStamp:Rr(t.sendAt)})),h=a),p.push(e.createElement($r,{roomId:t.roomId,messageId:t.messageId,key:t.messageId,messageContent:t.message,messageType:t.messageType,sendTime:Rr(t.sendAt),isSenderSelf:o,senderName:v,senderImg:o?null:y,entangleWithNext:i,seen:t.seen,delivered:t.delivered}))})),0===p.length?e.createElement(Gr,null):p)))};function Xr(e){return Xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xr(e)}function Zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zr(Object(n),!0).forEach((function(t){Yr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Xr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Xr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Xr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eo=function(){for(var e="",t=0;t<5;t++){var n=Math.floor(62*Math.random());e+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(n)}return e},to=function(e){var t=e.referenceId,n=new Map;return e.involvedRooms.forEach((function(e){e.roomParticipants.forEach((function(e){t!==e.referenceId&&n.set(e.referenceId,e)}))})),Array.from(n.values())},no=function(e,t){for(var n in e)n.includes("admin_")?(e[n].imageUrl=t.companyImg,e[n].name=t.companyName):(e[n].imageUrl=t.driverImg,e[n].name=t.driverName);return e};function ro(e,t){return function(){return e.apply(t,arguments)}}const{toString:oo}=Object.prototype,{getPrototypeOf:io}=Object,ao=(lo=Object.create(null),e=>{const t=oo.call(e);return lo[t]||(lo[t]=t.slice(8,-1).toLowerCase())});var lo;const uo=e=>(e=e.toLowerCase(),t=>ao(t)===e),so=e=>t=>typeof t===e,{isArray:co}=Array,fo=so("undefined"),po=uo("ArrayBuffer"),ho=so("string"),mo=so("function"),yo=so("number"),vo=e=>null!==e&&"object"==typeof e,go=e=>{if("object"!==ao(e))return!1;const t=io(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},bo=uo("Date"),wo=uo("File"),xo=uo("Blob"),So=uo("FileList"),Eo=uo("URLSearchParams");function ko(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),co(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Co(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Oo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,_o=e=>!fo(e)&&e!==Oo,To=(No="undefined"!=typeof Uint8Array&&io(Uint8Array),e=>No&&e instanceof No);var No;const Po=uo("HTMLFormElement"),Io=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Lo=uo("RegExp"),jo=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ko(n,((n,o)=>{!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)},Ao="abcdefghijklmnopqrstuvwxyz",Ro="0123456789",Do={DIGIT:Ro,ALPHA:Ao,ALPHA_DIGIT:Ao+Ao.toUpperCase()+Ro},Mo=uo("AsyncFunction");var Fo={isArray:co,isArrayBuffer:po,isBuffer:function(e){return null!==e&&!fo(e)&&null!==e.constructor&&!fo(e.constructor)&&mo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||mo(e.append)&&("formdata"===(t=ao(e))||"object"===t&&mo(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&po(e.buffer),t},isString:ho,isNumber:yo,isBoolean:e=>!0===e||!1===e,isObject:vo,isPlainObject:go,isUndefined:fo,isDate:bo,isFile:wo,isBlob:xo,isRegExp:Lo,isFunction:mo,isStream:e=>vo(e)&&mo(e.pipe),isURLSearchParams:Eo,isTypedArray:To,isFileList:So,forEach:ko,merge:function e(){const{caseless:t}=_o(this)&&this||{},n={},r=(r,o)=>{const i=t&&Co(n,o)||o;go(n[i])&&go(r)?n[i]=e(n[i],r):go(r)?n[i]=e({},r):co(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ko(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(ko(t,((t,r)=>{n&&mo(t)?e[r]=ro(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&io(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:ao,kindOfTest:uo,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(co(e))return e;let t=e.length;if(!yo(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Po,hasOwnProperty:Io,hasOwnProp:Io,reduceDescriptors:jo,freezeMethods:e=>{jo(e,((t,n)=>{if(mo(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];mo(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return co(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Co,global:Oo,isContextDefined:_o,ALPHABET:Do,generateString:(e=16,t=Do.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&mo(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(vo(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=co(e)?[]:{};return ko(e,((e,t)=>{const i=n(e,r+1);!fo(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Mo,isThenable:e=>e&&(vo(e)||mo(e))&&mo(e.then)&&mo(e.catch)};function zo(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Fo.inherits(zo,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:Fo.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Uo=zo.prototype,Bo={};["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((e=>{Bo[e]={value:e}})),Object.defineProperties(zo,Bo),Object.defineProperty(Uo,"isAxiosError",{value:!0}),zo.from=(e,t,n,r,o,i)=>{const a=Object.create(Uo);return Fo.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),zo.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var Vo=zo;function Ho(e){return Fo.isPlainObject(e)||Fo.isArray(e)}function Wo(e){return Fo.endsWith(e,"[]")?e.slice(0,-2):e}function $o(e,t,n){return e?e.concat(t).map((function(e,t){return e=Wo(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const qo=Fo.toFlatObject(Fo,{},null,(function(e){return/^is[A-Z]/.test(e)}));var Go=function(e,t,n){if(!Fo.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Fo.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Fo.isUndefined(t[e])}))).metaTokens,o=n.visitor||s,i=n.dots,a=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Fo.isSpecCompliantForm(t);if(!Fo.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(Fo.isDate(e))return e.toISOString();if(!l&&Fo.isBlob(e))throw new Vo("Blob is not supported. Use a Buffer instead.");return Fo.isArrayBuffer(e)||Fo.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function s(e,n,o){let l=e;if(e&&!o&&"object"==typeof e)if(Fo.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Fo.isArray(e)&&function(e){return Fo.isArray(e)&&!e.some(Ho)}(e)||(Fo.isFileList(e)||Fo.endsWith(n,"[]"))&&(l=Fo.toArray(e)))return n=Wo(n),l.forEach((function(e,r){!Fo.isUndefined(e)&&null!==e&&t.append(!0===a?$o([n],r,i):null===a?n:n+"[]",u(e))})),!1;return!!Ho(e)||(t.append($o(o,n,i),u(e)),!1)}const c=[],f=Object.assign(qo,{defaultVisitor:s,convertValue:u,isVisitable:Ho});if(!Fo.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Fo.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),Fo.forEach(n,(function(n,i){!0===(!(Fo.isUndefined(n)||null===n)&&o.call(t,n,Fo.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),c.pop()}}(e),t};function Qo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ko(e,t){this._pairs=[],e&&Go(e,this,t)}const Xo=Ko.prototype;Xo.append=function(e,t){this._pairs.push([e,t])},Xo.toString=function(e){const t=e?function(t){return e.call(this,t,Qo)}:Qo;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Zo=Ko;function Jo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Yo(e,t,n){if(!t)return e;const r=n&&n.encode||Jo,o=n&&n.serialize;let i;if(i=o?o(t,n):Fo.isURLSearchParams(t)?t.toString():new Zo(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}var ei=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Fo.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ti={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ni={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Zo,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},ri=function(e){function t(e,n,r,o){let i=e[o++];const a=Number.isFinite(+i),l=o>=e.length;return i=!i&&Fo.isArray(r)?r.length:i,l?(Fo.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&Fo.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Fo.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(Fo.isFormData(e)&&Fo.isFunction(e.entries)){const n={};return Fo.forEachEntry(e,((e,r)=>{t(function(e){return Fo.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const oi={"Content-Type":void 0},ii={transitional:ti,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Fo.isObject(e);if(o&&Fo.isHTMLForm(e)&&(e=new FormData(e)),Fo.isFormData(e))return r&&r?JSON.stringify(ri(e)):e;if(Fo.isArrayBuffer(e)||Fo.isBuffer(e)||Fo.isStream(e)||Fo.isFile(e)||Fo.isBlob(e))return e;if(Fo.isArrayBufferView(e))return e.buffer;if(Fo.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Go(e,new ni.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ni.isNode&&Fo.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Fo.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Go(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Fo.isString(e))try{return(0,JSON.parse)(e),Fo.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ii.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&Fo.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Vo.from(e,Vo.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ni.classes.FormData,Blob:ni.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Fo.forEach(["delete","get","head"],(function(e){ii.headers[e]={}})),Fo.forEach(["post","put","patch"],(function(e){ii.headers[e]=Fo.merge(oi)}));var ai=ii;const li=Fo.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"]),ui=Symbol("internals");function si(e){return e&&String(e).trim().toLowerCase()}function ci(e){return!1===e||null==e?e:Fo.isArray(e)?e.map(ci):String(e)}function fi(e,t,n,r,o){return Fo.isFunction(r)?r.call(this,t,n):(o&&(t=n),Fo.isString(t)?Fo.isString(r)?-1!==t.indexOf(r):Fo.isRegExp(r)?r.test(t):void 0:void 0)}class di{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=si(t);if(!o)throw new Error("header name must be a non-empty string");const i=Fo.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ci(e))}const i=(e,t)=>Fo.forEach(e,((e,n)=>o(e,n,t)));return Fo.isPlainObject(e)||e instanceof this.constructor?i(e,t):Fo.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&li[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=si(e)){const n=Fo.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Fo.isFunction(t))return t.call(this,e,n);if(Fo.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=si(e)){const n=Fo.findKey(this,e);return!(!n||void 0===this[n]||t&&!fi(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=si(e)){const o=Fo.findKey(n,e);!o||t&&!fi(0,n[o],o,t)||(delete n[o],r=!0)}}return Fo.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!fi(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Fo.forEach(this,((r,o)=>{const i=Fo.findKey(n,o);if(i)return t[i]=ci(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=ci(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Fo.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Fo.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ui]=this[ui]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=si(e);t[r]||(function(e,t){const n=Fo.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Fo.isArray(e)?e.forEach(r):r(e),this}}di.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Fo.freezeMethods(di.prototype),Fo.freezeMethods(di);var pi=di;function hi(e,t){const n=this||ai,r=t||n,o=pi.from(r.headers);let i=r.data;return Fo.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function mi(e){return!(!e||!e.__CANCEL__)}function yi(e,t,n){Vo.call(this,null==e?"canceled":e,Vo.ERR_CANCELED,t,n),this.name="CanceledError"}Fo.inherits(yi,Vo,{__CANCEL__:!0});var vi=yi,gi=ni.isStandardBrowserEnv?{write:function(e,t,n,r,o,i){const a=[];a.push(e+"="+encodeURIComponent(t)),Fo.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Fo.isString(r)&&a.push("path="+r),Fo.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function bi(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var wi=ni.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Fo.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function xi(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(l){const u=Date.now(),s=r[a];o||(o=u),n[i]=l,r[i]=u;let c=a,f=0;for(;c!==i;)f+=n[c++],c%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o<t)return;const d=s&&u-s;return d?Math.round(1e3*f/d):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-n,u=r(l);n=i;const s={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:o};s[t?"download":"upload"]=!0,e(s)}}const Si={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=pi.from(e.headers).normalize(),i=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}Fo.isFormData(r)&&(ni.isStandardBrowserEnv||ni.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const s=bi(e.baseURL,e.url);function c(){if(!u)return;const r=pi.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Vo("Request failed with status code "+n.status,[Vo.ERR_BAD_REQUEST,Vo.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),l()}),(function(e){n(e),l()}),{data:i&&"text"!==i&&"json"!==i?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),Yo(s,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=c:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(c)},u.onabort=function(){u&&(n(new Vo("Request aborted",Vo.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new Vo("Network Error",Vo.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||ti;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Vo(t,r.clarifyTimeoutError?Vo.ETIMEDOUT:Vo.ECONNABORTED,e,u)),u=null},ni.isStandardBrowserEnv){const t=(e.withCredentials||wi(s))&&e.xsrfCookieName&&gi.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&Fo.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),Fo.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&"json"!==i&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",xi(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",xi(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{u&&(n(!t||t.type?new vi(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(s);f&&-1===ni.protocols.indexOf(f)?n(new Vo("Unsupported protocol "+f+":",Vo.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};Fo.forEach(Si,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));function Ei(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vi(null,e)}function ki(e){return Ei(e),e.headers=pi.from(e.headers),e.data=hi.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),(e=>{e=Fo.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;o<t&&(n=e[o],!(r=Fo.isString(n)?Si[n.toLowerCase()]:n));o++);if(!r){if(!1===r)throw new Vo(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(Fo.hasOwnProp(Si,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!Fo.isFunction(r))throw new TypeError("adapter is not a function");return r})(e.adapter||ai.adapter)(e).then((function(t){return Ei(e),t.data=hi.call(e,e.transformResponse,t),t.headers=pi.from(t.headers),t}),(function(t){return mi(t)||(Ei(e),t&&t.response&&(t.response.data=hi.call(e,e.transformResponse,t.response),t.response.headers=pi.from(t.response.headers))),Promise.reject(t)}))}const Ci=e=>e instanceof pi?e.toJSON():e;function Oi(e,t){t=t||{};const n={};function r(e,t,n){return Fo.isPlainObject(e)&&Fo.isPlainObject(t)?Fo.merge.call({caseless:n},e,t):Fo.isPlainObject(t)?Fo.merge({},t):Fo.isArray(t)?t.slice():t}function o(e,t,n){return Fo.isUndefined(t)?Fo.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Fo.isUndefined(t))return r(void 0,t)}function a(e,t){return Fo.isUndefined(t)?Fo.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(e,t)=>o(Ci(e),Ci(t),!0)};return Fo.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=u[r]||o,a=i(e[r],t[r],r);Fo.isUndefined(a)&&i!==l||(n[r]=a)})),n}const _i={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{_i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ti={};_i.transitional=function(e,t,n){function r(e,t){return"[Axios v1.4.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Vo(r(o," has been removed"+(t?" in "+t:"")),Vo.ERR_DEPRECATED);return t&&!Ti[o]&&(Ti[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Ni={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Vo("options must be an object",Vo.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Vo("option "+i+" must be "+n,Vo.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Vo("Unknown option "+i,Vo.ERR_BAD_OPTION)}},validators:_i};const Pi=Ni.validators;class Ii{constructor(e){this.defaults=e,this.interceptors={request:new ei,response:new ei}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Oi(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;let i;void 0!==n&&Ni.assertOptions(n,{silentJSONParsing:Pi.transitional(Pi.boolean),forcedJSONParsing:Pi.transitional(Pi.boolean),clarifyTimeoutError:Pi.transitional(Pi.boolean)},!1),null!=r&&(Fo.isFunction(r)?t.paramsSerializer={serialize:r}:Ni.assertOptions(r,{encode:Pi.function,serialize:Pi.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),i=o&&Fo.merge(o.common,o[t.method]),i&&Fo.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=pi.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const u=[];let s;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let c,f=0;if(!l){const e=[ki.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,u),c=e.length,s=Promise.resolve(t);f<c;)s=s.then(e[f++],e[f++]);return s}c=a.length;let d=t;for(f=0;f<c;){const e=a[f++],t=a[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{s=ki.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,c=u.length;f<c;)s=s.then(u[f++],u[f++]);return s}getUri(e){return Yo(bi((e=Oi(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Fo.forEach(["delete","get","head","options"],(function(e){Ii.prototype[e]=function(t,n){return this.request(Oi(n||{},{method:e,url:t,data:(n||{}).data}))}})),Fo.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Oi(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ii.prototype[e]=t(),Ii.prototype[e+"Form"]=t(!0)}));var Li=Ii;class ji{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new vi(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new ji((function(t){e=t}));return{token:t,cancel:e}}}var Ai=ji;const Ri={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(Ri).forEach((([e,t])=>{Ri[t]=e}));var Di=Ri;const Mi=function e(t){const n=new Li(t),r=ro(Li.prototype.request,n);return Fo.extend(r,Li.prototype,n,{allOwnKeys:!0}),Fo.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Oi(t,n))},r}(ai);Mi.Axios=Li,Mi.CanceledError=vi,Mi.CancelToken=Ai,Mi.isCancel=mi,Mi.VERSION="1.4.0",Mi.toFormData=Go,Mi.AxiosError=Vo,Mi.Cancel=Mi.CanceledError,Mi.all=function(e){return Promise.all(e)},Mi.spread=function(e){return function(t){return e.apply(null,t)}},Mi.isAxiosError=function(e){return Fo.isObject(e)&&!0===e.isAxiosError},Mi.mergeConfig=Oi,Mi.AxiosHeaders=pi,Mi.formToJSON=e=>ri(Fo.isHTMLForm(e)?new FormData(e):e),Mi.HttpStatusCode=Di,Mi.default=Mi;var Fi=Mi,zi=Fi.create({baseURL:"https://realtime.shipday.com"}),Ui=Fi.create({baseURL:"https://api.shipday.com"}),Bi=function(){return{headers:{"Content-type":"application/json",Authorization:"Bearer ".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")},dataType:"application/json"}};function Vi(e){return Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vi(e)}function Hi(){Hi=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new C(o||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Vi(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Wi(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function $i(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Wi(i,r,o,a,l,"next",e)}function l(e){Wi(i,r,o,a,l,"throw",e)}a(void 0)}))}}var qi=function(e,t){return zi.get(e,Bi(t))},Gi=function(e,t,n){return Ui.post(e,n,Bi(t))},Qi=function(e,t,n){return zi.post(e,n,function(){return{headers:{"Content-type":"multipart/form-data",Authorization:"Bearer ".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")},dataType:"application/json"}}(t))},Ki=function(){var e=$i(Hi().mark((function e(t){return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qi("/chat/messages",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Xi=function(){var e=$i(Hi().mark((function e(t){return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qi("/chat/user",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Zi=function(){var e=$i(Hi().mark((function e(t){return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qi("/chat/customer/user",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ji=function(){var e=$i(Hi().mark((function e(t,n){return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qi("/chat/customer/messages/"+n,t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Yi=function(){var e=$i(Hi().mark((function e(t,n){return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Qi("/image/upload",t,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),ea=function(){var e=$i(Hi().mark((function e(t){return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Gi("/chat/customer-tracking/initiate","",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function ta(e){return ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ta(e)}function na(){na=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new C(o||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==ta(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function ra(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}var oa=function(e,t,n,r,o){return function(){var i=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ra(i,r,o,a,l,"next",e)}function l(e){ra(i,r,o,a,l,"throw",e)}a(void 0)}))}}(na().mark((function i(a){var l,u,s,c;return na().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,Yi(e,o);case 3:if(!(l=i.sent).data){i.next=13;break}if(u=l.data.imageUri,s=eo(),a({type:_r,payload:{roomId:t.roomId,msg:u,type:Wr,msgTrackingId:s}}),c=gr(u,t.roomId,t.roomName,r,Math.floor(Date.now()/1e3),s,Wr),t.roomId!==n){i.next=12;break}return a(sn(c)),i.abrupt("return");case 12:a(Mt({roomId:t.roomId,message:c}));case 13:i.next=17;break;case 15:i.prev=15,i.t0=i.catch(0);case 17:case"end":return i.stop()}}),i,null,[[0,15]])})));return function(e){return i.apply(this,arguments)}}()};function ia(e){return ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ia(e)}function aa(){aa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new C(o||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==ia(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function la(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sa=function(){var t=N((function(e){return e.selectedRoom})),n=N((function(e){return e.themeTracker})),r=N((function(e){return e.selfProfile})),o=N((function(e){return e.token})),i=N((function(e){return e.announcementRoom})),a=(0,e.useRef)(null),l=M(),u=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ua(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ua(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(""),2),s=u[0],c=u[1],f=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){la(i,r,o,a,l,"next",e)}function l(e){la(i,r,o,a,l,"throw",e)}a(void 0)}))}}(aa().mark((function e(n){var a,u;return aa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.target.files[0];try{(u=new FormData).append("file",a),l(oa(o,t,i.roomId,r.referenceId,u))}catch(e){console.error("Error uploading image:",e)}case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return e.createElement("form",{className:"chat-input-form",onSubmit:function(e){if(e.preventDefault(),0!==s.length&&""!==s&&0!==s.trim().length){var n,o,a=eo();l({type:_r,payload:{roomId:t.roomId,msg:s,type:Hr,msgTrackingId:a}}),n=a,o=gr(s,t.roomId,t.roomName,r.referenceId,Math.floor(Date.now()/1e3),n,"TEXT",void 0,void 0,!0),t.roomId!==i.roomId?l(Mt({roomId:t.roomId,message:o})):l(sn(o)),c("")}}},e.createElement("div",{className:"chat-input-group"},e.createElement("div",{className:"input-add-doc-btn",onClick:function(){return a.current.click()}},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"".concat("light"===n.theme?"#7C7C7C":"#D3D3D3"),className:"bi bi-file-image",viewBox:"0 0 16 16"},e.createElement("path",{d:"M8.002 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"}),e.createElement("path",{d:"M12 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM3 2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8l-2.083-2.083a.5.5 0 0 0-.76.063L8 11 5.835 9.7a.5.5 0 0 0-.611.076L3 12V2z"}))),e.createElement("input",{className:"hide",type:"file",accept:"image/*",ref:a,onChange:f}),e.createElement("input",{type:"text",className:"chat-text-input",placeholder:"Write here","aria-label":"Text input with file attachment button",value:s,onChange:function(e){c(e.target.value)}}),e.createElement("div",{className:"input-group-append"},e.createElement("button",{className:"chat-submit-btn",type:"submit"},e.createElement("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M18.6133 0.425781C18.3672 0.25 18.0156 0.214844 17.7344 0.390625L1.42188 9.67188C1.14062 9.8125 0.964844 10.1289 1 10.4453C1 10.7617 1.21094 11.043 1.49219 11.1836L6.90625 13.4336V17.4062C6.90625 17.7227 7.04688 18.0039 7.32812 18.1797C7.46875 18.2148 7.60938 18.25 7.71484 18.25C7.85547 18.25 8.03125 18.2148 8.17188 18.1445L12.0742 15.6133L15.5195 17.0898C15.625 17.125 15.7305 17.1602 15.8711 17.1602C16.0117 17.1602 16.1523 17.0898 16.2578 17.0195C16.5039 16.9141 16.6445 16.668 16.6797 16.4219L18.9297 1.23438C19.0352 0.917969 18.8945 0.601562 18.6133 0.425781ZM13.9727 4.46875L7.39844 11.8164L3.74219 10.2695L13.9727 4.46875ZM8.55859 15.8594V14.1367L10.1758 14.8398L8.55859 15.8594ZM15.2031 15.0859L9.01562 12.4844L16.8906 3.73047L15.2031 15.0859Z",fill:"white"}))))))},ca=function(){return e.createElement(e.Fragment,null,e.createElement(Kr,null),e.createElement(sa,null))},fa=function(){var t=N((function(e){return e.selectedRoom})),n=N((function(e){return e.themeTracker})),r=(N((function(e){return e.userRole})),M());(0,e.useEffect)((function(){document.querySelector(".chat-content").style.height="513px"}));return e.createElement("div",{className:"chat-header-sender-preview"},e.createElement("div",{className:"chat-header-return-btn",onClick:function(){r(kt("chat-preview"))}},e.createElement("svg",{width:"11",height:"17",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.75 11C5.50391 11 5.28516 10.918 5.12109 10.7539L0.746094 6.37891C0.390625 6.05078 0.390625 5.47656 0.746094 5.14844L5.12109 0.773438C5.44922 0.417969 6.02344 0.417969 6.35156 0.773438C6.70703 1.10156 6.70703 1.67578 6.35156 2.00391L2.60547 5.75L6.35156 9.52344C6.70703 9.85156 6.70703 10.4258 6.35156 10.7539C6.1875 10.918 5.96875 11 5.75 11Z",fill:"".concat("light"===n.theme?"#7C7C7C":"#D3D3D3")}))),e.createElement("div",{className:"chat-header-sender-details"},e.createElement(Ar,{name:t.getName(),imgSrc:t.getImgUrl()}),e.createElement("div",{className:"chat-header-details"},e.createElement("div",{className:"chat-sender-name chat-sender-name-bold"},t.getName()))))},da=function(){var t=N((function(e){return e.themeTracker})),n=N((function(e){return e.userRole})),r=N((function(e){return e.chatPreviewType})),o=M();return e.createElement("div",{className:"chat-header-title fw-bold"},n===Un&&e.createElement("div",{className:"chat-header-return-btn",onClick:function(){document.getElementsByClassName("chat-init-btn")[0].click()}},e.createElement("svg",{width:"11",height:"17",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.75 11C5.50391 11 5.28516 10.918 5.12109 10.7539L0.746094 6.37891C0.390625 6.05078 0.390625 5.47656 0.746094 5.14844L5.12109 0.773438C5.44922 0.417969 6.02344 0.417969 6.35156 0.773438C6.70703 1.10156 6.70703 1.67578 6.35156 2.00391L2.60547 5.75L6.35156 9.52344C6.70703 9.85156 6.70703 10.4258 6.35156 10.7539C6.1875 10.918 5.96875 11 5.75 11Z",fill:"".concat("light"===t.theme?"#7C7C7C":"#858585")}))),e.createElement("span",{className:"".concat(n===Un?"no-padding pe-1":"")},"Messages"),n!==Un&&e.createElement("div",{className:"chat-header-new-btn ".concat(r!==Wn?"":"non-visible"),onClick:function(){o(kt("chat-new-create"))}},e.createElement("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M14.5703 1.47656C15.6641 0.382812 17.4219 0.382812 18.5156 1.47656L19.0234 1.98438C20.1172 3.07812 20.1172 4.83594 19.0234 5.92969L11.2891 13.6641C10.9766 13.9766 10.5469 14.25 10.0781 14.3672L6.17188 15.5C5.85938 15.5781 5.50781 15.5 5.27344 15.2266C5 14.9922 4.92188 14.6406 5 14.3281L6.13281 10.4219C6.25 9.95312 6.52344 9.52344 6.83594 9.21094L14.5703 1.47656ZM17.1875 2.80469C16.8359 2.45312 16.25 2.45312 15.8984 2.80469L14.7266 3.9375L16.5625 5.77344L17.6953 4.60156C18.0469 4.25 18.0469 3.66406 17.6953 3.3125L17.1875 2.80469ZM7.92969 10.9297L7.26562 13.2344L9.57031 12.5703C9.72656 12.5312 9.84375 12.4531 9.96094 12.3359L15.2344 7.0625L13.4375 5.26562L8.16406 10.5391C8.04688 10.6562 7.96875 10.7734 7.92969 10.9297ZM7.8125 3C8.32031 3 8.75 3.42969 8.75 3.9375C8.75 4.48438 8.32031 4.875 7.8125 4.875H3.4375C2.53906 4.875 1.875 5.57812 1.875 6.4375V17.0625C1.875 17.9609 2.53906 18.625 3.4375 18.625H14.0625C14.9219 18.625 15.625 17.9609 15.625 17.0625V12.6875C15.625 12.1797 16.0156 11.75 16.5625 11.75C17.0703 11.75 17.5 12.1797 17.5 12.6875V17.0625C17.5 18.9766 15.9375 20.5 14.0625 20.5H3.4375C1.52344 20.5 0 18.9766 0 17.0625V6.4375C0 4.5625 1.52344 3 3.4375 3H7.8125Z",fill:"".concat("light"===t.theme?"#7C7C7C":"#D3D3D3")}))))},pa=function(t){var n=t.connectedUserInfo,r=N((function(e){return e.connectedUserToChatRoomLink})),o=N((function(e){return e.selfProfile})),i=M(),a=n.referenceId,l=n.imageUrl,u=n.name;return e.createElement("div",{className:"single-connected-user",onClick:function(){var e=r[a];if(e)i(Zt(kr(e,a,l,u,!1)));else{console.warn("No connected room yet"),i({type:Nr,payload:{referenceId:a}});var t=o.referenceId+"_"+a,n=eo(),s=wr(n,t,[],[a]);i(Rt({roomId:n,room:s})),i(Sn({roomId:n,participantRefId:a})),i(Zt(kr(n,a,l,u,!1)))}i(kt("chat-content"))}},e.createElement(Ar,{name:u,additionalClass:"chat-sender-img-sm",imgSrc:l,showActiveStatus:!1}),e.createElement("div",{className:"single-connected-user-name"},u))};function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ma=function(){var t,n,r=N((function(e){return e.connectedUsers})),o=(0,e.useRef)(null),i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(""),2),a=i[0],l=i[1];return null===r?e.createElement("div",null,"No Connections Available"):e.createElement("div",{className:"chat-connected-users-list"},e.createElement("div",{className:"chat-connected-user-search-wrapper"},e.createElement("span",null,"To:"),e.createElement("input",{onChange:function(e){l(o.current.value.toLowerCase())},ref:o,placeholder:"Type to search recipient"})),(t=!1,n=Object.keys(r).map((function(n){return r[n].name.toLowerCase().includes(a)?r[n].referenceId&&r[n].referenceId.includes("order_")?null:(t=!0,e.createElement(pa,{connectedUserInfo:r[n]})):null})),t||n.push(e.createElement("div",{className:"chat-no-connections-found"},"No Connections found")),n))},ya=function(){var t=N((function(e){return e.themeTracker})),n=M();return e.createElement("div",{className:"chat-header-title chat-new-room-title fw-bold"},e.createElement("div",{className:"chat-header-return-btn",onClick:function(){n(kt("chat-preview"))}},e.createElement("svg",{width:"11",height:"17",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.75 11C5.50391 11 5.28516 10.918 5.12109 10.7539L0.746094 6.37891C0.390625 6.05078 0.390625 5.47656 0.746094 5.14844L5.12109 0.773438C5.44922 0.417969 6.02344 0.417969 6.35156 0.773438C6.70703 1.10156 6.70703 1.67578 6.35156 2.00391L2.60547 5.75L6.35156 9.52344C6.70703 9.85156 6.70703 10.4258 6.35156 10.7539C6.1875 10.918 5.96875 11 5.75 11Z",fill:"".concat("light"===t.theme?"#7C7C7C":"#D3D3D3")}))),e.createElement("span",null,"New Message"))};function va(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ga=function(t){var n=t.roomId,r=t.userRefId,o=t.userName,i=t.userImgUrl,a=t.message,l=t.messageType,u=t.sentTime,s=t.unseenCount,c=void 0===s?0:s,f=t.userOnline,d=void 0!==f&&f,p=t.isAnnouncement,h=void 0!==p&&p,m=t.noContentText,y=N((function(e){return e.themeTracker})),v=N((function(e){return e.selfProfile})),g=M(),b=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return va(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?va(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(""),2),w=b[0],x=b[1],S=function(e){x(function(e){if(e="string"==typeof e?(t=e.split(/[\s/:,]+/),n=parseInt(t[2]),r=parseInt(t[1])-1,o=parseInt(t[0]),i=parseInt(t[3]),a=parseInt(t[4]),l=parseInt(t[5]),new Date(n,r,o,i,a,l).getTime()):new Date(e),isNaN(e.getTime()))return"";var t,n,r,o,i,a,l,u=Math.floor((new Date-e)/1e3);if(u<60)return u<30?"now":"".concat(u,"s ago");var s=Math.floor(u/60);if(s<60)return"".concat(s,"m ago");var c=Math.floor(s/60);if(c<24)return"".concat(c,"h ago");var f=Math.floor(c/24);return 1===f?"Yesterday":f<7?"".concat(f," days ago"):1===Math.floor(f/7)?"Last Week":e.getFullYear()===(new Date).getFullYear()?e.toLocaleDateString(void 0,{month:"short",day:"numeric"}):e.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}(e))};return(0,e.useEffect)((function(){S(u);var e=setInterval((function(){S(u)}),6e4);return function(){return clearInterval(e)}}),[u]),e.createElement("div",{className:"chat-single-thread",onClick:function(){c>0&&!h&&(g({type:Tr,payload:{roomId:n}}),g(Ut({roomId:n,selfRefId:v.referenceId}))),g(Zt(kr(n,r,i,o,h))),g(kt("chat-content"))}},e.createElement("div",{className:"chat-sender-img"},e.createElement(Ar,{name:o,imgSrc:i,showActiveStatus:!h,activeStatus:d})),e.createElement("div",{className:"chat-details"},e.createElement("div",{className:"chat-sender-details"},e.createElement("div",{className:"chat-sender-name ".concat(c>0?"bolder-text":"")},o),e.createElement("div",{className:"chat-sent-time-preview ".concat(c>0?"bolder-text":"")},w)),e.createElement("div",{className:"chat-text-preview","data-userref":r},function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return l===Wr?e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-images",viewBox:"0 0 16 16"},e.createElement("path",{d:"M4.502 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z"}),e.createElement("path",{d:"M14.002 13a2 2 0 0 1-2 2h-10a2 2 0 0 1-2-2V5A2 2 0 0 1 2 3a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v8a2 2 0 0 1-1.998 2zM14 2H4a1 1 0 0 0-1 1h9.002a2 2 0 0 1 2 2v7A1 1 0 0 0 15 11V3a1 1 0 0 0-1-1zM2.002 4a1 1 0 0 0-1 1v8l2.646-2.354a.5.5 0 0 1 .63-.062l2.66 1.773 3.71-3.71a.5.5 0 0 1 .577-.094l1.777 1.947V5a1 1 0 0 0-1-1h-10z"})):0===t.length?m||"No messages yet.":"string"==typeof t?t.length<40?t:(t=t.substring(0,35),t+="..."):"Preview Unavailable"}(a))),e.createElement("div",{className:"chat-view-all-btn"},e.createElement("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1.78125 0.75L6.25 5.5C6.375 5.65625 6.46875 5.84375 6.46875 6C6.46875 6.1875 6.375 6.375 6.25 6.53125L1.78125 11.2812C1.5 11.5938 1.03125 11.5938 0.71875 11.3125C0.40625 11.0312 0.40625 10.5625 0.6875 10.25L4.6875 6L0.6875 1.78125C0.40625 1.46875 0.40625 1 0.71875 0.71875C1.03125 0.4375 1.5 0.4375 1.78125 0.75Z",fill:"".concat("light"===y.theme?"#7C7C7C":"#D3D3D3")}))))},ba=function(){var t=N((function(e){return e.chatRooms})),n=N((function(e){return e.connectedUsers})),r=N((function(e){return e.selfProfile})),o=N((function(e){return e.chatPreviewType})),i=N((function(e){return e.announcementRoom})),a=N((function(e){return e.userRole}));if(null===t||null===r)return e.createElement(e.Fragment,null);var l,u=function(e){var t=r.referenceId,o="";if(e.startsWith(t))o=e.slice(t.length+1);else{if(!e.endsWith(t))return{userRefId:-1,userName:"Unknown",userImgUrl:"unknown",isOnline:!1};o=e.slice(0,e.length-t.length-1)}var i=n[o];return void 0===i?{userRefId:o,userName:"Unknown User",userImgUrl:null,isOnline:!1}:{userRefId:o,userName:i.getName(),userImgUrl:i.getImageUrl(),isOnline:i.isOnline()}},s=function(e){return e.messages?e.messages.filter((function(e){return e.senderReferenceId!==r.referenceId&&!e.seen})).length:0},c=function(e){var t={message:"",messageType:Hr};e.messages&&e.messages.length>0&&(t=e.messages[e.messages.length-1]);var n=Rr(t.sendAt);return{message:t.message,sentTime:n,messageType:t.messageType}};return e.createElement("div",{className:"chat-list ".concat(o===$n?"chat-list-team":"chat-list-customer")},0===(l=function(){var e=[],n="No messages yet";for(var r in t)if(0!==t[r].messages.length||a===Un){var l=t[r],f=u(l.roomName),d=f.userRefId,p=f.userName,h=f.userImgUrl,m=f.isOnline,y=(f.isAnnouncement,c(l)),v=y.message,g=y.sentTime,b=y.messageType;-1!==d&&(a===Un&&(n=d.includes("admin_")?"Chat with Store Manager":"Chat with the Driver"),e.push({roomId:l.roomId,userRefId:d,unseenCount:s(l),message:v,messageType:b,sentTime:g,userName:p,userImgUrl:h,isOnline:m,noContentText:n}))}return e.sort((function(e,t){var n=new Date(e.sentTime);return new Date(t.sentTime)-n})),a!==Un&&e.unshift(function(){if(null===i)return null;var e=c(i),t=e.message,n=e.sentTime,r=e.messageType;return{roomId:i.roomId,userRefId:"COMPANY",unseenCount:s(i),message:t,messageType:r,sentTime:n,userName:"Announcement",userImgUrl:"Announcement",isOnline:!1,isAnnouncement:!0}}()),function(e){switch(o){case Wn:return e.filter((function(e){return e.userRefId.includes("order_")}));case $n:return e.filter((function(e){return!e.userRefId.includes("order_")}))}}(e)}()).length?e.createElement("div",{className:"empty-msgs-list"},e.createElement("span",null,"No chats in the list")):l.map((function(t){return e.createElement(ga,{key:t.roomId,roomId:t.roomId,userRefId:t.userRefId,userName:t.userName,userOnline:t.isOnline,message:t.message,messageType:t.messageType,sentTime:t.sentTime,userImgUrl:t.userImgUrl,unseenCount:t.unseenCount,isAnnouncement:t.isAnnouncement,noContentText:t.noContentText})})))},wa=function(t){var n=t.setter;return t.companyInfo,M(),(0,e.useEffect)((function(){document.querySelectorAll(".chat-rounded-div .chat-text-preview").forEach((function(e){e.dataset.userref.includes("admin")?e.textContent="Chat with Store Manager":e.dataset.userref.includes("carrier")&&(e.textContent="Chat with the Driver")}))}),[]),e.createElement("div",{className:"chat-banner-container"},e.createElement("div",{className:"chat-banner-text"},e.createElement("div",{className:"chat-fade-text"},"Hello there!"),e.createElement("div",{className:"chat-sub-text"},"How can we help?")),e.createElement("div",{className:"chat-rounded-div",onClick:function(){localStorage.setItem("hasShownBanner",!0),n(!1)}},e.createElement(ba,null)))};function xa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Sa=function(t){var n=t.companyInfo,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(!1),2),o=r[0],i=r[1],a=N((function(e){return e.userRole}));return(0,e.useEffect)((function(){localStorage.getItem("hasShownBanner")||i(!0)}),[]),e.createElement(e.Fragment,null,a===zn?e.createElement(ba,null):o?e.createElement(wa,{setter:i,companyInfo:n}):e.createElement(ba,null))},Ea=function(t){var n=t.customerSelectionEnabled,r=t.companyInfo,o=N((function(e){return e.currentView})),i=N((function(e){return e.userRole})),a=(0,e.useRef)(null);return(0,e.useEffect)((function(){setTimeout((function(){a.current.classList.add("chat-full-scale")}),10)}),[]),e.createElement("div",{ref:a,className:"chat-body-wrapper ".concat(i===Un?"customer-chat":"")},e.createElement("div",{className:"chat-header ".concat("chat-preview"===o&&i!==Un&&n?"chat-header-long":"chat-header-short")},function(){var t=document.querySelector(".chat-content");switch(t&&(t.style.height="513px"),o){case"chat-preview":return t&&(t.style.height="450px"),i!==Un&&n?e.createElement(e.Fragment,null,e.createElement(da,null),e.createElement(Ir,null)):(t&&(t.style.height="513px"),e.createElement(da,null));case"chat-content":return t&&(t.style.height="513px"),e.createElement(fa,null);case"chat-new-create":return e.createElement(ya,null)}}()),e.createElement("div",{className:"chat-content ".concat("chat-preview"===o&&i!==Un&&n?"chat-content-short":"")},function(){switch(o){case"chat-preview":return e.createElement(Sa,{companyInfo:r});case St:return e.createElement(ca,null);case"chat-new-create":return e.createElement(ma,null)}}()),!1)};function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ca=function(t){t.identity,t.token;var n=t.customerSelectionEnabled,r=t.companyInfo,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ka(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(!1),2),i=o[0],a=o[1],l=N((function(e){return e.unseenCount})),u=N((function(e){return e.chatRooms})),s=N((function(e){return e.currentView})),c=N((function(e){return e.selectedRoom})),f=M(),d=N((function(e){return e.selfProfile}));return(0,e.useEffect)((function(){null!==u&&function(){var e=0,t=0;for(var n in u){var r=u[n].messages.length;0!==r&&(u[n].messages[r-1].senderReferenceId===d.referenceId||u[n].messages[r-1].seen||(u[n].messages[r-1].senderReferenceId.includes("order_")?t++:e++))}f(Pn({totalCount:e+t,teamCount:e,customerCount:t}))}()}),[u]),e.createElement("div",{className:"shipday-chat-wrapper"},i&&e.createElement(Ea,{customerSelectionEnabled:n,companyInfo:r}),e.createElement("div",{className:"chat-init-btn",onClick:function(){i||f(In()),i||s!==St||null===c||(f({type:Tr,payload:{roomId:c.getRoomId()}}),f(Ut({roomId:c.getRoomId(),selfRefId:d.referenceId}))),a(!i),f(An(!i))}},!i&&l.totalCount>0&&e.createElement("div",{className:"chat-notification-banner"},l.totalCount),!i&&e.createElement("div",{id:"chat-shipday-icon"},e.createElement("svg",{width:"28",height:"23",viewBox:"0 0 28 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M25 6.25C26.5039 6.25 27.75 7.49609 27.75 9V17.293C27.75 18.7969 26.5039 20 25 20H23.625V22.2344C23.625 22.5781 23.3672 22.75 23.1094 22.75C22.9805 22.75 22.8945 22.75 22.7656 22.6641L18.125 20H13.957C12.4531 20 11.25 18.7969 11.25 17.25V15.875H12.625V17.25C12.625 18.0234 13.2266 18.625 14 18.625H18.4688L22.25 20.7734V18.625H25C25.7305 18.625 26.375 18.0234 26.375 17.25V9C26.375 8.26953 25.7305 7.625 25 7.625H19.5V6.25H25ZM18.125 11.75C18.125 13.2969 16.8789 14.5 15.375 14.5H9.875L5.19141 17.1641C5.0625 17.25 4.97656 17.25 4.89062 17.25C4.58984 17.25 4.375 17.0781 4.375 16.7344V14.543L3 14.5C1.45312 14.5 0.25 13.2969 0.25 11.75V3.5C0.25 1.99609 1.45312 0.75 3 0.75H15.375C16.8789 0.75 18.125 1.99609 18.125 3.5V11.75ZM9.48828 13.125H15.375C16.1055 13.125 16.75 12.5234 16.75 11.75V3.5C16.75 2.76953 16.1055 2.125 15.375 2.125H3C2.22656 2.125 1.625 2.76953 1.625 3.5V11.75C1.625 12.5234 2.22656 13.125 3 13.125H5.75V15.2734L9.48828 13.125Z",fill:"white"}))),i&&e.createElement("div",{id:"chat-minimize-icon"},e.createElement("svg",{width:"18",height:"11",viewBox:"0 0 18 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M9 10.25C8.61328 10.25 8.26953 10.1211 8.01172 9.86328L1.13672 2.98828C0.578125 2.47266 0.578125 1.57031 1.13672 1.05469C1.65234 0.496094 2.55469 0.496094 3.07031 1.05469L9 6.94141L14.8867 1.05469C15.4023 0.496094 16.3047 0.496094 16.8203 1.05469C17.3789 1.57031 17.3789 2.47266 16.8203 2.98828L9.94531 9.86328C9.6875 10.1211 9.34375 10.25 9 10.25Z",fill:"white"})))))};function Oa(e){return Oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oa(e)}function _a(){_a=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new C(o||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Oa(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Ta(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}var Na=function(e){return function(){var t=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ta(i,r,o,a,l,"next",e)}function l(e){Ta(i,r,o,a,l,"throw",e)}a(void 0)}))}}(_a().mark((function t(n){var r,o,i,a;return _a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Ki(e);case 3:(r=t.sent).data&&(o=yr(r.data.roomHistory),i=o.chatRoomsObj,a=o.announcementRoom,n(At(i)),n(un(a)),n({type:Cr,payload:{token:e}})),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(e){return t.apply(this,arguments)}}()};function Pa(e){return Pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pa(e)}function Ia(){Ia=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new C(o||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Pa(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function La(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function ja(e){return ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ja(e)}function Aa(){Aa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new C(o||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==ja(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Ra(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}var Da=function(e,t){return function(){var n=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ra(i,r,o,a,l,"next",e)}function l(e){Ra(i,r,o,a,l,"throw",e)}a(void 0)}))}}(Aa().mark((function n(r){var o,i,a,l;return Aa().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Ji(e,t);case 3:u=n.sent.data,o={roomHistory:[Jr({},u)]},i=yr(o.roomHistory),a=i.chatRoomsObj,l=i.announcementRoom,r(At(a)),r(ln(l)),r({type:Cr,payload:{token:e}}),n.next=13;break;case 11:n.prev=11,n.t0=n.catch(0);case 13:case"end":return n.stop()}var u}),n,null,[[0,11]])})));return function(e){return n.apply(this,arguments)}}()};function Ma(e){return Ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ma(e)}function Fa(){Fa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new C(o||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Ma(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function za(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}var Ua=function(e,t){return function(){var n=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){za(i,r,o,a,l,"next",e)}function l(e){za(i,r,o,a,l,"throw",e)}a(void 0)}))}}(Fa().mark((function n(r){var o,i,a,l,u,s,c,f;return Fa().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Zi(e);case 3:o=n.sent,null==(i=o.data).connections&&(i.connections=to(i)),a=br(i.referenceId,i.name,i.imageUrl,i.lastSeenAt,i.enabled,i.commonRoomId,i.driverChatEnabled),l=Sr(i.connections),l=no(l,t),u=vr(a.referenceId,i.involvedRooms),s=u.chatRoomsObj,c=u.announcementRoom,f=u.connectedUserToChatRoomsLink,Object.keys(s).length>=1&&Object.keys(s).forEach((function(t){r(Da(e,t))})),r(Qt(a)),r(Wt(l)),r(jt(s)),r(ln(c)),r(xn(f)),n.next=21;break;case 18:n.prev=18,n.t0=n.catch(0),console.error(n.t0);case 21:case"end":return n.stop()}}),n,null,[[0,18]])})));return function(e){return n.apply(this,arguments)}}()};function Ba(e){return Ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ba(e)}function Va(){Va=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new C(o||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Ba(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Ha(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}var Wa=function(t){var n=t.theme,r=t.token,o=t.role,i=t.phoneNumber,a=t.customerSelectionEnabled,l=t.orderId,u=t.companyInfo,s=N((function(e){return e.connectedUsers})),c=M();return(0,e.useEffect)((function(){c(pn(n))}),[n]),(0,e.useEffect)((function(){c(Mn(r))}),[r]),(0,e.useEffect)((function(){return o===Un?(c(function(e,t,n){return function(){var r=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ha(i,r,o,a,l,"next",e)}function l(e){Ha(i,r,o,a,l,"throw",e)}a(void 0)}))}}(Va().mark((function r(o){var i,a;return Va().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,ea({phoneNumber:e,orderId:t});case 3:(i=r.sent).data&&(a=i.data.accessToken,o(Mn(a)),o(Ua(a,n))),r.next=9;break;case 7:r.prev=7,r.t0=r.catch(0);case 9:case"end":return r.stop()}}),r,null,[[0,7]])})));return function(e){return r.apply(this,arguments)}}()}(i,l,u)),c(Vn(Un))):(c(Vn(zn)),c(null===s?function(e){return function(){var t=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){La(i,r,o,a,l,"next",e)}function l(e){La(i,r,o,a,l,"throw",e)}a(void 0)}))}}(Ia().mark((function t(n){var r,o,i,a,l,u,s,c;return Ia().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Xi(e);case 3:r=t.sent,o=r.data,i=br(o.referenceId,o.name,o.imageUrl,o.lastSeenAt,o.enabled,o.commonRoomId,o.driverChatEnabled),a=Sr(o.connections),l=vr(i.referenceId,o.involvedRooms),u=l.chatRoomsObj,s=l.announcementRoom,c=l.connectedUserToChatRoomsLink,n(Na(e)),n(Qt(i)),n(Wt(a)),n(jt(u)),n(ln(s)),n(xn(c)),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(0),console.error(t.t0);case 19:case"end":return t.stop()}}),t,null,[[0,16]])})));return function(e){return t.apply(this,arguments)}}()}(r):{type:Cr,payload:{token:r}})),function(){c({type:Or})}}),[]),e.createElement("div",{"data-theme":n},e.createElement(Ca,{theme:n,customerSelectionEnabled:a,companyInfo:u}))},$a=function(t){var n=t.theme,r=void 0===n?"light":n,o=t.token,i=t.role,a=void 0===i?"ADMIN":i,l=t.orderId,u=t.phoneNumber,s=t.customerSelectionEnabled,c=void 0!==s&&s,f=t.companyInfo;return e.createElement(j,{store:Pr},e.createElement(Wa,{theme:r,token:o,role:a,orderId:l,phoneNumber:u,customerSelectionEnabled:c,companyInfo:f}))};function qa(e){return qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qa(e)}function Ga(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ka(r.key),r)}}function Qa(e,t,n){return(t=Ka(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e){var t=function(e,t){if("object"!==qa(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==qa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===qa(t)?t:String(t)}var Xa=function(){function n(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Qa(this,"theme","light"),Qa(this,"token","");var o=r.container,i=r.theme,a=r.token,l=r.role,u=r.phoneNumber,s=r.orderId,c=r.customerSelectionEnabled;this.container=o,this.theme=i,this.token=a,this.role=l,this.phoneNumber=u,this.orderId=s,this.customerSelectionEnabled=c,t.render(e.createElement($a,{theme:this.theme,token:this.token,role:this.role,customerSelectionEnabled:this.customerSelectionEnabled,phoneNumber:this.phoneNumber,orderId:this.orderId}),o)}var r,o;return r=n,o=[{key:"updateView",value:function(n,r){n&&(this.theme=n),r&&(this.token=r),t.render(e.createElement($a,{theme:this.theme,token:this.token,role:this.role,customerSelectionEnabled:this.customerSelectionEnabled}),this.container)}},{key:"updatePhoneNumber",value:function(n){n&&(this.phoneNumber=n),t.render(e.createElement($a,{theme:this.theme,token:this.token,role:this.role,phoneNumber:this.phoneNumber,orderId:this.orderId}),this.container)}},{key:"updateSelectionView",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.customerSelectionEnabled=n,t.render(e.createElement($a,{theme:this.theme,token:this.token,role:this.role,customerSelectionEnabled:this.customerSelectionEnabled,phoneNumber:this.phoneNumber,orderId:this.orderId}),this.container)}}],o&&Ga(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),n}()}(),r}()}));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("ShipdayChat",[],t):"object"==typeof exports?exports.ShipdayChat=t():e.ShipdayChat=t()}(self,(function(){return function(){var e={9087:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".app-container {\n width: 250px;\n position: absolute;\n bottom: 0;\n right: 0;\n background: #eaeaea;\n height: 400px;\n text-align: center;\n}\n\n.app-container .header {\n background: orange;\n color: white;\n height: 40px;\n margin: auto;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.hide {\n display: none;\n}\n",""]),t.Z=a},7911:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".chat-image-preview {\n max-height: 350px;\n min-width: 100px;\n max-width: 280px;\n object-fit: contain;\n border-radius: 5px;\n overflow: hidden;\n cursor: pointer;\n}\n\n.chat-image-preview img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n.chat-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.85);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 9999;\n opacity: 1;\n transition: opacity 0.3s ease;\n}\n\n.chat-modal-content {\n position: relative;\n max-width: 90%;\n max-height: 90%;\n overflow: hidden;\n text-align: center;\n}\n\n.chat-modal-image {\n max-width: 100%;\n max-height: 100%;\n min-height: 100px;\n min-width: 100px;\n object-fit: contain;\n animation: chat-img-zoom-in;\n animation-duration: 0.3s;\n}\n\n.chat-modal-close-btn {\n position: absolute;\n top: 20px;\n right: 20px;\n width: 30px;\n height: 30px;\n background-color: rgba(255, 255, 255, 0.8);\n border: none;\n border-radius: 50%;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n font-weight: bold;\n font-size: 18px;\n transition: transform 0.3s ease;\n}\n\n.chat-modal-overlay.open {\n opacity: 1;\n}\n\n@keyframes chat-img-zoom-in {\n from {transform: scale(0.1)}\n to {transform: scale(1)}\n}",""]),t.Z=a},9834:function(e,t,n){"use strict";var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,'.shipday-chat-wrapper {\n --sd-base-green-400: rgb(92, 211, 171);\n --sd-primary-500: #2EB487;\n --sd-primary-100: #17C289;\n --sd-neutral-100: #ffffff;\n --sd-neutral-200: #F7F9FA;\n --sd-neutral-300: #EFEFEF;\n --sd-neutral-400: #D3D3D3;\n --sd-neutral-500: #7C7C7C;\n --sd-neutral-600: #4A4A4A;\n --sd-neutral-700: #242424;\n --sd-neutral-800: #101010;\n --chat-hover-grey: #e6e9eb;\n --chat-active-green: #1DF425;\n --chat-inactive-grey: #D9D4D4;\n --chat-date-grey: #8E8E93;\n}\n\n[data-theme="dark"] .shipday-chat-wrapper {\n --sd-primary-500: #2EB487;\n --sd-neutral-100: #141414;\n --sd-neutral-200: #1f1f1f;\n --sd-neutral-300: #303030;\n --sd-base-gray-400: #d5d5d5;\n --sd-neutral-450: #969696;\n --sd-neutral-500: #D3D3D3;\n --sd-neutral-700: #D6D6D6;\n --sd-neutral-800: #D6D6D6;\n --sd-primary-100: #32C896;\n --chat-hover-grey: #2f2f2f;\n --chat-active-green: #1DF425;\n --chat-inactive-grey: #D9D4D4;\n --chat-date-grey: #8E8E93;\n}\n\n@supports (not (-webkit-scrollbar: none)) {\n /* For Firefox */\n .chat-content {\n scrollbar-width: thin;\n scrollbar-color: var(--sd-neutral-400) var(--sd-neutral-200);\n }\n\n /* For Internet Explorer and Microsoft Edge */\n .chat-content {\n -ms-overflow-style: scrollbar;\n }\n}\n\n.chat-init-btn {\n position: absolute;\n height: 30px;\n width: 30px;\n bottom: calc(min(20px, 5vh));\n right: calc(min(20px, 5vw));\n /* Primary / 100 */\n background: var(--sd-primary-100);\n box-shadow: 0px 15px 80px rgba(0, 0, 0, 0.13), 0px 6.26664px 33.4221px rgba(0, 0, 0, 0.0934511), 0px 3.35045px 17.869px rgba(0, 0, 0, 0.0774939), 0px 1.87823px 10.0172px rgba(0, 0, 0, 0.065), 0px 0.997515px 5.32008px rgba(0, 0, 0, 0.0525061), 0px 0.415088px 2.21381px rgba(0, 0, 0, 0.0365489);\n border-radius: 40px;\n padding: 14px;\n display: flex;\n align-items: center;\n text-align: center;\n letter-spacing: 0.01em;\n justify-content: center;\n cursor: pointer;\n}\n\n#chat-minimize-icon {\n padding-top: 2px;\n}\n\n.chat-notification-banner {\n height: 18px;\n width: 18px;\n border: 2px solid #ffffff;\n color: #ffffff;\n background: #EF5458;\n border-radius: 50%;\n position: fixed;\n bottom: 60px;\n right: 18px;\n font-weight: 600;\n font-size: 10px;\n line-height: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n letter-spacing: 0.01em;\n}\n\n.chat-body-wrapper {\n flex-direction: column;\n position: absolute;\n bottom: 100px;\n opacity: 1;\n right: calc(min(20px, 5vw));\n width: 20vw;\n min-width: 400px;\n max-width: 500px;\n max-height: calc(100vh - 160px);\n height: 583px;\n z-index: 999;\n border-radius: 13px;\n border: 1px solid var(--sd-neutral-300);\n /* border: 1px solid var(--sd-neutral-300); */\n background: var(--sd-neutral-100);\n box-shadow: 0px 54px 80px rgba(0, 0, 0, 0.02), 0px 22.5599px 33.4221px rgba(0, 0, 0, 0.0143771), 0px 12.0616px 17.869px rgba(0, 0, 0, 0.0119221), 0px 6.76164px 10.0172px rgba(0, 0, 0, 0.01), 0px 3.59106px 5.32008px rgba(0, 0, 0, 0.00807786), 0px 1.49432px 2.21381px rgba(0, 0, 0, 0.00562291);\n transition: width 200ms ease 0s, height 200ms ease 0s, max-height 200ms ease 0s, transform 300ms cubic-bezier(0, 1.2, 1, 1) 0s, opacity 83ms ease-out 0s; transform-origin: right bottom;\n transform: scale(0);\n}\n\n.chat-full-scale {\n transform: scale(1);\n}\n\n@media screen and (max-width: 575px) {\n .customer-chat.chat-body-wrapper {\n max-width: 100vw;\n max-height: 100vh;\n min-width: 100vw;\n min-height: 100vh;\n width: 100vw;\n height: 100vh;\n top: 0;\n right: 0;\n bottom: 0;\n border-radius: 0;\n transform: scale(1);\n }\n\n .customer-chat .chat-content {\n height: calc(100vh - 67px) !important;\n }\n\n .customer-chat .chat-msgs-list {\n height: 100% !important;\n }\n}\n\n.chat-header {\n display: flex;\n flex-direction: column;\n height: 70px;\n}\n\n.chat-header-long {\n height: 132px !important;\n}\n\n.chat-header-short {\n height: 70px !important;\n}\n\n.chat-header-title {\n height: 100%;\n padding: 10px 12px;\n text-align: center;\n font-size: 18px;\n line-height: 24px;\n /* var(--sd-neutal-800) */\n color: var(--sd-neutral-800);\n /* var(--sd-neutral-200) */\n background: var(--sd-neutral-200);\n /* var(--sd-neutral-300); */\n border-bottom: 1px solid var(--sd-neutral-300);\n border-radius: 14px 14px 0px 0px;\n}\n\n.chat-header-title {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.chat-header-title span {\n text-align: center;\n flex: 1;\n padding-left: 43px;\n}\n\n.chat-new-room-title span {\n text-align: center;\n flex: 1;\n padding-left: 0;\n margin-left: -32px;\n}\n\n.chat-header-new-btn {\n margin-left: 10px;\n /*!* Neutral/100 *!*/\n /*background: var(--sd-neutral-100);*/\n /*!* Neutral/300 *!*/\n /*border: 1px solid var(--sd-neutral-300);*/\n border-radius: 4px;\n padding: 13px 14px;\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n align-items: center;\n cursor: pointer;\n}\n\n.non-visible {\n opacity: 0;\n pointer-events: none;\n}\n\n.chat-header-types-wrapper {\n padding: 10px 16px;\n /* var(--sd-neutral-300); */\n border-bottom: 1px solid var(--sd-neutral-300);\n height: 63px;\n}\n\n.chat-header-types {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: 3px;\n border-radius: 10px;\n /* var(--sd-neutral-300); */\n /* var(--sd-neutral-200) */\n background: var(--sd-neutral-200);\n gap: 3px;\n}\n\n.chat-single-type-btn {\n font-size: 14px;\n width: 100%;\n font-weight: 500;\n /* var(--sd-neutal-500) */\n color: var(--sd-neutral-500);\n align-items: center;\n text-align: center;\n border-radius: 8px;\n padding: 8px;\n cursor: pointer;\n display: flex;\n justify-content: center;\n position: relative;\n}\n\n.chat-type-unseen-count {\n position: absolute;\n right: 5px;\n color: var(--sd-neutral-600);\n background: var(--sd-neutral-400);\n border-radius: 50%;\n min-width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.chat-type-selected {\n background: var(--sd-neutral-100);\n color: var(--sd-neutral-800);\n}\n\n[data-theme="dark"] .chat-type-selected {\n border: 1px solid var(--sd-neutral-800);\n}\n\n.chat-single-type-btn:not(.chat-type-selected):hover {\n background-color: var(--chat-hover-grey);\n border-radius: 8px;\n}\n\n.chat-header-return-btn {\n cursor: pointer;\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 13px 18px 13px 5px;\n z-index: 2;\n /* Neutral/100 */\n /*background: var(--sd-neutral-100);*/\n /* Neutral/300 */\n /*border: 1px solid var(--sd-neutral-300);*/\n /*border-radius: 4px;*/\n}\n\n.chat-header-sender-preview {\n display: flex;\n align-items: center;\n gap: 2px;\n padding: 13px;\n /* var(--sd-neutral-300); */\n border-bottom: 1px solid var(--sd-neutral-300);\n background: var(--sd-neutral-200);\n border-radius: 14px 14px 0px 0px;\n}\n\n.chat-header-sender-details {\n display: flex;\n}\n\n.chat-content {\n height: 512px;\n max-height: calc(100% - 70px);\n overflow: hidden;\n border-radius: 0 0 12px 12px;\n}\n\n.chat-content-short {\n height: 450px !important;\n max-height: calc(100% - 132px);\n}\n\n.chat-list {\n overflow: auto;\n height: 100%;\n animation: slideInLeft 0.3s ease forwards;\n}\n\n.chat-list-team {\n animation: slideInLeft 0.3s ease forwards;\n}\n\n.chat-list-customer {\n animation: slideIn 0.3s ease forwards;\n}\n\n.chat-single-thread {\n padding: 12px 16px;\n display: flex;\n flex-direction: row;\n position: relative;\n}\n\n.chat-single-thread:hover {\n background-color: var(--sd-neutral-200);\n cursor: pointer;\n}\n\n.chat-single-thread:before {\n content: "";\n position: absolute;\n left: 68px;\n bottom: 0;\n height: 1px;\n width: calc(100% - 68px); /* or 100px */\n border-bottom: 1px solid var(--sd-neutral-300);\n}\n\n.chat-sender-img {\n display: flex;\n position: relative;\n height: 40px;\n}\n\n.chat-sender-img img {\n height: 40px;\n width: 40px;\n object-fit: cover;\n border-radius: 50%;\n}\n\n.chat-sender-img-sm, .chat-sender-img-sm img, .chat-sender-img-sm .custom-user-img {\n height: 36px !important;\n width: 36px !important;\n}\n\n.chat-sender-img-container {\n width: 36px;\n}\n\n.chat-active-identity {\n position: absolute;\n bottom: 0;\n right: 0;\n width: 11px;\n height: 11px;\n border: 1px solid var(--sd-neutral-100);\n border-radius: 50%;\n}\n\n.chat-active {\n background: var(--chat-active-green);\n}\n\n.chat-inactive {\n background: var(--chat-inactive-grey);;\n}\n\n.chat-header-details {\n display: flex;\n padding-left: 8px;\n align-items: center;\n}\n\n.chat-details {\n display: flex;\n flex-direction: column;\n padding: 0 8px 0 12px;\n /*neutral 500*/\n color: var(--sd-neutral-500);\n width: 100%;\n line-height: 18px;\n}\n\n.chat-sender-details {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n font-size: 14px;\n height: 20px;\n flex: none;\n order: 0;\n align-self: stretch;\n flex-grow: 0;\n}\n\n.chat-sender-name, .single-connected-user-name {\n font-weight: 500;\n /* neutral 800 */\n color: var(--sd-neutral-800);\n font-size: 14px;\n line-height: 16px;\n max-width: 200px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.chat-sender-name-bold {\n font-weight: 600;\n font-size: 16px;\n line-height: 20px;\n}\n\n.chat-sent-time-preview {\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n /* or 133% */\n\n display: flex;\n align-items: center;\n text-align: right;\n letter-spacing: 0.02em;\n /* Neutral/500 */\n\n color: var(--sd-neutral-500);\n}\n\n.chat-sent-time-preview.bolder-text {\n color: var(--sd-neutral-700);\n}\n\n.chat-sent-time {\n font-weight: 400;\n font-size: 11px;\n line-height: 14px;\n color: var(--sd-neutral-100);\n padding-top: 2px;\n}\n\n.chat-single-received .chat-sent-time {\n /* Neutral/500 */\n color: var(--sd-neutral-500);\n}\n\n.chat-text-preview {\n font-weight: 400;\n font-size: 14px;\n line-height: 18px;\n /* identical to box height, or 129% */\n\n display: flex;\n align-items: center;\n letter-spacing: 0.02em;\n\n /* Neutral/500 */\n\n color: var(--sd-neutral-500);\n}\n\n.chat-view-all-btn {\n display: flex;\n align-items: center;\n}\n\n.chat-controllers {\n display: flex;\n justify-content: space-between;\n padding: 14px 63px 18px;\n gap: 32px;\n /* neutral 500 */\n color: var(--sd-neutral-500);\n border-top: 1px solid var(--sd-neutral-300);\n}\n\n.chat-controller-single {\n cursor: pointer;\n align-items: center;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.chat-controller-selected {\n /* var(--sd-neutal-800) */\n color: var(--sd-neutral-800);\n}\n\n.chat-msgs {\n display: flex;\n flex-direction: column;\n /*width: 100%;*/\n padding: 0 8px;\n overflow: hidden;\n height: calc(100% - 64px);\n animation: slideIn 0.3s ease forwards;\n}\n\n.chat-msgs-list {\n display: flex;\n flex-direction: column;\n height: 450px;\n overflow: auto;\n overflow-x: hidden;\n}\n\n.empty-msgs-list {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n color: var(--sd-neutral-400);\n text-align: center;\n}\n\n.chat-connected-users-list {\n overflow: auto;\n height: 100%;\n position: relative;\n animation: slideIn 0.3s ease-in-out;\n}\n\n.chat-single-wrapper {\n display: flex;\n align-items: flex-end;\n gap: 12px;\n margin-bottom: 8px;\n width: 99%;\n}\n\n.chat-single-wrapper:first-child {\n margin-top: 5px;\n}\n\n.chat-single-sent {\n margin-left: auto;\n}\n\n.chat-single-received {\n margin-right: auto;\n}\n\n.chat-date-span {\n text-align: center;\n margin: 10px 0;\n font-size: 12px;\n color: var(--chat-date-grey);\n text-transform: uppercase;\n letter-spacing: 0.5px;\n font-weight: bold;\n}\n\n.chat-single-container {\n width: fit-content;\n padding: 10px;\n position: relative;\n background: var(--sd-neutral-200);\n /*box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);*/\n border-radius: 10px;\n}\n\n.chat-single-container.chat-single-sent {\n margin-left: auto;\n color: var(--sd-neutral-100);\n background: var(--sd-primary-100);\n /*box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);*/\n border-radius: 10px;\n}\n\n.chat-single-container.chat-single-received {\n margin-right: auto;\n}\n\n.chat-msg-status-container {\n display: flex;\n justify-content: end;\n clear: both;\n gap: 5px;\n margin-right: 0;\n align-items: center;\n}\n\n.chat-inline-phone {\n color: inherit !important;\n}\n\n.chat-inline-link {\n color: inherit !important;\n text-decoration: underline !important;\n}\n\n.justify-start {\n justify-content: start !important;\n}\n\n.chat-delivery-state {\n display: block;\n font-size: 11px;\n color: var(--sd-neutral-100);\n margin-top: 2px;\n}\n\n.chat-msg-content {\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n color: var(--sd-neutral-700);\n}\n\n.chat-single-sent .chat-msg-content {\n color: var(--sd-neutral-100);\n}\n\n\n.chat-input-form {\n display: flex;\n align-items: center;\n padding: 12px 8px;\n border-top: 1px solid var(--sd-neutral-300);\n}\n\n.chat-input-group {\n display: flex;\n flex: 1;\n margin: 0;\n gap: 8px;\n}\n\n.input-group-prepend, .input-group-append {\n display: flex;\n}\n\n.input-group-text {\n font-size: 24px;\n color: var(--sd-neutral-500);\n background-color: transparent;\n border: none;\n}\n\n.input-add-doc-btn {\n font-style: normal;\n font-weight: 400;\n font-size: 18px;\n line-height: 16px;\n /* identical to box height, or 89% */\n\n /*display: flex;*/\n align-items: center;\n text-align: center;\n letter-spacing: 0.01em;\n\n /* Neutral/500 */\n\n color: var(--sd-neutral-500);\n cursor: pointer;\n display: none;\n}\n\n.chat-text-input {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 6px 8px;\n gap: 8px;\n /* Neutral/200 */\n\n background: var(--sd-neutral-200);\n /* Neutral/300 */\n\n border: 1px solid var(--sd-neutral-300);\n border-radius: 8px;\n\n /* Inside auto layout */\n\n flex: none;\n order: 0;\n flex-grow: 1;\n\n font-size: 17px;\n line-height: 24px;\n color: var(--sd-neutral-800);\n}\n\n.chat-text-input::placeholder {\n padding-top:2px;\n font-size: 15px;\n color: var(--sd-neutral-400);\n}\n\n.btn-primary {\n border-radius: 15px;\n}\n\n.chat-submit-btn {\n background: var(--sd-primary-100);\n border-radius: 8px;\n cursor: pointer;\n\n /* Inside auto layout */\n flex: none;\n order: 1;\n flex-grow: 0;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n padding: 10px;\n color: var(--sd-neutral-100);\n border: none;\n}\n\n.chat-single-container {\n max-width: 255px;\n word-wrap: break-word;\n line-height: 24px;\n position: relative;\n padding: 10px 20px;\n margin: 0 5px 2px;\n}\n\n.chat-single-sent {\n align-self: flex-end;\n}\n\n.chat-single-sent:before {\n content: "";\n position: absolute;\n bottom: 0;\n right: -7px;\n height: 25px;\n width: 20px;\n background: var(--sd-primary-100);\n border-bottom-left-radius: 16px 14px;\n}\n\n.chat-single-sent:after {\n content: "";\n position: absolute;\n bottom: 0;\n right: -10px;\n height: 25px;\n width: 10px;\n background-color: var(--sd-neutral-100);\n border-bottom-left-radius: 10px;\n}\n\n.chat-single-received {\n align-self: flex-start;\n}\n\n.chat-single-received:before {\n content: "";\n position: absolute;\n bottom: 0;\n left: -7px;\n height: 25px;\n width: 20px;\n background: var(--sd-neutral-200);\n border-bottom-right-radius: 16px;\n /*box-shadow: -1px 1px 0 0 rgba(0, 0, 0, 0.1);*/\n}\n\n.chat-single-received:after {\n content: "";\n position: absolute;\n bottom: 0;\n left: -10px;\n height: 25px;\n width: 10px;\n background-color: var(--sd-neutral-100);\n border-bottom-right-radius: 10px;\n}\n\n.custom-user-img {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n background-color: var(--sd-primary-100);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--sd-neutral-100);\n font-weight: bold;\n font-size: 18px;\n}\n\n.bolder-text {\n font-weight: 600;\n}\n\n[data-theme="dark"] .bolder-text {\n font-weight: 700;\n color: white;\n}\n\n.chat-unseen-count {\n font-size: 12px;\n padding: 2px 3px 3px;\n background-color: var(--sd-primary-100);\n border-radius: 50%;\n height: 20px;\n width: 20px;\n text-align: center;\n color: var(--sd-neutral-100);\n opacity: 0.75;\n margin-right: 5px;\n position: absolute;\n right: 20px;\n}\n\n.chat-connected-user-search-wrapper {\n display: flex;\n gap: 5px;\n padding: 10px 20px;\n border-bottom: 1px solid var(--sd-neutral-300);\n font-size: 16px;\n position: sticky;\n top: 0;\n background-color: var(--sd-neutral-100);\n z-index: 5;\n}\n\n.chat-connected-user-search-wrapper span{\n color: var(--sd-neutral-800);\n}\n\n.chat-connected-user-search-wrapper input {\n border: none;\n user-focus: none;\n font-size: 15px;\n color: var(--sd-neutral-700);\n width: 100%;\n background: var(--sd-neutral-100);\n}\n\n.shipday-chat-wrapper input:focus, .shipday-chat-wrapper input:focus-visible {\n outline: none;\n}\n\n.single-connected-user {\n display: flex;\n gap: 12px;\n align-items: center;\n padding: 10px 20px;\n cursor: pointer;\n position: relative;\n}\n\n.single-connected-user:hover {\n background-color: var(--sd-neutral-200);\n}\n\n.single-connected-user:before {\n content: "";\n position: absolute;\n left: 68px;\n bottom: 0;\n height: 1px;\n width: calc(100% - 68px); /* or 100px */\n border-bottom: 1px solid var(--sd-neutral-300);\n}\n\n.chat-no-connections-found {\n font-size: 14px;\n color: var(--sd-neutral-500);\n text-align: center;\n padding-top: 30px;\n}\n\n.no-padding {\n padding: 0 !important;\n}\n\n.pe-1 {\n padding-right: 30px !important;\n}\n\n\n/*-----------*/\n\n.chat-banner-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 80px;\n height: 100%;\n background: radial-gradient(130.60% 118.53% at -1.50% -2.00%, #17C289 0%, rgba(23, 194, 137, 0.00) 100%), #FFF;\n}\n\n.chat-circle-images {\n position: relative;\n margin-bottom: 20px;\n}\n\n.chat-circle-image {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n margin: 0 5px;\n}\n\n.chat-circle-image:nth-child(2) {\n margin-left: -15px;\n}\n\n.chat-banner-text {\n text-align: left;\n margin-bottom: 24px;\n color: var(--sd-neutral-600);\n font-size: 32px;\n line-height: 32px;\n font-weight: 600;\n width: calc(100% - 40px);\n}\n\n.chat-sub-text {\n margin-top: 8px;\n color: var(--sd-neutral-800);\n font-size: 32px;\n line-height: 32px;\n font-weight: 600;\n}\n\n.chat-rounded-div {\n background-color: #ffffff;\n display: flex;\n align-items: center;\n cursor: pointer;\n width: calc(100% - 40px);\n border-radius: 12px;\n border: 1px solid var(--sd-neutral-300, #EFEFEF);\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.01), 0 2px 3px 0 rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.03);\n animation: fadeIn 0.3s ease-in-out;\n}\n\n.chat-rounded-div .chat-list {\n width: 100%;\n animation: none;\n}\n\n.chat-rounded-div .chat-single-thread {\n padding: 16px;\n}\n\n.chat-rounded-div .chat-single-thread:hover{\n border-radius: 10px;\n}\n\n.chat-rounded-div .chat-list .chat-single-thread:before {\n display: none;\n}\n\n.chat-rounded-div .chat-list .chat-single-thread:not(:last-child) {\n border-bottom: 1px solid var(--sd-neutral-300);\n}\n\n.chat-rounded-div .chat-list .chat-single-thread .chat-sender-details {\n display: none !important;\n}\n\n.chat-rounded-div .chat-list .chat-single-thread .chat-details {\n justify-content: center;\n}\n\n.chat-rounded-div .chat-list .chat-single-thread .chat-details .chat-text-preview {\n font-size: 16px;\n color: var(--sd-neutral-800);\n line-height: 16px;\n font-weight: 500;\n height: 16px;\n}\n\n.chat-rounded-div .chat-list .chat-single-thread .chat-active-identity {\n display: none;\n}\n /*.chat-rounded-div .chat-list .chat-single-thread .chat-view-all-btn path{*/\n/* fill: var(--sd-neutral-500);*/\n/*}*/\n\n.chat-inner-div {\n display: flex;\n justify-content: center;\n flex-direction: column;\n text-align: start;\n gap: 5px;\n}\n\n.chat-inner-div > div:nth-child(1) {\n color: var(--sd-neutral-800);\n font-weight: 600;\n font-size: 14px;\n line-height: 15px;\n}\n\n.chat-inner-div > div:nth-child(2) {\n color: var(--sd-neutral-400);\n font-size: 14px;\n line-height: 15px;\n font-weight: normal;\n}\n\n\n.chat-send-message {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.chat-send-icon {\n height: 16px;\n width: 17px;\n margin-left: 10px;\n align-items: center;\n padding: 10px;\n border-radius: 5px;\n background-color: #5CD3AB3C;\n border: var(--sd-neutral-300) 1px solid;\n}\n\n.chat-single-animate {\n animation: slideIn 0.3s ease forwards;\n}\n\n@keyframes slideIn {\n 0% {\n opacity: 0;\n transform: translateX(30%);\n }\n 100% {\n opacity: 1;\n transform: translateX(0);\n }\n}\n\n.chat-single-animate-other {\n animation: slideInLeft 0.3s ease forwards;\n}\n\n@keyframes slideInLeft {\n 0% {\n opacity: 0;\n transform: translateX(-30%);\n }\n 100% {\n opacity: 1;\n transform: translateX(0);\n }\n}\n\n@keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n',""]),t.Z=a},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var u=this[l][0];null!=u&&(a[u]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&a[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},8081:function(e){"use strict";e.exports=function(e){return e[1]}},9960:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},284:function(e){var t=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return t()}try{return __global__||t()}finally{delete Object.prototype.__global__}}()},8679:function(e,t,n){"use strict";var r=n(1296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var l=u(t),m=u(n),y=0;y<a.length;++y){var v=a[y];if(!(i[v]||r&&r[v]||m&&m[v]||l&&l[v])){var g=d(n,v);try{s(t,v,g)}catch(e){}}}}return t}},6103:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case s:case d:case y:case m:case u:return e;default:return t}}case o:return t}}}function S(e){return x(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=s,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||x(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===s},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===y},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===l},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===u||e.$$typeof===s||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},1296:function(e,t,n){"use strict";e.exports=n(6103)},885:function(e,t){t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},8276:function(e){var t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/,i=/<head[^]*>/i,a=/<body[^]*>/i,l=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},s="object"==typeof window&&window.DOMParser;if("function"==typeof s){var c=new s;l=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),c.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var f=document.implementation.createHTMLDocument();l=function(e,t){return t?(f.documentElement.querySelector(t).innerHTML=e,f):(f.documentElement.innerHTML=e,f)}}var d,p="object"==typeof document?document.createElement("template"):{};p.content&&(d=function(e){return p.innerHTML=e,p.content.childNodes}),e.exports=function(e){var s,c,f,p,h=e.match(o);switch(h&&h[1]&&(s=h[1].toLowerCase()),s){case t:return c=u(e),i.test(e)||(f=c.querySelector(n))&&f.parentNode.removeChild(f),a.test(e)||(f=c.querySelector(r))&&f.parentNode.removeChild(f),c.querySelectorAll(t);case n:case r:return p=(c=l(e)).querySelectorAll(s),a.test(e)&&i.test(e)?p[0].parentNode.childNodes:p;default:return d?d(e):(f=l(e,r).querySelector(r)).childNodes}}},4152:function(e,t,n){var r=n(8276),o=n(1507).formatDOM,i=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(i);return n&&n[1]&&(t=n[1]),o(r(e),null,t)}},1507:function(e,t,n){for(var r,o=n(4584),i=n(885).CASE_SENSITIVE_TAG_NAMES,a=o.Comment,l=o.Element,u=o.ProcessingInstruction,s=o.Text,c={},f=0,d=i.length;f<d;f++)r=i[f],c[r.toLowerCase()]=r;function p(e){for(var t,n={},r=0,o=e.length;r<o;r++)n[(t=e[r]).name]=t.value;return n}function h(e){return function(e){return c[e]}(e=e.toLowerCase())||e}t.formatAttributes=p,t.formatDOM=function e(t,n,r){n=n||null;for(var o,i=[],c=0,f=t.length;c<f;c++){var d,m=t[c];switch(m.nodeType){case 1:o=h(m.nodeName),(d=new l(o,p(m.attributes))).children=e("template"===o?m.content.childNodes:m.childNodes,d);break;case 3:d=new s(m.nodeValue);break;case 8:d=new a(m.nodeValue);break;default:continue}var y=i[c-1]||null;y&&(y.next=d),d.parent=n,d.prev=y,d.next=null,i.push(d)}return r&&((d=new u(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=i[0]||null,d.parent=n,i.unshift(d),i[1]&&(i[1].prev=i[0])),i}},4584:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(9960),a=n(1642);o(n(1642),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=u,t.default=u},1642:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n(9960),l=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),S(this,e)},e}();t.Node=l;var u=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=u;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(u);t.Text=s;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(u);t.Comment=c;var f=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=a.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(u);t.ProcessingInstruction=f;var d=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=d;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(d);t.CDATA=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(d);t.Document=h;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(d);function y(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function g(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function x(e){return e.type===a.ElementType.Root}function S(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new s(e.data);else if(b(e))n=new c(e.data);else if(y(e)){var r=t?E(e.children):[],o=new m(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(v(e)){r=t?E(e.children):[];var a=new p(r);r.forEach((function(e){return e.parent=a})),n=a}else if(x(e)){r=t?E(e.children):[];var l=new h(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var u=new f(e.name,e.data);null!=e["x-name"]&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),n=u}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function E(e){for(var t=e.map((function(e){return S(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=y,t.isCDATA=v,t.isText=g,t.isComment=b,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=S},488:function(e,t,n){var r=n(7384),o=n(4152),i=n(484),a=n(3670);o="function"==typeof o.default?o.default:o;var l={lowerCaseAttributeNames:!1};function u(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:a(o(e,(t=t||{}).htmlparser2||l),t)}u.domToReact=a,u.htmlToDOM=o,u.attributesToProps=i,u.Comment=r.Comment,u.Element=r.Element,u.ProcessingInstruction=r.ProcessingInstruction,u.Text=r.Text,e.exports=u,u.default=u},484:function(e,t,n){var r=n(5726),o=n(4606),i=["checked","value"],a=["input","select","textarea"],l={reset:!0,submit:!0};function u(e){return r.possibleStandardNames[e]}e.exports=function(e,t){var n,s,c,f,d,p={},h=(e=e||{}).type&&l[e.type];for(n in e)if(c=e[n],r.isCustomAttribute(n))p[n]=c;else if(f=u(s=n.toLowerCase()))switch(d=r.getPropertyInfo(f),-1===i.indexOf(f)||-1===a.indexOf(t)||h||(f=u("default"+s)),p[f]=c,d&&d.type){case r.BOOLEAN:p[f]=!0;break;case r.OVERLOADED_BOOLEAN:""===c&&(p[f]=!0)}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(p[n]=c);return o.setStyleProp(e.style,p),p}},3670:function(e,t,n){var r=n(7294),o=n(484),i=n(4606),a=i.setStyleProp,l=i.canTextBeChildOfNode;function u(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&i.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var i,s,c,f,d,p=(n=n||{}).library||r,h=p.cloneElement,m=p.createElement,y=p.isValidElement,v=[],g="function"==typeof n.replace,b=n.trim,w=0,x=t.length;w<x;w++)if(i=t[w],g&&y(c=n.replace(i)))x>1&&(c=h(c,{key:c.key||w})),v.push(c);else if("text"!==i.type){switch(f=i.attribs,u(i)?a(f.style,f):f&&(f=o(f,i.name)),d=null,i.type){case"script":case"style":i.children[0]&&(f.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?f.defaultValue=i.children[0].data:i.children&&i.children.length&&(d=e(i.children,n));break;default:continue}x>1&&(f.key=w),v.push(m(i.name,f,d))}else{if((s=!i.data.trim().length)&&i.parent&&!l(i.parent))continue;if(b&&s)continue;v.push(i.data)}return 1===v.length?v[0]:v}},4606:function(e,t,n){var r=n(7294),o=n(1476).default,i={reactCompat:!0},a=r.version.split(".")[0]>=16,l=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,o="function"==typeof t,i={},a={};for(n in e)r=e[n],o&&(i=t(n,r))&&2===i.length?a[i[0]]=i[1]:"string"==typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=o(e,i)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!l.has(e.name)},elementsWithNoTextChildren:l}},7384:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(9960),a=n(5079);o(n(5079),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=u,t.default=u},5079:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n(9960),l=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),S(this,e)},e}();t.Node=l;var u=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=u;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(u);t.Text=s;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(u);t.Comment=c;var f=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=a.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(u);t.ProcessingInstruction=f;var d=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=d;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(d);t.CDATA=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(d);t.Document=h;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(d);function y(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function g(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function x(e){return e.type===a.ElementType.Root}function S(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new s(e.data);else if(b(e))n=new c(e.data);else if(y(e)){var r=t?E(e.children):[],o=new m(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(v(e)){r=t?E(e.children):[];var a=new p(r);r.forEach((function(e){return e.parent=a})),n=a}else if(x(e)){r=t?E(e.children):[];var l=new h(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var u=new f(e.name,e.data);null!=e["x-name"]&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),n=u}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function E(e){for(var t=e.map((function(e){return S(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=y,t.isCDATA=v,t.isText=g,t.isComment=b,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=S},5717:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},8139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,s="";function c(e){return e?e.replace(u,s):s}e.exports=function(e,u){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];u=u||{};var f=1,d=1;function p(e){var t=e.match(n);t&&(f+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function h(){var e={line:f,column:d};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:f,column:d},this.source=u.source}m.prototype.content=e;var y=[];function v(t){var n=new Error(u.source+":"+f+":"+d+": "+t);if(n.reason=t,n.filename=u.source,n.line=f,n.column=d,n.source=e,!u.silent)throw n;y.push(n)}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){g(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;s!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,s===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function S(){var e=h(),n=g(o);if(n){if(x(),!g(i))return v("property missing ':'");var r=g(a),u=e({type:"declaration",property:c(n[0].replace(t,s)),value:r?c(r[0].replace(t,s)):s});return g(l),u}}return b(),function(){var e,t=[];for(w(t);e=S();)!1!==e&&(t.push(e),w(t));return t}()}},5456:function(e,t,n){var r=n(5456);for(k in r)n.g[k]=r[k]},7129:function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,i,a=[];for(i in"string"!=typeof t&&(t="?"),e)if(n.call(e,i)){if((r=e[i])||null!=r&&!isNaN(r)||(r=""),i=o(i),r=o(r),null===i||null===r)continue;a.push(i+"="+r)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var i=r(t[1]),a=r(t[2]);null===i||null===a||i in o||(o[i]=a)}return o}},4448:function(e,t,n){"use strict";var r=n(7294),o=n(3840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function u(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[: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]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new m(e,2,!1,e,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(e){y[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=y.hasOwnProperty(t)?y[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),_=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var A=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var D,M=Object.assign;function F(e){if(void 0===D)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var z=!1;function U(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var u="\n"+o[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=l);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function B(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return U(e.type,!1);case 11:return U(e.type.render,!1);case 1:return U(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case S:return"Portal";case C:return"Profiler";case k:return"StrictMode";case N:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return V(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===k?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Z(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Y(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return M({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ie(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={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},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=M({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 ge(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ee=null,ke=null;function Ce(e){if(e=wo(e)){if("function"!=typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function Oe(e){Ee?ke?ke.push(e):ke=[e]:Ee=e}function _e(){if(Ee){var e=Ee,t=ke;if(ke=Ee=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Te(e,t){return e(t)}function Ne(){}var Pe=!1;function Ie(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Te(e,t,n)}finally{Pe=!1,(null!==Ee||null!==ke)&&(Ne(),_e())}}function Le(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var je=!1;if(c)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){je=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch(ce){je=!1}function Re(e,t,n,r,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var De=!1,Me=null,Fe=!1,ze=null,Ue={onError:function(e){De=!0,Me=e}};function Be(e,t,n,r,o,i,a,l,u){De=!1,Me=null,Re.apply(Ue,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function We(e){if(Ve(e)!==e)throw Error(i(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return We(o),e;if(a===r)return We(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=a;break}if(u===r){l=!0,r=o,n=a;break}u=u.sibling}if(!l){for(u=a.child;u;){if(u===n){l=!0,n=a,r=o;break}if(u===r){l=!0,r=a,n=o;break}u=u.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ge=o.unstable_scheduleCallback,Qe=o.unstable_cancelCallback,Ke=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Ze=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ye=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2,st=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=ft(l):0!=(i&=a)&&(r=ft(i))}else 0!=(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=st;return 0==(4194240&(st<<=1))&&(st=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var xt,St,Et,kt,Ct,Ot=!1,_t=[],Tt=null,Nt=null,Pt=null,It=new Map,Lt=new Map,jt=[],At="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function Dt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Mt(e){var t=bo(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Ct(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function zt(e,t,n){Ft(e)&&n.delete(t)}function Ut(){Ot=!1,null!==Tt&&Ft(Tt)&&(Tt=null),null!==Nt&&Ft(Nt)&&(Nt=null),null!==Pt&&Ft(Pt)&&(Pt=null),It.forEach(zt),Lt.forEach(zt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ut)))}function Vt(e){function t(t){return Bt(t,e)}if(0<_t.length){Bt(_t[0],e);for(var n=1;n<_t.length;n++){var r=_t[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Bt(Tt,e),null!==Nt&&Bt(Nt,e),null!==Pt&&Bt(Pt,e),It.forEach(t),Lt.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)Mt(n),null===n.blockedOn&&jt.shift()}var Ht=w.ReactCurrentBatchConfig,Wt=!0;function $t(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=1,Gt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function qt(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=4,Gt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function Gt(e,t,n,r){if(Wt){var o=Kt(e,t,n,r);if(null===o)Wr(e,t,r,Qt,n),Rt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=Dt(Tt,e,t,n,r,o),!0;case"dragenter":return Nt=Dt(Nt,e,t,n,r,o),!0;case"mouseover":return Pt=Dt(Pt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Dt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Lt.set(i,Dt(Lt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Rt(e,r),4&t&&-1<At.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Kt(e,t,n,r))&&Wr(e,t,r,Qt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Qt=null;function Kt(e,t,n,r){if(Qt=null,null!==(e=bo(e=xe(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ye:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Zt=null,Jt=null,Yt=null;function en(){if(Yt)return Yt;var e,t,n=Jt,r=n.length,o="value"in Zt?Zt.value:Zt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Yt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return M(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,un,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(sn),fn=M({},sn,{view:0,detail:0}),dn=on(fn),pn=M({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),mn=on(M({},pn,{dataTransfer:0})),yn=on(M({},fn,{relatedTarget:0})),vn=on(M({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=M({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(gn),wn=on(M({},sn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Cn(){return kn}var On=M({},fn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_n=on(On),Tn=on(M({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=on(M({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Pn=on(M({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=M({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ln=on(In),jn=[9,13,27,32],An=c&&"CompositionEvent"in window,Rn=null;c&&"documentMode"in document&&(Rn=document.documentMode);var Dn=c&&"TextEvent"in window&&!Rn,Mn=c&&(!An||Rn&&8<Rn&&11>=Rn),Fn=String.fromCharCode(32),zn=!1;function Un(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1,Hn={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 Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function $n(e,t,n,r){Oe(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Gn=null;function Qn(e){Fr(e,0)}function Kn(e){if(G(xo(e)))return e}function Xn(e,t){if("change"===e)return t}var Zn=!1;if(c){var Jn;if(c){var Yn="oninput"in document;if(!Yn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Yn="function"==typeof er.oninput}Jn=Yn}else Jn=!1;Zn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Gn=qn=null)}function nr(e){if("value"===e.propertyName&&Kn(Gn)){var t=[];$n(t,Gn,e,xe(e)),Ie(Qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Gn)}function ir(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ur(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,yr=null,vr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==yr||yr!==Q(r)||(r="selectionStart"in(r=yr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&ur(gr,r)||(gr=r,0<(r=qr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Er={},kr={};function Cr(e){if(Er[e])return Er[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Er[e]=n[t];return e}c&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Or=Cr("animationend"),_r=Cr("animationiteration"),Tr=Cr("animationstart"),Nr=Cr("transitionend"),Pr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Lr(e,t){Pr.set(e,t),u(t,[e])}for(var jr=0;jr<Ir.length;jr++){var Ar=Ir[jr];Lr(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}Lr(Or,"onAnimationEnd"),Lr(_r,"onAnimationIteration"),Lr(Tr,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(Nr,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rr));function Mr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,u,s){if(Be.apply(this,arguments),De){if(!De)throw Error(i(198));var c=Me;De=!1,Me=null,Fe||(Fe=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;Mr(o,l,s),i=u}else for(a=0;a<r.length;a++){if(u=(l=r[a]).instance,s=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;Mr(o,l,s),i=u}}}if(Fe)throw e=ze,Fe=!1,ze=null,e}function zr(e,t){var n=t[yo];void 0===n&&(n=t[yo]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Ur("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Xt(t)){case 1:var o=$t;break;case 4:o=qt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=bo(l)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}l=l.parentNode}}r=r.return}Ie((function(){var r=i,o=xe(n),a=[];e:{var l=Pr.get(e);if(void 0!==l){var u=cn,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=_n;break;case"focusin":s="focus",u=yn;break;case"focusout":s="blur",u=yn;break;case"beforeblur":case"afterblur":u=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Nn;break;case Or:case _r:case Tr:u=vn;break;case Nr:u=Pn;break;case"scroll":u=dn;break;case"wheel":u=Ln;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Tn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&null!=(m=Le(h,d))&&c.push($r(h,m,p))),f)break;h=h.return}0<c.length&&(l=new u(l,s,null,n,o),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(s=n.relatedTarget||n.fromElement)||!bo(s)&&!s[mo])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?bo(s):null)&&(s!==(f=Ve(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=hn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?l:xo(u),p=null==s?l:xo(s),(l=new c(m,h+"leave",u,n,o)).target=f,l.relatedTarget=p,m=null,bo(o)===r&&((c=new c(d,h+"enter",s,n,o)).target=p,c.relatedTarget=f,m=c),f=m,u&&s)e:{for(d=s,h=0,p=c=u;p;p=Gr(p))h++;for(p=0,m=d;m;m=Gr(m))p++;for(;0<h-p;)c=Gr(c),h--;for(;0<p-h;)d=Gr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Gr(c),d=Gr(d)}c=null}else c=null;null!==u&&Qr(a,l,u,c,!1),null!==s&&null!==f&&Qr(a,f,s,c,!0)}if("select"===(u=(l=r?xo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var y=Xn;else if(Wn(l))if(Zn)y=ar;else{y=or;var v=rr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(y=ir);switch(y&&(y=y(e,r))?$n(a,y,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&ee(l,"number",l.value)),v=r?xo(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(yr=v,vr=r,gr=null);break;case"focusout":gr=vr=yr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var g;if(An)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(g=en()):(Jt="value"in(Zt=o)?Zt.value:Zt.textContent,Vn=!0)),0<(v=qr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:v}),(g||null!==(g=Bn(n)))&&(b.data=g))),(g=Dn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(zn=!0,Fn);case"textInput":return(e=t.data)===Fn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!An&&Un(e,t)?(e=en(),Yt=Jt=Zt=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g)}Fr(a,t)}))}function $r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Le(e,n))&&r.unshift($r(e,i,o)),null!=(i=Le(e,t))&&r.push($r(e,i,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=Le(n,i))&&a.unshift($r(n,u,l)):o||null!=(u=Le(n,i))&&a.push($r(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Zr(e){return("string"==typeof e?e:""+e).replace(Kr,"\n").replace(Xr,"")}function Jr(e,t,n){if(t=Zr(t),Zr(e)!==t&&n)throw Error(i(425))}function Yr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function uo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Vt(t)}function so(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,yo="__reactEvents$"+fo,vo="__reactListeners$"+fo,go="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function So(e){return e[ho]||null}var Eo=[],ko=-1;function Co(e){return{current:e}}function Oo(e){0>ko||(e.current=Eo[ko],Eo[ko]=null,ko--)}function _o(e,t){ko++,Eo[ko]=e.current,e.current=t}var To={},No=Co(To),Po=Co(!1),Io=To;function Lo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function jo(e){return null!=e.childContextTypes}function Ao(){Oo(Po),Oo(No)}function Ro(e,t,n){if(No.current!==To)throw Error(i(168));_o(No,t),_o(Po,n)}function Do(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,H(e)||"Unknown",o));return M({},n,r)}function Mo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Io=No.current,_o(No,e),_o(Po,Po.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Do(e,t,Io),r.__reactInternalMemoizedMergedChildContext=e,Oo(Po),Oo(No),_o(No,e)):Oo(Po),_o(Po,n)}var zo=null,Uo=!1,Bo=!1;function Vo(e){null===zo?zo=[e]:zo.push(e)}function Ho(){if(!Bo&&null!==zo){Bo=!0;var e=0,t=bt;try{var n=zo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}zo=null,Uo=!1}catch(t){throw null!==zo&&(zo=zo.slice(e+1)),Ge(Ye,Ho),t}finally{bt=t,Bo=!1}}return null}var Wo=[],$o=0,qo=null,Go=0,Qo=[],Ko=0,Xo=null,Zo=1,Jo="";function Yo(e,t){Wo[$o++]=Go,Wo[$o++]=qo,qo=e,Go=t}function ei(e,t,n){Qo[Ko++]=Zo,Qo[Ko++]=Jo,Qo[Ko++]=Xo,Xo=e;var r=Zo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Zo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Zo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Yo(e,1),ei(e,1,0))}function ni(e){for(;e===qo;)qo=Wo[--$o],Wo[$o]=null,Go=Wo[--$o],Wo[$o]=null;for(;e===Xo;)Xo=Qo[--Ko],Qo[Ko]=null,Jo=Qo[--Ko],Qo[Ko]=null,Zo=Qo[--Ko],Qo[Ko]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Ls(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ui(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Zo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ls(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function si(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!ui(e,t)){if(si(e))throw Error(i(418));t=so(n.nextSibling);var r=ri;t&&ui(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(si(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function di(e){if(e!==ri)return!1;if(!ii)return fi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(si(e))throw pi(),Error(i(418));for(;t;)li(e,t),t=so(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=so(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?so(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=so(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var yi=w.ReactCurrentBatchConfig;function vi(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var gi=Co(null),bi=null,wi=null,xi=null;function Si(){xi=wi=bi=null}function Ei(e){var t=gi.current;Oo(gi),e._currentValue=t}function ki(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ci(e,t){bi=e,xi=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(wl=!0),e.firstContext=null)}function Oi(e){var t=e._currentValue;if(xi!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===bi)throw Error(i(308));wi=e,bi.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var _i=null;function Ti(e){null===_i?_i=[e]:_i.push(e)}function Ni(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ti(t)):(n.next=o.next,o.next=n),t.interleaved=n,Pi(e,r)}function Pi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ii=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ai(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ri(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Nu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Pi(e,n)}return null===(o=r.interleaved)?(t.next=t,Ti(r)):(t.next=o.next,o.next=t),r.interleaved=t,Pi(e,n)}function Di(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Mi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fi(e,t,n,r){var o=e.updateQueue;Ii=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,s=u.next;u.next=null,null===a?i=s:a.next=s,a=u;var c=e.alternate;null!==c&&(l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=s:l.next=s,c.lastBaseUpdate=u)}if(null!==i){var f=o.baseState;for(a=0,c=s=u=null,l=i;;){var d=l.lane,p=l.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(d=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=m.payload)?h.call(p,f,d):h))break e;f=M({},f,d);break e;case 2:Ii=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(s=c=p,u=f):c=c.next=p,a|=d;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(d=l).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(u=f),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Mu|=a,e.lanes=a,e.memoizedState=f}}function zi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Ui=(new r.Component).refs;function Bi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:M({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Vi={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ts(),o=ns(e),i=Ai(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ri(e,i,o))&&(rs(t,e,o,r),Di(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ts(),o=ns(e),i=Ai(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ri(e,i,o))&&(rs(t,e,o,r),Di(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ts(),r=ns(e),o=Ai(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ri(e,o,r))&&(rs(t,e,r,n),Di(t,e,r))}};function Hi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&ur(n,r)&&ur(o,i))}function Wi(e,t,n){var r=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=Oi(i):(o=jo(t)?Io:No.current,i=(r=null!=(r=t.contextTypes))?Lo(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Vi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function $i(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vi.enqueueReplaceState(t,t.state,null)}function qi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Ui,Li(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Oi(i):(i=jo(t)?Io:No.current,o.context=Lo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Bi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Vi.enqueueReplaceState(o,o.state,null),Fi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Gi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===Ui&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Qi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ki(e){return(0,e._init)(e._payload)}function Xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=As(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Fs(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===E?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===L&&Ki(i)===t.type)?((r=o(t,n.props)).ref=Gi(e,t,n),r.return=e,r):((r=Rs(n.type,n.key,n.props,null,e.mode,r)).ref=Gi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zs(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Ds(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Fs(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Rs(t.type,t.key,t.props,null,e.mode,n)).ref=Gi(e,null,t),n.return=e,n;case S:return(t=zs(t,e.mode,n)).return=e,t;case L:return d(e,(0,t._init)(t._payload),n)}if(te(t)||R(t))return(t=Ds(t,e.mode,n,null)).return=e,t;Qi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?s(e,t,n,r):null;case S:return n.key===o?c(e,t,n,r):null;case L:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||R(n))return null!==o?null:f(e,t,n,r,null);Qi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case L:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||R(r))return f(t,e=e.get(n)||null,r,o,null);Qi(t,r)}return null}function m(o,i,l,u){for(var s=null,c=null,f=i,m=i=0,y=null;null!==f&&m<l.length;m++){f.index>m?(y=f,f=null):y=f.sibling;var v=p(o,f,l[m],u);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(o,f),i=a(v,i,m),null===c?s=v:c.sibling=v,c=v,f=y}if(m===l.length)return n(o,f),ii&&Yo(o,m),s;if(null===f){for(;m<l.length;m++)null!==(f=d(o,l[m],u))&&(i=a(f,i,m),null===c?s=f:c.sibling=f,c=f);return ii&&Yo(o,m),s}for(f=r(o,f);m<l.length;m++)null!==(y=h(f,o,m,l[m],u))&&(e&&null!==y.alternate&&f.delete(null===y.key?m:y.key),i=a(y,i,m),null===c?s=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(o,e)})),ii&&Yo(o,m),s}function y(o,l,u,s){var c=R(u);if("function"!=typeof c)throw Error(i(150));if(null==(u=c.call(u)))throw Error(i(151));for(var f=c=null,m=l,y=l=0,v=null,g=u.next();null!==m&&!g.done;y++,g=u.next()){m.index>y?(v=m,m=null):v=m.sibling;var b=p(o,m,g.value,s);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),l=a(b,l,y),null===f?c=b:f.sibling=b,f=b,m=v}if(g.done)return n(o,m),ii&&Yo(o,y),c;if(null===m){for(;!g.done;y++,g=u.next())null!==(g=d(o,g.value,s))&&(l=a(g,l,y),null===f?c=g:f.sibling=g,f=g);return ii&&Yo(o,y),c}for(m=r(o,m);!g.done;y++,g=u.next())null!==(g=h(m,o,y,g.value,s))&&(e&&null!==g.alternate&&m.delete(null===g.key?y:g.key),l=a(g,l,y),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(o,e)})),ii&&Yo(o,y),c}return function e(r,i,a,u){if("object"==typeof a&&null!==a&&a.type===E&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var s=a.key,c=i;null!==c;){if(c.key===s){if((s=a.type)===E){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===L&&Ki(s)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=Gi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===E?((i=Ds(a.props.children,r.mode,u,a.key)).return=r,r=i):((u=Rs(a.type,a.key,a.props,null,r.mode,u)).ref=Gi(r,i,a),u.return=r,r=u)}return l(r);case S:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=zs(a,r.mode,u)).return=r,r=i}return l(r);case L:return e(r,i,(c=a._init)(a._payload),u)}if(te(a))return m(r,i,a,u);if(R(a))return y(r,i,a,u);Qi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Fs(a,r.mode,u)).return=r,r=i),l(r)):n(r,i)}}var Zi=Xi(!0),Ji=Xi(!1),Yi={},ea=Co(Yi),ta=Co(Yi),na=Co(Yi);function ra(e){if(e===Yi)throw Error(i(174));return e}function oa(e,t){switch(_o(na,t),_o(ta,e),_o(ea,Yi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(ea),_o(ea,t)}function ia(){Oo(ea),Oo(ta),Oo(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=ue(t,e.type);t!==n&&(_o(ta,e),_o(ea,n))}function la(e){ta.current===e&&(Oo(ea),Oo(ta))}var ua=Co(0);function sa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function fa(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var da=w.ReactCurrentDispatcher,pa=w.ReactCurrentBatchConfig,ha=0,ma=null,ya=null,va=null,ga=!1,ba=!1,wa=0,xa=0;function Sa(){throw Error(i(321))}function Ea(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ka(e,t,n,r,o,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,da.current=null===e||null===e.memoizedState?ll:ul,e=n(r,o),ba){a=0;do{if(ba=!1,wa=0,25<=a)throw Error(i(301));a+=1,va=ya=null,t.updateQueue=null,da.current=sl,e=n(r,o)}while(ba)}if(da.current=al,t=null!==ya&&null!==ya.next,ha=0,va=ya=ma=null,ga=!1,t)throw Error(i(300));return e}function Ca(){var e=0!==wa;return wa=0,e}function Oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===va?ma.memoizedState=va=e:va=va.next=e,va}function _a(){if(null===ya){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ya.next;var t=null===va?ma.memoizedState:va.next;if(null!==t)va=t,ya=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ya=e).memoizedState,baseState:ya.baseState,baseQueue:ya.baseQueue,queue:ya.queue,next:null},null===va?ma.memoizedState=va=e:va=va.next=e}return va}function Ta(e,t){return"function"==typeof t?t(e):t}function Na(e){var t=_a(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ya,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var u=l=null,s=null,c=a;do{var f=c.lane;if((ha&f)===f)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(u=s=d,l=r):s=s.next=d,ma.lanes|=f,Mu|=f}c=c.next}while(null!==c&&c!==a);null===s?l=r:s.next=u,lr(r,t.memoizedState)||(wl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ma.lanes|=a,Mu|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Pa(e){var t=_a(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(wl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ia(){}function La(e,t){var n=ma,r=_a(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,wl=!0),r=r.queue,Wa(Ra.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==va&&1&va.memoizedState.tag){if(n.flags|=2048,za(9,Aa.bind(null,n,r,o,t),void 0,null),null===Pu)throw Error(i(349));0!=(30&ha)||ja(n,t,o)}return o}function ja(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Aa(e,t,n,r){t.value=n,t.getSnapshot=r,Da(t)&&Ma(e)}function Ra(e,t,n){return n((function(){Da(t)&&Ma(e)}))}function Da(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Ma(e){var t=Pi(e,1);null!==t&&rs(t,e,1,-1)}function Fa(e){var t=Oa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,ma,e),[t.memoizedState,e]}function za(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ua(){return _a().memoizedState}function Ba(e,t,n,r){var o=Oa();ma.flags|=e,o.memoizedState=za(1|t,n,void 0,void 0===r?null:r)}function Va(e,t,n,r){var o=_a();r=void 0===r?null:r;var i=void 0;if(null!==ya){var a=ya.memoizedState;if(i=a.destroy,null!==r&&Ea(r,a.deps))return void(o.memoizedState=za(t,n,i,r))}ma.flags|=e,o.memoizedState=za(1|t,n,i,r)}function Ha(e,t){return Ba(8390656,8,e,t)}function Wa(e,t){return Va(2048,8,e,t)}function $a(e,t){return Va(4,2,e,t)}function qa(e,t){return Va(4,4,e,t)}function Ga(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qa(e,t,n){return n=null!=n?n.concat([e]):null,Va(4,4,Ga.bind(null,t,e),n)}function Ka(){}function Xa(e,t){var n=_a();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ea(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Za(e,t){var n=_a();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ea(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ja(e,t,n){return 0==(21&ha)?(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n):(lr(n,t)||(n=mt(),ma.lanes|=n,Mu|=n,e.baseState=!0),t)}function Ya(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{bt=n,pa.transition=r}}function el(){return _a().memoizedState}function tl(e,t,n){var r=ns(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e)?ol(t,n):null!==(n=Ni(e,t,n,r))&&(rs(n,e,r,ts()),il(n,t,r))}function nl(e,t,n){var r=ns(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))ol(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var u=t.interleaved;return null===u?(o.next=o,Ti(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ni(e,t,o,r))&&(rs(n,e,r,o=ts()),il(n,t,r))}}function rl(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function ol(e,t){ba=ga=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function il(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var al={readContext:Oi,useCallback:Sa,useContext:Sa,useEffect:Sa,useImperativeHandle:Sa,useInsertionEffect:Sa,useLayoutEffect:Sa,useMemo:Sa,useReducer:Sa,useRef:Sa,useState:Sa,useDebugValue:Sa,useDeferredValue:Sa,useTransition:Sa,useMutableSource:Sa,useSyncExternalStore:Sa,useId:Sa,unstable_isNewReconciler:!1},ll={readContext:Oi,useCallback:function(e,t){return Oa().memoizedState=[e,void 0===t?null:t],e},useContext:Oi,useEffect:Ha,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ba(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=Oa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Oa().memoizedState=e},useState:Fa,useDebugValue:Ka,useDeferredValue:function(e){return Oa().memoizedState=e},useTransition:function(){var e=Fa(!1),t=e[0];return e=Ya.bind(null,e[1]),Oa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,o=Oa();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Pu)throw Error(i(349));0!=(30&ha)||ja(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ha(Ra.bind(null,r,a,e),[e]),r.flags|=2048,za(9,Aa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Oa(),t=Pu.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Zo&~(1<<32-at(Zo)-1)).toString(32)+n),0<(n=wa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ul={readContext:Oi,useCallback:Xa,useContext:Oi,useEffect:Wa,useImperativeHandle:Qa,useInsertionEffect:$a,useLayoutEffect:qa,useMemo:Za,useReducer:Na,useRef:Ua,useState:function(){return Na(Ta)},useDebugValue:Ka,useDeferredValue:function(e){return Ja(_a(),ya.memoizedState,e)},useTransition:function(){return[Na(Ta)[0],_a().memoizedState]},useMutableSource:Ia,useSyncExternalStore:La,useId:el,unstable_isNewReconciler:!1},sl={readContext:Oi,useCallback:Xa,useContext:Oi,useEffect:Wa,useImperativeHandle:Qa,useInsertionEffect:$a,useLayoutEffect:qa,useMemo:Za,useReducer:Pa,useRef:Ua,useState:function(){return Pa(Ta)},useDebugValue:Ka,useDeferredValue:function(e){var t=_a();return null===ya?t.memoizedState=e:Ja(t,ya.memoizedState,e)},useTransition:function(){return[Pa(Ta)[0],_a().memoizedState]},useMutableSource:Ia,useSyncExternalStore:La,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function fl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pl="function"==typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=Ai(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$u||($u=!0,qu=r),dl(0,t)},n}function ml(e,t,n){(n=Ai(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Gu?Gu=new Set([this]):Gu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function yl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Os.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gl(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ai(-1,1)).tag=2,Ri(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bl=w.ReactCurrentOwner,wl=!1;function xl(e,t,n,r){t.child=null===e?Ji(t,null,n,r):Zi(t,e.child,n,r)}function Sl(e,t,n,r,o){n=n.render;var i=t.ref;return Ci(t,o),r=ka(e,t,n,r,i,o),n=Ca(),null===e||wl?(ii&&n&&ti(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$l(e,t,o))}function El(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||js(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rs(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,kl(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return $l(e,t,o)}return t.flags|=1,(e=As(i,r)).ref=t.ref,e.return=t,t.child=e}function kl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ur(i,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,$l(e,t,o);0!=(131072&e.flags)&&(wl=!0)}}return _l(e,t,n,r,o)}function Cl(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_o(Au,ju),ju|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_o(Au,ju),ju|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,_o(Au,ju),ju|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,_o(Au,ju),ju|=r;return xl(e,t,o,n),t.child}function Ol(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _l(e,t,n,r,o){var i=jo(n)?Io:No.current;return i=Lo(t,i),Ci(t,o),n=ka(e,t,n,r,i,o),r=Ca(),null===e||wl?(ii&&r&&ti(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$l(e,t,o))}function Tl(e,t,n,r,o){if(jo(n)){var i=!0;Mo(t)}else i=!1;if(Ci(t,o),null===t.stateNode)Wl(e,t),Wi(t,n,r),qi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;s="object"==typeof s&&null!==s?Oi(s):Lo(t,s=jo(n)?Io:No.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==s)&&$i(t,a,r,s),Ii=!1;var d=t.memoizedState;a.state=d,Fi(t,r,a,o),u=t.memoizedState,l!==r||d!==u||Po.current||Ii?("function"==typeof c&&(Bi(t,n,c,r),u=t.memoizedState),(l=Ii||Hi(t,n,l,r,d,u,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ji(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:vi(t.type,l),a.props=s,f=t.pendingProps,d=a.context,u="object"==typeof(u=n.contextType)&&null!==u?Oi(u):Lo(t,u=jo(n)?Io:No.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==u)&&$i(t,a,r,u),Ii=!1,d=t.memoizedState,a.state=d,Fi(t,r,a,o);var h=t.memoizedState;l!==f||d!==h||Po.current||Ii?("function"==typeof p&&(Bi(t,n,p,r),h=t.memoizedState),(s=Ii||Hi(t,n,s,r,d,h,u)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Nl(e,t,n,r,i,o)}function Nl(e,t,n,r,o,i){Ol(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Fo(t,n,!1),$l(e,t,i);r=t.stateNode,bl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Zi(t,e.child,null,i),t.child=Zi(t,null,l,i)):xl(e,t,l,i),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function Pl(e){var t=e.stateNode;t.pendingContext?Ro(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ro(0,t.context,!1),oa(e,t.containerInfo)}function Il(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xl(e,t,n,r),t.child}var Ll,jl,Al,Rl,Dl={dehydrated:null,treeContext:null,retryLane:0};function Ml(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fl(e,t,n){var r,o=t.pendingProps,a=ua.current,l=!1,u=0!=(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),_o(ua,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=o.children,e=o.fallback,l?(o=t.mode,l=t.child,u={mode:"hidden",children:u},0==(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=u):l=Ms(u,o,0,null),e=Ds(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ml(n),t.memoizedState=Dl,e):zl(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,Ul(e,t,l,r=fl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Ms({mode:"visible",children:r.children},o,0,null),(a=Ds(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Zi(t,e.child,null,l),t.child.memoizedState=Ml(l),t.memoizedState=Dl,a);if(0==(1&t.mode))return Ul(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var u=r.dgst;return r=u,Ul(e,t,l,r=fl(a=Error(i(419)),r,void 0))}if(u=0!=(l&e.childLanes),wl||u){if(null!==(r=Pu)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|l))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Pi(e,o),rs(r,e,o,-1))}return ys(),Ul(e,t,l,r=fl(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ts.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=so(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Qo[Ko++]=Zo,Qo[Ko++]=Jo,Qo[Ko++]=Xo,Zo=e.id,Jo=e.overflow,Xo=t),(t=zl(t,r.children)).flags|=4096,t)}(e,t,u,o,r,a,n);if(l){l=o.fallback,u=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&u)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=As(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?l=As(r,l):(l=Ds(l,u,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,u=null===(u=e.child.memoizedState)?Ml(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~n,t.memoizedState=Dl,o}return e=(l=e.child).sibling,o=As(l,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function zl(e,t){return(t=Ms({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ul(e,t,n,r){return null!==r&&mi(r),Zi(t,e.child,null,n),(e=zl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ki(e.return,t,n)}function Vl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Hl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xl(e,t,r.children,n),0!=(2&(r=ua.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bl(e,n,t);else if(19===e.tag)Bl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_o(ua,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===sa(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===sa(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vl(t,!0,n,null,i);break;case"together":Vl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $l(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Mu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=As(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=As(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ql(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ql(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gl(t),null;case 1:case 17:return jo(t.type)&&Ao(),Gl(t),null;case 3:return r=t.stateNode,ia(),Oo(Po),Oo(No),fa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ai&&(ls(ai),ai=null))),jl(e,t),Gl(t),null;case 5:la(t);var o=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Al(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Gl(t),null}if(e=ra(ea.current),di(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=0!=(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(o=0;o<Rr.length;o++)zr(Rr[o],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":X(r,a),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},zr("invalid",r);break;case"textarea":oe(r,a),zr("invalid",r)}for(var u in ge(n,a),o=null,a)if(a.hasOwnProperty(u)){var s=a[u];"children"===u?"string"==typeof s?r.textContent!==s&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,s,e),o=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,s,e),o=["children",""+s]):l.hasOwnProperty(u)&&null!=s&&"onScroll"===u&&zr("scroll",r)}switch(n){case"input":q(r),Y(r,a,!0);break;case"textarea":q(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Yr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[po]=t,e[ho]=r,Ll(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),o=r;break;case"iframe":case"object":case"embed":zr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Rr.length;o++)zr(Rr[o],e);o=r;break;case"source":zr("error",e),o=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),o=r;break;case"details":zr("toggle",e),o=r;break;case"input":X(e,r),o=K(e,r),zr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=M({},r,{value:void 0}),zr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),zr("invalid",e)}for(a in ge(n,o),s=o)if(s.hasOwnProperty(a)){var c=s[a];"style"===a?ye(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=c&&"onScroll"===a&&zr("scroll",e):null!=c&&b(e,a,c,u))}switch(n){case"input":q(e),Y(e,r,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Yr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gl(t),null;case 6:if(e&&null!=t.stateNode)Rl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=ra(na.current),ra(ea.current),di(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Gl(t),null;case 13:if(Oo(ua),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=di(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gl(t),a=!1}else null!==ai&&(ls(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ua.current)?0===Ru&&(Ru=3):ys())),null!==t.updateQueue&&(t.flags|=4),Gl(t),null);case 4:return ia(),jl(e,t),null===e&&Vr(t.stateNode.containerInfo),Gl(t),null;case 10:return Ei(t.type._context),Gl(t),null;case 19:if(Oo(ua),null===(a=t.memoizedState))return Gl(t),null;if(r=0!=(128&t.flags),null===(u=a.rendering))if(r)ql(a,!1);else{if(0!==Ru||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=sa(e))){for(t.flags|=128,ql(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _o(ua,1&ua.current|2),t.child}e=e.sibling}null!==a.tail&&Ze()>Hu&&(t.flags|=128,r=!0,ql(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=sa(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ql(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!ii)return Gl(t),null}else 2*Ze()-a.renderingStartTime>Hu&&1073741824!==n&&(t.flags|=128,r=!0,ql(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ze(),t.sibling=null,n=ua.current,_o(ua,r?1&n|2:1&n),t):(Gl(t),null);case 22:case 23:return ds(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&ju)&&(Gl(t),6&t.subtreeFlags&&(t.flags|=8192)):Gl(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Kl(e,t){switch(ni(t),t.tag){case 1:return jo(t.type)&&Ao(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),Oo(Po),Oo(No),fa(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return la(t),null;case 13:if(Oo(ua),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(ua),null;case 4:return ia(),null;case 10:return Ei(t.type._context),null;case 22:case 23:return ds(),null;default:return null}}Ll=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},jl=function(){},Al=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ra(ea.current);var i,a=null;switch(n){case"input":o=K(e,o),r=K(e,r),a=[];break;case"select":o=M({},o,{value:void 0}),r=M({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Yr)}for(c in ge(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var u=o[c];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(a=a||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&zr("scroll",e),a||u===s||(a=[])):(a=a||[]).push(c,s))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Rl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xl=!1,Zl=!1,Jl="function"==typeof WeakSet?WeakSet:Set,Yl=null;function eu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cs(e,t,n)}else n.current=null}function tu(e,t,n){try{n()}catch(n){Cs(e,t,n)}}var nu=!1;function ru(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&tu(t,n,i)}o=o.next}while(o!==r)}}function ou(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function iu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function au(e){var t=e.alternate;null!==t&&(e.alternate=null,au(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[yo],delete t[vo],delete t[go]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function lu(e){return 5===e.tag||3===e.tag||4===e.tag}function uu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||lu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function su(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Yr));else if(4!==r&&null!==(e=e.child))for(su(e,t,n),e=e.sibling;null!==e;)su(e,t,n),e=e.sibling}function cu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cu(e,t,n),e=e.sibling;null!==e;)cu(e,t,n),e=e.sibling}var fu=null,du=!1;function pu(e,t,n){for(n=n.child;null!==n;)hu(e,t,n),n=n.sibling}function hu(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Zl||eu(n,t);case 6:var r=fu,o=du;fu=null,pu(e,t,n),du=o,null!==(fu=r)&&(du?(e=fu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):fu.removeChild(n.stateNode));break;case 18:null!==fu&&(du?(e=fu,n=n.stateNode,8===e.nodeType?uo(e.parentNode,n):1===e.nodeType&&uo(e,n),Vt(e)):uo(fu,n.stateNode));break;case 4:r=fu,o=du,fu=n.stateNode.containerInfo,du=!0,pu(e,t,n),fu=r,du=o;break;case 0:case 11:case 14:case 15:if(!Zl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&tu(n,t,a),o=o.next}while(o!==r)}pu(e,t,n);break;case 1:if(!Zl&&(eu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cs(n,t,e)}pu(e,t,n);break;case 21:pu(e,t,n);break;case 22:1&n.mode?(Zl=(r=Zl)||null!==n.memoizedState,pu(e,t,n),Zl=r):pu(e,t,n);break;default:pu(e,t,n)}}function mu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Jl),t.forEach((function(t){var r=Ns.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function yu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,u=l;e:for(;null!==u;){switch(u.tag){case 5:fu=u.stateNode,du=!1;break e;case 3:case 4:fu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===fu)throw Error(i(160));hu(a,l,o),fu=null,du=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Cs(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vu(t,e),t=t.sibling}function vu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yu(t,e),gu(e),4&r){try{ru(3,e,e.return),ou(3,e)}catch(t){Cs(e,e.return,t)}try{ru(5,e,e.return)}catch(t){Cs(e,e.return,t)}}break;case 1:yu(t,e),gu(e),512&r&&null!==n&&eu(n,n.return);break;case 5:if(yu(t,e),gu(e),512&r&&null!==n&&eu(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){Cs(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,u=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===u&&"radio"===a.type&&null!=a.name&&Z(o,a),be(u,l);var c=be(u,a);for(l=0;l<s.length;l+=2){var f=s[l],d=s[l+1];"style"===f?ye(o,d):"dangerouslySetInnerHTML"===f?fe(o,d):"children"===f?de(o,d):b(o,f,d,c)}switch(u){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){Cs(e,e.return,t)}}break;case 6:if(yu(t,e),gu(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Cs(e,e.return,t)}}break;case 3:if(yu(t,e),gu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){Cs(e,e.return,t)}break;case 4:default:yu(t,e),gu(e);break;case 13:yu(t,e),gu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Vu=Ze())),4&r&&mu(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Zl=(c=Zl)||f,yu(t,e),Zl=c):yu(t,e),gu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!=(1&e.mode))for(Yl=e,f=e.child;null!==f;){for(d=Yl=f;null!==Yl;){switch(h=(p=Yl).child,p.tag){case 0:case 11:case 14:case 15:ru(4,p,p.return);break;case 1:eu(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Cs(r,n,e)}}break;case 5:eu(p,p.return);break;case 22:if(null!==p.memoizedState){Su(d);continue}}null!==h?(h.return=p,Yl=h):Su(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=d.stateNode,l=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,u.style.display=me("display",l))}catch(t){Cs(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Cs(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:yu(t,e),gu(e),4&r&&mu(e);case 21:}}function gu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(lu(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),cu(e,uu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;su(e,uu(e),a);break;default:throw Error(i(161))}}catch(t){Cs(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bu(e,t,n){Yl=e,wu(e,t,n)}function wu(e,t,n){for(var r=0!=(1&e.mode);null!==Yl;){var o=Yl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Xl;if(!a){var l=o.alternate,u=null!==l&&null!==l.memoizedState||Zl;l=Xl;var s=Zl;if(Xl=a,(Zl=u)&&!s)for(Yl=o;null!==Yl;)u=(a=Yl).child,22===a.tag&&null!==a.memoizedState?Eu(o):null!==u?(u.return=a,Yl=u):Eu(o);for(;null!==i;)Yl=i,wu(i,t,n),i=i.sibling;Yl=o,Xl=l,Zl=s}xu(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Yl=i):xu(e)}}function xu(e){for(;null!==Yl;){var t=Yl;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Zl||ou(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Zl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:vi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&zi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}zi(t,l,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Vt(d)}}}break;default:throw Error(i(163))}Zl||512&t.flags&&iu(t)}catch(e){Cs(t,t.return,e)}}if(t===e){Yl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Yl=n;break}Yl=t.return}}function Su(e){for(;null!==Yl;){var t=Yl;if(t===e){Yl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Yl=n;break}Yl=t.return}}function Eu(e){for(;null!==Yl;){var t=Yl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ou(4,t)}catch(e){Cs(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cs(t,o,e)}}var i=t.return;try{iu(t)}catch(e){Cs(t,i,e)}break;case 5:var a=t.return;try{iu(t)}catch(e){Cs(t,a,e)}}}catch(e){Cs(t,t.return,e)}if(t===e){Yl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Yl=l;break}Yl=t.return}}var ku,Cu=Math.ceil,Ou=w.ReactCurrentDispatcher,_u=w.ReactCurrentOwner,Tu=w.ReactCurrentBatchConfig,Nu=0,Pu=null,Iu=null,Lu=0,ju=0,Au=Co(0),Ru=0,Du=null,Mu=0,Fu=0,zu=0,Uu=null,Bu=null,Vu=0,Hu=1/0,Wu=null,$u=!1,qu=null,Gu=null,Qu=!1,Ku=null,Xu=0,Zu=0,Ju=null,Yu=-1,es=0;function ts(){return 0!=(6&Nu)?Ze():-1!==Yu?Yu:Yu=Ze()}function ns(e){return 0==(1&e.mode)?1:0!=(2&Nu)&&0!==Lu?Lu&-Lu:null!==yi.transition?(0===es&&(es=mt()),es):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function rs(e,t,n,r){if(50<Zu)throw Zu=0,Ju=null,Error(i(185));vt(e,n,r),0!=(2&Nu)&&e===Pu||(e===Pu&&(0==(2&Nu)&&(Fu|=n),4===Ru&&us(e,Lu)),os(e,r),1===n&&0===Nu&&0==(1&t.mode)&&(Hu=Ze()+500,Uo&&Ho()))}function os(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,u=o[a];-1===u?0!=(l&n)&&0==(l&r)||(o[a]=pt(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=dt(e,e===Pu?Lu:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){Uo=!0,Vo(e)}(ss.bind(null,e)):Vo(ss.bind(null,e)),ao((function(){0==(6&Nu)&&Ho()})),n=null;else{switch(wt(r)){case 1:n=Ye;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ps(n,is.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function is(e,t){if(Yu=-1,es=0,0!=(6&Nu))throw Error(i(327));var n=e.callbackNode;if(Es()&&e.callbackNode!==n)return null;var r=dt(e,e===Pu?Lu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=vs(e,r);else{t=r;var o=Nu;Nu|=2;var a=ms();for(Pu===e&&Lu===t||(Wu=null,Hu=Ze()+500,ps(e,t));;)try{bs();break}catch(t){hs(e,t)}Si(),Ou.current=a,Nu=o,null!==Iu?t=0:(Pu=null,Lu=0,t=Ru)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=as(e,o)),1===t)throw n=Du,ps(e,0),us(e,r),os(e,Ze()),n;if(6===t)us(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=vs(e,r))&&0!==(a=ht(e))&&(r=a,t=as(e,a)),1===t))throw n=Du,ps(e,0),us(e,r),os(e,Ze()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Ss(e,Bu,Wu);break;case 3:if(us(e,r),(130023424&r)===r&&10<(t=Vu+500-Ze())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ts(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Ss.bind(null,e,Bu,Wu),t);break}Ss(e,Bu,Wu);break;case 4:if(us(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cu(r/1960))-r)){e.timeoutHandle=ro(Ss.bind(null,e,Bu,Wu),r);break}Ss(e,Bu,Wu);break;default:throw Error(i(329))}}}return os(e,Ze()),e.callbackNode===n?is.bind(null,e):null}function as(e,t){var n=Uu;return e.current.memoizedState.isDehydrated&&(ps(e,t).flags|=256),2!==(e=vs(e,t))&&(t=Bu,Bu=n,null!==t&&ls(t)),e}function ls(e){null===Bu?Bu=e:Bu.push.apply(Bu,e)}function us(e,t){for(t&=~zu,t&=~Fu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function ss(e){if(0!=(6&Nu))throw Error(i(327));Es();var t=dt(e,0);if(0==(1&t))return os(e,Ze()),null;var n=vs(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=as(e,r))}if(1===n)throw n=Du,ps(e,0),us(e,t),os(e,Ze()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ss(e,Bu,Wu),os(e,Ze()),null}function cs(e,t){var n=Nu;Nu|=1;try{return e(t)}finally{0===(Nu=n)&&(Hu=Ze()+500,Uo&&Ho())}}function fs(e){null!==Ku&&0===Ku.tag&&0==(6&Nu)&&Es();var t=Nu;Nu|=1;var n=Tu.transition,r=bt;try{if(Tu.transition=null,bt=1,e)return e()}finally{bt=r,Tu.transition=n,0==(6&(Nu=t))&&Ho()}}function ds(){ju=Au.current,Oo(Au)}function ps(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Iu)for(n=Iu.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ao();break;case 3:ia(),Oo(Po),Oo(No),fa();break;case 5:la(r);break;case 4:ia();break;case 13:case 19:Oo(ua);break;case 10:Ei(r.type._context);break;case 22:case 23:ds()}n=n.return}if(Pu=e,Iu=e=As(e.current,null),Lu=ju=t,Ru=0,Du=null,zu=Fu=Mu=0,Bu=Uu=null,null!==_i){for(t=0;t<_i.length;t++)if(null!==(r=(n=_i[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}_i=null}return e}function hs(e,t){for(;;){var n=Iu;try{if(Si(),da.current=al,ga){for(var r=ma.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ga=!1}if(ha=0,va=ya=ma=null,ba=!1,wa=0,_u.current=null,null===n||null===n.return){Ru=1,Du=t,Iu=null;break}e:{var a=e,l=n.return,u=n,s=t;if(t=Lu,u.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,f=u,d=f.tag;if(0==(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=vl(l);if(null!==h){h.flags&=-257,gl(h,l,u,0,t),1&h.mode&&yl(a,c,t),s=c;var m=(t=h).updateQueue;if(null===m){var y=new Set;y.add(s),t.updateQueue=y}else m.add(s);break e}if(0==(1&t)){yl(a,c,t),ys();break e}s=Error(i(426))}else if(ii&&1&u.mode){var v=vl(l);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),gl(v,l,u,0,t),mi(cl(s,u));break e}}a=s=cl(s,u),4!==Ru&&(Ru=2),null===Uu?Uu=[a]:Uu.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Mi(a,hl(0,s,t));break e;case 1:u=s;var g=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof g.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Gu||!Gu.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Mi(a,ml(a,u,t));break e}}a=a.return}while(null!==a)}xs(n)}catch(e){t=e,Iu===n&&null!==n&&(Iu=n=n.return);continue}break}}function ms(){var e=Ou.current;return Ou.current=al,null===e?al:e}function ys(){0!==Ru&&3!==Ru&&2!==Ru||(Ru=4),null===Pu||0==(268435455&Mu)&&0==(268435455&Fu)||us(Pu,Lu)}function vs(e,t){var n=Nu;Nu|=2;var r=ms();for(Pu===e&&Lu===t||(Wu=null,ps(e,t));;)try{gs();break}catch(t){hs(e,t)}if(Si(),Nu=n,Ou.current=r,null!==Iu)throw Error(i(261));return Pu=null,Lu=0,Ru}function gs(){for(;null!==Iu;)ws(Iu)}function bs(){for(;null!==Iu&&!Ke();)ws(Iu)}function ws(e){var t=ku(e.alternate,e,ju);e.memoizedProps=e.pendingProps,null===t?xs(e):Iu=t,_u.current=null}function xs(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ql(n,t,ju)))return void(Iu=n)}else{if(null!==(n=Kl(n,t)))return n.flags&=32767,void(Iu=n);if(null===e)return Ru=6,void(Iu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Iu=t);Iu=t=e}while(null!==t);0===Ru&&(Ru=5)}function Ss(e,t,n){var r=bt,o=Tu.transition;try{Tu.transition=null,bt=1,function(e,t,n,r){do{Es()}while(null!==Ku);if(0!=(6&Nu))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Pu&&(Iu=Pu=null,Lu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Qu||(Qu=!0,Ps(tt,(function(){return Es(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Tu.transition,Tu.transition=null;var l=bt;bt=1;var u=Nu;Nu|=4,_u.current=null,function(e,t){if(eo=Wt,pr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,u=-1,s=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==n||0!==o&&3!==d.nodeType||(u=l+o),d!==a||0!==r&&3!==d.nodeType||(s=l+r),3===d.nodeType&&(l+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++c===o&&(u=l),p===a&&++f===r&&(s=l),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}n=-1===u||-1===s?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Wt=!1,Yl=t;null!==Yl;)if(e=(t=Yl).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Yl=e;else for(;null!==Yl;){t=Yl;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var y=m.memoizedProps,v=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:vi(t.type,y),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){Cs(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Yl=e;break}Yl=t.return}m=nu,nu=!1}(e,n),vu(n,e),hr(to),Wt=!!eo,to=eo=null,e.current=n,bu(n,e,o),Xe(),Nu=u,bt=l,Tu.transition=a}else e.current=n;if(Qu&&(Qu=!1,Ku=e,Xu=o),0===(a=e.pendingLanes)&&(Gu=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),os(e,Ze()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if($u)throw $u=!1,e=qu,qu=null,e;0!=(1&Xu)&&0!==e.tag&&Es(),0!=(1&(a=e.pendingLanes))?e===Ju?Zu++:(Zu=0,Ju=e):Zu=0,Ho()}(e,t,n,r)}finally{Tu.transition=o,bt=r}return null}function Es(){if(null!==Ku){var e=wt(Xu),t=Tu.transition,n=bt;try{if(Tu.transition=null,bt=16>e?16:e,null===Ku)var r=!1;else{if(e=Ku,Ku=null,Xu=0,0!=(6&Nu))throw Error(i(331));var o=Nu;for(Nu|=4,Yl=e.current;null!==Yl;){var a=Yl,l=a.child;if(0!=(16&Yl.flags)){var u=a.deletions;if(null!==u){for(var s=0;s<u.length;s++){var c=u[s];for(Yl=c;null!==Yl;){var f=Yl;switch(f.tag){case 0:case 11:case 15:ru(8,f,a)}var d=f.child;if(null!==d)d.return=f,Yl=d;else for(;null!==Yl;){var p=(f=Yl).sibling,h=f.return;if(au(f),f===c){Yl=null;break}if(null!==p){p.return=h,Yl=p;break}Yl=h}}}var m=a.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(null!==y)}}Yl=a}}if(0!=(2064&a.subtreeFlags)&&null!==l)l.return=a,Yl=l;else e:for(;null!==Yl;){if(0!=(2048&(a=Yl).flags))switch(a.tag){case 0:case 11:case 15:ru(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Yl=g;break e}Yl=a.return}}var b=e.current;for(Yl=b;null!==Yl;){var w=(l=Yl).child;if(0!=(2064&l.subtreeFlags)&&null!==w)w.return=l,Yl=w;else e:for(l=b;null!==Yl;){if(0!=(2048&(u=Yl).flags))try{switch(u.tag){case 0:case 11:case 15:ou(9,u)}}catch(e){Cs(u,u.return,e)}if(u===l){Yl=null;break e}var x=u.sibling;if(null!==x){x.return=u.return,Yl=x;break e}Yl=u.return}}if(Nu=o,Ho(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Tu.transition=t}}return!1}function ks(e,t,n){e=Ri(e,t=hl(0,t=cl(n,t),1),1),t=ts(),null!==e&&(vt(e,1,t),os(e,t))}function Cs(e,t,n){if(3===e.tag)ks(e,e,n);else for(;null!==t;){if(3===t.tag){ks(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gu||!Gu.has(r))){t=Ri(t,e=ml(t,e=cl(n,e),1),1),e=ts(),null!==t&&(vt(t,1,e),os(t,e));break}}t=t.return}}function Os(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ts(),e.pingedLanes|=e.suspendedLanes&n,Pu===e&&(Lu&n)===n&&(4===Ru||3===Ru&&(130023424&Lu)===Lu&&500>Ze()-Vu?ps(e,0):zu|=n),os(e,t)}function _s(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=ts();null!==(e=Pi(e,t))&&(vt(e,t,n),os(e,n))}function Ts(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_s(e,n)}function Ns(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),_s(e,n)}function Ps(e,t){return Ge(e,t)}function Is(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ls(e,t,n,r){return new Is(e,t,n,r)}function js(e){return!(!(e=e.prototype)||!e.isReactComponent)}function As(e,t){var n=e.alternate;return null===n?((n=Ls(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rs(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)js(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case E:return Ds(n.children,o,a,t);case k:l=8,o|=8;break;case C:return(e=Ls(12,n,t,2|o)).elementType=C,e.lanes=a,e;case N:return(e=Ls(13,n,t,o)).elementType=N,e.lanes=a,e;case P:return(e=Ls(19,n,t,o)).elementType=P,e.lanes=a,e;case j:return Ms(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case _:l=9;break e;case T:l=11;break e;case I:l=14;break e;case L:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Ls(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Ds(e,t,n,r){return(e=Ls(7,e,r,t)).lanes=n,e}function Ms(e,t,n,r){return(e=Ls(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={isHidden:!1},e}function Fs(e,t,n){return(e=Ls(6,e,null,t)).lanes=n,e}function zs(e,t,n){return(t=Ls(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Us(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bs(e,t,n,r,o,i,a,l,u){return e=new Us(e,t,n,l,u),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ls(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function Vs(e){if(!e)return To;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(jo(n))return Do(e,n,t)}return t}function Hs(e,t,n,r,o,i,a,l,u){return(e=Bs(n,r,!0,e,0,i,0,l,u)).context=Vs(null),n=e.current,(i=Ai(r=ts(),o=ns(n))).callback=null!=t?t:null,Ri(n,i,o),e.current.lanes=o,vt(e,o,r),os(e,r),e}function Ws(e,t,n,r){var o=t.current,i=ts(),a=ns(o);return n=Vs(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ai(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ri(o,t,a))&&(rs(e,o,a,i),Di(e,o,a)),a}function $s(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gs(e,t){qs(e,t),(e=e.alternate)&&qs(e,t)}ku=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Po.current)wl=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return wl=!1,function(e,t,n){switch(t.tag){case 3:Pl(t),hi();break;case 5:aa(t);break;case 1:jo(t.type)&&Mo(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;_o(gi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_o(ua,1&ua.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Fl(e,t,n):(_o(ua,1&ua.current),null!==(e=$l(e,t,n))?e.sibling:null);_o(ua,1&ua.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Hl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),_o(ua,ua.current),r)break;return null;case 22:case 23:return t.lanes=0,Cl(e,t,n)}return $l(e,t,n)}(e,t,n);wl=0!=(131072&e.flags)}else wl=!1,ii&&0!=(1048576&t.flags)&&ei(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var o=Lo(t,No.current);Ci(t,n),o=ka(null,t,r,e,o,n);var a=Ca();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,jo(r)?(a=!0,Mo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Li(t),o.updater=Vi,t.stateNode=o,o._reactInternals=t,qi(t,r,e,n),t=Nl(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),xl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return js(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===I)return 14}return 2}(r),e=vi(r,e),o){case 0:t=_l(null,t,r,e,n);break e;case 1:t=Tl(null,t,r,e,n);break e;case 11:t=Sl(null,t,r,e,n);break e;case 14:t=El(null,t,r,vi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,_l(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 1:return r=t.type,o=t.pendingProps,Tl(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 3:e:{if(Pl(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,ji(e,t),Fi(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Il(e,t,r,n,o=cl(Error(i(423)),t));break e}if(r!==o){t=Il(e,t,r,n,o=cl(Error(i(424)),t));break e}for(oi=so(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ji(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=$l(e,t,n);break e}xl(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),Ol(e,t),xl(e,t,l,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Fl(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Zi(t,null,r,n):xl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Sl(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 7:return xl(e,t,t.pendingProps,n),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,_o(gi,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!Po.current){t=$l(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){l=a.child;for(var s=u.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=Ai(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),ki(a.return,n,t),u.lanes|=n;break}s=s.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ki(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}xl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ci(t,n),r=r(o=Oi(o)),t.flags|=1,xl(e,t,r,n),t.child;case 14:return o=vi(r=t.type,t.pendingProps),El(e,t,r,o=vi(r.type,o),n);case 15:return kl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vi(r,o),Wl(e,t),t.tag=1,jo(r)?(e=!0,Mo(t)):e=!1,Ci(t,n),Wi(t,r,o),qi(t,r,o,n),Nl(null,t,r,!0,e,n);case 19:return Hl(e,t,n);case 22:return Cl(e,t,n)}throw Error(i(156,t.tag))};var Qs="function"==typeof reportError?reportError:function(e){console.error(e)};function Ks(e){this._internalRoot=e}function Xs(e){this._internalRoot=e}function Zs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Js(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ys(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=$s(a);l.call(e)}}Ws(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=$s(a);i.call(e)}}var a=Hs(t,r,e,0,null,!1,0,"",Ys);return e._reactRootContainer=a,e[mo]=a.current,Vr(8===e.nodeType?e.parentNode:e),fs(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=$s(u);l.call(e)}}var u=Bs(e,0,!1,null,0,!1,0,"",Ys);return e._reactRootContainer=u,e[mo]=u.current,Vr(8===e.nodeType?e.parentNode:e),fs((function(){Ws(t,u,n,r)})),u}(n,t,e,o,r);return $s(a)}Xs.prototype.render=Ks.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Ws(e,t,null,null)},Xs.prototype.unmount=Ks.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fs((function(){Ws(null,e,null,null)})),t[mo]=null}},Xs.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&Mt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(gt(t,1|n),os(t,Ze()),0==(6&Nu)&&(Hu=Ze()+500,Ho()))}break;case 13:fs((function(){var t=Pi(e,1);if(null!==t){var n=ts();rs(t,e,1,n)}})),Gs(e,1)}},St=function(e){if(13===e.tag){var t=Pi(e,134217728);null!==t&&rs(t,e,134217728,ts()),Gs(e,134217728)}},Et=function(e){if(13===e.tag){var t=ns(e),n=Pi(e,t);null!==n&&rs(n,e,t,ts()),Gs(e,t)}},kt=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=So(r);if(!o)throw Error(i(90));G(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cs,Ne=fs;var tc={usingClientEntryPoint:!1,Events:[wo,xo,So,Oe,_e,cs]},nc={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zs(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Zs(e))throw Error(i(299));var n=!1,r="",o=Qs;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Bs(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Vr(8===e.nodeType?e.parentNode:e),new Ks(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e){return fs(e)},t.hydrate=function(e,t,n){if(!Js(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Zs(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=Qs;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Hs(t,null,e,1,null!=n?n:null,o,0,a,l),e[mo]=t.current,Vr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Xs(t)},t.render=function(e,t,n){if(!Js(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Js(e))throw Error(i(40));return!!e._reactRootContainer&&(fs((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cs,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Js(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},3935:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4448)},5726:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var o=2,i=3,a=4;function l(e,t,n,r,l,u,s){this.acceptsBooleans=t===o||t===i||t===a,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=s}var u={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){u[e]=new l(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t,n,o=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];u[i]=new l(i,1,!1,a,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){u[e]=new l(e,o,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){u[e]=new l(e,o,!1,e,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"].forEach((function(e){u[e]=new l(e,i,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){u[e]=new l(e,i,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){u[e]=new l(e,a,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){u[e]=new l(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){u[e]=new l(e,5,!1,e.toLowerCase(),null,!1,!1)}));var s=/[\-\:]([a-z])/g,c=function(e){return e[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"].forEach((function(e){var t=e.replace(s,c);u[t]=new l(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(s,c);u[t]=new l(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(s,c);u[t]=new l(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){u[e]=new l(e,1,!1,e.toLowerCase(),null,!1,!1)})),u.xlinkHref=new l("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){u[e]=new l(e,1,!1,e.toLowerCase(),null,!0,!0)}));var f=n(8229),d=f.CAMELCASE,p=f.SAME,h=f.possibleStandardNames,m=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[: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]*$")),y=Object.keys(h).reduce((function(e,t){var n=h[t];return n===p?e[t]=t:n===d?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=i,t.BOOLEANISH_STRING=o,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=a,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return u.hasOwnProperty(e)?u[e]:null},t.isCustomAttribute=m,t.possibleStandardNames=y},8229:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},8359:function(e,t){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference")},2973:function(e,t,n){"use strict";n(8359)},2408:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var w=b.prototype=new g;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,E={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!k.hasOwnProperty(o)&&(i[o]=t[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:E.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var _=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function N(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return a=a(u=e),e=""===i?"."+T(u,0):i,x(a)?(o="",null!=e&&(o=e.replace(_,"$&/")+"/"),N(a,t,o,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+e)),t.push(a)),1;if(u=0,i=""===i?".":i+":",x(e))for(var s=0;s<e.length;s++){var c=i+T(l=e[s],s);u+=N(l,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),s=0;!(l=e.next()).done;)u+=N(l=l.value,t,o,c=i+T(l,s++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function P(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},j={transition:null},A={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:j,ReactCurrentOwner:E};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=E.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)S.call(t,s)&&!k.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==u?u[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){u=Array(s);for(var c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=j.transition;j.transition={};try{e()}finally{j.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return L.current.useCallback(e,t)},t.useContext=function(e){return L.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return L.current.useDeferredValue(e)},t.useEffect=function(e,t){return L.current.useEffect(e,t)},t.useId=function(){return L.current.useId()},t.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return L.current.useMemo(e,t)},t.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},t.useRef=function(e){return L.current.useRef(e)},t.useState=function(e){return L.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return L.current.useTransition()},t.version="18.2.0"},7294:function(e,t,n){"use strict";e.exports=n(2408)},7418:function(e){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},53:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,u=e[l],s=l+1,c=e[s];if(0>i(u,n))s<o&&0>i(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[l]=n,r=l);else{if(!(s<o&&0>i(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var s=[],c=[],f=1,d=null,p=3,h=!1,m=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(s,t)}t=r(c)}}function x(e){if(y=!1,w(e),!m)if(null!==r(s))m=!0,j(S);else{var t=r(c);null!==t&&A(x,t.startTime-e)}}function S(e,n){m=!1,y&&(y=!1,g(O),O=-1),h=!0;var i=p;try{for(w(n),d=r(s);null!==d&&(!(d.expirationTime>n)||e&&!N());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?d.callback=l:d===r(s)&&o(s),w(n)}else o(s);d=r(s)}if(null!==d)var u=!0;else{var f=r(c);null!==f&&A(x,f.startTime-n),u=!1}return u}finally{d=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,k=!1,C=null,O=-1,_=5,T=-1;function N(){return!(t.unstable_now()-T<_)}function P(){if(null!==C){var e=t.unstable_now();T=e;var n=!0;try{n=C(!0,e)}finally{n?E():(k=!1,C=null)}}else k=!1}if("function"==typeof b)E=function(){b(P)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,L=I.port2;I.port1.onmessage=P,E=function(){L.postMessage(null)}}else E=function(){v(P,0)};function j(e){C=e,k||(k=!0,E())}function A(e,n){O=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,j(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(s)&&e===r(c)&&(y?(g(O),O=-1):y=!0,A(x,i-a))):(e.sortIndex=l,n(s,e),m||h||(m=!0,j(S))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},3840:function(e,t,n){"use strict";e.exports=n(53)},8e3:function(e,t,n){"use strict";var r=n(7581);e.exports=n(3626)(r),"_sockjs_onload"in n.g&&setTimeout(n.g._sockjs_onload,1)},2530:function(e,t,n){"use strict";var r=n(5717),o=n(685);function i(){o.call(this),this.initEvent("close",!1,!1),this.wasClean=!1,this.code=0,this.reason=""}r(i,o),e.exports=i},3212:function(e,t,n){"use strict";var r=n(5717),o=n(3184);function i(){o.call(this)}r(i,o),i.prototype.removeAllListeners=function(e){e?delete this._listeners[e]:this._listeners={}},i.prototype.once=function(e,t){var n=this,r=!1;this.on(e,(function o(){n.removeListener(e,o),r||(r=!0,t.apply(this,arguments))}))},i.prototype.emit=function(){var e=arguments[0],t=this._listeners[e];if(t){for(var n=arguments.length,r=new Array(n-1),o=1;o<n;o++)r[o-1]=arguments[o];for(var i=0;i<t.length;i++)t[i].apply(this,r)}},i.prototype.on=i.prototype.addListener=o.prototype.addEventListener,i.prototype.removeListener=o.prototype.removeEventListener,e.exports.v=i},685:function(e){"use strict";function t(e){this.type=e}t.prototype.initEvent=function(e,t,n){return this.type=e,this.bubbles=t,this.cancelable=n,this.timeStamp=+new Date,this},t.prototype.stopPropagation=function(){},t.prototype.preventDefault=function(){},t.CAPTURING_PHASE=1,t.AT_TARGET=2,t.BUBBLING_PHASE=3,e.exports=t},3184:function(e){"use strict";function t(){this._listeners={}}t.prototype.addEventListener=function(e,t){e in this._listeners||(this._listeners[e]=[]);var n=this._listeners[e];-1===n.indexOf(t)&&(n=n.concat([t])),this._listeners[e]=n},t.prototype.removeEventListener=function(e,t){var n=this._listeners[e];if(n){var r=n.indexOf(t);-1===r||(n.length>1?this._listeners[e]=n.slice(0,r).concat(n.slice(r+1)):delete this._listeners[e])}},t.prototype.dispatchEvent=function(){var e=arguments[0],t=e.type,n=1===arguments.length?[e]:Array.apply(null,arguments);if(this["on"+t]&&this["on"+t].apply(this,n),t in this._listeners)for(var r=this._listeners[t],o=0;o<r.length;o++)r[o].apply(this,n)},e.exports=t},3326:function(e,t,n){"use strict";var r=n(5717),o=n(685);function i(e){o.call(this),this.initEvent("message",!1,!1),this.data=e}r(i,o),e.exports=i},691:function(e,t,n){"use strict";var r=n(3683);function o(e){this._transport=e,e.on("message",this._transportMessage.bind(this)),e.on("close",this._transportClose.bind(this))}o.prototype._transportClose=function(e,t){r.postMessage("c",JSON.stringify([e,t]))},o.prototype._transportMessage=function(e){r.postMessage("t",e)},o.prototype._send=function(e){this._transport.send(e)},o.prototype._close=function(){this._transport.close(),this._transport.removeAllListeners()},e.exports=o},551:function(e,t,n){"use strict";var r=n(273),o=n(7705),i=n(691),a=n(6311),l=n(3683),u=n(7486);e.exports=function(e,t){var n,s={};t.forEach((function(e){e.facadeTransport&&(s[e.facadeTransport.transportName]=e.facadeTransport)})),s[a.transportName]=a,e.bootstrap_iframe=function(){var t;l.currentWindowId=u.hash.slice(1),o.attachEvent("message",(function(o){if(o.source===parent&&(void 0===n&&(n=o.origin),o.origin===n)){var a;try{a=JSON.parse(o.data)}catch(e){return void o.data}if(a.windowId===l.currentWindowId)switch(a.type){case"s":var c;try{c=JSON.parse(a.data)}catch(e){a.data;break}var f=c[0],d=c[1],p=c[2],h=c[3];if(f!==e.version)throw new Error('Incompatible SockJS! Main site uses: "'+f+'", the iframe: "'+e.version+'".');if(!r.isOriginEqual(p,u.href)||!r.isOriginEqual(h,u.href))throw new Error("Can't connect to different domain from within an iframe. ("+u.href+", "+p+", "+h+")");t=new i(new s[d](p,h));break;case"m":t._send(a.data);break;case"c":t&&t._close(),t=null}}})),l.postMessage("s")}}},2550:function(e,t,n){"use strict";var r=n(3212).v,o=n(5717),i=n(2217);function a(e,t){r.call(this);var n=this,o=+new Date;this.xo=new t("GET",e),this.xo.once("finish",(function(e,t){var r,a;if(200===e){if(a=+new Date-o,t)try{r=JSON.parse(t)}catch(e){}i.isObject(r)||(r={})}n.emit("finish",r,a),n.removeAllListeners()}))}o(a,r),a.prototype.close=function(){this.removeAllListeners(),this.xo.close()},e.exports=a},6311:function(e,t,n){"use strict";var r=n(5717),o=n(3212).v,i=n(3515),a=n(2550);function l(e){var t=this;o.call(this),this.ir=new a(e,i),this.ir.once("finish",(function(e,n){t.ir=null,t.emit("message",JSON.stringify([e,n]))}))}r(l,o),l.transportName="iframe-info-receiver",l.prototype.close=function(){this.ir&&(this.ir.close(),this.ir=null),this.removeAllListeners()},e.exports=l},3616:function(e,t,n){"use strict";var r=n(3212).v,o=n(5717),i=n(7705),a=n(5088),l=n(6311);function u(e,t){var o=this;r.call(this);var u=function(){var n=o.ifr=new a(l.transportName,t,e);n.once("message",(function(e){if(e){var t;try{t=JSON.parse(e)}catch(e){return o.emit("finish"),void o.close()}var n=t[0],r=t[1];o.emit("finish",n,r)}o.close()})),n.once("close",(function(){o.emit("finish"),o.close()}))};n.g.document.body?u():i.attachEvent("load",u)}o(u,r),u.enabled=function(){return a.enabled()},u.prototype.close=function(){this.ifr&&this.ifr.close(),this.removeAllListeners(),this.ifr=null},e.exports=u},5172:function(e,t,n){"use strict";var r=n(3212).v,o=n(5717),i=n(273),a=n(6073),l=n(9033),u=n(3515),s=n(7103),c=n(3616),f=n(2550),d=function(){};function p(e,t){d(e);var n=this;r.call(this),setTimeout((function(){n.doXhr(e,t)}),0)}o(p,r),p._getReceiver=function(e,t,n){return n.sameOrigin?new f(t,u):l.enabled?new f(t,l):a.enabled&&n.sameScheme?new f(t,a):c.enabled()?new c(e,t):new f(t,s)},p.prototype.doXhr=function(e,t){var n=this,r=i.addPath(e,"/info");d("doXhr",r),this.xo=p._getReceiver(e,r,t),this.timeoutRef=setTimeout((function(){d("timeout"),n._cleanup(!1),n.emit("finish")}),p.timeout),this.xo.once("finish",(function(e,t){d("finish",e,t),n._cleanup(!0),n.emit("finish",e,t)}))},p.prototype._cleanup=function(e){d("_cleanup"),clearTimeout(this.timeoutRef),this.timeoutRef=null,!e&&this.xo&&this.xo.close(),this.xo=null},p.prototype.close=function(){d("close"),this.removeAllListeners(),this._cleanup(!1)},p.timeout=8e3,e.exports=p},7486:function(e,t,n){"use strict";e.exports=n.g.location||{origin:"http://localhost:80",protocol:"http:",host:"localhost",port:80,href:"http://localhost/",hash:""}},3626:function(e,t,n){"use strict";n(1247);var r,o=n(4564),i=n(5717),a=n(8915),l=n(8028),u=n(273),s=n(7705),c=n(5581),f=n(2217),d=n(8510),p=n(4886),h=n(685),m=n(3184),y=n(7486),v=n(2530),g=n(3326),b=n(5172),w=function(){};function x(e,t,n){if(!(this instanceof x))return new x(e,t,n);if(arguments.length<1)throw new TypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present");m.call(this),this.readyState=x.CONNECTING,this.extensions="",this.protocol="",(n=n||{}).protocols_whitelist&&p.warn("'protocols_whitelist' is DEPRECATED. Use 'transports' instead."),this._transportsWhitelist=n.transports,this._transportOptions=n.transportOptions||{},this._timeout=n.timeout||0;var r=n.sessionId||8;if("function"==typeof r)this._generateSessionId=r;else{if("number"!=typeof r)throw new TypeError("If sessionId is used in the options, it needs to be a number or a function.");this._generateSessionId=function(){return a.string(r)}}this._server=n.server||a.numberString(1e3);var i=new o(e);if(!i.host||!i.protocol)throw new SyntaxError("The URL '"+e+"' is invalid");if(i.hash)throw new SyntaxError("The URL must not contain a fragment");if("http:"!==i.protocol&&"https:"!==i.protocol)throw new SyntaxError("The URL's scheme must be either 'http:' or 'https:'. '"+i.protocol+"' is not allowed.");var l="https:"===i.protocol;if("https:"===y.protocol&&!l&&!u.isLoopbackAddr(i.hostname))throw new Error("SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS");t?Array.isArray(t)||(t=[t]):t=[];var s=t.sort();s.forEach((function(e,t){if(!e)throw new SyntaxError("The protocols entry '"+e+"' is invalid.");if(t<s.length-1&&e===s[t+1])throw new SyntaxError("The protocols entry '"+e+"' is duplicated.")}));var c=u.getOrigin(y.href);this._origin=c?c.toLowerCase():null,i.set("pathname",i.pathname.replace(/\/+$/,"")),this.url=i.href,w("using url",this.url),this._urlInfo={nullOrigin:!d.hasDomain(),sameOrigin:u.isOriginEqual(this.url,y.href),sameScheme:u.isSchemeEqual(this.url,y.href)},this._ir=new b(this.url,this._urlInfo),this._ir.once("finish",this._receiveInfo.bind(this))}function S(e){return 1e3===e||e>=3e3&&e<=4999}i(x,m),x.prototype.close=function(e,t){if(e&&!S(e))throw new Error("InvalidAccessError: Invalid code");if(t&&t.length>123)throw new SyntaxError("reason argument has an invalid length");this.readyState!==x.CLOSING&&this.readyState!==x.CLOSED&&this._close(e||1e3,t||"Normal closure",!0)},x.prototype.send=function(e){if("string"!=typeof e&&(e=""+e),this.readyState===x.CONNECTING)throw new Error("InvalidStateError: The connection has not been established yet");this.readyState===x.OPEN&&this._transport.send(l.quote(e))},x.version=n(2828),x.CONNECTING=0,x.OPEN=1,x.CLOSING=2,x.CLOSED=3,x.prototype._receiveInfo=function(e,t){if(w("_receiveInfo",t),this._ir=null,e){this._rto=this.countRTO(t),this._transUrl=e.base_url?e.base_url:this.url,e=f.extend(e,this._urlInfo),w("info",e);var n=r.filterToEnabled(this._transportsWhitelist,e);this._transports=n.main,w(this._transports.length+" enabled transports"),this._connect()}else this._close(1002,"Cannot connect to server")},x.prototype._connect=function(){for(var e=this._transports.shift();e;e=this._transports.shift()){if(w("attempt",e.transportName),e.needBody&&(!n.g.document.body||void 0!==n.g.document.readyState&&"complete"!==n.g.document.readyState&&"interactive"!==n.g.document.readyState))return w("waiting for body"),this._transports.unshift(e),void s.attachEvent("load",this._connect.bind(this));var t=Math.max(this._timeout,this._rto*e.roundTrips||5e3);this._transportTimeoutId=setTimeout(this._transportTimeout.bind(this),t),w("using timeout",t);var r=u.addPath(this._transUrl,"/"+this._server+"/"+this._generateSessionId()),o=this._transportOptions[e.transportName];w("transport url",r);var i=new e(r,this._transUrl,o);return i.on("message",this._transportMessage.bind(this)),i.once("close",this._transportClose.bind(this)),i.transportName=e.transportName,void(this._transport=i)}this._close(2e3,"All transports failed",!1)},x.prototype._transportTimeout=function(){w("_transportTimeout"),this.readyState===x.CONNECTING&&(this._transport&&this._transport.close(),this._transportClose(2007,"Transport timed out"))},x.prototype._transportMessage=function(e){w("_transportMessage",e);var t,n=this,r=e.slice(0,1),o=e.slice(1);switch(r){case"o":return void this._open();case"h":return this.dispatchEvent(new h("heartbeat")),void w("heartbeat",this.transport)}if(o)try{t=JSON.parse(o)}catch(e){w("bad json",o)}if(void 0!==t)switch(r){case"a":Array.isArray(t)&&t.forEach((function(e){w("message",n.transport,e),n.dispatchEvent(new g(e))}));break;case"m":w("message",this.transport,t),this.dispatchEvent(new g(t));break;case"c":Array.isArray(t)&&2===t.length&&this._close(t[0],t[1],!0)}else w("empty payload",o)},x.prototype._transportClose=function(e,t){w("_transportClose",this.transport,e,t),this._transport&&(this._transport.removeAllListeners(),this._transport=null,this.transport=null),S(e)||2e3===e||this.readyState!==x.CONNECTING?this._close(e,t):this._connect()},x.prototype._open=function(){w("_open",this._transport&&this._transport.transportName,this.readyState),this.readyState===x.CONNECTING?(this._transportTimeoutId&&(clearTimeout(this._transportTimeoutId),this._transportTimeoutId=null),this.readyState=x.OPEN,this.transport=this._transport.transportName,this.dispatchEvent(new h("open")),w("connected",this.transport)):this._close(1006,"Server lost session")},x.prototype._close=function(e,t,n){w("_close",this.transport,e,t,n,this.readyState);var r=!1;if(this._ir&&(r=!0,this._ir.close(),this._ir=null),this._transport&&(this._transport.close(),this._transport=null,this.transport=null),this.readyState===x.CLOSED)throw new Error("InvalidStateError: SockJS has already been closed");this.readyState=x.CLOSING,setTimeout(function(){this.readyState=x.CLOSED,r&&this.dispatchEvent(new h("error"));var o=new v("close");o.wasClean=n||!1,o.code=e||1e3,o.reason=t,this.dispatchEvent(o),this.onmessage=this.onclose=this.onerror=null,w("disconnected")}.bind(this),0)},x.prototype.countRTO=function(e){return e>100?4*e:300+e},e.exports=function(e){return r=c(e),n(551)(x,e),x}},1247:function(){"use strict";var e,t=Array.prototype,n=Object.prototype,r=Function.prototype,o=String.prototype,i=t.slice,a=n.toString,l=function(e){return"[object Function]"===n.toString.call(e)},u=function(e){return"[object String]"===a.call(e)},s=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}();e=s?function(e,t,n,r){!r&&t in e||Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(e,t,n,r){!r&&t in e||(e[t]=n)};var c=function(t,r,o){for(var i in r)n.hasOwnProperty.call(r,i)&&e(t,i,r[i],o)},f=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)};function d(){}c(r,{bind:function(e){var t=this;if(!l(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n=i.call(arguments,1),r=Math.max(0,t.length-n.length),o=[],a=0;a<r;a++)o.push("$"+a);var u=Function("binder","return function ("+o.join(",")+"){ return binder.apply(this, arguments); }")((function(){if(this instanceof u){var r=t.apply(this,n.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,n.concat(i.call(arguments)))}));return t.prototype&&(d.prototype=t.prototype,u.prototype=new d,d.prototype=null),u}}),c(Array,{isArray:function(e){return"[object Array]"===a.call(e)}});var p,h,m,y=Object("a"),v="a"!==y[0]||!(0 in y);c(t,{forEach:function(e){var t=f(this),n=v&&u(this)?this.split(""):t,r=arguments[1],o=-1,i=n.length>>>0;if(!l(e))throw new TypeError;for(;++o<i;)o in n&&e.call(r,n[o],o,t)}},(p=t.forEach,h=!0,m=!0,p&&(p.call("foo",(function(e,t,n){"object"!=typeof n&&(h=!1)})),p.call([1],(function(){m="string"==typeof this}),"x")),!(p&&h&&m)));var g=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);c(t,{indexOf:function(e){var t=v&&u(this)?this.split(""):f(this),n=t.length>>>0;if(!n)return-1;var r,o=0;for(arguments.length>1&&((r=+arguments[1])!=r?r=0:0!==r&&r!==1/0&&r!==-1/0&&(r=(r>0||-1)*Math.floor(Math.abs(r))),o=r),o=o>=0?o:Math.max(0,n+o);o<n;o++)if(o in t&&t[o]===e)return o;return-1}},g);var b,w=o.split;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?(b=void 0===/()??/.exec("")[1],o.split=function(e,n){var r=this;if(void 0===e&&0===n)return[];if("[object RegExp]"!==a.call(e))return w.call(this,e,n);var o,i,l,u,s=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":""),f=0;for(e=new RegExp(e.source,c+"g"),r+="",b||(o=new RegExp("^"+e.source+"$(?!\\s)",c)),n=void 0===n?-1>>>0:n>>>0;(i=e.exec(r))&&!((l=i.index+i[0].length)>f&&(s.push(r.slice(f,i.index)),!b&&i.length>1&&i[0].replace(o,(function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(i[e]=void 0)})),i.length>1&&i.index<r.length&&t.push.apply(s,i.slice(1)),u=i[0].length,f=l,s.length>=n));)e.lastIndex===i.index&&e.lastIndex++;return f===r.length?!u&&e.test("")||s.push(""):s.push(r.slice(f)),s.length>n?s.slice(0,n):s}):"0".split(void 0,0).length&&(o.split=function(e,t){return void 0===e&&0===t?[]:w.call(this,e,t)});var x=o.substr;c(o,{substr:function(e,t){return x.call(this,e<0&&(e=this.length+e)<0?0:e,t)}},"".substr&&"b"!=="0b".substr(-1))},7581:function(e,t,n){"use strict";e.exports=[n(2412),n(9842),n(4620),n(3004),n(882)(n(3004)),n(5616),n(882)(n(5616)),n(2387),n(9998),n(882)(n(2387)),n(5375)]},2940:function(e,t,n){"use strict";var r=n(3212).v,o=n(5717),i=n(7705),a=n(273),l=n.g.XMLHttpRequest,u=function(){};function s(e,t,n,o){u(e,t);var i=this;r.call(this),setTimeout((function(){i._start(e,t,n,o)}),0)}o(s,r),s.prototype._start=function(e,t,n,r){var o=this;try{this.xhr=new l}catch(e){}if(!this.xhr)return u("no xhr"),this.emit("finish",0,"no xhr support"),void this._cleanup();t=a.addQuery(t,"t="+ +new Date),this.unloadRef=i.unloadAdd((function(){u("unload cleanup"),o._cleanup(!0)}));try{this.xhr.open(e,t,!0),this.timeout&&"timeout"in this.xhr&&(this.xhr.timeout=this.timeout,this.xhr.ontimeout=function(){u("xhr timeout"),o.emit("finish",0,""),o._cleanup(!1)})}catch(e){return u("exception",e),this.emit("finish",0,""),void this._cleanup(!1)}if(r&&r.noCredentials||!s.supportsCORS||(u("withCredentials"),this.xhr.withCredentials=!0),r&&r.headers)for(var c in r.headers)this.xhr.setRequestHeader(c,r.headers[c]);this.xhr.onreadystatechange=function(){if(o.xhr){var e,t,n=o.xhr;switch(u("readyState",n.readyState),n.readyState){case 3:try{t=n.status,e=n.responseText}catch(e){}u("status",t),1223===t&&(t=204),200===t&&e&&e.length>0&&(u("chunk"),o.emit("chunk",t,e));break;case 4:t=n.status,u("status",t),1223===t&&(t=204),12005!==t&&12029!==t||(t=0),u("finish",t,n.responseText),o.emit("finish",t,n.responseText),o._cleanup(!1)}}};try{o.xhr.send(n)}catch(e){o.emit("finish",0,""),o._cleanup(!1)}},s.prototype._cleanup=function(e){if(u("cleanup"),this.xhr){if(this.removeAllListeners(),i.unloadDel(this.unloadRef),this.xhr.onreadystatechange=function(){},this.xhr.ontimeout&&(this.xhr.ontimeout=null),e)try{this.xhr.abort()}catch(e){}this.unloadRef=this.xhr=null}},s.prototype.close=function(){u("close"),this._cleanup(!0)},s.enabled=!!l;var c=["Active"].concat("Object").join("X");!s.enabled&&c in n.g&&(u("overriding xmlhttprequest"),l=function(){try{return new n.g[c]("Microsoft.XMLHTTP")}catch(e){return null}},s.enabled=!!new l);var f=!1;try{f="withCredentials"in new l}catch(e){}s.supportsCORS=f,e.exports=s},3759:function(e,t,n){e.exports=n.g.EventSource},9334:function(e,t,n){"use strict";var r=n.g.WebSocket||n.g.MozWebSocket;e.exports=r?function(e){return new r(e)}:void 0},3004:function(e,t,n){"use strict";var r=n(5717),o=n(9395),i=n(6709),a=n(9033),l=n(3759);function u(e){if(!u.enabled())throw new Error("Transport created when disabled");o.call(this,e,"/eventsource",i,a)}r(u,o),u.enabled=function(){return!!l},u.transportName="eventsource",u.roundTrips=2,e.exports=u},5616:function(e,t,n){"use strict";var r=n(5717),o=n(3608),i=n(3515),a=n(9395);function l(e){if(!o.enabled)throw new Error("Transport created when disabled");a.call(this,e,"/htmlfile",o,i)}r(l,a),l.enabled=function(e){return o.enabled&&e.sameOrigin},l.transportName="htmlfile",l.roundTrips=2,e.exports=l},5088:function(e,t,n){"use strict";var r=n(5717),o=n(3212).v,i=n(2828),a=n(273),l=n(3683),u=n(7705),s=n(8915),c=function(){};function f(e,t,n){if(!f.enabled())throw new Error("Transport created when disabled");o.call(this);var r=this;this.origin=a.getOrigin(n),this.baseUrl=n,this.transUrl=t,this.transport=e,this.windowId=s.string(8);var i=a.addPath(n,"/iframe.html")+"#"+this.windowId;c(e,t,i),this.iframeObj=l.createIframe(i,(function(e){c("err callback"),r.emit("close",1006,"Unable to load an iframe ("+e+")"),r.close()})),this.onmessageCallback=this._message.bind(this),u.attachEvent("message",this.onmessageCallback)}r(f,o),f.prototype.close=function(){if(c("close"),this.removeAllListeners(),this.iframeObj){u.detachEvent("message",this.onmessageCallback);try{this.postMessage("c")}catch(e){}this.iframeObj.cleanup(),this.iframeObj=null,this.onmessageCallback=this.iframeObj=null}},f.prototype._message=function(e){if(c("message",e.data),a.isOriginEqual(e.origin,this.origin)){var t;try{t=JSON.parse(e.data)}catch(t){return void c("bad json",e.data)}if(t.windowId===this.windowId)switch(t.type){case"s":this.iframeObj.loaded(),this.postMessage("s",JSON.stringify([i,this.transport,this.transUrl,this.baseUrl]));break;case"t":this.emit("message",t.data);break;case"c":var n;try{n=JSON.parse(t.data)}catch(e){return void c("bad json",t.data)}this.emit("close",n[0],n[1]),this.close()}else c("mismatched window id",t.windowId,this.windowId)}else c("not same origin",e.origin,this.origin)},f.prototype.postMessage=function(e,t){c("postMessage",e,t),this.iframeObj.post(JSON.stringify({windowId:this.windowId,type:e,data:t||""}),this.origin)},f.prototype.send=function(e){c("send",e),this.postMessage("m",e)},f.enabled=function(){return l.iframeEnabled},f.transportName="iframe",f.roundTrips=2,e.exports=f},5375:function(e,t,n){"use strict";var r=n(5717),o=n(8347),i=n(514),a=n(771);function l(e){if(!l.enabled())throw new Error("Transport created when disabled");o.call(this,e,"/jsonp",a,i)}r(l,o),l.enabled=function(){return!!n.g.document},l.transportName="jsonp-polling",l.roundTrips=1,l.needBody=!0,e.exports=l},9395:function(e,t,n){"use strict";var r=n(5717),o=n(273),i=n(8347);function a(e,t,n,r){i.call(this,e,t,function(e){return function(t,n,r){var i={};"string"==typeof n&&(i.headers={"Content-type":"text/plain"});var a=o.addPath(t,"/xhr_send"),l=new e("POST",a,n,i);return l.once("finish",(function(e){if(l=null,200!==e&&204!==e)return r(new Error("http status "+e));r()})),function(){l.close(),l=null;var e=new Error("Aborted");e.code=1e3,r(e)}}}(r),n,r)}r(a,i),e.exports=a},1851:function(e,t,n){"use strict";var r=n(5717),o=n(3212).v,i=function(){};function a(e,t){i(e),o.call(this),this.sendBuffer=[],this.sender=t,this.url=e}r(a,o),a.prototype.send=function(e){i("send",e),this.sendBuffer.push(e),this.sendStop||this.sendSchedule()},a.prototype.sendScheduleWait=function(){i("sendScheduleWait");var e,t=this;this.sendStop=function(){i("sendStop"),t.sendStop=null,clearTimeout(e)},e=setTimeout((function(){i("timeout"),t.sendStop=null,t.sendSchedule()}),25)},a.prototype.sendSchedule=function(){i("sendSchedule",this.sendBuffer.length);var e=this;if(this.sendBuffer.length>0){var t="["+this.sendBuffer.join(",")+"]";this.sendStop=this.sender(this.url,t,(function(t){e.sendStop=null,t?(i("error",t),e.emit("close",t.code||1006,"Sending error: "+t),e.close()):e.sendScheduleWait()})),this.sendBuffer=[]}},a.prototype._cleanup=function(){i("_cleanup"),this.removeAllListeners()},a.prototype.close=function(){i("close"),this._cleanup(),this.sendStop&&(this.sendStop(),this.sendStop=null)},e.exports=a},882:function(e,t,n){"use strict";var r=n(5717),o=n(5088),i=n(2217);e.exports=function(e){function t(t,n){o.call(this,e.transportName,t,n)}return r(t,o),t.enabled=function(t,r){if(!n.g.document)return!1;var a=i.extend({},r);return a.sameOrigin=!0,e.enabled(a)&&o.enabled()},t.transportName="iframe-"+e.transportName,t.needBody=!0,t.roundTrips=o.roundTrips+e.roundTrips-1,t.facadeTransport=e,t}},1265:function(e,t,n){"use strict";var r=n(5717),o=n(3212).v,i=function(){};function a(e,t,n){i(t),o.call(this),this.Receiver=e,this.receiveUrl=t,this.AjaxObject=n,this._scheduleReceiver()}r(a,o),a.prototype._scheduleReceiver=function(){i("_scheduleReceiver");var e=this,t=this.poll=new this.Receiver(this.receiveUrl,this.AjaxObject);t.on("message",(function(t){i("message",t),e.emit("message",t)})),t.once("close",(function(n,r){i("close",n,r,e.pollIsClosing),e.poll=t=null,e.pollIsClosing||("network"===r?e._scheduleReceiver():(e.emit("close",n||1006,r),e.removeAllListeners()))}))},a.prototype.abort=function(){i("abort"),this.removeAllListeners(),this.pollIsClosing=!0,this.poll&&this.poll.abort()},e.exports=a},8347:function(e,t,n){"use strict";var r=n(5717),o=n(273),i=n(1851),a=n(1265),l=function(){};function u(e,t,n,r,u){var s=o.addPath(e,t);l(s);var c=this;i.call(this,e,n),this.poll=new a(r,s,u),this.poll.on("message",(function(e){l("poll message",e),c.emit("message",e)})),this.poll.once("close",(function(e,t){l("poll close",e,t),c.poll=null,c.emit("close",e,t),c.close()}))}r(u,i),u.prototype.close=function(){i.prototype.close.call(this),l("close"),this.removeAllListeners(),this.poll&&(this.poll.abort(),this.poll=null)},e.exports=u},6709:function(e,t,n){"use strict";var r=n(5717),o=n(3212).v,i=n(3759),a=function(){};function l(e){a(e),o.call(this);var t=this,n=this.es=new i(e);n.onmessage=function(e){a("message",e.data),t.emit("message",decodeURI(e.data))},n.onerror=function(e){a("error",n.readyState,e);var r=2!==n.readyState?"network":"permanent";t._cleanup(),t._close(r)}}r(l,o),l.prototype.abort=function(){a("abort"),this._cleanup(),this._close("user")},l.prototype._cleanup=function(){a("cleanup");var e=this.es;e&&(e.onmessage=e.onerror=null,e.close(),this.es=null)},l.prototype._close=function(e){a("close",e);var t=this;setTimeout((function(){t.emit("close",null,e),t.removeAllListeners()}),200)},e.exports=l},3608:function(e,t,n){"use strict";var r=n(5717),o=n(3683),i=n(273),a=n(3212).v,l=n(8915),u=function(){};function s(e){u(e),a.call(this);var t=this;o.polluteGlobalNamespace(),this.id="a"+l.string(6),e=i.addQuery(e,"c="+decodeURIComponent(o.WPrefix+"."+this.id)),u("using htmlfile",s.htmlfileEnabled);var r=s.htmlfileEnabled?o.createHtmlfile:o.createIframe;n.g[o.WPrefix][this.id]={start:function(){u("start"),t.iframeObj.loaded()},message:function(e){u("message",e),t.emit("message",e)},stop:function(){u("stop"),t._cleanup(),t._close("network")}},this.iframeObj=r(e,(function(){u("callback"),t._cleanup(),t._close("permanent")}))}r(s,a),s.prototype.abort=function(){u("abort"),this._cleanup(),this._close("user")},s.prototype._cleanup=function(){u("_cleanup"),this.iframeObj&&(this.iframeObj.cleanup(),this.iframeObj=null),delete n.g[o.WPrefix][this.id]},s.prototype._close=function(e){u("_close",e),this.emit("close",null,e),this.removeAllListeners()},s.htmlfileEnabled=!1;var c=["Active"].concat("Object").join("X");if(c in n.g)try{s.htmlfileEnabled=!!new n.g[c]("htmlfile")}catch(e){}s.enabled=s.htmlfileEnabled||o.iframeEnabled,e.exports=s},514:function(e,t,n){"use strict";var r=n(3683),o=n(8915),i=n(8510),a=n(273),l=n(5717),u=n(3212).v,s=function(){};function c(e){s(e);var t=this;u.call(this),r.polluteGlobalNamespace(),this.id="a"+o.string(6);var i=a.addQuery(e,"c="+encodeURIComponent(r.WPrefix+"."+this.id));n.g[r.WPrefix][this.id]=this._callback.bind(this),this._createScript(i),this.timeoutId=setTimeout((function(){s("timeout"),t._abort(new Error("JSONP script loaded abnormally (timeout)"))}),c.timeout)}l(c,u),c.prototype.abort=function(){if(s("abort"),n.g[r.WPrefix][this.id]){var e=new Error("JSONP user aborted read");e.code=1e3,this._abort(e)}},c.timeout=35e3,c.scriptErrorTimeout=1e3,c.prototype._callback=function(e){s("_callback",e),this._cleanup(),this.aborting||(e&&(s("message",e),this.emit("message",e)),this.emit("close",null,"network"),this.removeAllListeners())},c.prototype._abort=function(e){s("_abort",e),this._cleanup(),this.aborting=!0,this.emit("close",e.code,e.message),this.removeAllListeners()},c.prototype._cleanup=function(){if(s("_cleanup"),clearTimeout(this.timeoutId),this.script2&&(this.script2.parentNode.removeChild(this.script2),this.script2=null),this.script){var e=this.script;e.parentNode.removeChild(e),e.onreadystatechange=e.onerror=e.onload=e.onclick=null,this.script=null}delete n.g[r.WPrefix][this.id]},c.prototype._scriptError=function(){s("_scriptError");var e=this;this.errorTimer||(this.errorTimer=setTimeout((function(){e.loadedOkay||e._abort(new Error("JSONP script loaded abnormally (onerror)"))}),c.scriptErrorTimeout))},c.prototype._createScript=function(e){s("_createScript",e);var t,r=this,a=this.script=n.g.document.createElement("script");if(a.id="a"+o.string(8),a.src=e,a.type="text/javascript",a.charset="UTF-8",a.onerror=this._scriptError.bind(this),a.onload=function(){s("onload"),r._abort(new Error("JSONP script loaded abnormally (onload)"))},a.onreadystatechange=function(){if(s("onreadystatechange",a.readyState),/loaded|closed/.test(a.readyState)){if(a&&a.htmlFor&&a.onclick){r.loadedOkay=!0;try{a.onclick()}catch(e){}}a&&r._abort(new Error("JSONP script loaded abnormally (onreadystatechange)"))}},void 0===a.async&&n.g.document.attachEvent)if(i.isOpera())(t=this.script2=n.g.document.createElement("script")).text="try{var a = document.getElementById('"+a.id+"'); if(a)a.onerror();}catch(x){};",a.async=t.async=!1;else{try{a.htmlFor=a.id,a.event="onclick"}catch(e){}a.async=!0}void 0!==a.async&&(a.async=!0);var l=n.g.document.getElementsByTagName("head")[0];l.insertBefore(a,l.firstChild),t&&l.insertBefore(t,l.firstChild)},e.exports=c},1044:function(e,t,n){"use strict";var r=n(5717),o=n(3212).v,i=function(){};function a(e,t){i(e),o.call(this);var n=this;this.bufferPosition=0,this.xo=new t("POST",e,null),this.xo.on("chunk",this._chunkHandler.bind(this)),this.xo.once("finish",(function(e,t){i("finish",e,t),n._chunkHandler(e,t),n.xo=null;var r=200===e?"network":"permanent";i("close",r),n.emit("close",null,r),n._cleanup()}))}r(a,o),a.prototype._chunkHandler=function(e,t){if(i("_chunkHandler",e),200===e&&t)for(var n=-1;;this.bufferPosition+=n+1){var r=t.slice(this.bufferPosition);if(-1===(n=r.indexOf("\n")))break;var o=r.slice(0,n);o&&(i("message",o),this.emit("message",o))}},a.prototype._cleanup=function(){i("_cleanup"),this.removeAllListeners()},a.prototype.abort=function(){i("abort"),this.xo&&(this.xo.close(),i("close"),this.emit("close",null,"user"),this.xo=null),this._cleanup()},e.exports=a},771:function(e,t,n){"use strict";var r,o,i=n(8915),a=n(273);e.exports=function(e,t,l){r||((r=n.g.document.createElement("form")).style.display="none",r.style.position="absolute",r.method="POST",r.enctype="application/x-www-form-urlencoded",r.acceptCharset="UTF-8",(o=n.g.document.createElement("textarea")).name="d",r.appendChild(o),n.g.document.body.appendChild(r));var u="a"+i.string(8);r.target=u,r.action=a.addQuery(a.addPath(e,"/jsonp_send"),"i="+u);var s=function(e){try{return n.g.document.createElement('<iframe name="'+e+'">')}catch(r){var t=n.g.document.createElement("iframe");return t.name=e,t}}(u);s.id=u,s.style.display="none",r.appendChild(s);try{o.value=t}catch(e){}r.submit();var c=function(e){s.onerror&&(s.onreadystatechange=s.onerror=s.onload=null,setTimeout((function(){s.parentNode.removeChild(s),s=null}),500),o.value="",l(e))};return s.onerror=function(){c()},s.onload=function(){c()},s.onreadystatechange=function(e){s.readyState,"complete"===s.readyState&&c()},function(){c(new Error("Aborted"))}}},6073:function(e,t,n){"use strict";var r=n(3212).v,o=n(5717),i=n(7705),a=n(8510),l=n(273),u=function(){};function s(e,t,n){u(e,t);var o=this;r.call(this),setTimeout((function(){o._start(e,t,n)}),0)}o(s,r),s.prototype._start=function(e,t,r){u("_start");var o=this,a=new n.g.XDomainRequest;t=l.addQuery(t,"t="+ +new Date),a.onerror=function(){u("onerror"),o._error()},a.ontimeout=function(){u("ontimeout"),o._error()},a.onprogress=function(){u("progress",a.responseText),o.emit("chunk",200,a.responseText)},a.onload=function(){u("load"),o.emit("finish",200,a.responseText),o._cleanup(!1)},this.xdr=a,this.unloadRef=i.unloadAdd((function(){o._cleanup(!0)}));try{this.xdr.open(e,t),this.timeout&&(this.xdr.timeout=this.timeout),this.xdr.send(r)}catch(e){this._error()}},s.prototype._error=function(){this.emit("finish",0,""),this._cleanup(!1)},s.prototype._cleanup=function(e){if(u("cleanup",e),this.xdr){if(this.removeAllListeners(),i.unloadDel(this.unloadRef),this.xdr.ontimeout=this.xdr.onerror=this.xdr.onprogress=this.xdr.onload=null,e)try{this.xdr.abort()}catch(e){}this.unloadRef=this.xdr=null}},s.prototype.close=function(){u("close"),this._cleanup(!0)},s.enabled=!(!n.g.XDomainRequest||!a.hasDomain()),e.exports=s},9033:function(e,t,n){"use strict";var r=n(5717),o=n(2940);function i(e,t,n,r){o.call(this,e,t,n,r)}r(i,o),i.enabled=o.enabled&&o.supportsCORS,e.exports=i},7103:function(e,t,n){"use strict";var r=n(3212).v;function o(){var e=this;r.call(this),this.to=setTimeout((function(){e.emit("finish",200,"{}")}),o.timeout)}n(5717)(o,r),o.prototype.close=function(){clearTimeout(this.to)},o.timeout=2e3,e.exports=o},3515:function(e,t,n){"use strict";var r=n(5717),o=n(2940);function i(e,t,n){o.call(this,e,t,n,{noCredentials:!0})}r(i,o),i.enabled=o.enabled,e.exports=i},2412:function(e,t,n){"use strict";var r=n(7705),o=n(273),i=n(5717),a=n(3212).v,l=n(9334),u=function(){};function s(e,t,n){if(!s.enabled())throw new Error("Transport created when disabled");a.call(this),u("constructor",e);var i=this,c=o.addPath(e,"/websocket");c="https"===c.slice(0,5)?"wss"+c.slice(5):"ws"+c.slice(4),this.url=c,this.ws=new l(this.url,[],n),this.ws.onmessage=function(e){u("message event",e.data),i.emit("message",e.data)},this.unloadRef=r.unloadAdd((function(){u("unload"),i.ws.close()})),this.ws.onclose=function(e){u("close event",e.code,e.reason),i.emit("close",e.code,e.reason),i._cleanup()},this.ws.onerror=function(e){u("error event",e),i.emit("close",1006,"WebSocket connection broken"),i._cleanup()}}i(s,a),s.prototype.send=function(e){var t="["+e+"]";u("send",t),this.ws.send(t)},s.prototype.close=function(){u("close");var e=this.ws;this._cleanup(),e&&e.close()},s.prototype._cleanup=function(){u("_cleanup");var e=this.ws;e&&(e.onmessage=e.onclose=e.onerror=null),r.unloadDel(this.unloadRef),this.unloadRef=this.ws=null,this.removeAllListeners()},s.enabled=function(){return u("enabled"),!!l},s.transportName="websocket",s.roundTrips=2,e.exports=s},9998:function(e,t,n){"use strict";var r=n(5717),o=n(9395),i=n(4620),a=n(1044),l=n(6073);function u(e){if(!l.enabled)throw new Error("Transport created when disabled");o.call(this,e,"/xhr",a,l)}r(u,o),u.enabled=i.enabled,u.transportName="xdr-polling",u.roundTrips=2,e.exports=u},4620:function(e,t,n){"use strict";var r=n(5717),o=n(9395),i=n(1044),a=n(6073);function l(e){if(!a.enabled)throw new Error("Transport created when disabled");o.call(this,e,"/xhr_streaming",i,a)}r(l,o),l.enabled=function(e){return!e.cookie_needed&&!e.nullOrigin&&a.enabled&&e.sameScheme},l.transportName="xdr-streaming",l.roundTrips=2,e.exports=l},2387:function(e,t,n){"use strict";var r=n(5717),o=n(9395),i=n(1044),a=n(9033),l=n(3515);function u(e){if(!l.enabled&&!a.enabled)throw new Error("Transport created when disabled");o.call(this,e,"/xhr",i,a)}r(u,o),u.enabled=function(e){return!e.nullOrigin&&(!(!l.enabled||!e.sameOrigin)||a.enabled)},u.transportName="xhr-polling",u.roundTrips=2,e.exports=u},9842:function(e,t,n){"use strict";var r=n(5717),o=n(9395),i=n(1044),a=n(9033),l=n(3515),u=n(8510);function s(e){if(!l.enabled&&!a.enabled)throw new Error("Transport created when disabled");o.call(this,e,"/xhr_streaming",i,a)}r(s,o),s.enabled=function(e){return!e.nullOrigin&&!u.isOpera()&&a.enabled},s.transportName="xhr-streaming",s.roundTrips=2,s.needBody=!!n.g.document,e.exports=s},2017:function(e,t,n){"use strict";n.g.crypto&&n.g.crypto.getRandomValues?e.exports.randomBytes=function(e){var t=new Uint8Array(e);return n.g.crypto.getRandomValues(t),t}:e.exports.randomBytes=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=Math.floor(256*Math.random());return t}},8510:function(e,t,n){"use strict";e.exports={isOpera:function(){return n.g.navigator&&/opera/i.test(n.g.navigator.userAgent)},isKonqueror:function(){return n.g.navigator&&/konqueror/i.test(n.g.navigator.userAgent)},hasDomain:function(){if(!n.g.document)return!0;try{return!!n.g.document.domain}catch(e){return!1}}}},8028:function(e){"use strict";var t,n=/[\x00-\x1f\ud800-\udfff\ufffe\uffff\u0300-\u0333\u033d-\u0346\u034a-\u034c\u0350-\u0352\u0357-\u0358\u035c-\u0362\u0374\u037e\u0387\u0591-\u05af\u05c4\u0610-\u0617\u0653-\u0654\u0657-\u065b\u065d-\u065e\u06df-\u06e2\u06eb-\u06ec\u0730\u0732-\u0733\u0735-\u0736\u073a\u073d\u073f-\u0741\u0743\u0745\u0747\u07eb-\u07f1\u0951\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e38-\u0e39\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u0f72-\u0f76\u0f78\u0f80-\u0f83\u0f93\u0f9d\u0fa2\u0fa7\u0fac\u0fb9\u1939-\u193a\u1a17\u1b6b\u1cda-\u1cdb\u1dc0-\u1dcf\u1dfc\u1dfe\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbe\u1fc9\u1fcb\u1fd3\u1fdb\u1fe3\u1feb\u1fee-\u1fef\u1ff9\u1ffb\u1ffd\u2000-\u2001\u20d0-\u20d1\u20d4-\u20d7\u20e7-\u20e9\u2126\u212a-\u212b\u2329-\u232a\u2adc\u302b-\u302c\uaab2-\uaab3\uf900-\ufa0d\ufa10\ufa12\ufa15-\ufa1e\ufa20\ufa22\ufa25-\ufa26\ufa2a-\ufa2d\ufa30-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufb4e\ufff0-\uffff]/g;e.exports={quote:function(e){var r=JSON.stringify(e);return n.lastIndex=0,n.test(r)?(t||(t=function(e){var t,n={},r=[];for(t=0;t<65536;t++)r.push(String.fromCharCode(t));return e.lastIndex=0,r.join("").replace(e,(function(e){return n[e]="\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4),""})),e.lastIndex=0,n}(n)),r.replace(n,(function(e){return t[e]}))):r}}},7705:function(e,t,n){"use strict";var r=n(8915),o={},i=!1,a=n.g.chrome&&n.g.chrome.app&&n.g.chrome.app.runtime;e.exports={attachEvent:function(e,t){void 0!==n.g.addEventListener?n.g.addEventListener(e,t,!1):n.g.document&&n.g.attachEvent&&(n.g.document.attachEvent("on"+e,t),n.g.attachEvent("on"+e,t))},detachEvent:function(e,t){void 0!==n.g.addEventListener?n.g.removeEventListener(e,t,!1):n.g.document&&n.g.detachEvent&&(n.g.document.detachEvent("on"+e,t),n.g.detachEvent("on"+e,t))},unloadAdd:function(e){if(a)return null;var t=r.string(8);return o[t]=e,i&&setTimeout(this.triggerUnloadCallbacks,0),t},unloadDel:function(e){e in o&&delete o[e]},triggerUnloadCallbacks:function(){for(var e in o)o[e](),delete o[e]}},a||e.exports.attachEvent("unload",(function(){i||(i=!0,e.exports.triggerUnloadCallbacks())}))},3683:function(e,t,n){"use strict";var r=n(7705),o=n(8510);e.exports={WPrefix:"_jp",currentWindowId:null,polluteGlobalNamespace:function(){e.exports.WPrefix in n.g||(n.g[e.exports.WPrefix]={})},postMessage:function(t,r){n.g.parent!==n.g&&n.g.parent.postMessage(JSON.stringify({windowId:e.exports.currentWindowId,type:t,data:r||""}),"*")},createIframe:function(e,t){var o,i,a=n.g.document.createElement("iframe"),l=function(){clearTimeout(o);try{a.onload=null}catch(e){}a.onerror=null},u=function(){a&&(l(),setTimeout((function(){a&&a.parentNode.removeChild(a),a=null}),0),r.unloadDel(i))},s=function(e){a&&(u(),t(e))};return a.src=e,a.style.display="none",a.style.position="absolute",a.onerror=function(){s("onerror")},a.onload=function(){clearTimeout(o),o=setTimeout((function(){s("onload timeout")}),2e3)},n.g.document.body.appendChild(a),o=setTimeout((function(){s("timeout")}),15e3),i=r.unloadAdd(u),{post:function(e,t){setTimeout((function(){try{a&&a.contentWindow&&a.contentWindow.postMessage(e,t)}catch(e){}}),0)},cleanup:u,loaded:l}},createHtmlfile:function(t,o){var i,a,l,u=["Active"].concat("Object").join("X"),s=new n.g[u]("htmlfile"),c=function(){clearTimeout(i),l.onerror=null},f=function(){s&&(c(),r.unloadDel(a),l.parentNode.removeChild(l),l=s=null,CollectGarbage())},d=function(e){s&&(f(),o(e))};s.open(),s.write('<html><script>document.domain="'+n.g.document.domain+'";<\/script></html>'),s.close(),s.parentWindow[e.exports.WPrefix]=n.g[e.exports.WPrefix];var p=s.createElement("div");return s.body.appendChild(p),l=s.createElement("iframe"),p.appendChild(l),l.src=t,l.onerror=function(){d("onerror")},i=setTimeout((function(){d("timeout")}),15e3),a=r.unloadAdd(f),{post:function(e,t){try{setTimeout((function(){l&&l.contentWindow&&l.contentWindow.postMessage(e,t)}),0)}catch(e){}},cleanup:f,loaded:c}}},e.exports.iframeEnabled=!1,n.g.document&&(e.exports.iframeEnabled=("function"==typeof n.g.postMessage||"object"==typeof n.g.postMessage)&&!o.isKonqueror())},4886:function(e,t,n){"use strict";var r={};["log","debug","warn"].forEach((function(e){var t;try{t=n.g.console&&n.g.console[e]&&n.g.console[e].apply}catch(e){}r[e]=t?function(){return n.g.console[e].apply(n.g.console,arguments)}:"log"===e?function(){}:r.log})),e.exports=r},2217:function(e){"use strict";e.exports={isObject:function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},extend:function(e){if(!this.isObject(e))return e;for(var t,n,r=1,o=arguments.length;r<o;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}}},8915:function(e,t,n){"use strict";var r=n(2017);e.exports={string:function(e){for(var t=r.randomBytes(e),n=[],o=0;o<e;o++)n.push("abcdefghijklmnopqrstuvwxyz012345".substr(t[o]%32,1));return n.join("")},number:function(e){return Math.floor(Math.random()*e)},numberString:function(e){var t=(""+(e-1)).length;return(new Array(t+1).join("0")+this.number(e)).slice(-t)}}},5581:function(e){"use strict";e.exports=function(e){return{filterToEnabled:function(t,n){var r={main:[],facade:[]};return t?"string"==typeof t&&(t=[t]):t=[],e.forEach((function(e){e&&("websocket"===e.transportName&&!1===n.websocket||(t.length&&-1===t.indexOf(e.transportName)?e.transportName:e.enabled(n)?(e.transportName,r.main.push(e),e.facadeTransport&&r.facade.push(e.facadeTransport)):e.transportName))})),r}}}},273:function(e,t,n){"use strict";var r=n(4564);e.exports={getOrigin:function(e){if(!e)return null;var t=new r(e);if("file:"===t.protocol)return null;var n=t.port;return n||(n="https:"===t.protocol?"443":"80"),t.protocol+"//"+t.hostname+":"+n},isOriginEqual:function(e,t){return this.getOrigin(e)===this.getOrigin(t)},isSchemeEqual:function(e,t){return e.split(":")[0]===t.split(":")[0]},addPath:function(e,t){var n=e.split("?");return n[0]+t+(n[1]?"?"+n[1]:"")},addQuery:function(e,t){return e+(-1===e.indexOf("?")?"?"+t:"&"+t)},isLoopbackAddr:function(e){return/^127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^\[::1\]$/.test(e)}}},2828:function(e){e.exports="1.6.1"},4774:function(e,t,n){var r=n(7106),o=n(907);e.exports=r.Stomp,e.exports.overTCP=o.overTCP,e.exports.overWS=o.overWS},907:function(e,t,n){(function(){var e,r,o,i,a,l;e=n(7106),r=n(5456),e.Stomp.setInterval=function(e,t){return setInterval(t,e)},e.Stomp.clearInterval=function(e){return clearInterval(e)},a=function(e,t){var n,o;return n=null,o={url:"tcp:// "+t+":"+e,send:function(e){return n.write(e)},close:function(){return n.end()}},(n=r.connect(e,t,(function(e){return o.onopen()}))).on("error",(function(e){return"function"==typeof o.onclose?o.onclose(e):void 0})),n.on("close",(function(e){return"function"==typeof o.onclose?o.onclose(e):void 0})),n.on("data",(function(e){var t;return t={data:e.toString()},o.onmessage(t)})),o},l=function(e){var t,r,o,i;return t=n(5840).client,r=null,i={url:e,send:function(e){return r.sendUTF(e)},close:function(){return r.close()}},(o=new t).on("connect",(function(e){return r=e,i.onopen(),r.on("error",(function(e){return"function"==typeof i.onclose?i.onclose(e):void 0})),r.on("close",(function(){return"function"==typeof i.onclose?i.onclose():void 0})),r.on("message",(function(e){var t;if("utf8"===e.type)return t={data:e.utf8Data},i.onmessage(t)}))})),o.connect(e),i},o=function(t,n){var r;return r=a(n,t),e.Stomp.over(r)},i=function(t){var n;return n=l(t),e.Stomp.over(n)},t.overTCP=o,t.overWS=i}).call(this)},7106:function(e,t){(function(){var e,n,r,o,i={}.hasOwnProperty,a=[].slice;e={LF:"\n",NULL:"\0"},r=function(){var t;function n(e,t,n){this.command=e,this.headers=null!=t?t:{},this.body=null!=n?n:""}return n.prototype.toString=function(){var t,r,o,a,l;for(r in t=[this.command],(o=!1===this.headers["content-length"])&&delete this.headers["content-length"],l=this.headers)i.call(l,r)&&(a=l[r],t.push(r+":"+a));return this.body&&!o&&t.push("content-length:"+n.sizeOfUTF8(this.body)),t.push(e.LF+this.body),t.join(e.LF)},n.sizeOfUTF8=function(e){return e?encodeURI(e).match(/%..|./g).length:0},t=function(t){var r,o,i,a,l,u,s,c,f,d,p,h,m,y,v,g,b;for(a=t.search(RegExp(""+e.LF+e.LF)),i=(l=t.substring(0,a).split(e.LF)).shift(),u={},h=function(e){return e.replace(/^\s+|\s+$/g,"")},m=0,v=(g=l.reverse()).length;m<v;m++)c=(d=g[m]).indexOf(":"),u[h(d.substring(0,c))]=h(d.substring(c+1));if(r="",p=a+2,u["content-length"])f=parseInt(u["content-length"]),r=(""+t).substring(p,p+f);else for(o=null,s=y=p,b=t.length;(p<=b?y<b:y>b)&&(o=t.charAt(s))!==e.NULL;s=p<=b?++y:--y)r+=o;return new n(i,u,r)},n.unmarshall=function(n){var r;return function(){var o,i,a,l;for(l=[],o=0,i=(a=n.split(RegExp(""+e.NULL+e.LF+"*"))).length;o<i;o++)(null!=(r=a[o])?r.length:void 0)>0&&l.push(t(r));return l}()},n.marshall=function(t,r,o){return new n(t,r,o).toString()+e.NULL},n}(),n=function(){var t;function n(e){this.ws=e,this.ws.binaryType="arraybuffer",this.counter=0,this.connected=!1,this.heartbeat={outgoing:1e4,incoming:1e4},this.maxWebSocketFrameSize=16384,this.subscriptions={}}return n.prototype.debug=function(e){var t;return"undefined"!=typeof window&&null!==window&&null!=(t=window.console)?t.log(e):void 0},t=function(){return Date.now?Date.now():(new Date).valueOf},n.prototype._transmit=function(e,t,n){var o;for(o=r.marshall(e,t,n),"function"==typeof this.debug&&this.debug(">>> "+o);;){if(!(o.length>this.maxWebSocketFrameSize))return this.ws.send(o);this.ws.send(o.substring(0,this.maxWebSocketFrameSize)),o=o.substring(this.maxWebSocketFrameSize),"function"==typeof this.debug&&this.debug("remaining = "+o.length)}},n.prototype._setupHeartbeat=function(n){var r,i,a,l,u,s,c;if((u=n.version)===o.VERSIONS.V1_1||u===o.VERSIONS.V1_2)return i=(s=function(){var e,t,r,o;for(o=[],e=0,t=(r=n["heart-beat"].split(",")).length;e<t;e++)l=r[e],o.push(parseInt(l));return o}())[0],r=s[1],0!==this.heartbeat.outgoing&&0!==r&&(a=Math.max(this.heartbeat.outgoing,r),"function"==typeof this.debug&&this.debug("send PING every "+a+"ms"),this.pinger=o.setInterval(a,(c=this,function(){return c.ws.send(e.LF),"function"==typeof c.debug?c.debug(">>> PING"):void 0}))),0!==this.heartbeat.incoming&&0!==i?(a=Math.max(this.heartbeat.incoming,i),"function"==typeof this.debug&&this.debug("check PONG every "+a+"ms"),this.ponger=o.setInterval(a,function(e){return function(){var n;if((n=t()-e.serverActivity)>2*a)return"function"==typeof e.debug&&e.debug("did not receive server activity for the last "+n+"ms"),e.ws.close()}}(this))):void 0},n.prototype._parseConnect=function(){var e,t,n,r;switch(r={},(e=1<=arguments.length?a.call(arguments,0):[]).length){case 2:r=e[0],t=e[1];break;case 3:e[1]instanceof Function?(r=e[0],t=e[1],n=e[2]):(r.login=e[0],r.passcode=e[1],t=e[2]);break;case 4:r.login=e[0],r.passcode=e[1],t=e[2],n=e[3];break;default:r.login=e[0],r.passcode=e[1],t=e[2],n=e[3],r.host=e[4]}return[r,t,n]},n.prototype.connect=function(){var n,i,l,u,s;return n=1<=arguments.length?a.call(arguments,0):[],u=this._parseConnect.apply(this,n),l=u[0],this.connectCallback=u[1],i=u[2],"function"==typeof this.debug&&this.debug("Opening Web Socket..."),this.ws.onmessage=(s=this,function(n){var o,a,l,u,c,f,d,p,h,m,y,v;if(u="undefined"!=typeof ArrayBuffer&&n.data instanceof ArrayBuffer?(o=new Uint8Array(n.data),"function"==typeof s.debug&&s.debug("--- got data length: "+o.length),function(){var e,t,n;for(n=[],e=0,t=o.length;e<t;e++)a=o[e],n.push(String.fromCharCode(a));return n}().join("")):n.data,s.serverActivity=t(),u!==e.LF){for("function"==typeof s.debug&&s.debug("<<< "+u),v=[],h=0,m=(y=r.unmarshall(u)).length;h<m;h++)switch((c=y[h]).command){case"CONNECTED":"function"==typeof s.debug&&s.debug("connected to server "+c.headers.server),s.connected=!0,s._setupHeartbeat(c.headers),v.push("function"==typeof s.connectCallback?s.connectCallback(c):void 0);break;case"MESSAGE":p=c.headers.subscription,(d=s.subscriptions[p]||s.onreceive)?(l=s,f=c.headers["message-id"],c.ack=function(e){return null==e&&(e={}),l.ack(f,p,e)},c.nack=function(e){return null==e&&(e={}),l.nack(f,p,e)},v.push(d(c))):v.push("function"==typeof s.debug?s.debug("Unhandled received MESSAGE: "+c):void 0);break;case"RECEIPT":v.push("function"==typeof s.onreceipt?s.onreceipt(c):void 0);break;case"ERROR":v.push("function"==typeof i?i(c):void 0);break;default:v.push("function"==typeof s.debug?s.debug("Unhandled frame: "+c):void 0)}return v}"function"==typeof s.debug&&s.debug("<<< PONG")}),this.ws.onclose=function(e){return function(){var t;return t="Whoops! Lost connection to "+e.ws.url,"function"==typeof e.debug&&e.debug(t),e._cleanUp(),"function"==typeof i?i(t):void 0}}(this),this.ws.onopen=function(e){return function(){return"function"==typeof e.debug&&e.debug("Web Socket Opened..."),l["accept-version"]=o.VERSIONS.supportedVersions(),l["heart-beat"]=[e.heartbeat.outgoing,e.heartbeat.incoming].join(","),e._transmit("CONNECT",l)}}(this)},n.prototype.disconnect=function(e,t){return null==t&&(t={}),this._transmit("DISCONNECT",t),this.ws.onclose=null,this.ws.close(),this._cleanUp(),"function"==typeof e?e():void 0},n.prototype._cleanUp=function(){if(this.connected=!1,this.pinger&&o.clearInterval(this.pinger),this.ponger)return o.clearInterval(this.ponger)},n.prototype.send=function(e,t,n){return null==t&&(t={}),null==n&&(n=""),t.destination=e,this._transmit("SEND",t,n)},n.prototype.subscribe=function(e,t,n){var r;return null==n&&(n={}),n.id||(n.id="sub-"+this.counter++),n.destination=e,this.subscriptions[n.id]=t,this._transmit("SUBSCRIBE",n),r=this,{id:n.id,unsubscribe:function(){return r.unsubscribe(n.id)}}},n.prototype.unsubscribe=function(e){return delete this.subscriptions[e],this._transmit("UNSUBSCRIBE",{id:e})},n.prototype.begin=function(e){var t,n;return n=e||"tx-"+this.counter++,this._transmit("BEGIN",{transaction:n}),t=this,{id:n,commit:function(){return t.commit(n)},abort:function(){return t.abort(n)}}},n.prototype.commit=function(e){return this._transmit("COMMIT",{transaction:e})},n.prototype.abort=function(e){return this._transmit("ABORT",{transaction:e})},n.prototype.ack=function(e,t,n){return null==n&&(n={}),n["message-id"]=e,n.subscription=t,this._transmit("ACK",n)},n.prototype.nack=function(e,t,n){return null==n&&(n={}),n["message-id"]=e,n.subscription=t,this._transmit("NACK",n)},n}(),o={VERSIONS:{V1_0:"1.0",V1_1:"1.1",V1_2:"1.2",supportedVersions:function(){return"1.1,1.0"}},client:function(e,t){var r;return null==t&&(t=["v10.stomp","v11.stomp"]),r=new(o.WebSocketClass||WebSocket)(e,t),new n(r)},over:function(e){return new n(e)},Frame:r},null!==t&&(t.Stomp=o),"undefined"!=typeof window&&null!==window?(o.setInterval=function(e,t){return window.setInterval(t,e)},o.clearInterval=function(e){return window.clearInterval(e)},window.Stomp=o):t||(self.Stomp=o)}).call(this)},3379:function(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],l=0;l<e.length;l++){var u=e[l],s=r.base?u[0]+r.base:u[0],c=i[s]||0,f="".concat(s," ").concat(c);i[s]=c+1;var d=n(f),p={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var h=o(p,r);r.byIndex=l,t.splice(l,0,{identifier:f,updater:h,references:1})}a.push(f)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var l=n(i[a]);t[l].references--}for(var u=r(e,o),s=0;s<i.length;s++){var c=n(i[s]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=u}}},569:function(e){"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},9216:function(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:function(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:function(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1476:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var o=r(n(7848)),i=n(6678);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)})),n):n}},6678:function(e,t){"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,u):e.replace(i,u)).replace(r,l))}},7848:function(e,t,n){var r=n(8139);function o(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var i,a,l=r(e),u="function"==typeof t,s=0,c=l.length;s<c;s++)i=(n=l[s]).property,a=n.value,u?t(i,a,n):a&&(o||(o={}),o[i]=a);return o}e.exports=o,e.exports.default=o},4564:function(e,t,n){"use strict";var r=n(7418),o=n(7129),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,l=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;function f(e){return(e||"").toString().replace(i,"")}var d=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],p={hash:1,query:1};function h(e){var t,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},o={},i=typeof(e=e||r);if("blob:"===e.protocol)o=new v(unescape(e.pathname),{});else if("string"===i)for(t in o=new v(e,{}),p)delete o[t];else if("object"===i){for(t in e)t in p||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=l.test(e.href))}return o}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function y(e,t){e=(e=f(e)).replace(a,""),t=t||{};var n,r=s.exec(e),o=r[1]?r[1].toLowerCase():"",i=!!r[2],l=!!r[3],u=0;return i?l?(n=r[2]+r[3]+r[4],u=r[2].length+r[3].length):(n=r[2]+r[4],u=r[2].length):l?(n=r[3]+r[4],u=r[3].length):n=r[4],"file:"===o?u>=2&&(n=n.slice(2)):m(o)?n=r[4]:o?i&&(n=n.slice(2)):u>=2&&m(t.protocol)&&(n=r[4]),{protocol:o,slashes:i||m(o),slashesCount:u,rest:n}}function v(e,t,n){if(e=(e=f(e)).replace(a,""),!(this instanceof v))return new v(e,t,n);var i,l,u,s,p,g,b=d.slice(),w=typeof t,x=this,S=0;for("object"!==w&&"string"!==w&&(n=t,t=null),n&&"function"!=typeof n&&(n=o.parse),i=!(l=y(e||"",t=h(t))).protocol&&!l.slashes,x.slashes=l.slashes||i&&t.slashes,x.protocol=l.protocol||t.protocol||"",e=l.rest,("file:"===l.protocol&&(2!==l.slashesCount||c.test(e))||!l.slashes&&(l.protocol||l.slashesCount<2||!m(x.protocol)))&&(b[3]=[/(.*)/,"pathname"]);S<b.length;S++)"function"!=typeof(s=b[S])?(u=s[0],g=s[1],u!=u?x[g]=e:"string"==typeof u?~(p="@"===u?e.lastIndexOf(u):e.indexOf(u))&&("number"==typeof s[2]?(x[g]=e.slice(0,p),e=e.slice(p+s[2])):(x[g]=e.slice(p),e=e.slice(0,p))):(p=u.exec(e))&&(x[g]=p[1],e=e.slice(0,p.index)),x[g]=x[g]||i&&s[3]&&t[g]||"",s[4]&&(x[g]=x[g].toLowerCase())):e=s(e,x);n&&(x.query=n(x.query)),i&&t.slashes&&"/"!==x.pathname.charAt(0)&&(""!==x.pathname||""!==t.pathname)&&(x.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],i=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(i=!0),n.splice(r,1),a--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(x.pathname,t.pathname)),"/"!==x.pathname.charAt(0)&&m(x.protocol)&&(x.pathname="/"+x.pathname),r(x.port,x.protocol)||(x.host=x.hostname,x.port=""),x.username=x.password="",x.auth&&(~(p=x.auth.indexOf(":"))?(x.username=x.auth.slice(0,p),x.username=encodeURIComponent(decodeURIComponent(x.username)),x.password=x.auth.slice(p+1),x.password=encodeURIComponent(decodeURIComponent(x.password))):x.username=encodeURIComponent(decodeURIComponent(x.auth)),x.auth=x.password?x.username+":"+x.password:x.username),x.origin="file:"!==x.protocol&&m(x.protocol)&&x.host?x.protocol+"//"+x.host:"null",x.href=x.toString()}v.prototype={set:function(e,t,n){var i=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||o.parse)(t)),i[e]=t;break;case"port":i[e]=t,r(t,i.protocol)?t&&(i.host=i.hostname+":"+t):(i.host=i.hostname,i[e]="");break;case"hostname":i[e]=t,i.port&&(t+=":"+i.port),i.host=t;break;case"host":i[e]=t,u.test(t)?(t=t.split(":"),i.port=t.pop(),i.hostname=t.join(":")):(i.hostname=t,i.port="");break;case"protocol":i.protocol=t.toLowerCase(),i.slashes=!n;break;case"pathname":case"hash":if(t){var a="pathname"===e?"/":"#";i[e]=t.charAt(0)!==a?a+t:t}else i[e]=t;break;case"username":case"password":i[e]=encodeURIComponent(t);break;case"auth":var l=t.indexOf(":");~l?(i.username=t.slice(0,l),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=t.slice(l+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(t))}for(var s=0;s<d.length;s++){var c=d[s];c[4]&&(i[c[1]]=i[c[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin="file:"!==i.protocol&&m(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(e){e&&"function"==typeof e||(e=o.stringify);var t,n=this,r=n.host,i=n.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var a=i+(n.protocol&&n.slashes||m(n.protocol)?"//":"");return n.username?(a+=n.username,n.password&&(a+=":"+n.password),a+="@"):n.password?(a+=":"+n.password,a+="@"):"file:"!==n.protocol&&m(n.protocol)&&!r&&"/"!==n.pathname&&(a+="@"),(":"===r[r.length-1]||u.test(n.hostname)&&!n.port)&&(r+=":"),a+=r+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(a+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(a+=n.hash),a}},v.extractProtocol=y,v.location=h,v.trimLeft=f,v.qs=o,e.exports=v},3250:function(e,t,n){"use strict";var r=n(7294),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,l=r.useLayoutEffect,u=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return l((function(){o.value=n,o.getSnapshot=t,s(o)&&c({inst:o})}),[e,n,t]),a((function(){return s(o)&&c({inst:o}),e((function(){s(o)&&c({inst:o})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},139:function(e,t,n){"use strict";var r=n(7294),o=n(1688),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,l=r.useRef,u=r.useEffect,s=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=l(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=s((function(){function e(e){if(!u){if(u=!0,a=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return l=t}return l=e}if(t=l,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,l=n)}var a,l,u=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,o]);var p=a(e,f[0],f[1]);return u((function(){d.hasValue=!0,d.value=p}),[p]),c(p),p}},1688:function(e,t,n){"use strict";e.exports=n(3250)},2798:function(e,t,n){"use strict";e.exports=n(139)},5840:function(e,t,n){var r;if("object"==typeof globalThis)r=globalThis;else try{r=n(284)}catch(e){}finally{if(r||"undefined"==typeof window||(r=window),!r)throw new Error("Could not determine global this")}var o=r.WebSocket||r.MozWebSocket,i=n(9387);function a(e,t){return t?new o(e,t):new o(e)}o&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(e){Object.defineProperty(a,e,{get:function(){return o[e]}})})),e.exports={w3cwebsocket:o?a:null,version:i}},9387:function(e,t,n){e.exports=n(9794).version},9794:function(e){"use strict";e.exports={version:"1.0.34"}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};return function(){"use strict";n.r(r),n.d(r,{default:function(){return Xa}});var e=n(7294),t=n(3935),o=n(3379),i=n.n(o),a=n(7795),l=n.n(a),u=n(569),s=n.n(u),c=n(3565),f=n.n(c),d=n(9216),p=n.n(d),h=n(4589),m=n.n(h),y=n(9087),v={};v.styleTagTransform=m(),v.setAttributes=f(),v.insert=s().bind(null,"head"),v.domAPI=l(),v.insertStyleElement=p(),i()(y.Z,v),y.Z&&y.Z.locals&&y.Z.locals;var g=n(9834),b={};b.styleTagTransform=m(),b.setAttributes=f(),b.insert=s().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=p(),i()(g.Z,b),g.Z&&g.Z.locals&&g.Z.locals;var w=n(1688),x=n(2798);let S=function(e){e()};const E=()=>S,k=(0,e.createContext)(null);function C(){return(0,e.useContext)(k)}let O=()=>{throw new Error("uSES not initialized!")};const _=(e,t)=>e===t;function T(t=k){const n=t===k?C:()=>(0,e.useContext)(t);return function(t,r=_){const{store:o,subscription:i,getServerState:a}=n(),l=O(i.addNestedSub,o.getState,a||o.getState,t,r);return(0,e.useDebugValue)(l),l}}const N=T();n(8679),n(2973);const P={notify(){},get:()=>[]};const I="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;let L=null;var j=function({store:t,context:n,children:r,serverState:o}){const i=(0,e.useMemo)((()=>{const e=function(e,t){let n,r=P;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){const e=E();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}const a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=P)},getListeners:()=>r};return a}(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0}}),[t,o]),a=(0,e.useMemo)((()=>t.getState()),[t]);I((()=>{const{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[i,a]);const l=n||k;return e.createElement(l.Provider,{value:i},r)};function A(t=k){const n=t===k?C:()=>(0,e.useContext)(t);return function(){const{store:e}=n();return e}}const R=A();function D(e=k){const t=e===k?R:A(e);return function(){return t().dispatch}}const M=D();var F;function z(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function U(e){return!!e&&!!e[Oe]}function B(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===_e}(e)||Array.isArray(e)||!!e[Ce]||!!(null===(t=e.constructor)||void 0===t?void 0:t[Ce])||G(e)||Q(e))}function V(e,t,n){void 0===n&&(n=!1),0===H(e)?(n?Object.keys:Te)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function H(e){var t=e[Oe];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:G(e)?2:Q(e)?3:0}function W(e,t){return 2===H(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $(e,t,n){var r=H(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function q(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function G(e){return xe&&e instanceof Map}function Q(e){return Se&&e instanceof Set}function K(e){return e.o||e.t}function X(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Ne(e);delete t[Oe];for(var n=Te(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Z(e,t){return void 0===t&&(t=!1),Y(e)||U(e)||!B(e)||(H(e)>1&&(e.set=e.add=e.clear=e.delete=J),Object.freeze(e),t&&V(e,(function(e,t){return Z(t,!0)}),!0)),e}function J(){z(2)}function Y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function ee(e){var t=Pe[e];return t||z(18,e),t}function te(){return be}function ne(e,t){t&&(ee("Patches"),e.u=[],e.s=[],e.v=t)}function re(e){oe(e),e.p.forEach(ae),e.p=null}function oe(e){e===be&&(be=e.l)}function ie(e){return be={p:[],l:be,h:e,m:!0,_:0}}function ae(e){var t=e[Oe];0===t.i||1===t.i?t.j():t.g=!0}function le(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||ee("ES5").S(t,e,r),r?(n[Oe].P&&(re(t),z(4)),B(e)&&(e=ue(t,e),t.l||ce(t,e)),t.u&&ee("Patches").M(n[Oe].t,e,t.u,t.s)):e=ue(t,n,[]),re(t),t.u&&t.v(t.u,t.s),e!==ke?e:void 0}function ue(e,t,n){if(Y(t))return t;var r=t[Oe];if(!r)return V(t,(function(o,i){return se(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return ce(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=X(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),V(i,(function(t,i){return se(e,r,o,t,i,n,a)})),ce(e,o,!1),n&&e.u&&ee("Patches").N(r,n,e.u,e.s)}return r.o}function se(e,t,n,r,o,i,a){if(U(o)){var l=ue(e,o,i&&t&&3!==t.i&&!W(t.R,r)?i.concat(r):void 0);if($(n,r,l),!U(l))return;e.m=!1}else a&&n.add(o);if(B(o)&&!Y(o)){if(!e.h.D&&e._<1)return;ue(e,o),t&&t.A.l||ce(e,o)}}function ce(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&Z(t,n)}function fe(e,t){var n=e[Oe];return(n?K(n):e)[t]}function de(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function pe(e){e.P||(e.P=!0,e.l&&pe(e.l))}function he(e){e.o||(e.o=X(e.t))}function me(e,t,n){var r=G(t)?ee("MapSet").F(t,n):Q(t)?ee("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:te(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Ie;n&&(o=[r],i=Le);var a=Proxy.revocable(o,i),l=a.revoke,u=a.proxy;return r.k=u,r.j=l,u}(t,n):ee("ES5").J(t,n);return(n?n.A:te()).p.push(r),r}function ye(e){return U(e)||z(22,e),function e(t){if(!B(t))return t;var n,r=t[Oe],o=H(t);if(r){if(!r.P&&(r.i<4||!ee("ES5").K(r)))return r.t;r.I=!0,n=ve(t,o),r.I=!1}else n=ve(t,o);return V(n,(function(t,o){r&&function(e,t){return 2===H(e)?e.get(t):e[t]}(r.t,t)===o||$(n,t,e(o))})),3===o?new Set(n):n}(e)}function ve(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return X(e)}(e=>{O=e})(x.useSyncExternalStoreWithSelector),(e=>{L=e})(w.useSyncExternalStore),F=t.unstable_batchedUpdates,S=F;var ge,be,we="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),xe="undefined"!=typeof Map,Se="undefined"!=typeof Set,Ee="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ke=we?Symbol.for("immer-nothing"):((ge={})["immer-nothing"]=!0,ge),Ce=we?Symbol.for("immer-draftable"):"__$immer_draftable",Oe=we?Symbol.for("immer-state"):"__$immer_state",_e=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Te="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Ne=Object.getOwnPropertyDescriptors||function(e){var t={};return Te(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Pe={},Ie={get:function(e,t){if(t===Oe)return e;var n=K(e);if(!W(n,t))return function(e,t,n){var r,o=de(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!B(r)?r:r===fe(e.t,t)?(he(e),e.o[t]=me(e.A.h,r,e)):r},has:function(e,t){return t in K(e)},ownKeys:function(e){return Reflect.ownKeys(K(e))},set:function(e,t,n){var r=de(K(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=fe(K(e),t),i=null==o?void 0:o[Oe];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(q(n,o)&&(void 0!==n||W(e.t,t)))return!0;he(e),pe(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==fe(e.t,t)||t in e.t?(e.R[t]=!1,he(e),pe(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=K(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){z(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){z(12)}},Le={};V(Ie,(function(e,t){Le[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Le.deleteProperty=function(e,t){return Le.set.call(this,e,t,void 0)},Le.set=function(e,t,n){return Ie.set.call(this,e[0],t,n,e[0])};var je=function(){function e(e){var t=this;this.O=Ee,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&z(6),void 0!==r&&"function"!=typeof r&&z(7),B(e)){var l=ie(t),u=me(t,e,void 0),s=!0;try{a=n(u),s=!1}finally{s?re(l):oe(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return ne(l,r),le(e,l)}),(function(e){throw re(l),e})):(ne(l,r),le(a,l))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===ke&&(a=void 0),t.D&&Z(a,!0),r){var c=[],f=[];ee("Patches").M(e,a,c,f),r(c,f)}return a}z(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))};var r,o,i=t.produce(e,n,(function(e,t){r=e,o=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,o]})):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){B(e)||z(8),U(e)&&(e=ye(e));var t=ie(this),n=me(this,e,void 0);return n[Oe].C=!0,oe(t),n},t.finishDraft=function(e,t){var n=(e&&e[Oe]).A;return ne(n,t),le(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!Ee&&z(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=ee("Patches").$;return U(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Ae=new je,Re=Ae.produce,De=(Ae.produceWithPatches.bind(Ae),Ae.setAutoFreeze.bind(Ae),Ae.setUseProxies.bind(Ae),Ae.applyPatches.bind(Ae),Ae.createDraft.bind(Ae),Ae.finishDraft.bind(Ae),Re);function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}function Fe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Me(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Me(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){Fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Be(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ve="function"==typeof Symbol&&Symbol.observable||"@@observable",He=function(){return Math.random().toString(36).substring(7).split("").join(".")},We={INIT:"@@redux/INIT"+He(),REPLACE:"@@redux/REPLACE"+He(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+He()}};function $e(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Be(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Be(1));return n($e)(e,t)}if("function"!=typeof e)throw new Error(Be(2));var o=e,i=t,a=[],l=a,u=!1;function s(){l===a&&(l=a.slice())}function c(){if(u)throw new Error(Be(3));return i}function f(e){if("function"!=typeof e)throw new Error(Be(4));if(u)throw new Error(Be(5));var t=!0;return s(),l.push(e),function(){if(t){if(u)throw new Error(Be(6));t=!1,s();var n=l.indexOf(e);l.splice(n,1),a=null}}}function d(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Be(7));if(void 0===e.type)throw new Error(Be(8));if(u)throw new Error(Be(9));try{u=!0,i=o(i,e)}finally{u=!1}for(var t=a=l,n=0;n<t.length;n++)(0,t[n])();return e}return d({type:We.INIT}),(r={dispatch:d,subscribe:f,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Be(10));o=e,d({type:We.REPLACE})}})[Ve]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Be(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[Ve]=function(){return this},e},r}function qe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Ge(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(Be(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=qe.apply(void 0,i)(n.dispatch),Ue(Ue({},n),{},{dispatch:r})}}}function Qe(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var Ke=Qe();Ke.withExtraArgument=Qe;var Xe,Ze=Ke,Je=(Xe=function(e,t){return Xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Xe(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Xe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ye=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},et=Object.defineProperty,tt=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,at=function(e,t,n){return t in e?et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},lt=function(e,t){for(var n in t||(t={}))ot.call(t,n)&&at(e,n,t[n]);if(rt)for(var r=0,o=rt(t);r<o.length;r++)n=o[r],it.call(t,n)&&at(e,n,t[n]);return e},ut=function(e,t){return tt(e,nt(t))},st="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?qe:qe.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var ct=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Je(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,Ye([void 0],e[0].concat(this)))):new(t.bind.apply(t,Ye([void 0],e.concat(this))))},t}(Array),ft=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Je(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,Ye([void 0],e[0].concat(this)))):new(t.bind.apply(t,Ye([void 0],e.concat(this))))},t}(Array);function dt(e){return B(e)?De(e,(function(){})):e}function pt(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return lt(lt({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function ht(e){var t,n={},r=[],o={addCase:function(e,t){var r="string"==typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,o},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[n,r,t]}function mt(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:dt(e.initialState),o=e.reducers||{},i=Object.keys(o),a={},l={},u={};function s(){var t="function"==typeof e.extraReducers?ht(e.extraReducers):[e.extraReducers],n=t[0],o=void 0===n?{}:n,i=t[1],a=void 0===i?[]:i,u=t[2],s=void 0===u?void 0:u,c=lt(lt({},o),l);return function(e,t,n,r){void 0===n&&(n=[]);var o,i=ht(t),a=i[0],l=i[1],u=i[2];if(function(e){return"function"==typeof e}(e))o=function(){return dt(e())};else{var s=dt(e);o=function(){return s}}function c(e,t){void 0===e&&(e=o());var n=Ye([a[t.type]],l.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[u]),n.reduce((function(e,n){if(n){var r;if(U(e))return void 0===(r=n(e,t))?e:r;if(B(e))return De(e,(function(e){return n(e,t)}));if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return c.getInitialState=o,c}(r,(function(e){for(var t in c)e.addCase(t,c[t]);for(var n=0,r=a;n<r.length;n++){var o=r[n];e.addMatcher(o.matcher,o.reducer)}s&&e.addDefaultCase(s)}))}return i.forEach((function(e){var n,r,i=o[e],s=t+"/"+e;"reducer"in i?(n=i.reducer,r=i.prepare):n=i,a[e]=n,l[s]=n,u[e]=r?pt(s,r):pt(s)})),{name:t,reducer:function(e,t){return n||(n=s()),n(e,t)},actions:u,caseReducers:a,getInitialState:function(){return n||(n=s()),n.getInitialState()}}}var yt=["name","message","stack","code"],vt=function(e,t){this.payload=e,this.meta=t},gt=function(e,t){this.payload=e,this.meta=t},bt=function(e){if("object"==typeof e&&null!==e){for(var t={},n=0,r=yt;n<r.length;n++){var o=r[n];"string"==typeof e[o]&&(t[o]=e[o])}return t}return{message:String(e)}};function wt(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}!function(){function e(e,t,n){var r=pt(e+"/fulfilled",(function(e,t,n,r){return{payload:e,meta:ut(lt({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),o=pt(e+"/pending",(function(e,t,n){return{payload:void 0,meta:ut(lt({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),i=pt(e+"/rejected",(function(e,t,r,o,i){return{payload:o,error:(n&&n.serializeError||bt)(e||"Rejected"),meta:ut(lt({},i||{}),{arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){},e}();return Object.assign((function(e){return function(l,u,s){var c,f=(null==n?void 0:n.idGenerator)?n.idGenerator(e):function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}(),d=new a;function p(e){c=e,d.abort()}var h=function(){return a=this,h=null,m=function(){var a,h,m,y,v,g;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),null===(w=y=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,e,{getState:u,extra:s}))||"object"!=typeof w||"function"!=typeof w.then?[3,2]:[4,y];case 1:y=b.sent(),b.label=2;case 2:if(!1===y||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=new Promise((function(e,t){return d.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:c||"Aborted"})}))})),l(o(f,e,null==(h=null==n?void 0:n.getPendingMeta)?void 0:h.call(n,{requestId:f,arg:e},{getState:u,extra:s}))),[4,Promise.race([v,Promise.resolve(t(e,{dispatch:l,getState:u,extra:s,requestId:f,signal:d.signal,abort:p,rejectWithValue:function(e,t){return new vt(e,t)},fulfillWithValue:function(e,t){return new gt(e,t)}})).then((function(t){if(t instanceof vt)throw t;return t instanceof gt?r(t.payload,f,e,t.meta):r(t,f,e)}))])];case 3:return m=b.sent(),[3,5];case 4:return g=b.sent(),m=g instanceof vt?i(null,f,e,g.payload,g.meta):i(g,f,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(m)&&m.meta.condition||l(m),[2,m]}var w}))},new Promise((function(e,t){var n=function(e){try{o(m.next(e))}catch(e){t(e)}},r=function(e){try{o(m.throw(e))}catch(e){t(e)}},o=function(t){return t.done?e(t.value):Promise.resolve(t.value).then(n,r)};o((m=m.apply(a,h)).next())}));var a,h,m}();return Object.assign(h,{abort:p,requestId:f,arg:e,unwrap:function(){return h.then(wt)}})}}),{pending:o,rejected:i,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}(),Object.assign;var xt="listenerMiddleware";pt(xt+"/add"),pt(xt+"/removeAll"),pt(xt+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:void 0!==n.g?n.g:globalThis);"undefined"!=typeof window&&window.requestAnimationFrame&&window.requestAnimationFrame,function(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[Oe];return Ie.get(t,e)},set:function(t){var n=this[Oe];Ie.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][Oe];if(!o.P)switch(o.i){case 5:r(o)&&pe(o);break;case 4:n(o)&&pe(o)}}}function n(e){for(var t=e.t,n=e.k,r=Te(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==Oe){var a=t[i];if(void 0===a&&!W(t,i))return!0;var l=n[i],u=l&&l[Oe];if(u?u.t!==a:!q(l,a))return!0}}var s=!!t[Oe];return r.length!==Te(t).length+(s?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var o={};!function(e,t){Pe[e]||(Pe[e]=t)}("ES5",{J:function(t,n){var r=Array.isArray(t),o=function(t,n){if(t){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,e(o,!0));return r}var i=Ne(n);delete i[Oe];for(var a=Te(i),l=0;l<a.length;l++){var u=a[l];i[u]=e(u,t||!!i[u].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:te(),P:!1,I:!1,R:{},l:n,t:t,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Oe,{value:i,writable:!0}),o},S:function(e,n,o){o?U(n)&&n[Oe].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[Oe];if(n){var o=n.t,i=n.k,a=n.R,l=n.i;if(4===l)V(i,(function(t){t!==Oe&&(void 0!==o[t]||W(o,t)?a[t]||e(i[t]):(a[t]=!0,pe(n)))})),V(o,(function(e){void 0!==i[e]||W(i,e)||(a[e]=!1,pe(n))}));else if(5===l){if(r(n)&&(pe(n),a.length=!0),i.length<o.length)for(var u=i.length;u<o.length;u++)a[u]=!1;else for(var s=o.length;s<i.length;s++)a[s]=!0;for(var c=Math.min(i.length,o.length),f=0;f<c;f++)i.hasOwnProperty(f)||(a[f]=!0),void 0===a[f]&&e(i[f])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}();var St="chat-content",Et=mt({name:"currentView",initialState:"chat-preview",reducers:{setView:function(e,t){return t.payload}}}),kt=Et.actions.setView,Ct=Et.reducer;function Ot(e){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ot(e)}function _t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){Pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ot(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ot(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var It=mt({name:"chatRooms",initialState:null,reducers:{initChatRooms:function(e,t){return t.payload},updateChatRooms:function(e,t){var n=t.payload;for(var r in n)e[r]=Nt(Nt({},e[r]),n[r]);return e},addChatRoom:function(e,t){var n=t.payload.roomId,r=t.payload.room;return Nt(Nt({},e),{},Pt({},n,r))},removeChatRoom:function(e,t){return delete e[t.payload.roomId],e},addChatInRoom:function(e,t){var n,r=t.payload,o=r.roomId,i=r.message;return Nt(Nt({},e),{},Pt({},o,Nt(Nt({},e[o]),{},{messages:[].concat((n=e[o].messages,function(e){if(Array.isArray(e))return _t(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return _t(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_t(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[i])})))},updateSingleChatInRoom:function(e,t){var n=t.payload,r=n.roomId,o=n.messageId,i=n.msgTrackingId,a=n.seen,l=n.delivered,u=e[r].messages.map((function(e){return e.messageId===i?Nt(Nt({},e),{},{messageId:o,seen:a,delivered:l}):e}));return Nt(Nt({},e),{},Pt({},r,Nt(Nt({},e[r]),{},{messages:u})))},updateSingleChatSeenInRoom:function(e,t){var n=t.payload,r=n.roomId,o=n.messageId,i=e[r].messages.map((function(e){return e.messageId===o?Nt(Nt({},e),{},{seen:!0,delivered:!0}):e}));return Nt(Nt({},e),{},Pt({},r,Nt(Nt({},e[r]),{},{messages:i})))},updateAllReceivedMessageStatus:function(e,t){var n,r=t.payload,o=r.roomId,i=r.selfRefId,a=null===(n=e[o].messages)||void 0===n?void 0:n.map((function(e){return e.senderReferenceId!==i?Nt(Nt({},e),{},{seen:!0,delivered:!0}):e}));return Nt(Nt({},e),{},Pt({},o,Nt(Nt({},e[o]),{},{messages:a})))},updateSingleChatAnimatedInRoom:function(e,t){var n=t.payload,r=n.roomId,o=n.messageId,i=e[r].messages.map((function(e){return e.messageId===o?Nt(Nt({},e),{},{animate:!1}):e}));return Nt(Nt({},e),{},Pt({},r,Nt(Nt({},e[r]),{},{messages:i})))}}}),Lt=It.actions,jt=Lt.initChatRooms,At=Lt.updateChatRooms,Rt=Lt.addChatRoom,Dt=Lt.removeChatRoom,Mt=Lt.addChatInRoom,Ft=Lt.updateSingleChatInRoom,zt=Lt.updateSingleChatSeenInRoom,Ut=Lt.updateAllReceivedMessageStatus,Bt=(Lt.updateSingleChatAnimatedInRoom,It.reducer),Vt=mt({name:"connectedUsers",initialState:null,reducers:{initUsers:function(e,t){return t.payload},addUser:function(e,t){return e[t.payload.userId]=t.payload.user,e}}}),Ht=Vt.actions,Wt=Ht.initUsers,$t=Ht.addUser,qt=Vt.reducer,Gt=mt({name:"selfProfile",initialState:null,reducers:{initSelf:function(e,t){return t.payload}}}),Qt=Gt.actions.initSelf,Kt=Gt.reducer,Xt=mt({name:"selectedRoom",initialState:null,reducers:{setSelectedRoom:function(e,t){return t.payload}}}),Zt=Xt.actions.setSelectedRoom,Jt=Xt.reducer;function Yt(e){return Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yt(e)}function en(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Yt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Yt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Yt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=mt({name:"announcementRoom",initialState:null,reducers:{initAnnouncement:function(e,t){return t.payload},updateAnnouncement:function(e,t){return nn(nn({},e),{},{messages:t.payload.messages||[]})},updateSingleChatInAnnouncement:function(e,t){var n=t.payload,r=n.messageId,o=n.msgTrackingId,i=n.seen,a=n.delivered,l=e.messages.map((function(e){return e.messageId===o?nn(nn({},e),{},{messageId:r,seen:i,delivered:a}):e}));return nn(nn({},e),{},{messages:l})},addChatInAnnouncement:function(e,t){return nn(nn({},e),{},{messages:[].concat((n=e.messages,function(e){if(Array.isArray(e))return en(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return en(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[t.payload])});var n}}}),an=on.actions,ln=an.initAnnouncement,un=an.updateAnnouncement,sn=an.addChatInAnnouncement,cn=an.updateSingleChatInAnnouncement,fn=on.reducer,dn=mt({name:"themeTracker",initialState:{theme:"dark"},reducers:{updateTheme:function(e,t){return{theme:t.payload}}}}),pn=dn.actions.updateTheme,hn=dn.reducer;function mn(e){return mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mn(e)}function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(n),!0).forEach((function(t){gn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==mn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==mn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===mn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bn=mt({name:"connectedUserToChatRoomLink",initialState:{},reducers:{initConnectedUserToChatRoomLink:function(e,t){return t.payload},addConnectedUserToChatRoomLink:function(e,t){var n=t.payload,r=n.roomId,o=n.participantRefId;return vn(vn({},e),{},gn({},o,r))}}}),wn=bn.actions,xn=wn.initConnectedUserToChatRoomLink,Sn=wn.addConnectedUserToChatRoomLink,En=bn.reducer;function kn(e){return kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kn(e)}function Cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(n),!0).forEach((function(t){_n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==kn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==kn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===kn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tn=mt({name:"unseenCount",initialState:{totalCount:0,customerCount:0,teamCount:0},reducers:{updateCount:function(e,t){return On(On({},e),t.payload)},clearTotalCount:function(e,t){return On(On({},e),{},{totalCount:0})},clearCount:function(e,t){return{totalCount:0,customerCount:0,teamCount:0}}}}),Nn=Tn.actions,Pn=Nn.updateCount,In=(Nn.clearCount,Nn.clearTotalCount),Ln=Tn.reducer,jn=mt({name:"chatIsOpen",initialState:!1,reducers:{updateChatIsOpenState:function(e,t){return t.payload}}}),An=jn.actions.updateChatIsOpenState,Rn=jn.reducer,Dn=mt({name:"token",initialState:null,reducers:{updateToken:function(e,t){return t.payload}}}),Mn=Dn.actions.updateToken,Fn=Dn.reducer,zn="ADMIN",Un="CUSTOMER",Bn=mt({name:"userRole",initialState:zn,reducers:{initRole:function(e,t){return t.payload}}}),Vn=Bn.actions.initRole,Hn=Bn.reducer,Wn="CUSTOMER",$n="TEAM",qn=mt({name:"chatPreviewType",initialState:$n,reducers:{updateChatPreviewType:function(e,t){return t.payload}}}),Gn=qn.actions.updateChatPreviewType,Qn={token:Fn,chatIsOpen:Rn,currentView:Ct,chatRooms:Bt,announcementRoom:fn,connectedUsers:qt,selfProfile:Kt,selectedRoom:Jt,themeTracker:hn,connectedUserToChatRoomLink:En,unseenCount:Ln,userRole:Hn,chatPreviewType:qn.reducer},Kn=n(8e3),Xn=n.n(Kn),Zn=n(4774),Jn=n.n(Zn);function Yn(e){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(e)}function er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tr(r.key),r)}}function tr(e){var t=function(e,t){if("object"!==Yn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Yn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Yn(t)?t:String(t)}var nr=function(){function e(t){var n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o="https://realtime.shipday.com",(r=tr(r="BASE_URL"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.token=t,this.connected=!1,this.createClient()}var t,n,r;return t=e,n=[{key:"createClient",value:function(){var e=new(Xn())(this.BASE_URL+"/ws/chat-messages?token="+this.token);this.stompClient=Jn().over(e),this.stompClient.heartbeat.incoming=6e4,this.stompClient.heartbeat.outgoing=3e4}},{key:"connect",value:function(e){var t=this;this.stompClient||this.createClient(),this.stompClient.connect({},(function(n){t.connected=!0,e()}),(function(){}))}},{key:"disconnect",value:function(e){this.connected=!1,this.stompClient&&this.stompClient.connected&&this.stompClient.disconnect(),this.stompClient=null}},{key:"reconnectHandler",value:function(){var e=this;this.stompClient.onclose=function(){e.connected&&(console.log("Reconnecting Websocket"),setTimeout((function(){e.connected})))}}},{key:"subscriber",value:function(e,t){try{this.stompClient.subscribe(e,(function(e){var n=JSON.parse(e.body);t(n)}))}catch(e){console.error(e)}}},{key:"subscribeIncomingChat",value:function(e){this.subscriber("/user/topic/chat-messages",e)}},{key:"subscribeChatConfirm",value:function(e){this.subscriber("/user/topic/chat-confirm",e)}},{key:"subscribeChatSeen",value:function(e){this.subscriber("/user/topic/ack-messages",e)}},{key:"subscribeRoomCreated",value:function(e){this.subscriber("/user/topic/room-created",e)}},{key:"sendMessage",value:function(){var e={message:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",roomId:arguments.length>1?arguments[1]:void 0,messageType:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"TEXT",msgTrackingId:arguments.length>3&&void 0!==arguments[3]?arguments[3]:null};this.stompClient.send("/ws/chat/send",{},JSON.stringify(e))}},{key:"sendACK",value:function(e){var t="/ws/chat/ack/delivered/"+e;this.stompClient.send(t,{},"{}")}},{key:"sendSeen",value:function(e){var t="/ws/chat/ack/seen/"+e;this.stompClient.send(t,{},"{}")}},{key:"createRoom",value:function(e){var t="/ws/chat/create/"+e;this.stompClient.send(t,{},"{}")}}],r=[{key:"getInstance",value:function(t){return e.instance||(e.instance=new e(t)),e.instance}}],n&&er(t.prototype,n),r&&er(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),rr=nr;function or(e){return or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},or(e)}function ir(e,t){return ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ir(e,t)}function ar(e){return ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ar(e)}function lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==or(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===or(o)?o:String(o)),r)}var o}function sr(e,t,n){return t&&ur(e.prototype,t),n&&ur(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var cr=function(){function e(t,n,r,o,i,a,l,u,s){var c=arguments.length>9&&void 0!==arguments[9]&&arguments[9];lr(this,e),this.message=t,this.roomId=n,this.roomName=r,this.senderReferenceId=o,this.sendAt=i,this.messageId=a,this.messageType=l,this.delivered=u,this.seen=s,this.animate=c}return sr(e,[{key:"getSenderReferenceId",value:function(){return this.senderReferenceId}},{key:"getSendAt",value:function(){return new Date(1e3*this.sendAt).getTime()}},{key:"getMessageId",value:function(){return this.messageId}},{key:"getMessageType",value:function(){return this.messageType}},{key:"isDelivered",value:function(){return this.delivered}},{key:"isSeen",value:function(){return this.seen}}]),e}(),fr=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0;lr(this,e),this.roomId=t,this.roomName=n,this.participants=o,this.messages=r.map((function(e){return new cr(e.message,e.roomId,e.roomName,e.senderReferenceId,e.sendAt,e.messageId,e.messageType,e.delivered,e.seen)})),this.sortMessages()}return sr(e,[{key:"sortMessages",value:function(){this.messages.sort((function(e,t){return e.sendAt-t.sendAt}))}},{key:"getLastMessage",value:function(){var e=this.messages[this.messages.length-1],t=e.getSendAt();return{message:e.message,sentTime:t}}},{key:"getAllMessages",value:function(){return this.messages}}]),e}(),dr=function(){function e(t,n,r,o,i,a,l){lr(this,e),this.involvedRooms=t,this.referenceId=n,this.name=r,this.imageUrl=o,this.lastSeenAt=i,this.enabled=a,this.online=l}return sr(e,[{key:"getInvolvedRooms",value:function(){return this.involvedRooms}},{key:"getReferenceId",value:function(){return this.referenceId}},{key:"getName",value:function(){return this.name}},{key:"getImageUrl",value:function(){return this.imageUrl}},{key:"getLastSeenAt",value:function(){return this.lastSeenAt}},{key:"isEnabled",value:function(){return this.enabled}},{key:"isOnline",value:function(){return this.online}}]),e}(),pr=function(){function e(t,n,r,o,i,a,l){lr(this,e),this.referenceId=t,this.name=n,this.imageUrl=r,this.lastSeenAt=o,this.enabled=i,this.commonRoomId=a,this.driverChatEnabled=l}return sr(e,[{key:"getReferenceId",value:function(){return this.referenceId}},{key:"getName",value:function(){return this.name}},{key:"getImageUrl",value:function(){return this.imageUrl}},{key:"getLastSeenAt",value:function(){return this.lastSeenAt}},{key:"isEnabled",value:function(){return this.enabled}},{key:"getCommonRoomId",value:function(){return this.commonRoomId}},{key:"isDriverChatEnabled",value:function(){return this.driverChatEnabled}}]),e}(),hr=function(){function e(t,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];lr(this,e),this.userRefId=n,this.roomId=t,this.userImgUrl=r,this.userName=o,this.announcement=i}return sr(e,[{key:"isAnnouncement",value:function(){return this.announcement}},{key:"getName",value:function(){return this.userName}},{key:"getRoomId",value:function(){return this.roomId}},{key:"getUserRefId",value:function(){return this.userRefId}},{key:"getImgUrl",value:function(){return this.userImgUrl}}]),e}(),mr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ir(e,t)}(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=ar(t);if(n){var o=ar(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===or(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e,t,n){return lr(this,o),r.call(this,e,t,n)}return sr(o)}(fr),yr=function(e){var t={},n={};return e.forEach((function(e){e&&e.roomName.startsWith("company_")?n=xr(e.roomId,e.roomName,e.chatMessages):t[e.roomId]=wr(e.roomId,e.roomName,e.chatMessages)})),{chatRoomsObj:t,announcementRoom:n}},vr=function(e,t){var n={},r={},o={};return t.forEach((function(t){var i=[],a=t.roomId,l=t.roomName,u=t.roomParticipants;l.startsWith("company_")?r=xr(a,l,[]):(u.forEach((function(t){t.referenceId!==e&&(o[t.referenceId]=a,i.push(t.referenceId))})),n[a]=wr(a,l,[],i))})),{chatRoomsObj:n,announcementRoom:r,connectedUserToChatRoomsLink:o}},gr=function(e,t,n,r,o,i,a,l,u,s){return new cr(e,t,n,r,o,i,a,l,u,s)},br=function(e,t,n,r,o,i,a){return new pr(e,t,n,r,o,i,a)},wr=function(e,t){return new fr(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3?arguments[3]:void 0)},xr=function(e,t){return new mr(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])},Sr=function(){var e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){e[t.referenceId]=Er(t.involvedRooms,t.referenceId,t.name,t.imageUrl,t.lastSeenAt,t.enabled,t.online)})),e},Er=function(e,t,n,r,o,i,a){return new dr(e,t,n,r,o,i,a)},kr=function(e,t,n,r,o){return new hr(e,t,n,r,o)},Cr="CHAT_WEBSOCKET_CONNECT",Or="CHAT_WEBSOCKET_DISCONNECT",_r="CHAT_WEBSOCKET_SEND_MESSAGE",Tr="CHAT_WEBSOCKET_SEND_SEEN",Nr="CHAT_WEBSOCKET_CREATE_ROOM",Pr=function(e){var t,n=function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,new ct);return n&&(function(e){return"boolean"==typeof e}(n)?r.push(Ze):r.push(Ze.withExtraArgument(n.extraArgument))),r}(e)},r=e||{},o=r.reducer,i=void 0===o?void 0:o,a=r.middleware,l=void 0===a?n():a,u=r.devTools,s=void 0===u||u,c=r.preloadedState,f=void 0===c?void 0:c,d=r.enhancers,p=void 0===d?void 0:d;if("function"==typeof i)t=i;else{if(!function(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:We.INIT}))throw new Error(Be(12));if(void 0===n(void 0,{type:We.PROBE_UNKNOWN_ACTION()}))throw new Error(Be(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},l=0;l<a.length;l++){var u=a[l],s=n[u],c=e[u],f=s(c,t);if(void 0===f)throw t&&t.type,new Error(Be(14));o[u]=f,r=r||f!==c}return(r=r||a.length!==Object.keys(e).length)?o:e}}(i)}var h=l;"function"==typeof h&&(h=h(n));var m=Ge.apply(void 0,h),y=qe;s&&(y=st(lt({trace:!1},"object"==typeof s&&s)));var v=new ft(m),g=v;return Array.isArray(p)?g=Ye([m],p):"function"==typeof p&&(g=p(v)),$e(t,f,y.apply(void 0,g))}({reducer:Qn,middleware:function(e){return e({serializableCheck:!1}).concat((t=null,function(e){return function(n){return function(r){var o=e.dispatch,i=e.getState;switch(r.type){case Cr:(t=rr.getInstance(r.payload.token)).connect((function(){o({type:"CHAT_WEBSOCKET_OPEN",payload:!0}),t.subscribeIncomingChat((function(e){!function(e){var n=e.message,r=e.messageId,a=e.messageType,l=e.roomId,u=e.senderReferenceId,s=e.sendAt,c=(e.delivered,e.seen),f=i(),d=f.announcementRoom,p=f.selectedRoom,h=f.currentView,m=f.chatIsOpen;t.sendACK(r);var y=gr(n,l,"",u,s,r,a,!0,c,!0);h===St&&p.roomId===l&&m&&(y.seen=!0,t.sendSeen(r)),d.roomId!==l?o(Mt({roomId:l,message:y})):o(sn(y))}(e)})),t.subscribeChatConfirm((function(e){var t=e.message;!function(e,t,n,r,a){i().announcementRoom.roomId===t?o(cn({messageId:e,msgTrackingId:n,seen:r,delivered:a})):o(Ft({roomId:t,messageId:e,msgTrackingId:n,seen:r,delivered:a}))}(t.messageId,t.roomId,e.msgTrackingId,t.seen,t.delivered)})),t.subscribeRoomCreated((function(e){!function(e){var t=e.roomId,n=e.roomName,r=e.roomParticipants,a=i(),l=a.connectedUserToChatRoomLink,u=a.connectedUsers,s=a.selfProfile,c=a.selectedRoom,f=[],d=null,p=null;r.forEach((function(e){e.referenceId!==s.referenceId&&(f.push(e.referenceId),p=Er(e.involvedRooms,e.referenceId,e.name,e.imageUrl,e.lastSeenAt,e.enabled,e.online))})),1===f.length&&(d=f[0]),void 0===u[d]&&o($t({userId:d,user:p}));var h=l[d],m=wr(t,n,[],f);h?(o(Dt({roomId:h})),o(Rt({roomId:t,room:m})),c.roomId===h&&o(Zt(kr(t,c.userRefId,c.userImgUrl,c.userName,!1)))):o(Rt({roomId:t,room:m}))}(e)})),t.subscribeChatSeen((function(e){!function(e){var t=e.messageId,n=e.roomId;n===i().announcementRoom.roomId||o(zt({roomId:n,messageId:t}))}(e)}))}));break;case Or:t&&t.disconnect();break;case _r:t.sendMessage(r.payload.msg,r.payload.roomId,r.payload.type,r.payload.msgTrackingId);break;case"CHAT_WEBSOCKET_SEND_ACK":t.sendACK(r.payload.messageId);break;case Tr:var a=i(),l=a.selfProfile,u=a.announcementRoom,s=a.chatRooms,c=r.payload.roomId,f=l.referenceId;u.roomId===c||s[c].messages.forEach((function(e){e.senderReferenceId===f||e.seen||t.sendSeen(e.messageId)}));break;case Nr:t.createRoom(r.payload.referenceId);break;default:return n(r)}}}}));var t}}),Ir=function(){var t=N((function(e){return e.chatPreviewType})),n=M(),r=N((function(e){return e.unseenCount})),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return 0===e?"":"".concat(e)},i=function(e){n(Gn(e))};return e.createElement("div",{className:"chat-header-types-wrapper"},e.createElement("div",{className:"chat-header-types"},e.createElement("div",{className:"chat-single-type-btn chat-type-team ".concat(t===$n?"chat-type-selected":""),onClick:function(){return i($n)}},e.createElement("div",null,"Team"),r.teamCount>0&&e.createElement("div",{className:"chat-type-unseen-count"},o(r.teamCount))),e.createElement("div",{className:"chat-single-type-btn chat-type-others ".concat(t===Wn?"chat-type-selected":""),onClick:function(){return i(Wn)}},e.createElement("div",null,"Customer"),r.customerCount>0&&e.createElement("div",{className:"chat-type-unseen-count"},o(r.customerCount)))))},Lr=function(t){var n=t.name;return e.createElement("div",{className:"custom-user-img"},function(e){var t=e.split(" ");return t.length>1?t[0][0].toUpperCase()+t[1][0].toUpperCase():t[0].substring(0,2).toUpperCase()}(n))};function jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ar=function(t){var n=t.imgSrc,r=t.name,o=t.additionalClass,i=void 0===o?"":o,a=t.showActiveStatus,l=void 0!==a&&a,u=t.activeStatus,s=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(!1),2),c=s[0],f=s[1];return e.createElement("div",{className:"chat-sender-img "+i},"Announcement"===n?e.createElement("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("circle",{cx:"20",cy:"20",r:"20",fill:"#17C289"}),e.createElement("circle",{cx:"20",cy:"20",r:"20",fill:"url(#paint0_linear_1615_8476)",fillOpacity:"0.2"}),e.createElement("path",{d:"M18.6116 16.25C20.5257 16.25 22.3577 15.5117 23.7249 14.1445L24.764 13.1055C25.3108 12.5586 26.2679 12.9414 26.2679 13.7344V17.6719C26.76 17.918 27.1429 18.5742 27.1429 19.3125C27.1429 20.0781 26.76 20.7344 26.2679 20.9805V24.918C26.2679 25.7109 25.3108 26.0938 24.764 25.5469L23.7249 24.5078C22.4124 23.1953 20.6624 22.4297 18.8304 22.4023V25.2188C18.8304 26.0664 18.1194 26.75 17.2991 26.75H16.4241C15.5765 26.75 14.8929 26.0664 14.8929 25.2188V22.375C13.9085 22.375 13.1429 21.6094 13.1429 20.625V18C13.1429 17.043 13.9085 16.25 14.8929 16.25H18.6116ZM24.9554 14.7734L24.6546 15.0742C23.096 16.6328 21.0179 17.5078 18.8304 17.5625V21.0898C21.0179 21.1172 23.096 22.0195 24.6546 23.5781L24.9554 23.8789V14.7734ZM16.2054 25.2188C16.2054 25.3555 16.2874 25.4375 16.4241 25.4375H17.2991C17.4085 25.4375 17.5179 25.3555 17.5179 25.2188V22.375H16.2054V25.2188ZM14.4554 18V20.625C14.4554 20.8711 14.6468 21.0625 14.8929 21.0625H17.5179V17.5625H14.8929C14.6468 17.5625 14.4554 17.7812 14.4554 18Z",fill:"white"}),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_1615_8476",x1:"20",y1:"0",x2:"20",y2:"40",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"white"}),e.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})))):c||null===n?e.createElement(Lr,{name:r}):e.createElement("img",{alt:r,src:n,onError:function(e){f(!0)}}),l?u?e.createElement("div",{className:"chat-active-identity chat-active"}):e.createElement("div",{className:"chat-active-identity chat-inactive"}):null)},Rr=function(e){return new Date(1e3*e).getTime()},Dr=n(7911),Mr={};function Fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Mr.styleTagTransform=m(),Mr.setAttributes=f(),Mr.insert=s().bind(null,"head"),Mr.domAPI=l(),Mr.insertStyleElement=p(),i()(Dr.Z,Mr),Dr.Z&&Dr.Z.locals&&Dr.Z.locals;var zr=function(t){var n=t.imgSrc,r=t.text,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(!1),2),i=o[0],a=o[1],l=(0,e.useRef)(null),u=(0,e.useRef)(null);return(0,e.useEffect)((function(){var e;i&&l.current?l.current.classList.add("zoom-in"):null===(e=l.current)||void 0===e||e.classList.remove("zoom-in")}),[i]),(0,e.useEffect)((function(){return function(){var e;null===(e=l.current)||void 0===e||e.classList.remove("zoom-in")}}),[]),e.createElement("div",null,e.createElement("div",{className:"chat-image-preview",onClick:function(){a(!0)}},e.createElement("img",{src:n,alt:r})),i&&e.createElement("div",{className:"chat-modal-overlay"},e.createElement("button",{className:"chat-modal-close-btn",onClick:function(){l.current.classList.remove("zoom-in"),a(!1)}},e.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M10.6875 9.3125C11.0938 9.6875 11.0938 10.3438 10.6875 10.7188C10.5 10.9062 10.25 11 10 11C9.71875 11 9.46875 10.9062 9.28125 10.7188L6 7.4375L2.6875 10.7188C2.5 10.9062 2.25 11 2 11C1.71875 11 1.46875 10.9062 1.28125 10.7188C0.875 10.3438 0.875 9.6875 1.28125 9.3125L4.5625 6L1.28125 2.71875C0.875 2.34375 0.875 1.6875 1.28125 1.3125C1.65625 0.90625 2.3125 0.90625 2.6875 1.3125L6 4.59375L9.28125 1.3125C9.65625 0.90625 10.3125 0.90625 10.6875 1.3125C11.0938 1.6875 11.0938 2.34375 10.6875 2.71875L7.40625 6.03125L10.6875 9.3125Z",fill:"#242424"}))),e.createElement("div",{className:"chat-modal-content"},e.createElement("div",{ref:u,className:"chat-modal-image-wrapper"},e.createElement("img",{ref:l,className:"chat-modal-image",src:n,alt:r})))))},Ur=n(488),Br=(Ur.domToReact,Ur.htmlToDOM,Ur.attributesToProps,Ur.Comment,Ur.Element,Ur.ProcessingInstruction,Ur.Text,Ur),Vr=function(t){var n=t.isSenderSelf,r=t.seen;return e.createElement(e.Fragment,null,n?r?e.createElement("svg",{width:"14",height:"12",viewBox:"0 -4 16 14",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M9.76559 1.23434L9.76487 1.23505L4.81178 6.20819L2.58793 3.98434C2.19931 3.59572 1.56046 3.59572 1.17184 3.98434C0.776037 4.38014 0.744949 5.02713 1.17968 5.42976L4.08593 8.33601C4.47577 8.75648 5.12774 8.75649 5.51758 8.33601L11.1738 2.67975C11.6086 2.27712 11.5775 1.63013 11.1817 1.23434C10.7931 0.845716 10.1542 0.845716 9.76559 1.23434Z",fill:"white",stroke:"#17C289"}),e.createElement("path",{d:"M9.76559 6.46866L9.76487 6.46938L4.81178 11.4319L2.58793 8.99706C2.19931 8.60834 1.56046 8.60834 1.17184 8.99706C0.776037 9.39266 0.744949 10.0396 1.17968 10.4422L4.08593 13.3485C4.47577 13.778 5.12774 13.7781 5.51758 13.3485L11.1738 7.68127C11.6086 7.27864 11.5775 6.63165 11.1817 6.23567C10.7931 5.84705 10.1542 5.84705 9.76559 6.23567Z",fill:"white",stroke:"#17C289",transform:"translate(5 -5)"})):e.createElement("svg",{width:"12",height:"10",viewBox:"0 -2 12 10",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M9.76559 1.23434L9.76487 1.23505L4.81178 6.20819L2.58793 3.98434C2.19931 3.59572 1.56046 3.59572 1.17184 3.98434C0.776037 4.38014 0.744949 5.02713 1.17968 5.42976L4.08593 8.33601C4.47577 8.75648 5.12774 8.75649 5.51758 8.33601L11.1738 2.67975C11.6086 2.27712 11.5775 1.63013 11.1817 1.23434C10.7931 0.845716 10.1542 0.845716 9.76559 1.23434Z",fill:"white",stroke:"#17C289"})):null)},Hr="TEXT",Wr="IMAGE",$r=function(t){t.roomId,t.messageId;var n,r,o,i=t.messageContent,a=t.messageType,l=t.sendTime,u=t.isSenderSelf,s=t.senderImg,c=t.senderName,f=t.seen,d=(t.delivered,t.entangleWithNext);return e.createElement("div",{className:"chat-single-wrapper"},e.createElement("div",{className:"chat-sender-img-container"},!u&&!d&&e.createElement(Ar,{name:c,additionalClass:"chat-sender-img-sm",imgSrc:s,showActiveStatus:!1})),e.createElement("div",{className:"chat-single-container ".concat(u?"chat-single-sent":"chat-single-received")},e.createElement("div",{className:"chat-msg-content"},function(){switch(a){case Hr:var t=i.replace(/\+?\d{5,}/g,(function(e){return'<a class="chat-inline-phone" href="tel:'.concat(e,'">').concat(e," </a>")})),n=t.replace(/(?:https?|ftp):\/\/[\S]+/gi,(function(e){return'<a class="chat-inline-link" href="'.concat(e,'" target="_blank" rel="noopener noreferrer">').concat(e," </a>")}));return t=t.toString(),n=n.toString(),Br(n);case Wr:return e.createElement(zr,{imgSrc:i});default:return null}}()),e.createElement("div",{className:"chat-msg-status-container ".concat(u?"":"justify-start")},e.createElement("div",{className:"chat-sent-time"},((r=(n=new Date(l)).getHours())%12||12)+":"+((o=n.getMinutes())<10?"0"+o:o)+" "+(r>=12?"PM":"AM")),e.createElement(Vr,{isSenderSelf:u,seen:f}))))},qr=function(t){var n=t.dateStamp;return e.createElement("div",{className:"chat-date-span"},function(e){try{var t=new Date(e),n=new Date,r=new Date(n);if(r.setDate(r.getDate()-1),t.toDateString()===n.toDateString())return"Today";if(t.toDateString()===r.toDateString())return"Yesterday";var o=new Date(n);return o.setDate(n.getDate()-n.getDay()),t>=o?t.toLocaleString("en-US",{weekday:"long"}):t.toLocaleString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch(e){return console.error(e),""}}(n))},Gr=function(){return e.createElement("div",{className:"empty-msgs-list"},e.createElement("span",null,"Type your first message below to start the conversation"))};function Qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Kr=function(){var t,n=N((function(e){return e.selfProfile})),r=N((function(e){return e.chatRooms})),o=N((function(e){return e.selectedRoom})),i=N((function(e){return e.announcementRoom})),a=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(!1),2),l=a[0],u=a[1],s=(0,e.useRef)(o.isAnnouncement()?i.messages.length||0:(null===(t=r[o.getRoomId()])||void 0===t?void 0:t.messages.length)||0),c=(0,e.useRef)(null);if((0,e.useEffect)((function(){c.current.scrollTop=c.current.scrollHeight,u(!0)}),[]),(0,e.useEffect)((function(){if(l){var e,t=c.current,n=t.scrollHeight,r=t.scrollTop;requestAnimationFrame((function o(i){e||(e=i);var a=i-e;t.scrollTop=function(e,t,n,r){return n*(e/=r)*e*e+t}(a,r,n-r,300),a<300&&requestAnimationFrame(o)}))}}),[s.current]),(0,e.useEffect)((function(){var e;o.isAnnouncement()?s.current=i.messages.length||0:s.current=(null===(e=r[o.getRoomId()])||void 0===e?void 0:e.messages.length)||0}),[i,r,o]),null===n||null===r)return e.createElement(e.Fragment,null);var f=[];try{var d;f=o.isAnnouncement()?i.messages||[]:(null===(d=r[o.getRoomId()])||void 0===d?void 0:d.messages)||[]}catch(e){console.error(e),f=[]}var p,h,m=n.getReferenceId(),y=o.getImgUrl(),v=o.getName();return e.createElement("div",{className:"chat-msgs"},e.createElement("div",{className:"chat-msgs-list",ref:c},(p=[],h=null,f.forEach((function(t,n){var r=t.senderReferenceId,o=r===m,i=n<f.length-1&&r===f[n+1].senderReferenceId,a=new Date(Rr(t.sendAt)).toLocaleDateString();a!==h&&(p.push(e.createElement(qr,{key:a,dateStamp:Rr(t.sendAt)})),h=a),p.push(e.createElement($r,{roomId:t.roomId,messageId:t.messageId,key:t.messageId,messageContent:t.message,messageType:t.messageType,sendTime:Rr(t.sendAt),isSenderSelf:o,senderName:v,senderImg:o?null:y,entangleWithNext:i,seen:t.seen,delivered:t.delivered}))})),0===p.length?e.createElement(Gr,null):p)))};function Xr(e){return Xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xr(e)}function Zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zr(Object(n),!0).forEach((function(t){Yr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Xr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Xr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Xr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eo=function(){for(var e="",t=0;t<5;t++){var n=Math.floor(62*Math.random());e+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(n)}return e},to=function(e){var t=e.referenceId,n=new Map;return e.involvedRooms.forEach((function(e){e.roomParticipants.forEach((function(e){t!==e.referenceId&&n.set(e.referenceId,e)}))})),Array.from(n.values())},no=function(e,t){for(var n in e)n.includes("admin_")?(e[n].imageUrl=t.companyImg,e[n].name=t.companyName):(e[n].imageUrl=t.driverImg,e[n].name=t.driverName);return e};function ro(e,t){return function(){return e.apply(t,arguments)}}const{toString:oo}=Object.prototype,{getPrototypeOf:io}=Object,ao=(lo=Object.create(null),e=>{const t=oo.call(e);return lo[t]||(lo[t]=t.slice(8,-1).toLowerCase())});var lo;const uo=e=>(e=e.toLowerCase(),t=>ao(t)===e),so=e=>t=>typeof t===e,{isArray:co}=Array,fo=so("undefined"),po=uo("ArrayBuffer"),ho=so("string"),mo=so("function"),yo=so("number"),vo=e=>null!==e&&"object"==typeof e,go=e=>{if("object"!==ao(e))return!1;const t=io(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},bo=uo("Date"),wo=uo("File"),xo=uo("Blob"),So=uo("FileList"),Eo=uo("URLSearchParams");function ko(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),co(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Co(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Oo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,_o=e=>!fo(e)&&e!==Oo,To=(No="undefined"!=typeof Uint8Array&&io(Uint8Array),e=>No&&e instanceof No);var No;const Po=uo("HTMLFormElement"),Io=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Lo=uo("RegExp"),jo=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ko(n,((n,o)=>{!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)},Ao="abcdefghijklmnopqrstuvwxyz",Ro="0123456789",Do={DIGIT:Ro,ALPHA:Ao,ALPHA_DIGIT:Ao+Ao.toUpperCase()+Ro},Mo=uo("AsyncFunction");var Fo={isArray:co,isArrayBuffer:po,isBuffer:function(e){return null!==e&&!fo(e)&&null!==e.constructor&&!fo(e.constructor)&&mo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||mo(e.append)&&("formdata"===(t=ao(e))||"object"===t&&mo(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&po(e.buffer),t},isString:ho,isNumber:yo,isBoolean:e=>!0===e||!1===e,isObject:vo,isPlainObject:go,isUndefined:fo,isDate:bo,isFile:wo,isBlob:xo,isRegExp:Lo,isFunction:mo,isStream:e=>vo(e)&&mo(e.pipe),isURLSearchParams:Eo,isTypedArray:To,isFileList:So,forEach:ko,merge:function e(){const{caseless:t}=_o(this)&&this||{},n={},r=(r,o)=>{const i=t&&Co(n,o)||o;go(n[i])&&go(r)?n[i]=e(n[i],r):go(r)?n[i]=e({},r):co(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ko(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(ko(t,((t,r)=>{n&&mo(t)?e[r]=ro(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&io(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:ao,kindOfTest:uo,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(co(e))return e;let t=e.length;if(!yo(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Po,hasOwnProperty:Io,hasOwnProp:Io,reduceDescriptors:jo,freezeMethods:e=>{jo(e,((t,n)=>{if(mo(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];mo(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return co(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Co,global:Oo,isContextDefined:_o,ALPHABET:Do,generateString:(e=16,t=Do.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&mo(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(vo(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=co(e)?[]:{};return ko(e,((e,t)=>{const i=n(e,r+1);!fo(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Mo,isThenable:e=>e&&(vo(e)||mo(e))&&mo(e.then)&&mo(e.catch)};function zo(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Fo.inherits(zo,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:Fo.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Uo=zo.prototype,Bo={};["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((e=>{Bo[e]={value:e}})),Object.defineProperties(zo,Bo),Object.defineProperty(Uo,"isAxiosError",{value:!0}),zo.from=(e,t,n,r,o,i)=>{const a=Object.create(Uo);return Fo.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),zo.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var Vo=zo;function Ho(e){return Fo.isPlainObject(e)||Fo.isArray(e)}function Wo(e){return Fo.endsWith(e,"[]")?e.slice(0,-2):e}function $o(e,t,n){return e?e.concat(t).map((function(e,t){return e=Wo(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const qo=Fo.toFlatObject(Fo,{},null,(function(e){return/^is[A-Z]/.test(e)}));var Go=function(e,t,n){if(!Fo.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Fo.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Fo.isUndefined(t[e])}))).metaTokens,o=n.visitor||s,i=n.dots,a=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Fo.isSpecCompliantForm(t);if(!Fo.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(Fo.isDate(e))return e.toISOString();if(!l&&Fo.isBlob(e))throw new Vo("Blob is not supported. Use a Buffer instead.");return Fo.isArrayBuffer(e)||Fo.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function s(e,n,o){let l=e;if(e&&!o&&"object"==typeof e)if(Fo.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Fo.isArray(e)&&function(e){return Fo.isArray(e)&&!e.some(Ho)}(e)||(Fo.isFileList(e)||Fo.endsWith(n,"[]"))&&(l=Fo.toArray(e)))return n=Wo(n),l.forEach((function(e,r){!Fo.isUndefined(e)&&null!==e&&t.append(!0===a?$o([n],r,i):null===a?n:n+"[]",u(e))})),!1;return!!Ho(e)||(t.append($o(o,n,i),u(e)),!1)}const c=[],f=Object.assign(qo,{defaultVisitor:s,convertValue:u,isVisitable:Ho});if(!Fo.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Fo.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),Fo.forEach(n,(function(n,i){!0===(!(Fo.isUndefined(n)||null===n)&&o.call(t,n,Fo.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),c.pop()}}(e),t};function Qo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ko(e,t){this._pairs=[],e&&Go(e,this,t)}const Xo=Ko.prototype;Xo.append=function(e,t){this._pairs.push([e,t])},Xo.toString=function(e){const t=e?function(t){return e.call(this,t,Qo)}:Qo;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Zo=Ko;function Jo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Yo(e,t,n){if(!t)return e;const r=n&&n.encode||Jo,o=n&&n.serialize;let i;if(i=o?o(t,n):Fo.isURLSearchParams(t)?t.toString():new Zo(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}var ei=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Fo.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ti={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ni={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Zo,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},ri=function(e){function t(e,n,r,o){let i=e[o++];const a=Number.isFinite(+i),l=o>=e.length;return i=!i&&Fo.isArray(r)?r.length:i,l?(Fo.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&Fo.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Fo.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(Fo.isFormData(e)&&Fo.isFunction(e.entries)){const n={};return Fo.forEachEntry(e,((e,r)=>{t(function(e){return Fo.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const oi={"Content-Type":void 0},ii={transitional:ti,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Fo.isObject(e);if(o&&Fo.isHTMLForm(e)&&(e=new FormData(e)),Fo.isFormData(e))return r&&r?JSON.stringify(ri(e)):e;if(Fo.isArrayBuffer(e)||Fo.isBuffer(e)||Fo.isStream(e)||Fo.isFile(e)||Fo.isBlob(e))return e;if(Fo.isArrayBufferView(e))return e.buffer;if(Fo.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Go(e,new ni.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ni.isNode&&Fo.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Fo.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Go(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Fo.isString(e))try{return(0,JSON.parse)(e),Fo.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ii.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&Fo.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Vo.from(e,Vo.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ni.classes.FormData,Blob:ni.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Fo.forEach(["delete","get","head"],(function(e){ii.headers[e]={}})),Fo.forEach(["post","put","patch"],(function(e){ii.headers[e]=Fo.merge(oi)}));var ai=ii;const li=Fo.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"]),ui=Symbol("internals");function si(e){return e&&String(e).trim().toLowerCase()}function ci(e){return!1===e||null==e?e:Fo.isArray(e)?e.map(ci):String(e)}function fi(e,t,n,r,o){return Fo.isFunction(r)?r.call(this,t,n):(o&&(t=n),Fo.isString(t)?Fo.isString(r)?-1!==t.indexOf(r):Fo.isRegExp(r)?r.test(t):void 0:void 0)}class di{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=si(t);if(!o)throw new Error("header name must be a non-empty string");const i=Fo.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ci(e))}const i=(e,t)=>Fo.forEach(e,((e,n)=>o(e,n,t)));return Fo.isPlainObject(e)||e instanceof this.constructor?i(e,t):Fo.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&li[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=si(e)){const n=Fo.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Fo.isFunction(t))return t.call(this,e,n);if(Fo.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=si(e)){const n=Fo.findKey(this,e);return!(!n||void 0===this[n]||t&&!fi(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=si(e)){const o=Fo.findKey(n,e);!o||t&&!fi(0,n[o],o,t)||(delete n[o],r=!0)}}return Fo.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!fi(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Fo.forEach(this,((r,o)=>{const i=Fo.findKey(n,o);if(i)return t[i]=ci(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=ci(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Fo.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Fo.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ui]=this[ui]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=si(e);t[r]||(function(e,t){const n=Fo.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Fo.isArray(e)?e.forEach(r):r(e),this}}di.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Fo.freezeMethods(di.prototype),Fo.freezeMethods(di);var pi=di;function hi(e,t){const n=this||ai,r=t||n,o=pi.from(r.headers);let i=r.data;return Fo.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function mi(e){return!(!e||!e.__CANCEL__)}function yi(e,t,n){Vo.call(this,null==e?"canceled":e,Vo.ERR_CANCELED,t,n),this.name="CanceledError"}Fo.inherits(yi,Vo,{__CANCEL__:!0});var vi=yi,gi=ni.isStandardBrowserEnv?{write:function(e,t,n,r,o,i){const a=[];a.push(e+"="+encodeURIComponent(t)),Fo.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Fo.isString(r)&&a.push("path="+r),Fo.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function bi(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var wi=ni.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Fo.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function xi(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(l){const u=Date.now(),s=r[a];o||(o=u),n[i]=l,r[i]=u;let c=a,f=0;for(;c!==i;)f+=n[c++],c%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o<t)return;const d=s&&u-s;return d?Math.round(1e3*f/d):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-n,u=r(l);n=i;const s={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:o};s[t?"download":"upload"]=!0,e(s)}}const Si={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=pi.from(e.headers).normalize(),i=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}Fo.isFormData(r)&&(ni.isStandardBrowserEnv||ni.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const s=bi(e.baseURL,e.url);function c(){if(!u)return;const r=pi.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Vo("Request failed with status code "+n.status,[Vo.ERR_BAD_REQUEST,Vo.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),l()}),(function(e){n(e),l()}),{data:i&&"text"!==i&&"json"!==i?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),Yo(s,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=c:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(c)},u.onabort=function(){u&&(n(new Vo("Request aborted",Vo.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new Vo("Network Error",Vo.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||ti;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Vo(t,r.clarifyTimeoutError?Vo.ETIMEDOUT:Vo.ECONNABORTED,e,u)),u=null},ni.isStandardBrowserEnv){const t=(e.withCredentials||wi(s))&&e.xsrfCookieName&&gi.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&Fo.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),Fo.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&"json"!==i&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",xi(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",xi(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{u&&(n(!t||t.type?new vi(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(s);f&&-1===ni.protocols.indexOf(f)?n(new Vo("Unsupported protocol "+f+":",Vo.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};Fo.forEach(Si,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));function Ei(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vi(null,e)}function ki(e){return Ei(e),e.headers=pi.from(e.headers),e.data=hi.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),(e=>{e=Fo.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;o<t&&(n=e[o],!(r=Fo.isString(n)?Si[n.toLowerCase()]:n));o++);if(!r){if(!1===r)throw new Vo(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(Fo.hasOwnProp(Si,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!Fo.isFunction(r))throw new TypeError("adapter is not a function");return r})(e.adapter||ai.adapter)(e).then((function(t){return Ei(e),t.data=hi.call(e,e.transformResponse,t),t.headers=pi.from(t.headers),t}),(function(t){return mi(t)||(Ei(e),t&&t.response&&(t.response.data=hi.call(e,e.transformResponse,t.response),t.response.headers=pi.from(t.response.headers))),Promise.reject(t)}))}const Ci=e=>e instanceof pi?e.toJSON():e;function Oi(e,t){t=t||{};const n={};function r(e,t,n){return Fo.isPlainObject(e)&&Fo.isPlainObject(t)?Fo.merge.call({caseless:n},e,t):Fo.isPlainObject(t)?Fo.merge({},t):Fo.isArray(t)?t.slice():t}function o(e,t,n){return Fo.isUndefined(t)?Fo.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Fo.isUndefined(t))return r(void 0,t)}function a(e,t){return Fo.isUndefined(t)?Fo.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(e,t)=>o(Ci(e),Ci(t),!0)};return Fo.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=u[r]||o,a=i(e[r],t[r],r);Fo.isUndefined(a)&&i!==l||(n[r]=a)})),n}const _i={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{_i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ti={};_i.transitional=function(e,t,n){function r(e,t){return"[Axios v1.4.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Vo(r(o," has been removed"+(t?" in "+t:"")),Vo.ERR_DEPRECATED);return t&&!Ti[o]&&(Ti[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Ni={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Vo("options must be an object",Vo.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Vo("option "+i+" must be "+n,Vo.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Vo("Unknown option "+i,Vo.ERR_BAD_OPTION)}},validators:_i};const Pi=Ni.validators;class Ii{constructor(e){this.defaults=e,this.interceptors={request:new ei,response:new ei}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Oi(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;let i;void 0!==n&&Ni.assertOptions(n,{silentJSONParsing:Pi.transitional(Pi.boolean),forcedJSONParsing:Pi.transitional(Pi.boolean),clarifyTimeoutError:Pi.transitional(Pi.boolean)},!1),null!=r&&(Fo.isFunction(r)?t.paramsSerializer={serialize:r}:Ni.assertOptions(r,{encode:Pi.function,serialize:Pi.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),i=o&&Fo.merge(o.common,o[t.method]),i&&Fo.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=pi.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const u=[];let s;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let c,f=0;if(!l){const e=[ki.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,u),c=e.length,s=Promise.resolve(t);f<c;)s=s.then(e[f++],e[f++]);return s}c=a.length;let d=t;for(f=0;f<c;){const e=a[f++],t=a[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{s=ki.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,c=u.length;f<c;)s=s.then(u[f++],u[f++]);return s}getUri(e){return Yo(bi((e=Oi(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Fo.forEach(["delete","get","head","options"],(function(e){Ii.prototype[e]=function(t,n){return this.request(Oi(n||{},{method:e,url:t,data:(n||{}).data}))}})),Fo.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Oi(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ii.prototype[e]=t(),Ii.prototype[e+"Form"]=t(!0)}));var Li=Ii;class ji{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new vi(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new ji((function(t){e=t}));return{token:t,cancel:e}}}var Ai=ji;const Ri={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(Ri).forEach((([e,t])=>{Ri[t]=e}));var Di=Ri;const Mi=function e(t){const n=new Li(t),r=ro(Li.prototype.request,n);return Fo.extend(r,Li.prototype,n,{allOwnKeys:!0}),Fo.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Oi(t,n))},r}(ai);Mi.Axios=Li,Mi.CanceledError=vi,Mi.CancelToken=Ai,Mi.isCancel=mi,Mi.VERSION="1.4.0",Mi.toFormData=Go,Mi.AxiosError=Vo,Mi.Cancel=Mi.CanceledError,Mi.all=function(e){return Promise.all(e)},Mi.spread=function(e){return function(t){return e.apply(null,t)}},Mi.isAxiosError=function(e){return Fo.isObject(e)&&!0===e.isAxiosError},Mi.mergeConfig=Oi,Mi.AxiosHeaders=pi,Mi.formToJSON=e=>ri(Fo.isHTMLForm(e)?new FormData(e):e),Mi.HttpStatusCode=Di,Mi.default=Mi;var Fi=Mi,zi=Fi.create({baseURL:"https://realtime.shipday.com"}),Ui=Fi.create({baseURL:"https://api.shipday.com"}),Bi=function(){return{headers:{"Content-type":"application/json",Authorization:"Bearer ".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")},dataType:"application/json"}};function Vi(e){return Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vi(e)}function Hi(){Hi=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new C(o||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Vi(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Wi(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function $i(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Wi(i,r,o,a,l,"next",e)}function l(e){Wi(i,r,o,a,l,"throw",e)}a(void 0)}))}}var qi=function(e,t){return zi.get(e,Bi(t))},Gi=function(e,t,n){return Ui.post(e,n,Bi(t))},Qi=function(e,t,n){return zi.post(e,n,function(){return{headers:{"Content-type":"multipart/form-data",Authorization:"Bearer ".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")},dataType:"application/json"}}(t))},Ki=function(){var e=$i(Hi().mark((function e(t){return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qi("/chat/messages",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Xi=function(){var e=$i(Hi().mark((function e(t){return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qi("/chat/user",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Zi=function(){var e=$i(Hi().mark((function e(t){return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qi("/chat/customer/user",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ji=function(){var e=$i(Hi().mark((function e(t,n){return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qi("/chat/customer/messages/"+n,t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Yi=function(){var e=$i(Hi().mark((function e(t,n){return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Qi("/image/upload",t,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),ea=function(){var e=$i(Hi().mark((function e(t){return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Gi("/chat/customer-tracking/initiate","",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function ta(e){return ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ta(e)}function na(){na=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new C(o||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==ta(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function ra(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}var oa=function(e,t,n,r,o){return function(){var i=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ra(i,r,o,a,l,"next",e)}function l(e){ra(i,r,o,a,l,"throw",e)}a(void 0)}))}}(na().mark((function i(a){var l,u,s,c;return na().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,Yi(e,o);case 3:if(!(l=i.sent).data){i.next=13;break}if(u=l.data.imageUri,s=eo(),a({type:_r,payload:{roomId:t.roomId,msg:u,type:Wr,msgTrackingId:s}}),c=gr(u,t.roomId,t.roomName,r,Math.floor(Date.now()/1e3),s,Wr),t.roomId!==n){i.next=12;break}return a(sn(c)),i.abrupt("return");case 12:a(Mt({roomId:t.roomId,message:c}));case 13:i.next=17;break;case 15:i.prev=15,i.t0=i.catch(0);case 17:case"end":return i.stop()}}),i,null,[[0,15]])})));return function(e){return i.apply(this,arguments)}}()};function ia(e){return ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ia(e)}function aa(){aa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new C(o||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==ia(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function la(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sa=function(){var t=N((function(e){return e.selectedRoom})),n=N((function(e){return e.themeTracker})),r=N((function(e){return e.selfProfile})),o=N((function(e){return e.token})),i=N((function(e){return e.announcementRoom})),a=(0,e.useRef)(null),l=M(),u=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ua(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ua(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(""),2),s=u[0],c=u[1],f=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){la(i,r,o,a,l,"next",e)}function l(e){la(i,r,o,a,l,"throw",e)}a(void 0)}))}}(aa().mark((function e(n){var a,u;return aa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.target.files[0];try{(u=new FormData).append("file",a),l(oa(o,t,i.roomId,r.referenceId,u))}catch(e){console.error("Error uploading image:",e)}case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return e.createElement("form",{className:"chat-input-form",onSubmit:function(e){if(e.preventDefault(),0!==s.length&&""!==s&&0!==s.trim().length){var n,o,a=eo();l({type:_r,payload:{roomId:t.roomId,msg:s,type:Hr,msgTrackingId:a}}),n=a,o=gr(s,t.roomId,t.roomName,r.referenceId,Math.floor(Date.now()/1e3),n,"TEXT",void 0,void 0,!0),t.roomId!==i.roomId?l(Mt({roomId:t.roomId,message:o})):l(sn(o)),c("")}}},e.createElement("div",{className:"chat-input-group"},e.createElement("div",{className:"input-add-doc-btn",onClick:function(){return a.current.click()}},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"".concat("light"===n.theme?"#7C7C7C":"#D3D3D3"),className:"bi bi-file-image",viewBox:"0 0 16 16"},e.createElement("path",{d:"M8.002 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"}),e.createElement("path",{d:"M12 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM3 2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8l-2.083-2.083a.5.5 0 0 0-.76.063L8 11 5.835 9.7a.5.5 0 0 0-.611.076L3 12V2z"}))),e.createElement("input",{className:"hide",type:"file",accept:"image/*",ref:a,onChange:f}),e.createElement("input",{type:"text",className:"chat-text-input",placeholder:"Write here","aria-label":"Text input with file attachment button",value:s,onChange:function(e){c(e.target.value)}}),e.createElement("div",{className:"input-group-append"},e.createElement("button",{className:"chat-submit-btn",type:"submit"},e.createElement("svg",{width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M18.6133 0.425781C18.3672 0.25 18.0156 0.214844 17.7344 0.390625L1.42188 9.67188C1.14062 9.8125 0.964844 10.1289 1 10.4453C1 10.7617 1.21094 11.043 1.49219 11.1836L6.90625 13.4336V17.4062C6.90625 17.7227 7.04688 18.0039 7.32812 18.1797C7.46875 18.2148 7.60938 18.25 7.71484 18.25C7.85547 18.25 8.03125 18.2148 8.17188 18.1445L12.0742 15.6133L15.5195 17.0898C15.625 17.125 15.7305 17.1602 15.8711 17.1602C16.0117 17.1602 16.1523 17.0898 16.2578 17.0195C16.5039 16.9141 16.6445 16.668 16.6797 16.4219L18.9297 1.23438C19.0352 0.917969 18.8945 0.601562 18.6133 0.425781ZM13.9727 4.46875L7.39844 11.8164L3.74219 10.2695L13.9727 4.46875ZM8.55859 15.8594V14.1367L10.1758 14.8398L8.55859 15.8594ZM15.2031 15.0859L9.01562 12.4844L16.8906 3.73047L15.2031 15.0859Z",fill:"white"}))))))},ca=function(){return e.createElement(e.Fragment,null,e.createElement(Kr,null),e.createElement(sa,null))},fa=function(){var t=N((function(e){return e.selectedRoom})),n=N((function(e){return e.themeTracker})),r=(N((function(e){return e.userRole})),M());(0,e.useEffect)((function(){document.querySelector(".chat-content").style.height="513px"}));return e.createElement("div",{className:"chat-header-sender-preview"},e.createElement("div",{className:"chat-header-return-btn",onClick:function(){r(kt("chat-preview"))}},e.createElement("svg",{width:"11",height:"17",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.75 11C5.50391 11 5.28516 10.918 5.12109 10.7539L0.746094 6.37891C0.390625 6.05078 0.390625 5.47656 0.746094 5.14844L5.12109 0.773438C5.44922 0.417969 6.02344 0.417969 6.35156 0.773438C6.70703 1.10156 6.70703 1.67578 6.35156 2.00391L2.60547 5.75L6.35156 9.52344C6.70703 9.85156 6.70703 10.4258 6.35156 10.7539C6.1875 10.918 5.96875 11 5.75 11Z",fill:"".concat("light"===n.theme?"#7C7C7C":"#D3D3D3")}))),e.createElement("div",{className:"chat-header-sender-details"},e.createElement(Ar,{name:t.getName(),imgSrc:t.getImgUrl()}),e.createElement("div",{className:"chat-header-details"},e.createElement("div",{className:"chat-sender-name chat-sender-name-bold"},t.getName()))))},da=function(){var t=N((function(e){return e.themeTracker})),n=N((function(e){return e.userRole})),r=N((function(e){return e.chatPreviewType})),o=M();return e.createElement("div",{className:"chat-header-title fw-bold"},n===Un&&e.createElement("div",{className:"chat-header-return-btn",onClick:function(){document.getElementsByClassName("chat-init-btn")[0].click()}},e.createElement("svg",{width:"11",height:"17",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.75 11C5.50391 11 5.28516 10.918 5.12109 10.7539L0.746094 6.37891C0.390625 6.05078 0.390625 5.47656 0.746094 5.14844L5.12109 0.773438C5.44922 0.417969 6.02344 0.417969 6.35156 0.773438C6.70703 1.10156 6.70703 1.67578 6.35156 2.00391L2.60547 5.75L6.35156 9.52344C6.70703 9.85156 6.70703 10.4258 6.35156 10.7539C6.1875 10.918 5.96875 11 5.75 11Z",fill:"".concat("light"===t.theme?"#7C7C7C":"#858585")}))),e.createElement("span",{className:"".concat(n===Un?"no-padding pe-1":"")},"Messages"),n!==Un&&e.createElement("div",{className:"chat-header-new-btn ".concat(r!==Wn?"":"non-visible"),onClick:function(){o(kt("chat-new-create"))}},e.createElement("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M14.5703 1.47656C15.6641 0.382812 17.4219 0.382812 18.5156 1.47656L19.0234 1.98438C20.1172 3.07812 20.1172 4.83594 19.0234 5.92969L11.2891 13.6641C10.9766 13.9766 10.5469 14.25 10.0781 14.3672L6.17188 15.5C5.85938 15.5781 5.50781 15.5 5.27344 15.2266C5 14.9922 4.92188 14.6406 5 14.3281L6.13281 10.4219C6.25 9.95312 6.52344 9.52344 6.83594 9.21094L14.5703 1.47656ZM17.1875 2.80469C16.8359 2.45312 16.25 2.45312 15.8984 2.80469L14.7266 3.9375L16.5625 5.77344L17.6953 4.60156C18.0469 4.25 18.0469 3.66406 17.6953 3.3125L17.1875 2.80469ZM7.92969 10.9297L7.26562 13.2344L9.57031 12.5703C9.72656 12.5312 9.84375 12.4531 9.96094 12.3359L15.2344 7.0625L13.4375 5.26562L8.16406 10.5391C8.04688 10.6562 7.96875 10.7734 7.92969 10.9297ZM7.8125 3C8.32031 3 8.75 3.42969 8.75 3.9375C8.75 4.48438 8.32031 4.875 7.8125 4.875H3.4375C2.53906 4.875 1.875 5.57812 1.875 6.4375V17.0625C1.875 17.9609 2.53906 18.625 3.4375 18.625H14.0625C14.9219 18.625 15.625 17.9609 15.625 17.0625V12.6875C15.625 12.1797 16.0156 11.75 16.5625 11.75C17.0703 11.75 17.5 12.1797 17.5 12.6875V17.0625C17.5 18.9766 15.9375 20.5 14.0625 20.5H3.4375C1.52344 20.5 0 18.9766 0 17.0625V6.4375C0 4.5625 1.52344 3 3.4375 3H7.8125Z",fill:"".concat("light"===t.theme?"#7C7C7C":"#D3D3D3")}))))},pa=function(t){var n=t.connectedUserInfo,r=N((function(e){return e.connectedUserToChatRoomLink})),o=N((function(e){return e.selfProfile})),i=M(),a=n.referenceId,l=n.imageUrl,u=n.name;return e.createElement("div",{className:"single-connected-user",onClick:function(){var e=r[a];if(e)i(Zt(kr(e,a,l,u,!1)));else{console.warn("No connected room yet"),i({type:Nr,payload:{referenceId:a}});var t=o.referenceId+"_"+a,n=eo(),s=wr(n,t,[],[a]);i(Rt({roomId:n,room:s})),i(Sn({roomId:n,participantRefId:a})),i(Zt(kr(n,a,l,u,!1)))}i(kt("chat-content"))}},e.createElement(Ar,{name:u,additionalClass:"chat-sender-img-sm",imgSrc:l,showActiveStatus:!1}),e.createElement("div",{className:"single-connected-user-name"},u))};function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ma=function(){var t,n,r=N((function(e){return e.connectedUsers})),o=(0,e.useRef)(null),i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(""),2),a=i[0],l=i[1];return null===r?e.createElement("div",null,"No Connections Available"):e.createElement("div",{className:"chat-connected-users-list"},e.createElement("div",{className:"chat-connected-user-search-wrapper"},e.createElement("span",null,"To:"),e.createElement("input",{onChange:function(e){l(o.current.value.toLowerCase())},ref:o,placeholder:"Type to search recipient"})),(t=!1,n=Object.keys(r).map((function(n){return r[n].name.toLowerCase().includes(a)?r[n].referenceId&&r[n].referenceId.includes("order_")?null:(t=!0,e.createElement(pa,{connectedUserInfo:r[n]})):null})),t||n.push(e.createElement("div",{className:"chat-no-connections-found"},"No Connections found")),n))},ya=function(){var t=N((function(e){return e.themeTracker})),n=M();return e.createElement("div",{className:"chat-header-title chat-new-room-title fw-bold"},e.createElement("div",{className:"chat-header-return-btn",onClick:function(){n(kt("chat-preview"))}},e.createElement("svg",{width:"11",height:"17",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.75 11C5.50391 11 5.28516 10.918 5.12109 10.7539L0.746094 6.37891C0.390625 6.05078 0.390625 5.47656 0.746094 5.14844L5.12109 0.773438C5.44922 0.417969 6.02344 0.417969 6.35156 0.773438C6.70703 1.10156 6.70703 1.67578 6.35156 2.00391L2.60547 5.75L6.35156 9.52344C6.70703 9.85156 6.70703 10.4258 6.35156 10.7539C6.1875 10.918 5.96875 11 5.75 11Z",fill:"".concat("light"===t.theme?"#7C7C7C":"#D3D3D3")}))),e.createElement("span",null,"New Message"))};function va(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ga=function(t){var n=t.roomId,r=t.userRefId,o=t.userName,i=t.userImgUrl,a=t.message,l=t.messageType,u=t.sentTime,s=t.unseenCount,c=void 0===s?0:s,f=t.userOnline,d=void 0!==f&&f,p=t.isAnnouncement,h=void 0!==p&&p,m=t.noContentText,y=N((function(e){return e.themeTracker})),v=N((function(e){return e.selfProfile})),g=M(),b=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return va(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?va(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(""),2),w=b[0],x=b[1],S=function(e){x(function(e){if(e="string"==typeof e?(t=e.split(/[\s/:,]+/),n=parseInt(t[2]),r=parseInt(t[1])-1,o=parseInt(t[0]),i=parseInt(t[3]),a=parseInt(t[4]),l=parseInt(t[5]),new Date(n,r,o,i,a,l).getTime()):new Date(e),isNaN(e.getTime()))return"";var t,n,r,o,i,a,l,u=Math.floor((new Date-e)/1e3);if(u<60)return u<30?"now":"".concat(u,"s ago");var s=Math.floor(u/60);if(s<60)return"".concat(s,"m ago");var c=Math.floor(s/60);if(c<24)return"".concat(c,"h ago");var f=Math.floor(c/24);return 1===f?"Yesterday":f<7?"".concat(f," days ago"):1===Math.floor(f/7)?"Last Week":e.getFullYear()===(new Date).getFullYear()?e.toLocaleDateString(void 0,{month:"short",day:"numeric"}):e.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}(e))};return(0,e.useEffect)((function(){S(u);var e=setInterval((function(){S(u)}),6e4);return function(){return clearInterval(e)}}),[u]),e.createElement("div",{className:"chat-single-thread",onClick:function(){c>0&&!h&&(g({type:Tr,payload:{roomId:n}}),g(Ut({roomId:n,selfRefId:v.referenceId}))),g(Zt(kr(n,r,i,o,h))),g(kt("chat-content"))}},e.createElement("div",{className:"chat-sender-img"},e.createElement(Ar,{name:o,imgSrc:i,showActiveStatus:!h,activeStatus:d})),e.createElement("div",{className:"chat-details"},e.createElement("div",{className:"chat-sender-details"},e.createElement("div",{className:"chat-sender-name ".concat(c>0?"bolder-text":"")},o),e.createElement("div",{className:"chat-sent-time-preview ".concat(c>0?"bolder-text":"")},w)),e.createElement("div",{className:"chat-text-preview","data-userref":r},function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return l===Wr?e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-images",viewBox:"0 0 16 16"},e.createElement("path",{d:"M4.502 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z"}),e.createElement("path",{d:"M14.002 13a2 2 0 0 1-2 2h-10a2 2 0 0 1-2-2V5A2 2 0 0 1 2 3a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v8a2 2 0 0 1-1.998 2zM14 2H4a1 1 0 0 0-1 1h9.002a2 2 0 0 1 2 2v7A1 1 0 0 0 15 11V3a1 1 0 0 0-1-1zM2.002 4a1 1 0 0 0-1 1v8l2.646-2.354a.5.5 0 0 1 .63-.062l2.66 1.773 3.71-3.71a.5.5 0 0 1 .577-.094l1.777 1.947V5a1 1 0 0 0-1-1h-10z"})):0===t.length?m||"No messages yet.":"string"==typeof t?t.length<40?t:(t=t.substring(0,35),t+="..."):"Preview Unavailable"}(a))),e.createElement("div",{className:"chat-view-all-btn"},e.createElement("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1.78125 0.75L6.25 5.5C6.375 5.65625 6.46875 5.84375 6.46875 6C6.46875 6.1875 6.375 6.375 6.25 6.53125L1.78125 11.2812C1.5 11.5938 1.03125 11.5938 0.71875 11.3125C0.40625 11.0312 0.40625 10.5625 0.6875 10.25L4.6875 6L0.6875 1.78125C0.40625 1.46875 0.40625 1 0.71875 0.71875C1.03125 0.4375 1.5 0.4375 1.78125 0.75Z",fill:"".concat("light"===y.theme?"#7C7C7C":"#D3D3D3")}))))},ba=function(){var t=N((function(e){return e.chatRooms})),n=N((function(e){return e.connectedUsers})),r=N((function(e){return e.selfProfile})),o=N((function(e){return e.chatPreviewType})),i=N((function(e){return e.announcementRoom})),a=N((function(e){return e.userRole}));if(null===t||null===r)return e.createElement(e.Fragment,null);var l,u=function(e){var t=r.referenceId,o="";if(e.startsWith(t))o=e.slice(t.length+1);else{if(!e.endsWith(t))return{userRefId:-1,userName:"Unknown",userImgUrl:"unknown",isOnline:!1};o=e.slice(0,e.length-t.length-1)}var i=n[o];return void 0===i?{userRefId:o,userName:"Unknown User",userImgUrl:null,isOnline:!1}:{userRefId:o,userName:i.getName(),userImgUrl:i.getImageUrl(),isOnline:i.isOnline()}},s=function(e){return e.messages?e.messages.filter((function(e){return e.senderReferenceId!==r.referenceId&&!e.seen})).length:0},c=function(e){var t={message:"",messageType:Hr};e.messages&&e.messages.length>0&&(t=e.messages[e.messages.length-1]);var n=Rr(t.sendAt);return{message:t.message,sentTime:n,messageType:t.messageType}};return e.createElement("div",{className:"chat-list ".concat(o===$n?"chat-list-team":"chat-list-customer")},0===(l=function(){var e=[],n="No messages yet";for(var r in t)if(0!==t[r].messages.length||a===Un){var l=t[r],f=u(l.roomName),d=f.userRefId,p=f.userName,h=f.userImgUrl,m=f.isOnline,y=(f.isAnnouncement,c(l)),v=y.message,g=y.sentTime,b=y.messageType;-1!==d&&(a===Un&&(n=d.includes("admin_")?"Chat with Store Manager":"Chat with the Driver"),e.push({roomId:l.roomId,userRefId:d,unseenCount:s(l),message:v,messageType:b,sentTime:g,userName:p,userImgUrl:h,isOnline:m,noContentText:n}))}return e.sort((function(e,t){var n=new Date(e.sentTime);return new Date(t.sentTime)-n})),a!==Un&&e.unshift(function(){if(null===i)return null;var e=c(i),t=e.message,n=e.sentTime,r=e.messageType;return{roomId:i.roomId,userRefId:"COMPANY",unseenCount:s(i),message:t,messageType:r,sentTime:n,userName:"Announcement",userImgUrl:"Announcement",isOnline:!1,isAnnouncement:!0}}()),function(e){switch(o){case Wn:return e.filter((function(e){return e.userRefId.includes("order_")}));case $n:return e.filter((function(e){return!e.userRefId.includes("order_")}))}}(e)}()).length?e.createElement("div",{className:"empty-msgs-list"},e.createElement("span",null,"No chats in the list")):l.map((function(t){return e.createElement(ga,{key:t.roomId,roomId:t.roomId,userRefId:t.userRefId,userName:t.userName,userOnline:t.isOnline,message:t.message,messageType:t.messageType,sentTime:t.sentTime,userImgUrl:t.userImgUrl,unseenCount:t.unseenCount,isAnnouncement:t.isAnnouncement,noContentText:t.noContentText})})))},wa=function(t){var n=t.setter;return t.companyInfo,M(),(0,e.useEffect)((function(){document.querySelectorAll(".chat-rounded-div .chat-text-preview").forEach((function(e){e.dataset.userref.includes("admin")?e.textContent="Chat with Store Manager":e.dataset.userref.includes("carrier")&&(e.textContent="Chat with the Driver")}))}),[]),e.createElement("div",{className:"chat-banner-container"},e.createElement("div",{className:"chat-banner-text"},e.createElement("div",{className:"chat-fade-text"},"Hello there!"),e.createElement("div",{className:"chat-sub-text"},"How can we help?")),e.createElement("div",{className:"chat-rounded-div",onClick:function(){localStorage.setItem("hasShownBanner",!0),n(!1)}},e.createElement(ba,null)))};function xa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Sa=function(t){var n=t.companyInfo,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(!1),2),o=r[0],i=r[1],a=N((function(e){return e.userRole}));return(0,e.useEffect)((function(){localStorage.getItem("hasShownBanner")||i(!0)}),[]),e.createElement(e.Fragment,null,a===zn?e.createElement(ba,null):o?e.createElement(wa,{setter:i,companyInfo:n}):e.createElement(ba,null))},Ea=function(t){var n=t.customerSelectionEnabled,r=t.companyInfo,o=N((function(e){return e.currentView})),i=N((function(e){return e.userRole})),a=(0,e.useRef)(null);return(0,e.useEffect)((function(){setTimeout((function(){a.current.classList.add("chat-full-scale")}),10)}),[]),e.createElement("div",{ref:a,className:"chat-body-wrapper ".concat(i===Un?"customer-chat":"")},e.createElement("div",{className:"chat-header ".concat("chat-preview"===o&&i!==Un&&n?"chat-header-long":"chat-header-short")},function(){var t=document.querySelector(".chat-content");switch(t&&(t.style.height="513px"),o){case"chat-preview":return t&&(t.style.height="450px"),i!==Un&&n?e.createElement(e.Fragment,null,e.createElement(da,null),e.createElement(Ir,null)):(t&&(t.style.height="513px"),e.createElement(da,null));case"chat-content":return t&&(t.style.height="513px"),e.createElement(fa,null);case"chat-new-create":return e.createElement(ya,null)}}()),e.createElement("div",{className:"chat-content ".concat("chat-preview"===o&&i!==Un&&n?"chat-content-short":"")},function(){switch(o){case"chat-preview":return e.createElement(Sa,{companyInfo:r});case St:return e.createElement(ca,null);case"chat-new-create":return e.createElement(ma,null)}}()),!1)};function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ca=function(t){t.identity,t.token;var n=t.customerSelectionEnabled,r=t.companyInfo,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ka(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,e.useState)(!1),2),i=o[0],a=o[1],l=N((function(e){return e.unseenCount})),u=N((function(e){return e.chatRooms})),s=N((function(e){return e.currentView})),c=N((function(e){return e.selectedRoom})),f=M(),d=N((function(e){return e.selfProfile}));return(0,e.useEffect)((function(){null!==u&&function(){var e=0,t=0;for(var n in u){var r=u[n].messages.length;0!==r&&(u[n].messages[r-1].senderReferenceId===d.referenceId||u[n].messages[r-1].seen||(u[n].messages[r-1].senderReferenceId.includes("order_")?t++:e++))}f(Pn({totalCount:e+t,teamCount:e,customerCount:t}))}()}),[u]),e.createElement("div",{className:"shipday-chat-wrapper"},i&&e.createElement(Ea,{customerSelectionEnabled:n,companyInfo:r}),e.createElement("div",{className:"chat-init-btn",onClick:function(){i||f(In()),i||s!==St||null===c||(f({type:Tr,payload:{roomId:c.getRoomId()}}),f(Ut({roomId:c.getRoomId(),selfRefId:d.referenceId}))),a(!i),f(An(!i))}},!i&&l.totalCount>0&&e.createElement("div",{className:"chat-notification-banner"},l.totalCount),!i&&e.createElement("div",{id:"chat-shipday-icon"},e.createElement("svg",{width:"28",height:"23",viewBox:"0 0 28 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M25 6.25C26.5039 6.25 27.75 7.49609 27.75 9V17.293C27.75 18.7969 26.5039 20 25 20H23.625V22.2344C23.625 22.5781 23.3672 22.75 23.1094 22.75C22.9805 22.75 22.8945 22.75 22.7656 22.6641L18.125 20H13.957C12.4531 20 11.25 18.7969 11.25 17.25V15.875H12.625V17.25C12.625 18.0234 13.2266 18.625 14 18.625H18.4688L22.25 20.7734V18.625H25C25.7305 18.625 26.375 18.0234 26.375 17.25V9C26.375 8.26953 25.7305 7.625 25 7.625H19.5V6.25H25ZM18.125 11.75C18.125 13.2969 16.8789 14.5 15.375 14.5H9.875L5.19141 17.1641C5.0625 17.25 4.97656 17.25 4.89062 17.25C4.58984 17.25 4.375 17.0781 4.375 16.7344V14.543L3 14.5C1.45312 14.5 0.25 13.2969 0.25 11.75V3.5C0.25 1.99609 1.45312 0.75 3 0.75H15.375C16.8789 0.75 18.125 1.99609 18.125 3.5V11.75ZM9.48828 13.125H15.375C16.1055 13.125 16.75 12.5234 16.75 11.75V3.5C16.75 2.76953 16.1055 2.125 15.375 2.125H3C2.22656 2.125 1.625 2.76953 1.625 3.5V11.75C1.625 12.5234 2.22656 13.125 3 13.125H5.75V15.2734L9.48828 13.125Z",fill:"white"}))),i&&e.createElement("div",{id:"chat-minimize-icon"},e.createElement("svg",{width:"18",height:"11",viewBox:"0 0 18 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M9 10.25C8.61328 10.25 8.26953 10.1211 8.01172 9.86328L1.13672 2.98828C0.578125 2.47266 0.578125 1.57031 1.13672 1.05469C1.65234 0.496094 2.55469 0.496094 3.07031 1.05469L9 6.94141L14.8867 1.05469C15.4023 0.496094 16.3047 0.496094 16.8203 1.05469C17.3789 1.57031 17.3789 2.47266 16.8203 2.98828L9.94531 9.86328C9.6875 10.1211 9.34375 10.25 9 10.25Z",fill:"white"})))))};function Oa(e){return Oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oa(e)}function _a(){_a=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new C(o||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Oa(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Ta(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}var Na=function(e){return function(){var t=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ta(i,r,o,a,l,"next",e)}function l(e){Ta(i,r,o,a,l,"throw",e)}a(void 0)}))}}(_a().mark((function t(n){var r,o,i,a;return _a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Ki(e);case 3:(r=t.sent).data&&(o=yr(r.data.roomHistory),i=o.chatRoomsObj,a=o.announcementRoom,n(At(i)),n(un(a)),n({type:Cr,payload:{token:e}})),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(e){return t.apply(this,arguments)}}()};function Pa(e){return Pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pa(e)}function Ia(){Ia=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new C(o||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Pa(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function La(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function ja(e){return ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ja(e)}function Aa(){Aa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new C(o||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==ja(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Ra(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}var Da=function(e,t){return function(){var n=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ra(i,r,o,a,l,"next",e)}function l(e){Ra(i,r,o,a,l,"throw",e)}a(void 0)}))}}(Aa().mark((function n(r){var o,i,a,l;return Aa().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Ji(e,t);case 3:u=n.sent.data,o={roomHistory:[Jr({},u)]},i=yr(o.roomHistory),a=i.chatRoomsObj,l=i.announcementRoom,r(At(a)),r(ln(l)),r({type:Cr,payload:{token:e}}),n.next=13;break;case 11:n.prev=11,n.t0=n.catch(0);case 13:case"end":return n.stop()}var u}),n,null,[[0,11]])})));return function(e){return n.apply(this,arguments)}}()};function Ma(e){return Ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ma(e)}function Fa(){Fa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new C(o||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Ma(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function za(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}var Ua=function(e,t){return function(){var n=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){za(i,r,o,a,l,"next",e)}function l(e){za(i,r,o,a,l,"throw",e)}a(void 0)}))}}(Fa().mark((function n(r){var o,i,a,l,u,s,c,f;return Fa().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Zi(e);case 3:o=n.sent,null==(i=o.data).connections&&(i.connections=to(i)),a=br(i.referenceId,i.name,i.imageUrl,i.lastSeenAt,i.enabled,i.commonRoomId,i.driverChatEnabled),l=Sr(i.connections),l=no(l,t),u=vr(a.referenceId,i.involvedRooms),s=u.chatRoomsObj,c=u.announcementRoom,f=u.connectedUserToChatRoomsLink,Object.keys(s).length>=1&&Object.keys(s).forEach((function(t){r(Da(e,t))})),r(Qt(a)),r(Wt(l)),r(jt(s)),r(ln(c)),r(xn(f)),n.next=21;break;case 18:n.prev=18,n.t0=n.catch(0),console.error(n.t0);case 21:case"end":return n.stop()}}),n,null,[[0,18]])})));return function(e){return n.apply(this,arguments)}}()};function Ba(e){return Ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ba(e)}function Va(){Va=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),l=new C(o||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(O([])));v&&v!==t&&n.call(v,i)&&(m=v);var g=h.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Ba(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,l,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function Ha(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}var Wa=function(t){var n=t.theme,r=t.token,o=t.role,i=t.phoneNumber,a=t.customerSelectionEnabled,l=t.orderId,u=t.companyInfo,s=N((function(e){return e.connectedUsers})),c=M();return(0,e.useEffect)((function(){c(pn(n))}),[n]),(0,e.useEffect)((function(){c(Mn(r))}),[r]),(0,e.useEffect)((function(){return o===Un?(c(function(e,t,n){return function(){var r=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ha(i,r,o,a,l,"next",e)}function l(e){Ha(i,r,o,a,l,"throw",e)}a(void 0)}))}}(Va().mark((function r(o){var i,a;return Va().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,ea({phoneNumber:e,orderId:t});case 3:(i=r.sent).data&&(a=i.data.accessToken,o(Mn(a)),o(Ua(a,n))),r.next=9;break;case 7:r.prev=7,r.t0=r.catch(0);case 9:case"end":return r.stop()}}),r,null,[[0,7]])})));return function(e){return r.apply(this,arguments)}}()}(i,l,u)),c(Vn(Un))):(c(Vn(zn)),c(null===s?function(e){return function(){var t=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){La(i,r,o,a,l,"next",e)}function l(e){La(i,r,o,a,l,"throw",e)}a(void 0)}))}}(Ia().mark((function t(n){var r,o,i,a,l,u,s,c;return Ia().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Xi(e);case 3:r=t.sent,o=r.data,i=br(o.referenceId,o.name,o.imageUrl,o.lastSeenAt,o.enabled,o.commonRoomId,o.driverChatEnabled),a=Sr(o.connections),l=vr(i.referenceId,o.involvedRooms),u=l.chatRoomsObj,s=l.announcementRoom,c=l.connectedUserToChatRoomsLink,n(Na(e)),n(Qt(i)),n(Wt(a)),n(jt(u)),n(ln(s)),n(xn(c)),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(0),console.error(t.t0);case 19:case"end":return t.stop()}}),t,null,[[0,16]])})));return function(e){return t.apply(this,arguments)}}()}(r):{type:Cr,payload:{token:r}})),function(){c({type:Or})}}),[]),e.createElement("div",{"data-theme":n},e.createElement(Ca,{theme:n,customerSelectionEnabled:a,companyInfo:u}))},$a=function(t){var n=t.theme,r=void 0===n?"light":n,o=t.token,i=t.role,a=void 0===i?"ADMIN":i,l=t.orderId,u=t.phoneNumber,s=t.customerSelectionEnabled,c=void 0!==s&&s,f=t.companyInfo;return e.createElement(j,{store:Pr},e.createElement(Wa,{theme:r,token:o,role:a,orderId:l,phoneNumber:u,customerSelectionEnabled:c,companyInfo:f}))};function qa(e){return qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qa(e)}function Ga(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ka(r.key),r)}}function Qa(e,t,n){return(t=Ka(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e){var t=function(e,t){if("object"!==qa(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==qa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===qa(t)?t:String(t)}var Xa=function(){function n(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Qa(this,"theme","light"),Qa(this,"token","");var o=r.container,i=r.theme,a=r.token,l=r.role,u=r.phoneNumber,s=r.orderId,c=r.customerSelectionEnabled;this.container=o,this.theme=i,this.token=a,this.role=l,this.phoneNumber=u,this.orderId=s,this.customerSelectionEnabled=c,t.render(e.createElement($a,{theme:this.theme,token:this.token,role:this.role,customerSelectionEnabled:this.customerSelectionEnabled,phoneNumber:this.phoneNumber,orderId:this.orderId}),o)}var r,o;return r=n,o=[{key:"updateView",value:function(n,r){n&&(this.theme=n),r&&(this.token=r),t.render(e.createElement($a,{theme:this.theme,token:this.token,role:this.role,customerSelectionEnabled:this.customerSelectionEnabled}),this.container)}},{key:"updatePhoneNumber",value:function(n){n&&(this.phoneNumber=n),t.render(e.createElement($a,{theme:this.theme,token:this.token,role:this.role,phoneNumber:this.phoneNumber,orderId:this.orderId}),this.container)}},{key:"updateSelectionView",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.customerSelectionEnabled=n,t.render(e.createElement($a,{theme:this.theme,token:this.token,role:this.role,customerSelectionEnabled:this.customerSelectionEnabled,phoneNumber:this.phoneNumber,orderId:this.orderId}),this.container)}}],o&&Ga(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),n}()}(),r}()}));
|