genesys-cloud-client-auth 1.0.0 → 1.0.1-release.9
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/assets/{browser-ponyfill-BV2ki90r.js → browser-ponyfill-ClIr8e_L.js} +1 -1
- package/dist/assets/{get-valid-timezone-3bde2dae-BFRWJz7Q.js → get-valid-timezone-3bde2dae-BTz0r2Zt.js} +1 -1
- package/dist/assets/{gux-accordion-section.entry-jbdbmuX_.js → gux-accordion-section.entry-CujKcCg9.js} +1 -1
- package/dist/assets/{gux-accordion.entry-ClKYUH6r.js → gux-accordion.entry-DZmjIc-9.js} +1 -1
- package/dist/assets/{gux-action-button.entry-Co04Z0OV.js → gux-action-button.entry-NaNJu48L.js} +1 -1
- package/dist/assets/{gux-action-toast-legacy.entry-BZZz3CuU.js → gux-action-toast-legacy.entry-5Bnf-XGv.js} +1 -1
- package/dist/assets/{gux-advanced-dropdown-legacy.entry-Cw6SQUDA.js → gux-advanced-dropdown-legacy.entry-BALVFsjq.js} +1 -1
- package/dist/assets/{gux-all-row-select.entry-Ce72rVHx.js → gux-all-row-select.entry-e4deNPsH.js} +1 -1
- package/dist/assets/{gux-announce-beta.entry-0-IPzB8z.js → gux-announce-beta.entry-CpIkYGZZ.js} +1 -1
- package/dist/assets/{gux-avatar-beta.entry-D7eNcgqk.js → gux-avatar-beta.entry-TbXG5fPC.js} +1 -1
- package/dist/assets/{gux-avatar-change-photo-beta.entry-CdbjnSh2.js → gux-avatar-change-photo-beta.entry-DkW9hvQM.js} +1 -1
- package/dist/assets/{gux-avatar-focusable-beta.entry-C-N-FSgY.js → gux-avatar-focusable-beta.entry-BJ_sRUMO.js} +1 -1
- package/dist/assets/{gux-avatar-group-add-item-beta_3.entry-DovXgXMY.js → gux-avatar-group-add-item-beta_3.entry-Bh-3trT0.js} +1 -1
- package/dist/assets/{gux-avatar-group-beta.entry-C-IcLXpk.js → gux-avatar-group-beta.entry-C1w4dL4A.js} +1 -1
- package/dist/assets/{gux-avatar-group-item-beta.entry-CaxTOEY_.js → gux-avatar-group-item-beta.entry-Cb329VO1.js} +1 -1
- package/dist/assets/{gux-badge.entry-Cn9m8u98.js → gux-badge.entry-DvN3nRLX.js} +1 -1
- package/dist/assets/{gux-blank-state.entry-BpvRIMLX.js → gux-blank-state.entry-DSao7ktr.js} +1 -1
- package/dist/assets/{gux-breadcrumb-item.entry-Ca_9aDAs.js → gux-breadcrumb-item.entry-CWO7gU6O.js} +1 -1
- package/dist/assets/{gux-breadcrumbs.entry-C_roghwh.js → gux-breadcrumbs.entry-DdCXFTFa.js} +1 -1
- package/dist/assets/{gux-button-multi.entry-CBr3g1_V.js → gux-button-multi.entry-DMOjPZbU.js} +1 -1
- package/dist/assets/{gux-button-slot.entry-WiCUBCa6.js → gux-button-slot.entry-D4HNdu8f.js} +1 -1
- package/dist/assets/{gux-button_2.entry-C9uy7zui.js → gux-button_2.entry-DVzg_HQ0.js} +1 -1
- package/dist/assets/{gux-calendar-beta.entry-Bqerz9AU.js → gux-calendar-beta.entry-BOSOQ7YY.js} +1 -1
- package/dist/assets/{gux-calendar.entry-B62CdDSA.js → gux-calendar.entry-Ogc_3tGC.js} +1 -1
- package/dist/assets/{gux-card.entry-L6pDaqgo.js → gux-card.entry-D5kEK46O.js} +1 -1
- package/dist/assets/{gux-column-manager-item.entry-gcrXPu9C.js → gux-column-manager-item.entry-DVQmJy9K.js} +1 -1
- package/dist/assets/{gux-column-manager.entry-BWdhUqSz.js → gux-column-manager.entry-D5bpMxdz.js} +1 -1
- package/dist/assets/{gux-content-search.entry-Bk320YeT.js → gux-content-search.entry-BJJnDEdw.js} +1 -1
- package/dist/assets/{gux-context-menu.entry-sV-Bg8Mm.js → gux-context-menu.entry-DEXYZgPb.js} +1 -1
- package/dist/assets/{gux-copy-to-clipboard.entry-D4z3pxQw.js → gux-copy-to-clipboard.entry-C53OmAOX.js} +1 -1
- package/dist/assets/{gux-create-option.entry-B_Vv8g0K.js → gux-create-option.entry-BjF-h1nP.js} +1 -1
- package/dist/assets/{gux-cta-group.entry-BrnioXQs.js → gux-cta-group.entry-D5mMoPf5.js} +1 -1
- package/dist/assets/{gux-date-beta.entry-lwFmRCvN.js → gux-date-beta.entry-BCzZ566b.js} +1 -1
- package/dist/assets/{gux-date-time-beta.entry-HNedVv5e.js → gux-date-time-beta.entry-w0nCTkm_.js} +1 -1
- package/dist/assets/{gux-datepicker.entry-Cr-qDrmu.js → gux-datepicker.entry-B5L1Dxql.js} +1 -1
- package/dist/assets/{gux-day-beta.entry-CW80EHbX.js → gux-day-beta.entry-BQrPu1aV.js} +1 -1
- package/dist/assets/{gux-disclosure-button-legacy.entry-G2Tlcri7.js → gux-disclosure-button-legacy.entry-Bivzz3Cb.js} +1 -1
- package/dist/assets/{gux-dismiss-button.entry-DchQFWKl.js → gux-dismiss-button.entry-CFv9WjbF.js} +1 -1
- package/dist/assets/{gux-dropdown-multi-tag.entry-Cc9VNZOZ.js → gux-dropdown-multi-tag.entry-w-Pn3a2J.js} +1 -1
- package/dist/assets/{gux-dropdown-multi.entry-DjZKxJal.js → gux-dropdown-multi.entry-jqQXgZYF.js} +1 -1
- package/dist/assets/{gux-dropdown-option.entry-CZDjtkrF.js → gux-dropdown-option.entry-BazGMnE7.js} +1 -1
- package/dist/assets/{gux-dropdown_3.entry-CKiZXOT7.js → gux-dropdown_3.entry-CMfAf7VK.js} +1 -1
- package/dist/assets/{gux-file-list-item.entry-Dp9PwoBM.js → gux-file-list-item.entry-rnKXgjyK.js} +1 -1
- package/dist/assets/{gux-flag-icon-beta.entry-BTUoPqVd.js → gux-flag-icon-beta.entry-UNEnhOSd.js} +1 -1
- package/dist/assets/{gux-flyout-menu.entry-DqSGjmSN.js → gux-flyout-menu.entry-BERySE-P.js} +1 -1
- package/dist/assets/{gux-form-beta.entry-C990wv4b.js → gux-form-beta.entry-2MxPlcmT.js} +1 -1
- package/dist/assets/{gux-form-description.entry-SptrEE0d.js → gux-form-description.entry-2hW0hHZu.js} +1 -1
- package/dist/assets/{gux-form-field-checkbox-group-beta.entry-CCZf0hdH.js → gux-form-field-checkbox-group-beta.entry-CKqayh1H.js} +1 -1
- package/dist/assets/{gux-form-field-checkbox.entry-DFJSjM7x.js → gux-form-field-checkbox.entry-DXfPyKuv.js} +1 -1
- package/dist/assets/{gux-form-field-color.entry-dM32AJCZ.js → gux-form-field-color.entry-BN26wkk8.js} +1 -1
- package/dist/assets/{gux-form-field-container-3dd7c6ff-CbHwJYu_.js → gux-form-field-container-3dd7c6ff-BO4NBxm6.js} +1 -1
- package/dist/assets/{gux-form-field-dropdown.entry-qCBeETvx.js → gux-form-field-dropdown.entry-DUYckNVv.js} +1 -1
- package/dist/assets/{gux-form-field-error-acb40a19-CkSp2BAb.js → gux-form-field-error-acb40a19-CHMA1_Nq.js} +1 -1
- package/dist/assets/{gux-form-field-fieldset-container-6cb3610f-BUiTa12q.js → gux-form-field-fieldset-container-6cb3610f-DQ6-2XRL.js} +1 -1
- package/dist/assets/{gux-form-field-file-beta.entry-DcnNIHKz.js → gux-form-field-file-beta.entry-B1OTTsur.js} +1 -1
- package/dist/assets/{gux-form-field-file.entry-Dk7BocgF.js → gux-form-field-file.entry-jUCgIJcf.js} +1 -1
- package/dist/assets/{gux-form-field-input-clear-button.entry-Dp1QY-09.js → gux-form-field-input-clear-button.entry-aoSmjV5a.js} +1 -1
- package/dist/assets/{gux-form-field-label-indicator.entry-bUtvVW_r.js → gux-form-field-label-indicator.entry-Dx4x3dkU.js} +1 -1
- package/dist/assets/{gux-form-field-number_2.entry-DaVKhHUj.js → gux-form-field-number_2.entry-fNToJt4I.js} +1 -1
- package/dist/assets/{gux-form-field-phone.entry-DXsintqd.js → gux-form-field-phone.entry-ChmMJvT9.js} +1 -1
- package/dist/assets/{gux-form-field-radio-group-beta.entry-PbhhpeBG.js → gux-form-field-radio-group-beta.entry-C46gk24W.js} +1 -1
- package/dist/assets/{gux-form-field-radio.entry-n3Vla1Pu.js → gux-form-field-radio.entry-_ubq07TB.js} +1 -1
- package/dist/assets/{gux-form-field-range.entry-C-pjfWNA.js → gux-form-field-range.entry-BFH295OR.js} +1 -1
- package/dist/assets/{gux-form-field-search.entry-C-bK5ayb.js → gux-form-field-search.entry-nT_Drlgf.js} +1 -1
- package/dist/assets/{gux-form-field-select.entry-DQdel3gO.js → gux-form-field-select.entry-DnBd_eAO.js} +1 -1
- package/dist/assets/{gux-form-field-text-like.entry-CBFPlQHU.js → gux-form-field-text-like.entry-CaI0Z1Y6.js} +1 -1
- package/dist/assets/{gux-form-field-textarea.entry-COFKxheF.js → gux-form-field-textarea.entry-SU40qFXi.js} +1 -1
- package/dist/assets/{gux-form-field-time-picker.entry-CaDEWBkZ.js → gux-form-field-time-picker.entry-CTLcAsUs.js} +1 -1
- package/dist/assets/{gux-form-field-time-zone-picker.entry-rl7fBaGA.js → gux-form-field-time-zone-picker.entry-tUgOi_Ei.js} +1 -1
- package/dist/assets/{gux-form-fieldset-heading.entry-Cm0x7EQq.js → gux-form-fieldset-heading.entry-DHlW9e-I.js} +1 -1
- package/dist/assets/{gux-form-footer.entry-DbhwkP6b.js → gux-form-footer.entry-CRogcqyr.js} +1 -1
- package/dist/assets/{gux-form-heading.entry-DoUhRicG.js → gux-form-heading.entry-ub_85Z-V.js} +1 -1
- package/dist/assets/{gux-icon-tooltip-beta.entry-DNtzdBoU.js → gux-icon-tooltip-beta.entry-o4RPYZDs.js} +1 -1
- package/dist/assets/{gux-icon.entry-B97smlnI.js → gux-icon.entry-n3pWVYbp.js} +1 -1
- package/dist/assets/{gux-inline-alert.entry-DJZxwXFy.js → gux-inline-alert.entry-CweHLYFF.js} +1 -1
- package/dist/assets/{gux-label-info-beta.entry-Bi2PlCDo.js → gux-label-info-beta.entry-DbIf1YIe.js} +1 -1
- package/dist/assets/{gux-link-beta.entry-BI2qsXNR.js → gux-link-beta.entry-kIXBkWK9.js} +1 -1
- package/dist/assets/{gux-list-divider.entry-BHrFeHB6.js → gux-list-divider.entry-6u2HJN7e.js} +1 -1
- package/dist/assets/{gux-list-item.entry-DRUfS0q6.js → gux-list-item.entry-D5aL-4sF.js} +1 -1
- package/dist/assets/{gux-list.entry-D9KN4yJ5.js → gux-list.entry-D8r2B-ZP.js} +1 -1
- package/dist/assets/{gux-listbox-multi.entry-6t0q-9T1.js → gux-listbox-multi.entry-BtHnysab.js} +1 -1
- package/dist/assets/{gux-loading-message.entry-D1ze4_H5.js → gux-loading-message.entry-CvSHqvVZ.js} +1 -1
- package/dist/assets/{gux-menu-option.entry-BxQFHxSk.js → gux-menu-option.entry-BAGZt2AS.js} +1 -1
- package/dist/assets/{gux-menu.entry-B-osnTh0.js → gux-menu.entry-DwehSnzW.js} +1 -1
- package/dist/assets/{gux-modal-legacy.entry-DstohKCK.js → gux-modal-legacy.entry-Cp4Aiphm.js} +1 -1
- package/dist/assets/{gux-modal-side-panel-beta.entry-C9FvyVTE.js → gux-modal-side-panel-beta.entry-DCvTQlX9.js} +1 -1
- package/dist/assets/{gux-modal.entry-srOdsW8Q.js → gux-modal.entry-22VCaz5A.js} +1 -1
- package/dist/assets/{gux-month-calendar.entry-BeuXd1Lv.js → gux-month-calendar.entry-D_EcdMc_.js} +1 -1
- package/dist/assets/{gux-month-list_2.entry-CYygxLTh.js → gux-month-list_2.entry-uPhFJHwn.js} +1 -1
- package/dist/assets/{gux-month-picker-beta.entry-DOJMMNNx.js → gux-month-picker-beta.entry-VcNlYwmc.js} +1 -1
- package/dist/assets/{gux-notification-toast-legacy.entry-dxK7iMAC.js → gux-notification-toast-legacy.entry-ChU_-47j.js} +1 -1
- package/dist/assets/{gux-option-group-beta.entry-BUy0S9Yx.js → gux-option-group-beta.entry-FRRaJLwS.js} +1 -1
- package/dist/assets/{gux-option-icon.entry-Bn-fNLNn.js → gux-option-icon.entry-KMgTc1vu.js} +1 -1
- package/dist/assets/{gux-option-multi.entry-Bu-QHc6m.js → gux-option-multi.entry-CGdD9hMn.js} +1 -1
- package/dist/assets/{gux-page-loading-spinner.entry-DMtT-DYz.js → gux-page-loading-spinner.entry-5PmWDlZg.js} +1 -1
- package/dist/assets/{gux-pagination-buttons-legacy_3.entry-CuYkOJdn.js → gux-pagination-buttons-legacy_3.entry-BtvgrJMY.js} +1 -1
- package/dist/assets/{gux-pagination-buttons_2.entry-DmbE78vc.js → gux-pagination-buttons_2.entry-DV3ecNGj.js} +1 -1
- package/dist/assets/{gux-pagination-cursor.entry-BTAFd0O2.js → gux-pagination-cursor.entry-Ww9AsRNQ.js} +1 -1
- package/dist/assets/{gux-pagination-items-per-page.entry-DvwN5uz6.js → gux-pagination-items-per-page.entry-CVi3sRvu.js} +1 -1
- package/dist/assets/{gux-pagination-legacy.entry-CBCQXwVe.js → gux-pagination-legacy.entry-DdVA8azk.js} +1 -1
- package/dist/assets/{gux-pagination.entry-IX-ErtEu.js → gux-pagination.entry-1ud8_S9m.js} +1 -1
- package/dist/assets/{gux-phone-input-beta.entry-CjYWM42M.js → gux-phone-input-beta.entry-DzMFUOHx.js} +1 -1
- package/dist/assets/{gux-popover-beta.entry-DAvQpLoO.js → gux-popover-beta.entry-B_Rzrsrl.js} +1 -1
- package/dist/assets/{gux-popover-list-beta.entry-D4i4pSCR.js → gux-popover-list-beta.entry-C7BS70xU.js} +1 -1
- package/dist/assets/{gux-popover-list.entry-B6Kj5sN5.js → gux-popover-list.entry-DXFJ5Ulu.js} +1 -1
- package/dist/assets/{gux-popup.entry-BHYs6DQm.js → gux-popup.entry-CaMGjJOv.js} +1 -1
- package/dist/assets/{gux-radial-loading.entry-CG8hkP1l.js → gux-radial-loading.entry-CIOzqI-P.js} +1 -1
- package/dist/assets/{gux-radial-progress.entry-Bne8tE1g.js → gux-radial-progress.entry-Bu43Xqjp.js} +1 -1
- package/dist/assets/{gux-rating.entry--bhU3vZ-.js → gux-rating.entry-CnVRE-uh.js} +1 -1
- package/dist/assets/{gux-rich-highlight-list-item.entry-CSqOpcBg.js → gux-rich-highlight-list-item.entry-kkwS1qA5.js} +1 -1
- package/dist/assets/{gux-rich-style-list-item_3.entry-CZq1B1uh.js → gux-rich-style-list-item_3.entry-BmlmhWgD.js} +1 -1
- package/dist/assets/{gux-rich-text-editor-action-group.entry-DpooAfXe.js → gux-rich-text-editor-action-group.entry-3eFBzXKl.js} +1 -1
- package/dist/assets/{gux-rich-text-editor-action-link.entry-BEOpCIyh.js → gux-rich-text-editor-action-link.entry-eN5VwMWg.js} +1 -1
- package/dist/assets/{gux-rich-text-editor-action-rich-style.entry-rwzf60gc.js → gux-rich-text-editor-action-rich-style.entry-D-l-atJL.js} +1 -1
- package/dist/assets/{gux-rich-text-editor-action-text-highlight.entry-BaiCEtST.js → gux-rich-text-editor-action-text-highlight.entry-BPEq6CnY.js} +1 -1
- package/dist/assets/{gux-rich-text-editor-action.entry-wBuqVeIv.js → gux-rich-text-editor-action.entry-CsWpsyMj.js} +1 -1
- package/dist/assets/{gux-rich-text-editor-beta.entry-Cw_BO3yc.js → gux-rich-text-editor-beta.entry-C0dCAvGp.js} +1 -1
- package/dist/assets/{gux-rich-text-editor-list.entry-CdJ7d-sN.js → gux-rich-text-editor-list.entry-C0l66P-R.js} +1 -1
- package/dist/assets/{gux-row-select.entry-DNQoUPfo.js → gux-row-select.entry-DgUEWifj.js} +1 -1
- package/dist/assets/{gux-screen-reader-beta.entry-CIizYbtx.js → gux-screen-reader-beta.entry-_F4BWhAL.js} +1 -1
- package/dist/assets/{gux-segmented-control-beta.entry-Lg-TCK-1.js → gux-segmented-control-beta.entry-BYc9IyVs.js} +1 -1
- package/dist/assets/{gux-segmented-control-item.entry-DDTIGwB3.js → gux-segmented-control-item.entry-B3n-o_0J.js} +1 -1
- package/dist/assets/{gux-selector-card-beta.entry-df35Lfih.js → gux-selector-card-beta.entry-CZ_KhnMW.js} +1 -1
- package/dist/assets/{gux-selector-cards-beta.entry-HqqnLkUG.js → gux-selector-cards-beta.entry-DSmvU77v.js} +1 -1
- package/dist/assets/{gux-side-panel-beta.entry-BUo5l_ej.js → gux-side-panel-beta.entry-CjBCzQxR.js} +1 -1
- package/dist/assets/{gux-side-panel-heading.entry-NHumDrZj.js → gux-side-panel-heading.entry-D6Va8fio.js} +1 -1
- package/dist/assets/{gux-simple-toast-legacy.entry-BOuwoL-n.js → gux-simple-toast-legacy.entry-CgG0pEiF.js} +1 -1
- package/dist/assets/{gux-skip-navigation-item.entry-DdXOJO27.js → gux-skip-navigation-item.entry-D3FTJsk7.js} +1 -1
- package/dist/assets/{gux-skip-navigation-list.entry-CuUU-ew0.js → gux-skip-navigation-list.entry-DnlKpRzO.js} +1 -1
- package/dist/assets/{gux-sort-control.entry-CbDxt8g0.js → gux-sort-control.entry-MR9GppiW.js} +1 -1
- package/dist/assets/{gux-submenu.entry-BIlJzQjJ.js → gux-submenu.entry-yuQhJhYJ.js} +1 -1
- package/dist/assets/{gux-switch-item.entry-Cgtmox8R.js → gux-switch-item.entry-DCal6u4b.js} +1 -1
- package/dist/assets/{gux-switch-legacy.entry-DsGOmtPe.js → gux-switch-legacy.entry-DRJ6ERCC.js} +1 -1
- package/dist/assets/{gux-tab-advanced-list.entry-BtLAOPFJ.js → gux-tab-advanced-list.entry-BN9Y-n35.js} +1 -1
- package/dist/assets/{gux-tab-advanced-panel.entry-DIpz0Cfq.js → gux-tab-advanced-panel.entry-D6qrOxFC.js} +1 -1
- package/dist/assets/{gux-tab-advanced.entry-BJITyN8b.js → gux-tab-advanced.entry-CJpSAFGF.js} +1 -1
- package/dist/assets/{gux-tab-list.entry-C7TvqKuP.js → gux-tab-list.entry-CQhckOwW.js} +1 -1
- package/dist/assets/{gux-tab-panel.entry-C2d5THOw.js → gux-tab-panel.entry-odbNoEiY.js} +1 -1
- package/dist/assets/{gux-tab.entry-C4cHFqyb.js → gux-tab.entry-DrrIYPFo.js} +1 -1
- package/dist/assets/{gux-table-select-menu.entry-B0sGVIcE.js → gux-table-select-menu.entry-DKxPBBXD.js} +1 -1
- package/dist/assets/{gux-table-toolbar-action.entry-6BqIINZe.js → gux-table-toolbar-action.entry-C1YCiaaS.js} +1 -1
- package/dist/assets/{gux-table-toolbar-custom-action.entry-kKhiKsjX.js → gux-table-toolbar-custom-action.entry-DALDxcAQ.js} +1 -1
- package/dist/assets/{gux-table-toolbar-menu-button.entry-CRgm9k5e.js → gux-table-toolbar-menu-button.entry-DyDFkpyI.js} +1 -1
- package/dist/assets/{gux-table-toolbar.entry-Ba-W7m77.js → gux-table-toolbar.entry-SaVJNWUO.js} +1 -1
- package/dist/assets/{gux-table.entry-Du_lBgt-.js → gux-table.entry-DFdyFte5.js} +1 -1
- package/dist/assets/{gux-tabs-advanced.entry-spkmmAd3.js → gux-tabs-advanced.entry-B27L6L9m.js} +1 -1
- package/dist/assets/{gux-tabs.entry-BEULiyba.js → gux-tabs.entry-0Ej1nHBV.js} +1 -1
- package/dist/assets/{gux-tag.entry-BqkYTi8D.js → gux-tag.entry-DrqMTz8A.js} +1 -1
- package/dist/assets/{gux-text-highlight.entry-DOOZoYpX.js → gux-text-highlight.entry-DNUMmQHn.js} +1 -1
- package/dist/assets/{gux-time-beta.entry-Ch9EsUkg.js → gux-time-beta.entry-dNtqqDqZ.js} +1 -1
- package/dist/assets/{gux-time-picker.entry-Cq4RImXx.js → gux-time-picker.entry-CGHVJ-hV.js} +1 -1
- package/dist/assets/{gux-time-zone-beta.entry-De8gNsNd.js → gux-time-zone-beta.entry-ldWMIao-.js} +1 -1
- package/dist/assets/{gux-time-zone-picker-beta.entry-Bqx6c6Qf.js → gux-time-zone-picker-beta.entry-6etcN2qE.js} +1 -1
- package/dist/assets/{gux-toast.entry-F3efkRwy.js → gux-toast.entry-Cq4VhlFL.js} +1 -1
- package/dist/assets/{gux-toggle-slider.entry-DcoVYfs5.js → gux-toggle-slider.entry-Dj4R_vqB.js} +1 -1
- package/dist/assets/{gux-toggle.entry-Cu3eAfan.js → gux-toggle.entry-8BcDCRE8.js} +1 -1
- package/dist/assets/{gux-tooltip-base-beta_2.entry-1gOdb2cF.js → gux-tooltip-base-beta_2.entry-BkQ0AWOb.js} +1 -1
- package/dist/assets/{gux-tooltip-pointer-beta.entry-D-hRxe26.js → gux-tooltip-pointer-beta.entry-dFwvYr4I.js} +1 -1
- package/dist/assets/{gux-tooltip-title.entry-DjR4NFSD.js → gux-tooltip-title.entry-BYB-EI24.js} +1 -1
- package/dist/assets/{gux-tooltip_2.entry-CKPibHyg.js → gux-tooltip_2.entry-Bkw1a_Up.js} +1 -1
- package/dist/assets/{index-4f1356d9-DSfDpFAA.js → index-4f1356d9-D95neeh-.js} +1 -1
- package/dist/assets/{index-CWixJ8vL.js → index-DnQlhAI3.js} +2 -2
- package/dist/assets/{on-click-outside-6c2e399b-BC2t0a8o.js → on-click-outside-6c2e399b-16SRQpNH.js} +1 -1
- package/dist/assets/{on-mutation-751e68e4-BRlz63Dw.js → on-mutation-751e68e4-Dt8NpKTF.js} +1 -1
- package/dist/assets/{on-resize-c9d0d33c-RQFUwEyO.js → on-resize-c9d0d33c-COxDFtcb.js} +1 -1
- package/dist/deploy-info.json +4 -4
- package/dist/genesys-cloud-client-auth.browser.min.js +1 -1
- package/dist/genesys-cloud-client-auth.browser.min.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/lib/cjs/authenticator.d.ts +5 -4
- package/dist/lib/cjs/authenticator.js +14 -8
- package/dist/lib/cjs/authenticator.js.map +1 -1
- package/dist/lib/cjs/version.js +1 -1
- package/dist/lib/es/authenticator.d.ts +5 -4
- package/dist/lib/es/authenticator.js +14 -8
- package/dist/lib/es/authenticator.js.map +1 -1
- package/dist/lib/es/version.js +1 -1
- package/dist/manifest.json +4 -4
- package/dist/v1/genesys-cloud-client-auth.browser.min.js +1 -1
- package/dist/v1.0.1/genesys-cloud-client-auth.browser.min.js +2 -0
- package/package.json +4 -4
- package/dist/v1.0.0/genesys-cloud-client-auth.browser.min.js +0 -2
package/dist/assets/{on-click-outside-6c2e399b-BC2t0a8o.js → on-click-outside-6c2e399b-16SRQpNH.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as o}from"./index-
|
|
1
|
+
import{g as o}from"./index-DnQlhAI3.js";const u={triggerEvents:"click",exclude:""};function C(t=u){return(e,n)=>{const{connectedCallback:i,disconnectedCallback:c}=e,s=new Map;e.connectedCallback=function(){const r=o(this),l=this[n];return a(s,this,r,l,t),i&&i.call(this)},e.disconnectedCallback=function(){return f(s,this,t),c&&c.call(this)}}}function a(t,e,n,i,c=u){const s=h(c),r=l=>{g(l,e,n,i,s)};t.set(e,r),d(c).forEach(l=>{window.addEventListener(l,r,!1)})}function f(t,e,n=u){const i=t.get(e);t.delete(e),d(n).forEach(c=>{window.removeEventListener(c,i,!1)})}function g(t,e,n,i,c){const s=t.composedPath();!s.includes(n)&&!O(s,c)&&n.isConnected&&i.call(e,t)}function d(t){let e;return t.triggerEvents?e=t.triggerEvents.split(",").map(n=>n.trim()):e=["click"],e.includes("blur")||e.push("blur"),e}function h(t){if(t.exclude)try{return Array.from(document.querySelectorAll(t.exclude))}catch(e){console.warn(`@OnClickOutside: Exclude: '${t.exclude}' will not be evaluated. Check your exclude selector syntax.`,e)}}function O(t,e){return t&&e?e.some(n=>t.includes(n)):!1}export{C as O};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as r}from"./index-
|
|
1
|
+
import{g as r}from"./index-DnQlhAI3.js";function b(t){return(n,e)=>{const{connectedCallback:c,disconnectedCallback:i}=n,s=new Map;n.connectedCallback=function(){const a=this[e],o=new MutationObserver(a.bind(this));return l(s,this,o,t),c&&c.call(this)},n.disconnectedCallback=function(){return d(s,this),i&&i.call(this)}}}function l(t,n,e,c){t.has(n)&&t.get(n).disconnect(),t.set(n,e),e.observe(r(n),c)}function d(t,n){t.has(n)&&t.get(n).disconnect(),t.delete(n)}export{b as O};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l}from"./index-
|
|
1
|
+
import{g as l}from"./index-DnQlhAI3.js";function f(){return(e,n)=>{const{connectedCallback:t,disconnectedCallback:c}=e,s=new Map;e.connectedCallback=function(){const i=this[n],a=new ResizeObserver(i.bind(this));return o(s,this,a),t&&t.call(this)},e.disconnectedCallback=function(){return r(s,this),c&&c.call(this)}}}function o(e,n,t){e.has(n)&&e.get(n).disconnect(),e.set(n,t);const c=l(n);c instanceof Element&&t.observe(c)}function r(e,n){e.has(n)&&e.get(n).disconnect(),e.delete(n)}export{f as O};
|
package/dist/deploy-info.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
3
|
-
"build": "
|
|
4
|
-
"buildDate": "2025-
|
|
2
|
+
"version": "release/v1.0.1",
|
|
3
|
+
"build": "9",
|
|
4
|
+
"buildDate": "2025-07-23T11:05:12.554Z",
|
|
5
5
|
"indexFiles": [
|
|
6
6
|
{
|
|
7
7
|
"file": "index.html"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"file": "/v1/genesys-cloud-client-auth.browser.min.js"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
|
-
"file": "/v1.0.
|
|
13
|
+
"file": "/v1.0.1/genesys-cloud-client-auth.browser.min.js"
|
|
14
14
|
}
|
|
15
15
|
],
|
|
16
16
|
"team": "Client Streaming and Signaling",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var t={3144:(t,e,r)=>{"use strict";var o=r(6743),n=r(1002),i=r(76),s=r(7119);t.exports=s||o.call(i,n)},1002:t=>{"use strict";t.exports=Function.prototype.apply},76:t=>{"use strict";t.exports=Function.prototype.call},3126:(t,e,r)=>{"use strict";var o=r(6743),n=r(9675),i=r(76),s=r(3144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new n("a function is required");return s(o,i,t)}},7119:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},6556:(t,e,r)=>{"use strict";var o=r(453),n=r(3126),i=n([o("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=o(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?n([r]):r}},5971:t=>{function e(t){if(t)return function(t){for(var r in e.prototype)t[r]=e.prototype[r];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,o=this._callbacks["$"+t];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n=0;n<o.length;n++)if((r=o[n])===e||r.fn===e){o.splice(n,1);break}return 0===o.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(r){o=0;for(var n=(r=r.slice(0)).length;o<n;++o)r[o].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}},7176:(t,e,r)=>{"use strict";var o,n=r(3126),i=r(5795);try{o=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var s=!!o&&i&&i(Object.prototype,"__proto__"),a=Object,c=a.getPrototypeOf;t.exports=s&&"function"==typeof s.get?n([s.get]):"function"==typeof c&&function(t){return c(null==t?t:a(t))}},655:t=>{"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},1237:t=>{"use strict";t.exports=EvalError},9383:t=>{"use strict";t.exports=Error},9290:t=>{"use strict";t.exports=RangeError},9538:t=>{"use strict";t.exports=ReferenceError},8068:t=>{"use strict";t.exports=SyntaxError},9675:t=>{"use strict";t.exports=TypeError},5345:t=>{"use strict";t.exports=URIError},9612:t=>{"use strict";t.exports=Object},8463:t=>{t.exports=s,s.default=s,s.stable=u,s.stableStringify=u;var e="[...]",r="[Circular]",o=[],n=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(t,e,r,s){var a;void 0===s&&(s=i()),c(t,"",0,[],void 0,0,s);try{a=0===n.length?JSON.stringify(t,e,r):JSON.stringify(t,f(e),r)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var p=o.pop();4===p.length?Object.defineProperty(p[0],p[1],p[3]):p[0][p[1]]=p[2]}}return a}function a(t,e,r,i){var s=Object.getOwnPropertyDescriptor(i,r);void 0!==s.get?s.configurable?(Object.defineProperty(i,r,{value:t}),o.push([i,r,e,s])):n.push([e,r,t]):(i[r]=t,o.push([i,r,e]))}function c(t,o,n,i,s,p,u){var l;if(p+=1,"object"==typeof t&&null!==t){for(l=0;l<i.length;l++)if(i[l]===t)return void a(r,t,o,s);if(void 0!==u.depthLimit&&p>u.depthLimit)return void a(e,t,o,s);if(void 0!==u.edgesLimit&&n+1>u.edgesLimit)return void a(e,t,o,s);if(i.push(t),Array.isArray(t))for(l=0;l<t.length;l++)c(t[l],l,l,i,t,p,u);else{var f=Object.keys(t);for(l=0;l<f.length;l++){var y=f[l];c(t[y],y,l,i,t,p,u)}}i.pop()}}function p(t,e){return t<e?-1:t>e?1:0}function u(t,e,r,s){void 0===s&&(s=i());var a,c=l(t,"",0,[],void 0,0,s)||t;try{a=0===n.length?JSON.stringify(c,e,r):JSON.stringify(c,f(e),r)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var p=o.pop();4===p.length?Object.defineProperty(p[0],p[1],p[3]):p[0][p[1]]=p[2]}}return a}function l(t,n,i,s,c,u,f){var y;if(u+=1,"object"==typeof t&&null!==t){for(y=0;y<s.length;y++)if(s[y]===t)return void a(r,t,n,c);try{if("function"==typeof t.toJSON)return}catch(t){return}if(void 0!==f.depthLimit&&u>f.depthLimit)return void a(e,t,n,c);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void a(e,t,n,c);if(s.push(t),Array.isArray(t))for(y=0;y<t.length;y++)l(t[y],y,y,s,t,u,f);else{var h={},d=Object.keys(t).sort(p);for(y=0;y<d.length;y++){var m=d[y];l(t[m],m,y,s,t,u,f),h[m]=t[m]}if(void 0===c)return h;o.push([c,n,t]),c[n]=h}s.pop()}}function f(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(n.length>0)for(var o=0;o<n.length;o++){var i=n[o];if(i[1]===e&&i[0]===r){r=i[2],n.splice(o,1);break}}return t.call(this,e,r)}}},9353:t=>{"use strict";var e=Object.prototype.toString,r=Math.max,o=function(t,e){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var n=0;n<e.length;n+=1)r[n+t.length]=e[n];return r};t.exports=function(t){var n=this;if("function"!=typeof n||"[object Function]"!==e.apply(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var i,s=function(t){for(var e=[],r=1,o=0;r<t.length;r+=1,o+=1)e[o]=t[r];return e}(arguments),a=r(0,n.length-s.length),c=[],p=0;p<a;p++)c[p]="$"+p;if(i=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(c)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var e=n.apply(this,o(s,arguments));return Object(e)===e?e:this}return n.apply(t,o(s,arguments))})),n.prototype){var u=function(){};u.prototype=n.prototype,i.prototype=new u,u.prototype=null}return i}},6743:(t,e,r)=>{"use strict";var o=r(9353);t.exports=Function.prototype.bind||o},453:(t,e,r)=>{"use strict";var o,n=r(9612),i=r(9383),s=r(1237),a=r(9290),c=r(9538),p=r(8068),u=r(9675),l=r(5345),f=r(1514),y=r(8968),h=r(6188),d=r(8002),m=r(5880),g=r(414),b=r(3093),w=Function,v=function(t){try{return w('"use strict"; return ('+t+").constructor;")()}catch(t){}},_=r(5795),S=r(655),E=function(){throw new u},O=_?function(){try{return E}catch(t){try{return _(arguments,"callee").get}catch(t){return E}}}():E,x=r(4039)(),A=r(3628),T=r(1064),j=r(8648),P=r(1002),k=r(76),I={},R="undefined"!=typeof Uint8Array&&A?A(Uint8Array):o,D={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":x&&A?A([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":x&&A?A(A([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&x&&A?A((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":a,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&x&&A?A((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":x&&A?A(""[Symbol.iterator]()):o,"%Symbol%":x?Symbol:o,"%SyntaxError%":p,"%ThrowTypeError%":O,"%TypedArray%":R,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":P,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":T,"%Math.abs%":f,"%Math.floor%":y,"%Math.max%":h,"%Math.min%":d,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":j};if(A)try{null.error}catch(t){var N=A(A(t));D["%Error.prototype%"]=N}var U=function t(e){var r;if("%AsyncFunction%"===e)r=v("async function () {}");else if("%GeneratorFunction%"===e)r=v("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=v("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&A&&(r=A(n.prototype))}return D[e]=r,r},C={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=r(6743),F=r(9957),M=L.call(k,Array.prototype.concat),$=L.call(P,Array.prototype.splice),B=L.call(k,String.prototype.replace),q=L.call(k,String.prototype.slice),H=L.call(k,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,G=function(t,e){var r,o=t;if(F(C,o)&&(o="%"+(r=C[o])[0]+"%"),F(D,o)){var n=D[o];if(n===I&&(n=U(o)),void 0===n&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new p("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===H(/^%?[^%]*%?$/,t))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=q(t,0,1),r=q(t,-1);if("%"===e&&"%"!==r)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new p("invalid intrinsic syntax, expected opening `%`");var o=[];return B(t,W,(function(t,e,r,n){o[o.length]=r?B(n,z,"$1"):e||t})),o}(t),o=r.length>0?r[0]:"",n=G("%"+o+"%",e),i=n.name,s=n.value,a=!1,c=n.alias;c&&(o=c[0],$(r,M([0,1],c)));for(var l=1,f=!0;l<r.length;l+=1){var y=r[l],h=q(y,0,1),d=q(y,-1);if(('"'===h||"'"===h||"`"===h||'"'===d||"'"===d||"`"===d)&&h!==d)throw new p("property names with quotes must have matching quotes");if("constructor"!==y&&f||(a=!0),F(D,i="%"+(o+="."+y)+"%"))s=D[i];else if(null!=s){if(!(y in s)){if(!e)throw new u("base intrinsic for "+t+" exists, but the property is not available.");return}if(_&&l+1>=r.length){var m=_(s,y);s=(f=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:s[y]}else f=F(s,y),s=s[y];f&&!a&&(D[i]=s)}}return s}},1064:(t,e,r)=>{"use strict";var o=r(9612);t.exports=o.getPrototypeOf||null},8648:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},3628:(t,e,r)=>{"use strict";var o=r(8648),n=r(1064),i=r(7176);t.exports=o?function(t){return o(t)}:n?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return n(t)}:i?function(t){return i(t)}:null},6549:t=>{"use strict";t.exports=Object.getOwnPropertyDescriptor},5795:(t,e,r)=>{"use strict";var o=r(6549);if(o)try{o([],"length")}catch(t){o=null}t.exports=o},4039:(t,e,r)=>{"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(1333);t.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},1333:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},9957:(t,e,r)=>{"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=r(6743);t.exports=i.call(o,n)},1514:t=>{"use strict";t.exports=Math.abs},8968:t=>{"use strict";t.exports=Math.floor},4459:t=>{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},6188:t=>{"use strict";t.exports=Math.max},8002:t=>{"use strict";t.exports=Math.min},5880:t=>{"use strict";t.exports=Math.pow},414:t=>{"use strict";t.exports=Math.round},3093:(t,e,r)=>{"use strict";var o=r(4459);t.exports=function(t){return o(t)||0===t?t:t<0?-1:1}},8859:(t,e,r)=>{var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,s=o&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=a&&c&&"function"==typeof c.get?c.get:null,u=a&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,d=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,w=String.prototype.replace,v=String.prototype.toUpperCase,_=String.prototype.toLowerCase,S=RegExp.prototype.test,E=Array.prototype.concat,O=Array.prototype.join,x=Array.prototype.slice,A=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,j=Object.getOwnPropertySymbols,P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function N(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||S.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-A(-t):A(t);if(o!==t){var n=String(o),i=b.call(e,n.length+1);return w.call(n,r,"$&_")+"."+w.call(w.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(e,r,"$&_")}var U=r(2634),C=U.custom,L=z(C)?C:null,F={__proto__:null,double:'"',single:"'"},M={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function $(t,e,r){var o=r.quoteStyle||e,n=F[o];return n+t+n}function B(t){return w.call(String(t),/"/g,""")}function q(t){return!I||!("object"==typeof t&&(I in t||void 0!==t[I]))}function H(t){return"[object Array]"===J(t)&&q(t)}function W(t){return"[object RegExp]"===J(t)&&q(t)}function z(t){if(k)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!P)return!1;try{return P.call(t),!0}catch(t){}return!1}t.exports=function t(e,o,n,a){var c=o||{};if(K(c,"quoteStyle")&&!K(F,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(K(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var d=!K(c,"customInspect")||c.customInspect;if("boolean"!=typeof d&&"symbol"!==d)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(K(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(K(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=c.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return Q(e,c);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var S=String(e);return v?N(e,S):S}if("bigint"==typeof e){var A=String(e)+"n";return v?N(e,A):A}var j=void 0===c.depth?5:c.depth;if(void 0===n&&(n=0),n>=j&&j>0&&"object"==typeof e)return H(e)?"[Array]":"[Object]";var C,M=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=O.call(Array(t.indent+1)," ")}return{base:r,prev:O.call(Array(e+1),r)}}(c,n);if(void 0===a)a=[];else if(V(a,e)>=0)return"[Circular]";function G(e,r,o){if(r&&(a=x.call(a)).push(r),o){var i={depth:c.depth};return K(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),t(e,i,n+1,a)}return t(e,c,n+1,a)}if("function"==typeof e&&!W(e)){var X=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),ot=rt(e,G);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(ot.length>0?" { "+O.call(ot,", ")+" }":"")}if(z(e)){var nt=k?w.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(e);return"object"!=typeof e||k?nt:Y(nt)}if((C=e)&&"object"==typeof C&&("undefined"!=typeof HTMLElement&&C instanceof HTMLElement||"string"==typeof C.nodeName&&"function"==typeof C.getAttribute)){for(var it="<"+_.call(String(e.nodeName)),st=e.attributes||[],at=0;at<st.length;at++)it+=" "+st[at].name+"="+$(B(st[at].value),"double",c);return it+=">",e.childNodes&&e.childNodes.length&&(it+="..."),it+"</"+_.call(String(e.nodeName))+">"}if(H(e)){if(0===e.length)return"[]";var ct=rt(e,G);return M&&!function(t){for(var e=0;e<t.length;e++)if(V(t[e],"\n")>=0)return!1;return!0}(ct)?"["+et(ct,M)+"]":"[ "+O.call(ct,", ")+" ]"}if(function(t){return"[object Error]"===J(t)&&q(t)}(e)){var pt=rt(e,G);return"cause"in Error.prototype||!("cause"in e)||R.call(e,"cause")?0===pt.length?"["+String(e)+"]":"{ ["+String(e)+"] "+O.call(pt,", ")+" }":"{ ["+String(e)+"] "+O.call(E.call("[cause]: "+G(e.cause),pt),", ")+" }"}if("object"==typeof e&&d){if(L&&"function"==typeof e[L]&&U)return U(e,{depth:j-n});if("symbol"!==d&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{p.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ut=[];return s&&s.call(e,(function(t,r){ut.push(G(r,e,!0)+" => "+G(t,e))})),tt("Map",i.call(e),ut,M)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var lt=[];return u&&u.call(e,(function(t){lt.push(G(t,e))})),tt("Set",p.call(e),lt,M)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Z("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{l.call(t,l)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Z("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return Z("WeakRef");if(function(t){return"[object Number]"===J(t)&&q(t)}(e))return Y(G(Number(e)));if(function(t){if(!t||"object"!=typeof t||!T)return!1;try{return T.call(t),!0}catch(t){}return!1}(e))return Y(G(T.call(e)));if(function(t){return"[object Boolean]"===J(t)&&q(t)}(e))return Y(h.call(e));if(function(t){return"[object String]"===J(t)&&q(t)}(e))return Y(G(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||void 0!==r.g&&e===r.g)return"{ [object globalThis] }";if(!function(t){return"[object Date]"===J(t)&&q(t)}(e)&&!W(e)){var ft=rt(e,G),yt=D?D(e)===Object.prototype:e instanceof Object||e.constructor===Object,ht=e instanceof Object?"":"null prototype",dt=!yt&&I&&Object(e)===e&&I in e?b.call(J(e),8,-1):ht?"Object":"",mt=(yt||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(dt||ht?"["+O.call(E.call([],dt||[],ht||[]),": ")+"] ":"");return 0===ft.length?mt+"{}":M?mt+"{"+et(ft,M)+"}":mt+"{ "+O.call(ft,", ")+" }"}return String(e)};var G=Object.prototype.hasOwnProperty||function(t){return t in this};function K(t,e){return G.call(t,e)}function J(t){return d.call(t)}function V(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function Q(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return Q(b.call(t,0,e.maxStringLength),e)+o}var n=M[e.quoteStyle||"single"];return n.lastIndex=0,$(w.call(w.call(t,n,"\\$1"),/[\x00-\x1f]/g,X),"single",e)}function X(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+v.call(e.toString(16))}function Y(t){return"Object("+t+")"}function Z(t){return t+" { ? }"}function tt(t,e,r,o){return t+" ("+e+") {"+(o?et(r,o):O.call(r,", "))+"}"}function et(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+O.call(t,","+r)+"\n"+e.prev}function rt(t,e){var r=H(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=K(t,n)?e(t[n],t):""}var i,s="function"==typeof j?j(t):[];if(k){i={};for(var a=0;a<s.length;a++)i["$"+s[a]]=s[a]}for(var c in t)K(t,c)&&(r&&String(Number(c))===c&&c<t.length||k&&i["$"+c]instanceof Symbol||(S.call(/[^\w$]/,c)?o.push(e(c,t)+": "+e(t[c],t)):o.push(c+": "+e(t[c],t))));if("function"==typeof j)for(var p=0;p<s.length;p++)R.call(t,s[p])&&o.push("["+e(s[p])+"]: "+e(t[s[p]],t));return o}},4765:t=>{"use strict";var e=String.prototype.replace,r=/%20/g,o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:o}},5373:(t,e,r)=>{"use strict";var o=r(8636),n=r(2642),i=r(4765);t.exports={formats:i,parse:n,stringify:o}},2642:(t,e,r)=>{"use strict";var o=r(7720),n=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},p=function(t,e,r,i){if(t){var s=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,p=r.depth>0&&/(\[[^[\]]*])/.exec(s),u=p?s.slice(0,p.index):s,l=[];if(u){if(!r.plainObjects&&n.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var f=0;r.depth>0&&null!==(p=a.exec(s))&&f<r.depth;){if(f+=1,!r.plainObjects&&n.call(Object.prototype,p[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(p[1])}if(p){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");l.push("["+s.slice(p.index)+"]")}return function(t,e,r,n){var i=0;if(t.length>0&&"[]"===t[t.length-1]){var s=t.slice(0,-1).join("");i=Array.isArray(e)&&e[s]?e[s].length:0}for(var a=n?e:c(e,r,i),p=t.length-1;p>=0;--p){var u,l=t[p];if("[]"===l&&r.parseArrays)u=r.allowEmptyArrays&&(""===a||r.strictNullHandling&&null===a)?[]:o.combine([],a);else{u=r.plainObjects?{__proto__:null}:{};var f="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,y=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,h=parseInt(y,10);r.parseArrays||""!==y?!isNaN(h)&&l!==y&&String(h)===y&&h>=0&&r.parseArrays&&h<=r.arrayLimit?(u=[])[h]=a:"__proto__"!==y&&(u[y]=a):u={0:a}}a=u}return a}(l,e,r,i)}};t.exports=function(t,e){var r=function(t){if(!t)return s;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=void 0===t.charset?s.charset:t.charset,r=void 0===t.duplicates?s.duplicates:t.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||s.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:s.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:s.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:s.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:s.decoder,delimiter:"string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:s.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:s.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:s.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:s.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:s.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:s.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(e);if(""===t||null==t)return r.plainObjects?{__proto__:null}:{};for(var u="string"==typeof t?function(t,e){var r={__proto__:null},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;p=p.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=e.parameterLimit===1/0?void 0:e.parameterLimit,l=p.split(e.delimiter,e.throwOnLimitExceeded?u+1:u);if(e.throwOnLimitExceeded&&l.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var f,y=-1,h=e.charset;if(e.charsetSentinel)for(f=0;f<l.length;++f)0===l[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[f]?h="utf-8":"utf8=%26%2310003%3B"===l[f]&&(h="iso-8859-1"),y=f,f=l.length);for(f=0;f<l.length;++f)if(f!==y){var d,m,g=l[f],b=g.indexOf("]="),w=-1===b?g.indexOf("="):b+1;-1===w?(d=e.decoder(g,s.decoder,h,"key"),m=e.strictNullHandling?null:""):(d=e.decoder(g.slice(0,w),s.decoder,h,"key"),m=o.maybeMap(c(g.slice(w+1),e,i(r[d])?r[d].length:0),(function(t){return e.decoder(t,s.decoder,h,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===h&&(m=a(String(m))),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m);var v=n.call(r,d);v&&"combine"===e.duplicates?r[d]=o.combine(r[d],m):v&&"last"!==e.duplicates||(r[d]=m)}return r}(t,r):t,l=r.plainObjects?{__proto__:null}:{},f=Object.keys(u),y=0;y<f.length;++y){var h=f[y],d=p(h,u[h],r,"string"==typeof t);l=o.merge(l,d,r)}return!0===r.allowSparse?l:o.compact(l)}},8636:(t,e,r)=>{"use strict";var o=r(920),n=r(7720),i=r(4765),s=Object.prototype.hasOwnProperty,a={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,p=Array.prototype.push,u=function(t,e){p.apply(t,c(e)?e:[e])},l=Date.prototype.toISOString,f=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},h={},d=function t(e,r,i,s,a,p,l,f,d,m,g,b,w,v,_,S,E,O){for(var x,A=e,T=O,j=0,P=!1;void 0!==(T=T.get(h))&&!P;){var k=T.get(e);if(j+=1,void 0!==k){if(k===j)throw new RangeError("Cyclic object value");P=!0}void 0===T.get(h)&&(j=0)}if("function"==typeof m?A=m(r,A):A instanceof Date?A=w(A):"comma"===i&&c(A)&&(A=n.maybeMap(A,(function(t){return t instanceof Date?w(t):t}))),null===A){if(p)return d&&!S?d(r,y.encoder,E,"key",v):r;A=""}if("string"==typeof(x=A)||"number"==typeof x||"boolean"==typeof x||"symbol"==typeof x||"bigint"==typeof x||n.isBuffer(A))return d?[_(S?r:d(r,y.encoder,E,"key",v))+"="+_(d(A,y.encoder,E,"value",v))]:[_(r)+"="+_(String(A))];var I,R=[];if(void 0===A)return R;if("comma"===i&&c(A))S&&d&&(A=n.maybeMap(A,d)),I=[{value:A.length>0?A.join(",")||null:void 0}];else if(c(m))I=m;else{var D=Object.keys(A);I=g?D.sort(g):D}var N=f?String(r).replace(/\./g,"%2E"):String(r),U=s&&c(A)&&1===A.length?N+"[]":N;if(a&&c(A)&&0===A.length)return U+"[]";for(var C=0;C<I.length;++C){var L=I[C],F="object"==typeof L&&L&&void 0!==L.value?L.value:A[L];if(!l||null!==F){var M=b&&f?String(L).replace(/\./g,"%2E"):String(L),$=c(A)?"function"==typeof i?i(U,M):U:U+(b?"."+M:"["+M+"]");O.set(e,j);var B=o();B.set(h,O),u(R,t(F,$,i,s,a,p,l,f,"comma"===i&&S&&c(A)?null:d,m,g,b,w,v,_,S,E,B))}}return R};t.exports=function(t,e){var r,n=t,p=function(t){if(!t)return y;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||y.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!s.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o,n=i.formatters[r],p=y.filter;if(("function"==typeof t.filter||c(t.filter))&&(p=t.filter),o=t.arrayFormat in a?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===t.allowDots?!0===t.encodeDotInKeys||y.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:y.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:o,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:y.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?y.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:y.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:y.encodeValuesOnly,filter:p,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:y.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:y.strictNullHandling}}(e);"function"==typeof p.filter?n=(0,p.filter)("",n):c(p.filter)&&(r=p.filter);var l=[];if("object"!=typeof n||null===n)return"";var f=a[p.arrayFormat],h="comma"===f&&p.commaRoundTrip;r||(r=Object.keys(n)),p.sort&&r.sort(p.sort);for(var m=o(),g=0;g<r.length;++g){var b=r[g],w=n[b];p.skipNulls&&null===w||u(l,d(w,b,f,h,p.allowEmptyArrays,p.strictNullHandling,p.skipNulls,p.encodeDotInKeys,p.encode?p.encoder:null,p.filter,p.sort,p.allowDots,p.serializeDate,p.format,p.formatter,p.encodeValuesOnly,p.charset,m))}var v=l.join(p.delimiter),_=!0===p.addQueryPrefix?"?":"";return p.charsetSentinel&&("iso-8859-1"===p.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),v.length>0?_+v:""}},7720:(t,e,r)=>{"use strict";var o=r(4765),n=Object.prototype.hasOwnProperty,i=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var r=e&&e.plainObjects?{__proto__:null}:{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r},c=1024;t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var n=e[o],s=n.obj[n.prop],a=Object.keys(s),c=0;c<a.length;++c){var p=a[c],u=s[p];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(e.push({obj:s,prop:p}),r.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(t){return o}},encode:function(t,e,r,n,i){if(0===t.length)return t;var a=t;if("symbol"==typeof t?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var p="",u=0;u<a.length;u+=c){for(var l=a.length>=c?a.slice(u,u+c):a,f=[],y=0;y<l.length;++y){var h=l.charCodeAt(y);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===o.RFC1738&&(40===h||41===h)?f[f.length]=l.charAt(y):h<128?f[f.length]=s[h]:h<2048?f[f.length]=s[192|h>>6]+s[128|63&h]:h<55296||h>=57344?f[f.length]=s[224|h>>12]+s[128|h>>6&63]+s[128|63&h]:(y+=1,h=65536+((1023&h)<<10|1023&l.charCodeAt(y)),f[f.length]=s[240|h>>18]+s[128|h>>12&63]+s[128|h>>6&63]+s[128|63&h])}p+=f.join("")}return p},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r&&"function"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var s=e;return i(e)&&!i(r)&&(s=a(e,o)),i(e)&&i(r)?(r.forEach((function(r,i){if(n.call(e,i)){var s=e[i];s&&"object"==typeof s&&r&&"object"==typeof r?e[i]=t(s,r,o):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var s=r[i];return n.call(e,i)?e[i]=t(e[i],s,o):e[i]=s,e}),s)}}},4803:(t,e,r)=>{"use strict";var o=r(8859),n=r(9675),i=function(t,e,r){for(var o,n=t;null!=(o=n.next);n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o};t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+o(t))},delete:function(e){var r=t&&t.next,o=function(t,e){if(t)return i(t,e,!0)}(t,e);return o&&r&&r===o&&(t=void 0),!!o},get:function(e){return function(t,e){if(t){var r=i(t,e);return r&&r.value}}(t,e)},has:function(e){return function(t,e){return!!t&&!!i(t,e)}(t,e)},set:function(e,r){t||(t={next:void 0}),function(t,e,r){var o=i(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(t,e,r)}};return e}},507:(t,e,r)=>{"use strict";var o=r(453),n=r(6556),i=r(8859),s=r(9675),a=o("%Map%",!0),c=n("Map.prototype.get",!0),p=n("Map.prototype.set",!0),u=n("Map.prototype.has",!0),l=n("Map.prototype.delete",!0),f=n("Map.prototype.size",!0);t.exports=!!a&&function(){var t,e={assert:function(t){if(!e.has(t))throw new s("Side channel does not contain "+i(t))},delete:function(e){if(t){var r=l(t,e);return 0===f(t)&&(t=void 0),r}return!1},get:function(e){if(t)return c(t,e)},has:function(e){return!!t&&u(t,e)},set:function(e,r){t||(t=new a),p(t,e,r)}};return e}},2271:(t,e,r)=>{"use strict";var o=r(453),n=r(6556),i=r(8859),s=r(507),a=r(9675),c=o("%WeakMap%",!0),p=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),l=n("WeakMap.prototype.has",!0),f=n("WeakMap.prototype.delete",!0);t.exports=c?function(){var t,e,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+i(t))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(t)return f(t,r)}else if(s&&e)return e.delete(r);return!1},get:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&t?p(t,r):e&&e.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&t?l(t,r):!!e&&e.has(r)},set:function(r,o){c&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new c),u(t,r,o)):s&&(e||(e=s()),e.set(r,o))}};return r}:s},920:(t,e,r)=>{"use strict";var o=r(9675),n=r(8859),i=r(4803),s=r(507),a=r(2271)||s||i;t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new o("Side channel does not contain "+n(t))},delete:function(e){return!!t&&t.delete(e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,r){t||(t=a()),t.set(e,r)}};return e}},1380:t=>{"use strict";const e=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];class r{constructor(){this._defaults=[]}_setDefaults(t){for(const e of this._defaults)t[e.fn](...e.args)}}for(const t of e)r.prototype[t]=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return this._defaults.push({fn:t,args:r}),this};t.exports=r},5734:(t,e,r)=>{"use strict";let o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;const n=r(5971),i=r(8463),s=r(5373),a=r(1948),{isObject:c,mixin:p,hasOwn:u}=r(3048),l=r(9450),f=r(1380);function y(){}t.exports=function(t,r){return"function"==typeof r?new e.Request("GET",t).end(r):1===arguments.length?new e.Request("GET",t):new e.Request(t,r)};const h=e=t.exports;e.Request=_,h.getXHR=()=>{if(o.XMLHttpRequest)return new o.XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};const d="".trim?t=>t.trim():t=>t.replace(/(^\s*|\s*$)/g,"");function m(t){if(!c(t))return t;const e=[];for(const r in t)u(t,r)&&g(e,r,t[r]);return e.join("&")}function g(t,e,r){if(void 0!==r)if(null!==r)if(Array.isArray(r))for(const o of r)g(t,e,o);else if(c(r))for(const o in r)u(r,o)&&g(t,`${e}[${o}]`,r[o]);else t.push(encodeURI(e)+"="+encodeURIComponent(r));else t.push(encodeURI(e))}function b(t){const e={},r=t.split("&");let o,n;for(let t=0,i=r.length;t<i;++t)o=r[t],n=o.indexOf("="),-1===n?e[decodeURIComponent(o)]="":e[decodeURIComponent(o.slice(0,n))]=decodeURIComponent(o.slice(n+1));return e}function w(t){return/[/+]json($|[^-\w])/i.test(t)}function v(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;let{status:e}=this.xhr;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){const e=t.split(/\r?\n/),r={};let o,n,i,s;for(let t=0,a=e.length;t<a;++t)n=e[t],o=n.indexOf(":"),-1!==o&&(i=n.slice(0,o).toLowerCase(),s=d(n.slice(o+1)),r[i]=s);return r}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function _(t,e){const r=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(()=>{let t,e=null,o=null;try{o=new v(r)}catch(t){return e=new Error("Parser is unable to parse the response"),e.parse=!0,e.original=t,r.xhr?(e.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",o);try{r._isResponseOK(o)||(t=new Error(o.statusText||o.text||"Unsuccessful HTTP response"))}catch(e){t=e}t?(t.original=e,t.response=o,t.status=t.status||o.status,r.callback(t,o)):r.callback(null,o)}))}h.serializeObject=m,h.parseString=b,h.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},h.serialize={"application/x-www-form-urlencoded":t=>s.stringify(t,{indices:!1,strictNullHandling:!0}),"application/json":i},h.parse={"application/x-www-form-urlencoded":b,"application/json":JSON.parse},p(v.prototype,l.prototype),v.prototype._parseBody=function(t){let e=h.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&w(this.type)&&(e=h.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},v.prototype.toError=function(){const{req:t}=this,{method:e}=t,{url:r}=t,o=`cannot ${e} ${r} (${this.status})`,n=new Error(o);return n.status=this.status,n.method=e,n.url=r,n},h.Response=v,n(_.prototype),p(_.prototype,a.prototype),_.prototype.type=function(t){return this.set("Content-Type",h.types[t]||t),this},_.prototype.accept=function(t){return this.set("Accept",h.types[t]||t),this},_.prototype.auth=function(t,e,r){1===arguments.length&&(e=""),"object"==typeof e&&null!==e&&(r=e,e=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});const o=r.encoder?r.encoder:t=>{if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,r,o)},_.prototype.query=function(t){return"string"!=typeof t&&(t=m(t)),t&&this._query.push(t),this},_.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},_.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},_.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();const r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},_.prototype.crossDomainError=function(){const t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},_.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},_.prototype.ca=_.prototype.agent,_.prototype.buffer=_.prototype.ca,_.prototype.write=()=>{throw new Error("Streaming is not supported in browser version of superagent")},_.prototype.pipe=_.prototype.write,_.prototype._isHost=function(t){return t&&"object"==typeof t&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},_.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||y,this._finalizeQueryString(),this._end()},_.prototype._setUploadTimeout=function(){const t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((()=>{t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},_.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));const t=this;this.xhr=h.getXHR();const{xhr:e}=this;let r=this._formData||this._data;this._setTimeouts(),e.addEventListener("readystatechange",(()=>{const{readyState:r}=e;if(r>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4!==r)return;let o;try{o=e.status}catch(t){o=0}if(!o){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}));const o=(e,r)=>{r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.addEventListener("progress",o.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",o.bind(null,"upload"))}catch(t){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){const t=this._header["content-type"];let e=this._serializer||h.serialize[t?t.split(";")[0]:""];!e&&w(t)&&(e=h.serialize["application/json"]),e&&(r=e(r))}for(const t in this.header)null!==this.header[t]&&u(this.header,t)&&e.setRequestHeader(t,this.header[t]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===r?null:r)},h.agent=()=>new f;for(const t of["GET","POST","OPTIONS","PATCH","PUT","DELETE"])f.prototype[t.toLowerCase()]=function(e,r){const o=new h.Request(t,e);return this._setDefaults(o),r&&o.end(r),o};function S(t,e,r){const o=h("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o}f.prototype.del=f.prototype.delete,h.get=(t,e,r)=>{const o=h("GET",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},h.head=(t,e,r)=>{const o=h("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},h.options=(t,e,r)=>{const o=h("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},h.del=S,h.delete=S,h.patch=(t,e,r)=>{const o=h("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},h.post=(t,e,r)=>{const o=h("POST",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},h.put=(t,e,r)=>{const o=h("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o}},1948:(t,e,r)=>{"use strict";const{isObject:o,hasOwn:n}=r(3048);function i(){}t.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(t){return this._parser=t,this},i.prototype.responseType=function(t){return this._responseType=t,this},i.prototype.serialize=function(t){return this._serializer=t,this},i.prototype.timeout=function(t){if(!t||"object"!=typeof t)return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(const e in t)if(n(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},i.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};const s=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),a=new Set([408,413,429,500,502,503,504,521,522,524]);i.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{const r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(t){console.error(t)}if(e&&e.status&&a.has(e.status))return!0;if(t){if(t.code&&s.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(t,e){if(!this._fullfilledPromise){const t=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(((e,r)=>{t.on("abort",(()=>{if(this._maxRetries&&this._maxRetries>this._retries)return;if(this.timedout&&this.timedoutError)return void r(this.timedoutError);const t=new Error("Aborted");t.code="ABORTED",t.status=this.status,t.method=this.method,t.url=this.url,r(t)})),t.end(((t,o)=>{t?r(t):e(o)}))}))}return this._fullfilledPromise.then(t,e)},i.prototype.catch=function(t){return this.then(void 0,t)},i.prototype.use=function(t){return t(this),this},i.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},i.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},i.prototype.get=function(t){return this._header[t.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(t,e){if(o(t)){for(const e in t)n(t,e)&&this.set(e,t[e]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},i.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},i.prototype.field=function(t,e,r){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(t)){for(const e in t)n(t,e)&&this.field(e,t[e]);return this}if(Array.isArray(e)){for(const r in e)n(e,r)&&this.field(t,e[r]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),r?this._getFormData().append(t,e,r):this._getFormData().append(t,e),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(t,e,r,o){switch(r.type){case"basic":this.set("Authorization",`Basic ${o(`${t}:${e}`)}`);break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization",`Bearer ${t}`)}return this},i.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},i.prototype.redirects=function(t){return this._maxRedirects=t,this},i.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(t){const e=o(t);let r=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&o(this._data))for(const e in t){if("bigint"==typeof t[e]&&!t[e].toJSON)throw new Error("Cannot serialize BigInt value to json");n(t,e)&&(this._data[e]=t[e])}else{if("bigint"==typeof t)throw new Error("Cannot send value of type BigInt");"string"==typeof t?(r||this.type("form"),r=this._header["content-type"],r&&(r=r.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===r?this._data?`${this._data}&${t}`:t:(this._data||"")+t):this._data=t}return!e||this._isHost(t)||r||this.type("json"),this},i.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},i.prototype._finalizeQueryString=function(){const t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){const t=this.url.indexOf("?");if(t>=0){const e=this.url.slice(t+1).split("&");"function"==typeof this._sort?e.sort(this._sort):e.sort(),this.url=this.url.slice(0,t)+"?"+e.join("&")}}},i.prototype._appendQueryString=()=>{console.warn("Unsupported")},i.prototype._timeoutError=function(t,e,r){if(this._aborted)return;const o=new Error(`${t+e}ms exceeded`);o.timeout=e,o.code="ECONNABORTED",o.errno=r,this.timedout=!0,this.timedoutError=o,this.abort(),this.callback(o)},i.prototype._setTimeouts=function(){const t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((()=>{t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((()=>{t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},9450:(t,e,r)=>{"use strict";const o=r(3048);function n(){}t.exports=n,n.prototype.get=function(t){return this.header[t.toLowerCase()]},n.prototype._setHeaderProperties=function(t){const e=t["content-type"]||"";this.type=o.type(e);const r=o.params(e);for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&(this[t]=r[t]);this.links={};try{t.link&&(this.links=o.parseLinks(t.link))}catch(t){}},n.prototype._setStatusProperties=function(t){const e=Math.trunc(t/100);this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t}},3048:(t,e)=>{"use strict";e.type=t=>t.split(/ *; */).shift(),e.params=t=>{const e={};for(const r of t.split(/ *; */)){const t=r.split(/ *= */),o=t.shift(),n=t.shift();o&&n&&(e[o]=n)}return e},e.parseLinks=t=>{const e={};for(const r of t.split(/ *, */)){const t=r.split(/ *; */),o=t[0].slice(1,-1);e[t[1].split(/ *= */)[1].slice(1,-1)]=o}return e},e.cleanHeader=(t,e)=>(delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t),e.normalizeHostname=t=>{const[,e]=t.match(/^\[([^\]]+)\]$/)||[];return e||t},e.isObject=t=>null!==t&&"object"==typeof t,e.hasOwn=Object.hasOwn||function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(t),e)},e.mixin=(t,r)=>{for(const o in r)e.hasOwn(r,o)&&(t[o]=r[o])},e.isGzipOrDeflateEncoding=t=>new RegExp(/^\s*(?:deflate|gzip)\s*$/).test(t.headers["content-encoding"]),e.isBrotliEncoding=t=>new RegExp(/^\s*(?:br)\s*$/).test(t.headers["content-encoding"])},2634:()=>{}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";r.r(o),r.d(o,{GenesysCloudClientAuthenticator:()=>b,TimeoutError:()=>l,VERSION:()=>p,authenticatorFactory:()=>_,default:()=>S,handleRedirectFromLogin:()=>w,isIssuedTimeWithinTimeframe:()=>d,isIssuedTimeWithinWindow:()=>m,parseOauthParams:()=>y,tokenWasIssuedAt:()=>g}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var t=r(5734),e=r.n(t);const n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i;const s=new Uint8Array(16),a=[];for(let t=0;t<256;++t)a.push((t+256).toString(16).slice(1));const c=function(t,e,r){if(n.randomUUID&&!e&&!t)return n.randomUUID();const o=(t=t||{}).random??t.rng?.()??function(){if(!i){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");i=crypto.getRandomValues.bind(crypto)}return i(s)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){if((r=r||0)<0||r+16>e.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let t=0;t<16;++t)e[r+t]=o[t];return e}return function(t,e=0){return(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase()}(o)},p="1.0.0",u="color: #f29f2c";class l extends Error{constructor(){super(...arguments),this.name="TIMEOUT_ERROR"}}class f extends Error{constructor(t,e){const r=e&&e instanceof Error;super(r?e.message:e),r&&(this.name=e.name),this.translationKey=t}}const y=(t=window.location.hash)=>{const e={},r={},o=new RegExp("^#*(.+?)=(.+?)$","i");if(t.split("&").forEach((t=>{const r=o.exec(t);r&&(e[r[1]]=decodeURIComponent(decodeURIComponent(r[2].replace(/\+/g,"%20"))))})),e.error)return e;if(e.access_token){if(e.state&&(r.state=e.state),e.expires_in){const t=1e3*parseInt(e.expires_in.replace(/\+/g,"%20"));r.tokenExpiryTime=Date.now()+t,r.tokenExpiryTimeString=new Date(r.tokenExpiryTime).toISOString()}r.accessToken=e.access_token.replace(/\+/g,"%20")}return r},h=(t,e)=>{e?(console.log(`%c [DEBUG:gc-client-auth:${p}] ${t}`,u,e),"object"==typeof e&&console.log(`%c [DEBUG:gc-client-auth:${p}] ^ stringified: ${JSON.stringify(e)}`,u)):console.log(`%c [DEBUG:gc-client-auth:${p}] ${t}`,u)},d=(t,e=691199e3,r=168e4,o=Date.now())=>o-g(t,e)<r,m=(t,e,r)=>d(t,e,r),g=(t,e)=>t-e;class b{constructor(t,e={}){this.VERSION=p,this.clientId=t,e.storageKey||(e.storageKey="gc_client_auth_data"),"boolean"!=typeof e.persist&&(e.persist=!1),this.config=Object.assign({},e),this.customHeaders=e.customHeaders,this.setEnvironment(e.environment),this.timeout=16e3,this.authData={},this.authentications={"PureCloud OAuth":{type:"oauth2"}};try{localStorage.setItem("genesys_cloud_local_storage_test","genesys_cloud_local_storage_test"),localStorage.removeItem("genesys_cloud_local_storage_test"),this.hasLocalStorage=!0}catch(t){this.hasLocalStorage=!1}this._loadSettings()}loginImplicitGrant(t={},e){const r=e||y();return new Promise(((e,o)=>{t.org&&!t.provider?o(new Error("opts.provider must be set if opts.org is set")):t.provider&&!t.org?o(new Error("opts.org must be set if opts.provider is set")):t.redirectUri||t.usePopupAuth||o(new Error("redirectUri must be provided for implicit grant and not utilizing client-auth app for popup auth")),r&&r.error&&(r.accessToken=void 0,this._saveSettings(r),o(new Error(`[${r.error}] ${r.error_description}`))),r.accessToken&&this._saveSettings(r),this._testTokenAccess().then((()=>(!this.authData.state&&t.state&&(this.authData.state=t.state),e(this.authData)))).catch((r=>{this._debug("Error encountered during login. This is normal if the application has not yet been authorized.",r);const n={client_id:encodeURIComponent(this.clientId),response_type:"token"};if(t.redirectUri&&(n.redirect_uri=encodeURIComponent(t.redirectUri)),t.state&&(n.state=encodeURIComponent(t.state)),t.org&&(n.org=encodeURIComponent(t.org)),t.provider&&(n.provider=encodeURIComponent(t.provider)),t.usePopupAuth){if(!this.hasLocalStorage)return o(new Error("localStorage is unavailable. Cannot authenticate via popup window."));this._debug("using popup auth – adding listener"),this._authenticateViaPopup(n,t.popupTimeout||15e3).then((t=>{this._saveSettings(t),e(t)})).catch(o)}else{const t=this._buildAuthUrl("oauth/authorize",n);this._debug("Implicit grant: redirecting to: "+t),window.location.replace(t),o(new Error(`Routing to login: "${t}"`))}}))}))}setEnvironment(t){t||(t="mypurecloud.com"),(t=t.replace(/\/+$/,"")).startsWith("https://")&&(t=t.substring(8)),t.startsWith("http://")&&(t=t.substring(7)),t.startsWith("api.")&&(t=t.substring(4)),this.environment=t,this.basePath=`https://api.${t}`,this.authUrl=`https://login.${t}`}clearAuthData(){this._saveSettings({accessToken:void 0,state:void 0,tokenExpiryTime:void 0,tokenExpiryTimeString:void 0})}logout(t){this.clearAuthData();const e={client_id:encodeURIComponent(this.clientId)};t&&(e.redirect_uri=encodeURIComponent(t));const r=this._buildAuthUrl("logout",e);window.location.replace(r)}setAccessToken(t){this._saveSettings({accessToken:t})}testAccessToken(t){return this.callApi("/api/v2/tokens/me","get",t)}parseDate(t){return new Date(t.replace(/T/i," "))}paramToString(t){return t?t instanceof Date?t.toJSON():t.toString():""}buildUrl(t,e={}){return t.match(/^\//)||(t=`/${t}`),(this.basePath+t).replace(/\{([\w-]+)\}/g,((t,r)=>{let o;return o=Object.getOwnPropertyDescriptor(e,r)?this.paramToString(e[r]):t,encodeURIComponent(o)}))}callApi(t,r,o){var n;const i=this.buildUrl(t);let s=e()[r](i).type("application/json").timeout(this.timeout).set("Authorization",`Bearer ${o||(null===(n=this.authData)||void 0===n?void 0:n.accessToken)}`);return this.customHeaders&&Object.entries(this.customHeaders).forEach((([t,e])=>{s=s.set(t,e)})),s.send()}_debug(t,e){this.config.debugMode&&h(t,e)}_saveSettings(t){try{if(this.authData.accessToken=t.accessToken,this.authentications["PureCloud OAuth"].accessToken=t.accessToken,t.state&&(this.authData.state=t.state),this.authData.error=t.error,this.authData.error_description=t.error_description,t.tokenExpiryTime&&(this.authData.tokenExpiryTime=t.tokenExpiryTime,this.authData.tokenExpiryTimeString=t.tokenExpiryTimeString),!this.config.persist)return void this._debug("persist is not true. Settings will not be saved.");if(!this.hasLocalStorage)return void this._debug("Warning: Cannot access local storage. Settings will not be saved.");const e=JSON.parse(JSON.stringify(this.authData));delete e.state,localStorage.setItem(this.config.storageKey,JSON.stringify(e)),this._debug("Auth data saved to local storage",e)}catch(t){console.error(t)}}_getId(t){return`gc-ca_${t=t||c()}`}_authenticateViaPopup(t,e){const r=this._getId(),o=Object.assign(Object.assign({},t),{storageKey:this.config.storageKey});this.config.debugMode&&(o.debug=!0),localStorage.setItem(r,JSON.stringify(o)),t.state=r,t.redirect_uri||(t.redirect_uri=encodeURIComponent(`https://apps.${this.environment}/client-auth`));const n=this._buildAuthUrl("oauth/authorize",t);return new Promise(((o,i)=>{this._debug("Implicit grant: opening new window: "+n),window.open(n,"_blank","width=500px,height=500px,noreferrer,noopener,resizable,scrollbars,status");const s=setTimeout((()=>{this._debug("timeout for loginImplicitGrant using popup",t);const e=new l("Popup authentation timeout. It is possible that the popup was blocked or the login page encountered an error");i(e)}),e),a=t=>{if(this._debug("value was just written to storage by another app",{key:t.key,newValue:t.newValue,oldValue:t.oldValue}),t.key===this.config.storageKey){this._debug("keys matched. resolving value",{key:t.key,value:t.newValue}),window.removeEventListener("storage",a),clearTimeout(s);const e=JSON.parse(t.newValue);localStorage.removeItem(r),o(e)}};window.addEventListener("storage",a)}))}_testTokenAccess(){return t=this,e=void 0,o=function*(){if(this._loadSettings(),!this.authentications["PureCloud OAuth"].accessToken)throw new f("errorTokenNotSet","No access token provided.");try{yield this.callApi("/api/v2/tokens/me","get")}catch(t){throw this._saveSettings({accessToken:void 0}),t}},new((r=void 0)||(r=Promise))((function(n,i){function s(t){try{c(o.next(t))}catch(t){i(t)}}function a(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}c((o=o.apply(t,e||[])).next())}));var t,e,r,o}_loadSettings(){if(!this.config.persist)return;if(!this.hasLocalStorage)return void this._debug("Warning: Cannot access local storage. Settings will not be loaded.");const t=this.authData.state,e=localStorage.getItem(this.config.storageKey);this.authData=e?JSON.parse(e):{},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=t}_buildAuthUrl(t,e={}){return Object.keys(e).reduce(((t,r)=>e[r]?`${t}&${r}=${e[r]}`:t),`${this.authUrl}/${t}?`)}}const w=()=>{const t=y();if(t.error)throw new Error(`[${t.error}]: ${t.error_description}`);if(!t.accessToken)throw new f("errorToken","No access token provided.");const e=t.state;if(!e)throw new f("errorStateParam","No state param on redirect. Unable to determine location to save auth data.");const r=JSON.parse(localStorage.getItem(e)||"false");if(!r||!r.storageKey)throw new f("errorParse","Unable to parse information from localStorage.");r.state?t.state=r.state:delete t.state,h(`setting auth data to key: ${r.storageKey}`,t),localStorage.setItem(r.storageKey,JSON.stringify(t)),r.debug?h("In debug mode. Not closing window or removing storageId",{storageId:e,authData:t,href:window.location.href}):(h(`removing temp storage key: ${e}`),localStorage.removeItem(e),h("closing window"),window.close())},v=new Map,_=(t,e)=>{let r=v.get(t);return r||(r=new b(t,e),v.set(t,r)),r},S=_})(),window.GenesysCloudClientAuth=o})();
|
|
1
|
+
(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{GenesysCloudClientAuthenticator:()=>Pt,TimeoutError:()=>l,VERSION:()=>c,authenticatorFactory:()=>It,default:()=>Ft,handleRedirectFromLogin:()=>Dt,isIssuedTimeWithinTimeframe:()=>p,isIssuedTimeWithinWindow:()=>m,parseOauthParams:()=>f,tokenWasIssuedAt:()=>g});var n={};e.r(n),e.d(n,{hasBrowserEnv:()=>_e,hasStandardBrowserEnv:()=>Ue,hasStandardBrowserWebWorkerEnv:()=>ke,navigator:()=>Ae,origin:()=>Ce}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const s=new Uint8Array(16),i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));const a=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const a=(e=e||{}).random??e.rng?.()??function(){if(!o){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");o=crypto.getRandomValues.bind(crypto)}return o(s)}();if(a.length<16)throw new Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=a[e];return t}return function(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}(a)},c="1.0.1",u="color: #f29f2c";class l extends Error{constructor(){super(...arguments),this.name="TIMEOUT_ERROR"}}class d extends Error{constructor(e,t){const n=t&&t instanceof Error;super(n?t.message:t),n&&(this.name=t.name),this.translationKey=e}}const f=(e=window.location.hash)=>{const t={},n={},r=new RegExp("^#*(.+?)=(.+?)$","i");if(e.split("&").forEach(e=>{const n=r.exec(e);n&&(t[n[1]]=decodeURIComponent(decodeURIComponent(n[2].replace(/\+/g,"%20"))))}),t.error)return t;if(t.access_token){if(t.state&&(n.state=t.state),t.expires_in){const e=1e3*parseInt(t.expires_in.replace(/\+/g,"%20"));n.tokenExpiryTime=Date.now()+e,n.tokenExpiryTimeString=new Date(n.tokenExpiryTime).toISOString()}n.accessToken=t.access_token.replace(/\+/g,"%20")}return n},h=(e,t)=>{t?(console.log(`%c [DEBUG:gc-client-auth:${c}] ${e}`,u,t),"object"==typeof t&&console.log(`%c [DEBUG:gc-client-auth:${c}] ^ stringified: ${JSON.stringify(t)}`,u)):console.log(`%c [DEBUG:gc-client-auth:${c}] ${e}`,u)},p=(e,t=691199e3,n=168e4,r=Date.now())=>r-g(e,t)<n,m=(e,t,n)=>p(e,t,n),g=(e,t)=>e-t;function y(e,t){return function(){return e.apply(t,arguments)}}const{toString:b}=Object.prototype,{getPrototypeOf:w}=Object,{iterator:E,toStringTag:S}=Symbol,O=(R=Object.create(null),e=>{const t=b.call(e);return R[t]||(R[t]=t.slice(8,-1).toLowerCase())});var R;const T=e=>(e=e.toLowerCase(),t=>O(t)===e),v=e=>t=>typeof t===e,{isArray:_}=Array,A=v("undefined");function U(e){return null!==e&&!A(e)&&null!==e.constructor&&!A(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const k=T("ArrayBuffer"),C=v("string"),x=v("function"),N=v("number"),j=e=>null!==e&&"object"==typeof e,P=e=>{if("object"!==O(e))return!1;const t=w(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||S in e||E in e)},D=T("Date"),L=T("File"),I=T("Blob"),F=T("FileList"),B=T("URLSearchParams"),[q,$,M,z]=["ReadableStream","Request","Response","Headers"].map(T);function J(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),_(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(U(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function V(e,t){if(U(e))return null;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 K="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,W=e=>!A(e)&&e!==K,H=(G="undefined"!=typeof Uint8Array&&w(Uint8Array),e=>G&&e instanceof G);var G;const X=T("HTMLFormElement"),Q=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Y=T("RegExp"),Z=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J(n,(n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)}),Object.defineProperties(e,r)},ee=T("AsyncFunction"),te=(ne="function"==typeof setImmediate,re=x(K.postMessage),ne?setImmediate:re?(oe=`axios@${Math.random()}`,se=[],K.addEventListener("message",({source:e,data:t})=>{e===K&&t===oe&&se.length&&se.shift()()},!1),e=>{se.push(e),K.postMessage(oe,"*")}):e=>setTimeout(e));var ne,re,oe,se;const ie="undefined"!=typeof queueMicrotask?queueMicrotask.bind(K):"undefined"!=typeof process&&process.nextTick||te,ae={isArray:_,isArrayBuffer:k,isBuffer:U,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||x(e.append)&&("formdata"===(t=O(e))||"object"===t&&x(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&k(e.buffer),t},isString:C,isNumber:N,isBoolean:e=>!0===e||!1===e,isObject:j,isPlainObject:P,isEmptyObject:e=>{if(!j(e)||U(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:q,isRequest:$,isResponse:M,isHeaders:z,isUndefined:A,isDate:D,isFile:L,isBlob:I,isRegExp:Y,isFunction:x,isStream:e=>j(e)&&x(e.pipe),isURLSearchParams:B,isTypedArray:H,isFileList:F,forEach:J,merge:function e(){const{caseless:t}=W(this)&&this||{},n={},r=(r,o)=>{const s=t&&V(n,o)||o;P(n[s])&&P(r)?n[s]=e(n[s],r):P(r)?n[s]=e({},r):_(r)?n[s]=r.slice():n[s]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&J(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(J(t,(t,r)=>{n&&x(t)?e[r]=y(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,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],r&&!r(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==n&&w(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:O,kindOfTest:T,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(_(e))return e;let t=e.length;if(!N(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[E]).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:X,hasOwnProperty:Q,hasOwnProp:Q,reduceDescriptors:Z,freezeMethods:e=>{Z(e,(t,n)=>{if(x(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];x(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 _(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:V,global:K,isContextDefined:W,isSpecCompliantForm:function(e){return!!(e&&x(e.append)&&"FormData"===e[S]&&e[E])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(j(e)){if(t.indexOf(e)>=0)return;if(U(e))return e;if(!("toJSON"in e)){t[r]=e;const o=_(e)?[]:{};return J(e,(e,t)=>{const s=n(e,r+1);!A(s)&&(o[t]=s)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:ee,isThenable:e=>e&&(j(e)||x(e))&&x(e.then)&&x(e.catch),setImmediate:te,asap:ie,isIterable:e=>null!=e&&x(e[E])};function ce(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,this.status=o.status?o.status:null)}ae.inherits(ce,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:ae.toJSONObject(this.config),code:this.code,status:this.status}}});const ue=ce.prototype,le={};["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=>{le[e]={value:e}}),Object.defineProperties(ce,le),Object.defineProperty(ue,"isAxiosError",{value:!0}),ce.from=(e,t,n,r,o,s)=>{const i=Object.create(ue);return ae.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),ce.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const de=ce;function fe(e){return ae.isPlainObject(e)||ae.isArray(e)}function he(e){return ae.endsWith(e,"[]")?e.slice(0,-2):e}function pe(e,t,n){return e?e.concat(t).map(function(e,t){return e=he(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const me=ae.toFlatObject(ae,{},null,function(e){return/^is[A-Z]/.test(e)}),ge=function(e,t,n){if(!ae.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ae.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ae.isUndefined(t[e])})).metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ae.isSpecCompliantForm(t);if(!ae.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ae.isDate(e))return e.toISOString();if(ae.isBoolean(e))return e.toString();if(!a&&ae.isBlob(e))throw new de("Blob is not supported. Use a Buffer instead.");return ae.isArrayBuffer(e)||ae.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(ae.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ae.isArray(e)&&function(e){return ae.isArray(e)&&!e.some(fe)}(e)||(ae.isFileList(e)||ae.endsWith(n,"[]"))&&(a=ae.toArray(e)))return n=he(n),a.forEach(function(e,r){!ae.isUndefined(e)&&null!==e&&t.append(!0===i?pe([n],r,s):null===i?n:n+"[]",c(e))}),!1;return!!fe(e)||(t.append(pe(o,n,s),c(e)),!1)}const l=[],d=Object.assign(me,{defaultVisitor:u,convertValue:c,isVisitable:fe});if(!ae.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ae.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),ae.forEach(n,function(n,s){!0===(!(ae.isUndefined(n)||null===n)&&o.call(t,n,ae.isString(s)?s.trim():s,r,d))&&e(n,r?r.concat(s):[s])}),l.pop()}}(e),t};function ye(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function be(e,t){this._pairs=[],e&&ge(e,this,t)}const we=be.prototype;we.append=function(e,t){this._pairs.push([e,t])},we.toString=function(e){const t=e?function(t){return e.call(this,t,ye)}:ye;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Ee=be;function Se(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Oe(e,t,n){if(!t)return e;const r=n&&n.encode||Se;ae.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(s=o?o(t,n):ae.isURLSearchParams(t)?t.toString():new Ee(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const Re=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){ae.forEach(this.handlers,function(t){null!==t&&e(t)})}},Te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ve={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ee,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},_e="undefined"!=typeof window&&"undefined"!=typeof document,Ae="object"==typeof navigator&&navigator||void 0,Ue=_e&&(!Ae||["ReactNative","NativeScript","NS"].indexOf(Ae.product)<0),ke="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ce=_e&&window.location.href||"http://localhost",xe={...n,...ve},Ne=function(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;return s=!s&&ae.isArray(r)?r.length:s,a?(ae.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i):(r[s]&&ae.isObject(r[s])||(r[s]=[]),t(e,n,r[s],o)&&ae.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i)}if(ae.isFormData(e)&&ae.isFunction(e.entries)){const n={};return ae.forEachEntry(e,(e,r)=>{t(function(e){return ae.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},je={transitional:Te,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ae.isObject(e);if(o&&ae.isHTMLForm(e)&&(e=new FormData(e)),ae.isFormData(e))return r?JSON.stringify(Ne(e)):e;if(ae.isArrayBuffer(e)||ae.isBuffer(e)||ae.isStream(e)||ae.isFile(e)||ae.isBlob(e)||ae.isReadableStream(e))return e;if(ae.isArrayBufferView(e))return e.buffer;if(ae.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ge(e,new xe.classes.URLSearchParams,{visitor:function(e,t,n,r){return xe.isNode&&ae.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=ae.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ge(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(ae.isString(e))try{return(0,JSON.parse)(e),ae.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||je.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ae.isResponse(e)||ae.isReadableStream(e))return e;if(e&&ae.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 de.from(e,de.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:xe.classes.FormData,Blob:xe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ae.forEach(["delete","get","head","post","put","patch"],e=>{je.headers[e]={}});const Pe=je,De=ae.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"]),Le=Symbol("internals");function Ie(e){return e&&String(e).trim().toLowerCase()}function Fe(e){return!1===e||null==e?e:ae.isArray(e)?e.map(Fe):String(e)}function Be(e,t,n,r,o){return ae.isFunction(r)?r.call(this,t,n):(o&&(t=n),ae.isString(t)?ae.isString(r)?-1!==t.indexOf(r):ae.isRegExp(r)?r.test(t):void 0:void 0)}class qe{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ie(t);if(!o)throw new Error("header name must be a non-empty string");const s=ae.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Fe(e))}const s=(e,t)=>ae.forEach(e,(e,n)=>o(e,n,t));if(ae.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(ae.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((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]&&De[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(ae.isObject(e)&&ae.isIterable(e)){let n,r,o={};for(const t of e){if(!ae.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?ae.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ie(e)){const n=ae.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(ae.isFunction(t))return t.call(this,e,n);if(ae.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ie(e)){const n=ae.findKey(this,e);return!(!n||void 0===this[n]||t&&!Be(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ie(e)){const o=ae.findKey(n,e);!o||t&&!Be(0,n[o],o,t)||(delete n[o],r=!0)}}return ae.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&&!Be(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ae.forEach(this,(r,o)=>{const s=ae.findKey(n,o);if(s)return t[s]=Fe(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=Fe(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ae.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ae.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Le]=this[Le]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ie(e);t[r]||(function(e,t){const n=ae.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 ae.isArray(e)?e.forEach(r):r(e),this}}qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ae.reduceDescriptors(qe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ae.freezeMethods(qe);const $e=qe;function Me(e,t){const n=this||Pe,r=t||n,o=$e.from(r.headers);let s=r.data;return ae.forEach(e,function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function ze(e){return!(!e||!e.__CANCEL__)}function Je(e,t,n){de.call(this,null==e?"canceled":e,de.ERR_CANCELED,t,n),this.name="CanceledError"}ae.inherits(Je,de,{__CANCEL__:!0});const Ve=Je;function Ke(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const We=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),n[s]=a,r[s]=c;let l=i,d=0;for(;l!==s;)d+=n[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const f=u&&c-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},s-a)))},()=>n&&i(n)]}(n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a);r=s,e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},He=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ge=e=>(...t)=>ae.asap(()=>e(...t)),Xe=xe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,xe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(xe.origin),xe.navigator&&/(msie|trident)/i.test(xe.navigator.userAgent)):()=>!0,Qe=xe.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];ae.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),ae.isString(r)&&i.push("path="+r),ae.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ye(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ze=e=>e instanceof $e?{...e}:e;function et(e,t){t=t||{};const n={};function r(e,t,n,r){return ae.isPlainObject(e)&&ae.isPlainObject(t)?ae.merge.call({caseless:r},e,t):ae.isPlainObject(t)?ae.merge({},t):ae.isArray(t)?t.slice():t}function o(e,t,n,o){return ae.isUndefined(t)?ae.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function s(e,t){if(!ae.isUndefined(t))return r(void 0,t)}function i(e,t){return ae.isUndefined(t)?ae.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t,n)=>o(Ze(e),Ze(t),0,!0)};return ae.forEach(Object.keys({...e,...t}),function(r){const s=c[r]||o,i=s(e[r],t[r],r);ae.isUndefined(i)&&s!==a||(n[r]=i)}),n}const tt=e=>{const t=et({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:c}=t;if(t.headers=a=$e.from(a),t.url=Oe(Ye(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ae.isFormData(r))if(xe.hasStandardBrowserEnv||xe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(xe.hasStandardBrowserEnv&&(o&&ae.isFunction(o)&&(o=o(t)),o||!1!==o&&Xe(t.url))){const e=s&&i&&Qe.read(i);e&&a.set(s,e)}return t},nt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=tt(e);let o=r.data;const s=$e.from(r.headers).normalize();let i,a,c,u,l,{responseType:d,onUploadProgress:f,onDownloadProgress:h}=r;function p(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=$e.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ke(function(e){t(e),p()},function(e){n(e),p()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new de("Request aborted",de.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new de("Network Error",de.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Te;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new de(t,o.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&ae.forEach(s.toJSON(),function(e,t){m.setRequestHeader(t,e)}),ae.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),h&&([c,l]=We(h,!0),m.addEventListener("progress",c)),f&&m.upload&&([a,u]=We(f),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Ve(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===xe.protocols.indexOf(y)?n(new de("Unsupported protocol "+y+":",de.ERR_BAD_REQUEST,e)):m.send(o||null)})},rt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof de?t:new Ve(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,o(new de(`timeout ${t} of ms exceeded`,de.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=()=>ae.asap(i),a}},ot=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},st=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*ot(n,t)}(e,t);let s,i=0,a=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},it="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,at=it&&"function"==typeof ReadableStream,ct=it&&("function"==typeof TextEncoder?(ut=new TextEncoder,e=>ut.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var ut;const lt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},dt=at&<(()=>{let e=!1;const t=new Request(xe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ft=at&<(()=>ae.isReadableStream(new Response("").body)),ht={stream:ft&&(e=>e.body)};var pt;it&&(pt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ht[e]&&(ht[e]=ae.isFunction(pt[e])?t=>t[e]():(t,n)=>{throw new de(`Response type '${e}' is not supported`,de.ERR_NOT_SUPPORT,n)})}));const mt={http:null,xhr:nt,fetch:it&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:f}=tt(e);u=u?(u+"").toLowerCase():"text";let h,p=rt([o,s&&s.toAbortSignal()],i);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(c&&dt&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=ae.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ae.isBlob(e))return e.size;if(ae.isSpecCompliantForm(e)){const t=new Request(xe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ae.isArrayBufferView(e)||ae.isArrayBuffer(e)?e.byteLength:(ae.isURLSearchParams(e)&&(e+=""),ae.isString(e)?(await ct(e)).byteLength:void 0)})(t):n})(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(ae.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=He(g,We(Ge(c)));r=st(n.body,65536,e,t)}}ae.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;h=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let s=await fetch(h,f);const i=ft&&("stream"===u||"response"===u);if(ft&&(a||i&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});const t=ae.toFiniteNumber(s.headers.get("content-length")),[n,r]=a&&He(t,We(Ge(a),!0))||[];s=new Response(st(s.body,65536,n,()=>{r&&r(),m&&m()}),e)}u=u||"text";let y=await ht[ae.findKey(ht,u)||"text"](s,e);return!i&&m&&m(),await new Promise((t,n)=>{Ke(t,n,{data:y,headers:$e.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:h})})}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new de("Network Error",de.ERR_NETWORK,e,h),{cause:t.cause||t});throw de.from(t,t&&t.code,e,h)}})};ae.forEach(mt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const gt=e=>`- ${e}`,yt=e=>ae.isFunction(e)||null===e||!1===e,bt=e=>{e=ae.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){let t;if(n=e[s],r=n,!yt(n)&&(r=mt[(t=String(n)).toLowerCase()],void 0===r))throw new de(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+s]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let n=t?e.length>1?"since :\n"+e.map(gt).join("\n"):" "+gt(e[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function wt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ve(null,e)}function Et(e){return wt(e),e.headers=$e.from(e.headers),e.data=Me.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bt(e.adapter||Pe.adapter)(e).then(function(t){return wt(e),t.data=Me.call(e,e.transformResponse,t),t.headers=$e.from(t.headers),t},function(t){return ze(t)||(wt(e),t&&t.response&&(t.response.data=Me.call(e,e.transformResponse,t.response),t.response.headers=$e.from(t.response.headers))),Promise.reject(t)})}const St="1.11.0",Ot={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ot[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Rt={};Ot.transitional=function(e,t,n){function r(e,t){return"[Axios v"+St+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new de(r(o," has been removed"+(t?" in "+t:"")),de.ERR_DEPRECATED);return t&&!Rt[o]&&(Rt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}},Ot.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Tt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new de("option "+s+" must be "+n,de.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new de("Unknown option "+s,de.ERR_BAD_OPTION)}},validators:Ot},vt=Tt.validators;class _t{constructor(e){this.defaults=e||{},this.interceptors={request:new Re,response:new Re}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=et(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Tt.assertOptions(n,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),null!=r&&(ae.isFunction(r)?t.paramsSerializer={serialize:r}:Tt.assertOptions(r,{encode:vt.function,serialize:vt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Tt.assertOptions(t,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&ae.merge(o.common,o[t.method]);o&&ae.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=$e.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,d=0;if(!a){const e=[Et.bind(this),void 0];for(e.unshift(...i),e.push(...c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=i.length;let f=t;for(d=0;d<l;){const e=i[d++],t=i[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=Et.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return Oe(Ye((e=et(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}ae.forEach(["delete","get","head","options"],function(e){_t.prototype[e]=function(t,n){return this.request(et(n||{},{method:e,url:t,data:(n||{}).data}))}}),ae.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(et(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}_t.prototype[e]=t(),_t.prototype[e+"Form"]=t(!0)});const At=_t;class Ut{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 Ve(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)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ut(function(t){e=t}),cancel:e}}}const kt=Ut,Ct={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(Ct).forEach(([e,t])=>{Ct[t]=e});const xt=Ct,Nt=function e(t){const n=new At(t),r=y(At.prototype.request,n);return ae.extend(r,At.prototype,n,{allOwnKeys:!0}),ae.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(et(t,n))},r}(Pe);Nt.Axios=At,Nt.CanceledError=Ve,Nt.CancelToken=kt,Nt.isCancel=ze,Nt.VERSION=St,Nt.toFormData=ge,Nt.AxiosError=de,Nt.Cancel=Nt.CanceledError,Nt.all=function(e){return Promise.all(e)},Nt.spread=function(e){return function(t){return e.apply(null,t)}},Nt.isAxiosError=function(e){return ae.isObject(e)&&!0===e.isAxiosError},Nt.mergeConfig=et,Nt.AxiosHeaders=$e,Nt.formToJSON=e=>Ne(ae.isHTMLForm(e)?new FormData(e):e),Nt.getAdapter=bt,Nt.HttpStatusCode=xt,Nt.default=Nt;const jt=Nt;class Pt{constructor(e,t={}){this.VERSION=c,this.clientId=e,t.storageKey||(t.storageKey="gc_client_auth_data"),"boolean"!=typeof t.persist&&(t.persist=!1),this.config=Object.assign({},t),this.customHeaders=t.customHeaders,this.setEnvironment(t.environment),this.timeout=16e3,this.authData={},this.authentications={"PureCloud OAuth":{type:"oauth2"}};try{localStorage.setItem("genesys_cloud_local_storage_test","genesys_cloud_local_storage_test"),localStorage.removeItem("genesys_cloud_local_storage_test"),this.hasLocalStorage=!0}catch(e){this.hasLocalStorage=!1}this._loadSettings()}loginImplicitGrant(e={},t){const n=t||f();return new Promise((t,r)=>{e.org&&!e.provider?r(new Error("opts.provider must be set if opts.org is set")):e.provider&&!e.org?r(new Error("opts.org must be set if opts.provider is set")):e.redirectUri||e.usePopupAuth||r(new Error("redirectUri must be provided for implicit grant and not utilizing client-auth app for popup auth")),n&&n.error&&(n.accessToken=void 0,this._saveSettings(n),r(new Error(`[${n.error}] ${n.error_description}`))),n.accessToken&&this._saveSettings(n),this._testTokenAccess().then(()=>(!this.authData.state&&e.state&&(this.authData.state=e.state),t(this.authData))).catch(n=>{this._debug("Error encountered during login. This is normal if the application has not yet been authorized.",n);const o={client_id:encodeURIComponent(this.clientId),response_type:"token"};if(e.redirectUri&&(o.redirect_uri=encodeURIComponent(e.redirectUri)),e.state&&(o.state=encodeURIComponent(e.state)),e.org&&(o.org=encodeURIComponent(e.org)),e.provider&&(o.provider=encodeURIComponent(e.provider)),e.usePopupAuth){if(!this.hasLocalStorage)return r(new Error("localStorage is unavailable. Cannot authenticate via popup window."));this._debug("using popup auth – adding listener"),this._authenticateViaPopup(o,e.popupTimeout||15e3).then(e=>{this._saveSettings(e),t(e)}).catch(r)}else{const e=this._buildAuthUrl("oauth/authorize",o);this._debug("Implicit grant: redirecting to: "+e),window.location.replace(e),r(new Error(`Routing to login: "${e}"`))}})})}setEnvironment(e){e||(e="mypurecloud.com"),(e=e.replace(/\/+$/,"")).startsWith("https://")&&(e=e.substring(8)),e.startsWith("http://")&&(e=e.substring(7)),e.startsWith("api.")&&(e=e.substring(4)),this.environment=e,this.basePath=`https://api.${e}`,this.authUrl=`https://login.${e}`}clearAuthData(){this._saveSettings({accessToken:void 0,state:void 0,tokenExpiryTime:void 0,tokenExpiryTimeString:void 0})}logout(e){this.clearAuthData();const t={client_id:encodeURIComponent(this.clientId)};e&&(t.redirect_uri=encodeURIComponent(e));const n=this._buildAuthUrl("logout",t);window.location.replace(n)}setAccessToken(e){this._saveSettings({accessToken:e})}testAccessToken(e){return this.callApi("/api/v2/tokens/me","get",e)}parseDate(e){return new Date(e.replace(/T/i," "))}paramToString(e){return e?e instanceof Date?e.toJSON():e.toString():""}buildUrl(e,t={}){return e.match(/^\//)||(e=`/${e}`),(this.basePath+e).replace(/\{([\w-]+)\}/g,(e,n)=>{let r;return r=Object.getOwnPropertyDescriptor(t,n)?this.paramToString(t[n]):e,encodeURIComponent(r)})}callApi(e,t,n){var r;const o=this.buildUrl(e),s={Authorization:`Bearer ${n||(null===(r=this.authData)||void 0===r?void 0:r.accessToken)}`,"Content-Type":"application/json"};this.customHeaders&&Object.entries(this.customHeaders).forEach(([e,t])=>{s[e]=t});const i={method:t,url:o,headers:s,timeout:this.timeout};return jt.request(i)}_debug(e,t){this.config.debugMode&&h(e,t)}_saveSettings(e){try{if(this.authData.accessToken=e.accessToken,this.authentications["PureCloud OAuth"].accessToken=e.accessToken,e.state&&(this.authData.state=e.state),this.authData.error=e.error,this.authData.error_description=e.error_description,e.tokenExpiryTime&&(this.authData.tokenExpiryTime=e.tokenExpiryTime,this.authData.tokenExpiryTimeString=e.tokenExpiryTimeString),!this.config.persist)return void this._debug("persist is not true. Settings will not be saved.");if(!this.hasLocalStorage)return void this._debug("Warning: Cannot access local storage. Settings will not be saved.");const t=JSON.parse(JSON.stringify(this.authData));delete t.state,localStorage.setItem(this.config.storageKey,JSON.stringify(t)),this._debug("Auth data saved to local storage",t)}catch(e){console.error(e)}}_getId(e){return`gc-ca_${e=e||a()}`}_authenticateViaPopup(e,t){const n=this._getId(),r=Object.assign(Object.assign({},e),{storageKey:this.config.storageKey});this.config.debugMode&&(r.debug=!0),localStorage.setItem(n,JSON.stringify(r)),e.state=n,e.redirect_uri||(e.redirect_uri=encodeURIComponent(`https://apps.${this.environment}/client-auth`));const o=this._buildAuthUrl("oauth/authorize",e);return new Promise((r,s)=>{this._debug("Implicit grant: opening new window: "+o),window.open(o,"_blank","width=500px,height=500px,noreferrer,noopener,resizable,scrollbars,status");const i=setTimeout(()=>{this._debug("timeout for loginImplicitGrant using popup",e);const t=new l("Popup authentation timeout. It is possible that the popup was blocked or the login page encountered an error");s(t)},t),a=e=>{if(this._debug("value was just written to storage by another app",{key:e.key,newValue:e.newValue,oldValue:e.oldValue}),e.key===this.config.storageKey){this._debug("keys matched. resolving value",{key:e.key,value:e.newValue}),window.removeEventListener("storage",a),clearTimeout(i);const t=JSON.parse(e.newValue);localStorage.removeItem(n),r(t)}};window.addEventListener("storage",a)})}_testTokenAccess(){return e=this,t=void 0,r=function*(){if(this._loadSettings(),!this.authentications["PureCloud OAuth"].accessToken)throw new d("errorTokenNotSet","No access token provided.");try{yield this.callApi("/api/v2/tokens/me","get")}catch(e){throw this._saveSettings({accessToken:void 0}),e}},new((n=void 0)||(n=Promise))(function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,a)}c((r=r.apply(e,t||[])).next())});var e,t,n,r}_loadSettings(){if(!this.config.persist)return;if(!this.hasLocalStorage)return void this._debug("Warning: Cannot access local storage. Settings will not be loaded.");const e=this.authData.state,t=localStorage.getItem(this.config.storageKey);this.authData=t?JSON.parse(t):{},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=e}_buildAuthUrl(e,t={}){return Object.keys(t).reduce((e,n)=>t[n]?`${e}&${n}=${t[n]}`:e,`${this.authUrl}/${e}?`)}}const Dt=()=>{const e=f();if(e.error)throw new Error(`[${e.error}]: ${e.error_description}`);if(!e.accessToken)throw new d("errorToken","No access token provided.");const t=e.state;if(!t)throw new d("errorStateParam","No state param on redirect. Unable to determine location to save auth data.");const n=JSON.parse(localStorage.getItem(t)||"false");if(!n||!n.storageKey)throw new d("errorParse","Unable to parse information from localStorage.");n.state?e.state=n.state:delete e.state,h(`setting auth data to key: ${n.storageKey}`,e),localStorage.setItem(n.storageKey,JSON.stringify(e)),n.debug?h("In debug mode. Not closing window or removing storageId",{storageId:t,authData:e,href:window.location.href}):(h(`removing temp storage key: ${t}`),localStorage.removeItem(t),h("closing window"),window.close())},Lt=new Map,It=(e,t)=>{let n=Lt.get(e);return n||(n=new Pt(e,t),Lt.set(e,n)),n},Ft=It;window.GenesysCloudClientAuth=t})();
|
|
2
2
|
//# sourceMappingURL=genesys-cloud-client-auth.browser.min.js.map
|