@saasquatch/mint-components 2.0.8 → 2.0.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/cjs/{ShadowViewAddon-ae3a32c3.js → ShadowViewAddon-31199cba.js} +230 -112
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/{sqm-big-stat_47.cjs.entry.js → sqm-big-stat_49.cjs.entry.js} +552 -13
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +1 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +108 -64
- package/dist/{esm/AsYouType-46f67d0d.js → cjs/usePortalRegistrationForm-8ed0d753.js} +215 -1
- package/dist/collection/components/sqm-portal-google-login/GoogleLoginForm.stories.js +37 -0
- package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +2 -1
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +0 -25
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/esm/{ShadowViewAddon-78a1c35c.js → ShadowViewAddon-49bebd13.js} +234 -118
- package/dist/esm/{data-a581119a.js → data-f2f77358.js} +2 -2
- package/dist/esm/{global-58a69018.js → global-5d501632.js} +1 -1
- package/dist/esm/{index.module-c9811a48.js → index.module-234e8f5e.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-7e22fb0d.js → re-render-b56bc163.js} +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +8 -8
- package/dist/esm/{sqm-big-stat_47.entry.js → sqm-big-stat_49.entry.js} +559 -22
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +3 -3
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +3 -3
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/{sqm-lead-checkbox-field-view-81541e40.js → sqm-lead-checkbox-field-view-e461c8d6.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
- package/dist/esm/{sqm-lead-input-field-view-d543d939.js → sqm-lead-input-field-view-9cf60eea.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +4 -4
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-5a452423.js → sqm-navigation-sidebar-item-view-3d1b3be4.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-5fb1a99e.js → sqm-portal-email-verification-view-ec6d9b7e.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-e3aef106.js → sqm-portal-profile-view-36eae0a3.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +4 -4
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-registration-form.entry.js +3 -4
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-qr-code.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
- package/dist/esm/sqm-stencilbook.entry.js +116 -72
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{sqm-user-info-form-view-9a3048d9.js → sqm-user-info-form-view-0a8999d0.js} +2 -2
- package/dist/esm/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm/sqm-widget-verification.entry.js +1 -1
- package/dist/esm/{useChildElements-3d872cef.js → useChildElements-daf489b1.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-dda1f52b.js → useInstantAccessRegistration-89e7dfc8.js} +2 -2
- package/dist/esm/{useLeadFormState-8d4b2620.js → useLeadFormState-d2f1c87d.js} +2 -2
- package/dist/esm/{usePayoutStatus-7404eb9d.js → usePayoutStatus-6be47a64.js} +1 -1
- package/dist/{cjs/AsYouType-6788393a.js → esm/usePortalRegistrationForm-fb06b600.js} +211 -2
- package/dist/esm/{useReferralCodes-c2e809cf.js → useReferralCodes-75d67509.js} +1 -1
- package/dist/esm/{useReferralTable-909ccb28.js → useReferralTable-8e0acee0.js} +3 -3
- package/dist/esm/{useRegistrationFormState-24d594ea.js → useRegistrationFormState-a9e156e6.js} +1 -1
- package/dist/esm/{useVerificationEmail-55e0e98f.js → useVerificationEmail-66b40965.js} +1 -1
- package/dist/esm/{utilities-72c07b09.js → utilities-e6f8716e.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-49bebd13.js +1 -0
- package/dist/esm-es5/{data-a581119a.js → data-f2f77358.js} +1 -1
- package/dist/esm-es5/{global-58a69018.js → global-5d501632.js} +1 -1
- package/dist/esm-es5/{index.module-c9811a48.js → index.module-234e8f5e.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-7e22fb0d.js → re-render-b56bc163.js} +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_49.entry.js +1 -0
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-81541e40.js → sqm-lead-checkbox-field-view-e461c8d6.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-d543d939.js → sqm-lead-input-field-view-9cf60eea.js} +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-5a452423.js → sqm-navigation-sidebar-item-view-3d1b3be4.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-5fb1a99e.js → sqm-portal-email-verification-view-ec6d9b7e.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-e3aef106.js → sqm-portal-profile-view-36eae0a3.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-user-info-form-view-9a3048d9.js → sqm-user-info-form-view-0a8999d0.js} +1 -1
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{useChildElements-3d872cef.js → useChildElements-daf489b1.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-dda1f52b.js → useInstantAccessRegistration-89e7dfc8.js} +1 -1
- package/dist/esm-es5/{useLeadFormState-8d4b2620.js → useLeadFormState-d2f1c87d.js} +1 -1
- package/dist/esm-es5/{usePayoutStatus-7404eb9d.js → usePayoutStatus-6be47a64.js} +1 -1
- package/dist/esm-es5/usePortalRegistrationForm-fb06b600.js +1 -0
- package/dist/esm-es5/{useReferralCodes-c2e809cf.js → useReferralCodes-75d67509.js} +1 -1
- package/dist/esm-es5/{useReferralTable-909ccb28.js → useReferralTable-8e0acee0.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-24d594ea.js → useRegistrationFormState-a9e156e6.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-55e0e98f.js → useVerificationEmail-66b40965.js} +1 -1
- package/dist/esm-es5/{utilities-72c07b09.js → utilities-e6f8716e.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-b00e8365.entry.js → p-01aa5c0d.entry.js} +1 -1
- package/dist/mint-components/{p-26a7051d.system.entry.js → p-04603078.system.entry.js} +1 -1
- package/dist/mint-components/{p-171310d9.system.js → p-08c49143.system.js} +1 -1
- package/dist/mint-components/{p-6076dbaf.entry.js → p-0b6b03fa.entry.js} +1 -1
- package/dist/mint-components/{p-1215518e.system.js → p-0ba04831.system.js} +1 -1
- package/dist/mint-components/{p-12e6cea7.entry.js → p-0bd7de3e.entry.js} +2 -2
- package/dist/mint-components/{p-988f236f.js → p-0e1f3ce2.js} +1 -1
- package/dist/mint-components/{p-49400aab.js → p-10ad4cec.js} +2 -2
- package/dist/mint-components/{p-9eba8408.js → p-177a4691.js} +1 -1
- package/dist/mint-components/p-1830bbfb.js +1 -0
- package/dist/mint-components/{p-5b7a896e.system.entry.js → p-234d0680.system.entry.js} +1 -1
- package/dist/mint-components/{p-a7e35f51.system.js → p-23c58c4f.system.js} +2 -2
- package/dist/mint-components/{p-17a0f310.system.js → p-23d089ee.system.js} +1 -1
- package/dist/mint-components/{p-1aa9136c.js → p-24e20ee2.js} +1 -1
- package/dist/mint-components/p-259285a8.system.entry.js +1 -0
- package/dist/mint-components/{p-40c33b6a.system.entry.js → p-26796f69.system.entry.js} +1 -1
- package/dist/mint-components/p-26fdb210.js +1 -0
- package/dist/mint-components/{p-6c82d60c.system.js → p-286aa5b9.system.js} +1 -1
- package/dist/mint-components/{p-9c79ab08.js → p-2ce4c7a3.js} +2 -2
- package/dist/mint-components/{p-4cc72a4e.system.js → p-2dcb0db6.system.js} +1 -1
- package/dist/mint-components/{p-c30ad421.js → p-323c6d02.js} +1 -1
- package/dist/mint-components/{p-720f03e2.system.js → p-33e1a29e.system.js} +1 -1
- package/dist/mint-components/{p-ba79655c.system.js → p-342921b9.system.js} +1 -1
- package/dist/mint-components/{p-a32afaaa.entry.js → p-3825831b.entry.js} +1 -1
- package/dist/mint-components/{p-2700136f.system.entry.js → p-38ed3cbd.system.entry.js} +1 -1
- package/dist/mint-components/{p-c95a437e.entry.js → p-3d02278d.entry.js} +1 -1
- package/dist/mint-components/{p-0c024cf0.system.entry.js → p-3d12a14b.system.entry.js} +1 -1
- package/dist/mint-components/{p-f5256738.system.entry.js → p-3ed269bf.system.entry.js} +1 -1
- package/dist/mint-components/{p-6a5df328.js → p-3fede0f7.js} +1 -1
- package/dist/mint-components/{p-625ca62f.entry.js → p-3ff0f231.entry.js} +1 -1
- package/dist/mint-components/{p-e1422b78.entry.js → p-4363a896.entry.js} +1 -1
- package/dist/mint-components/{p-f3613921.system.entry.js → p-476a8091.system.entry.js} +1 -1
- package/dist/mint-components/{p-7780cac1.system.entry.js → p-50eaba5b.system.entry.js} +1 -1
- package/dist/mint-components/{p-d09d3b8f.system.js → p-51e5a7da.system.js} +1 -1
- package/dist/mint-components/p-52398c8e.system.entry.js +1 -0
- package/dist/mint-components/{p-2ea3eea9.system.entry.js → p-527c0244.system.entry.js} +1 -1
- package/dist/mint-components/{p-72b914b9.system.entry.js → p-536a5aff.system.entry.js} +1 -1
- package/dist/mint-components/p-5784be79.system.entry.js +1 -0
- package/dist/mint-components/{p-e3b4e06a.system.entry.js → p-5af01051.system.entry.js} +1 -1
- package/dist/mint-components/{p-3b46fae5.entry.js → p-5d17b387.entry.js} +1 -1
- package/dist/mint-components/{p-d9780ae9.entry.js → p-5de55368.entry.js} +1 -1
- package/dist/mint-components/{p-78c754de.system.entry.js → p-612091c6.system.entry.js} +1 -1
- package/dist/mint-components/{p-c6e8086f.system.entry.js → p-62d018f0.system.entry.js} +1 -1
- package/dist/mint-components/{p-dc5bca55.entry.js → p-636a841f.entry.js} +1 -1
- package/dist/mint-components/{p-829cb9ed.system.entry.js → p-63a928e0.system.entry.js} +1 -1
- package/dist/mint-components/{p-f7e49c12.entry.js → p-65f79e43.entry.js} +1 -1
- package/dist/mint-components/{p-9d46f87f.system.entry.js → p-6a0440ed.system.entry.js} +1 -1
- package/dist/mint-components/{p-9ba07029.system.entry.js → p-702f3adb.system.entry.js} +1 -1
- package/dist/mint-components/{p-d399b343.system.entry.js → p-72321b06.system.entry.js} +1 -1
- package/dist/mint-components/p-72d6c425.system.js +1 -0
- package/dist/mint-components/{p-8afb47c5.system.entry.js → p-73aeefed.system.entry.js} +1 -1
- package/dist/mint-components/{p-0ec54f97.js → p-747479dc.js} +1 -1
- package/dist/mint-components/{p-101f0c41.entry.js → p-78fc0c3c.entry.js} +1 -1
- package/dist/mint-components/{p-71af93e3.js → p-7ab26f3d.js} +1 -1
- package/dist/mint-components/{p-0087ad39.system.js → p-825b39e0.system.js} +1 -1
- package/dist/mint-components/{p-8618e8f6.system.js → p-828d27ac.system.js} +1 -1
- package/dist/mint-components/{p-8d9fa981.system.js → p-844aaef2.system.js} +1 -1
- package/dist/mint-components/p-84911f08.system.js +1 -0
- package/dist/mint-components/{p-9491f5fb.system.entry.js → p-8752bcd1.system.entry.js} +1 -1
- package/dist/mint-components/{p-867b2baf.system.js → p-8901a533.system.js} +1 -1
- package/dist/mint-components/{p-5fbe6356.system.js → p-8bf8afb9.system.js} +1 -1
- package/dist/mint-components/{p-ac86903a.system.entry.js → p-8dda2a7f.system.entry.js} +1 -1
- package/dist/mint-components/{p-43ad51bc.entry.js → p-930f37bd.entry.js} +1 -1
- package/dist/mint-components/p-964b09f2.js +1 -0
- package/dist/mint-components/p-96749142.entry.js +273 -0
- package/dist/mint-components/{p-e174b704.system.js → p-96b16a48.system.js} +1 -1
- package/dist/mint-components/{p-ff0e1564.system.js → p-98e0a022.system.js} +1 -1
- package/dist/mint-components/{p-bf044217.js → p-9953648f.js} +1 -1
- package/dist/mint-components/p-9ad42a61.entry.js +1 -0
- package/dist/mint-components/{p-e19f0908.entry.js → p-9c4cac09.entry.js} +2 -2
- package/dist/mint-components/{p-f3c2074b.system.entry.js → p-9c80871f.system.entry.js} +1 -1
- package/dist/mint-components/{p-e8bda98a.system.entry.js → p-9d19a0f7.system.entry.js} +1 -1
- package/dist/mint-components/{p-8931d05e.entry.js → p-9da60671.entry.js} +1 -1
- package/dist/mint-components/p-9ef4172c.entry.js +1 -0
- package/dist/mint-components/p-a6e177d8.system.entry.js +1 -0
- package/dist/mint-components/{p-027c0b10.js → p-a82c8b60.js} +1 -1
- package/dist/mint-components/p-ab38b332.system.js +1 -0
- package/dist/mint-components/{p-58c79873.entry.js → p-ad550231.entry.js} +1 -1
- package/dist/mint-components/p-af123d2b.system.js +1 -0
- package/dist/mint-components/p-b08373f5.entry.js +9 -0
- package/dist/mint-components/{p-bb5d153f.system.js → p-b5559e34.system.js} +1 -1
- package/dist/mint-components/{p-dcc50d90.entry.js → p-bb476395.entry.js} +1 -1
- package/dist/mint-components/{p-bcac83f0.system.js → p-c09d2b35.system.js} +1 -1
- package/dist/mint-components/{p-deecffd0.system.entry.js → p-c16d9c80.system.entry.js} +1 -1
- package/dist/mint-components/p-c4e08253.js +13 -0
- package/dist/mint-components/{p-fcf8bdbc.system.entry.js → p-c7f34690.system.entry.js} +1 -1
- package/dist/mint-components/{p-29398c98.entry.js → p-c7f385d3.entry.js} +1 -1
- package/dist/mint-components/{p-ee92a728.system.entry.js → p-c8f2c3b8.system.entry.js} +1 -1
- package/dist/mint-components/{p-f6eae77c.js → p-cbeab288.js} +1 -1
- package/dist/mint-components/{p-a4e8eb33.entry.js → p-cbf3a928.entry.js} +1 -1
- package/dist/mint-components/{p-a974c549.js → p-cd3ba2b4.js} +1 -1
- package/dist/mint-components/p-d15947d0.js +448 -0
- package/dist/mint-components/{p-011c0990.system.entry.js → p-d170e29a.system.entry.js} +1 -1
- package/dist/mint-components/{p-7e323f2c.entry.js → p-d3f86ec6.entry.js} +1 -1
- package/dist/mint-components/p-d49de8ea.entry.js +11 -0
- package/dist/mint-components/{p-29ba2eaa.entry.js → p-d9f01878.entry.js} +1 -1
- package/dist/mint-components/{p-386ec00c.entry.js → p-de0566e1.entry.js} +1 -1
- package/dist/mint-components/{p-f5fff87e.js → p-e08b7435.js} +1 -1
- package/dist/mint-components/{p-36a1fa33.system.entry.js → p-e1a08323.system.entry.js} +1 -1
- package/dist/mint-components/{p-60ec0961.system.entry.js → p-e1a7d141.system.entry.js} +1 -1
- package/dist/mint-components/{p-a8c86cd8.system.entry.js → p-eacd3c8f.system.entry.js} +1 -1
- package/dist/mint-components/p-ebde83fc.entry.js +1 -0
- package/dist/mint-components/{p-621f3e30.entry.js → p-ec9027cf.entry.js} +1 -1
- package/dist/mint-components/{p-af69ee79.system.entry.js → p-ed7ab864.system.entry.js} +1 -1
- package/dist/mint-components/{p-088f082f.js → p-eff405e5.js} +1 -1
- package/dist/mint-components/{p-ee3a7577.entry.js → p-f08dd2a8.entry.js} +1 -1
- package/dist/mint-components/{p-0b9b1b36.system.entry.js → p-f237f96d.system.entry.js} +1 -1
- package/dist/mint-components/{p-ad3ebf4d.entry.js → p-f776cd83.entry.js} +1 -1
- package/dist/mint-components/p-f84706aa.entry.js +13 -0
- package/dist/mint-components/p-f862be0b.entry.js +1 -0
- package/dist/mint-components/{p-8de73da9.js → p-fb8927aa.js} +1 -1
- package/dist/mint-components/{p-30278955.entry.js → p-fc7d85c7.entry.js} +1 -1
- package/dist/mint-components/{p-75b8fd75.entry.js → p-fe14d2af.entry.js} +1 -1
- package/dist/types/components/sqm-portal-google-login/GoogleLoginForm.stories.d.ts +7 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -4
- package/dist/types/components.d.ts +0 -8
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/sqm-base-registration-form-view-69a4b615.js +0 -74
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +0 -130
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +0 -381
- package/dist/cjs/sqm-portal-login-view-bb50304c.js +0 -58
- package/dist/cjs/usePortalLogin-1c022d8d.js +0 -74
- package/dist/cjs/usePortalRegistrationForm-75b647fe.js +0 -215
- package/dist/esm/sqm-base-registration-form-view-9e97d8b4.js +0 -72
- package/dist/esm/sqm-portal-google-login.entry.js +0 -126
- package/dist/esm/sqm-portal-google-registration-form.entry.js +0 -377
- package/dist/esm/sqm-portal-login-view-7670cd86.js +0 -56
- package/dist/esm/usePortalLogin-f95bbc67.js +0 -72
- package/dist/esm/usePortalRegistrationForm-1eb3cd72.js +0 -213
- package/dist/esm-es5/AsYouType-46f67d0d.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-78a1c35c.js +0 -1
- package/dist/esm-es5/sqm-base-registration-form-view-9e97d8b4.js +0 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +0 -1
- package/dist/esm-es5/usePortalLogin-f95bbc67.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-1eb3cd72.js +0 -1
- package/dist/mint-components/p-121cdc60.js +0 -1
- package/dist/mint-components/p-125a894f.js +0 -1
- package/dist/mint-components/p-1b79b186.entry.js +0 -11
- package/dist/mint-components/p-1cd0e1e9.system.js +0 -1
- package/dist/mint-components/p-20c40fdf.system.js +0 -1
- package/dist/mint-components/p-240bec23.js +0 -1
- package/dist/mint-components/p-28e23d75.system.entry.js +0 -1
- package/dist/mint-components/p-40752a0f.entry.js +0 -1
- package/dist/mint-components/p-44fc6029.js +0 -1
- package/dist/mint-components/p-513f5d80.js +0 -1
- package/dist/mint-components/p-51a6a779.js +0 -1
- package/dist/mint-components/p-537a3894.system.js +0 -1
- package/dist/mint-components/p-6559d0b2.entry.js +0 -273
- package/dist/mint-components/p-6a0ddee0.entry.js +0 -1
- package/dist/mint-components/p-74a39425.system.entry.js +0 -1
- package/dist/mint-components/p-80569911.system.js +0 -1
- package/dist/mint-components/p-92a54b0c.entry.js +0 -1
- package/dist/mint-components/p-947bacd1.system.js +0 -1
- package/dist/mint-components/p-95b6e903.entry.js +0 -1
- package/dist/mint-components/p-976ee669.js +0 -1
- package/dist/mint-components/p-97dc6863.js +0 -13
- package/dist/mint-components/p-9d362d44.system.js +0 -1
- package/dist/mint-components/p-a470e203.entry.js +0 -13
- package/dist/mint-components/p-b3510ca0.system.entry.js +0 -1
- package/dist/mint-components/p-bd093069.system.entry.js +0 -1
- package/dist/mint-components/p-cc8ca3ff.system.entry.js +0 -1
- package/dist/mint-components/p-d08bcd88.entry.js +0 -1
- package/dist/mint-components/p-d69c0a32.system.entry.js +0 -1
- package/dist/mint-components/p-d88d8ffe.entry.js +0 -1
- package/dist/mint-components/p-e115d0a2.entry.js +0 -9
- package/dist/mint-components/p-e3ee8c37.system.js +0 -1
- package/dist/mint-components/p-ee83de0e.js +0 -448
- package/dist/mint-components/p-f5820d03.system.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):i(e.value).then(o,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};System.register(["./p-4f5329a2.system.js"],(function(e){"use strict";var t,n,r,i,a,o,s,u,c,l,f,d,p;return{setters:[function(e){t=e.d;n=e.s;r=e.u;i=e.c;a=e.a;o=e.e;s=e.f;u=e.h;c=e.y;l=e.i;f=e.j;d=e.k;p=e.m}],execute:function(){var h=this;e({$:Ci,F:Ta,G:Hr,H:Kr,I:Sa,J:Wr,L:Jr,M:xa,O:Vi,Q:Yi,R:ja,S:Na,T:Ki,U:Gr,V:Mi,X:ea,_:$r,b:qe,c:Fi,e:Wi,f:oa,g:oe,h:ma,i:se,k:Ca,l:da,n:ra,o:$e,p:Oa,q:$i,r:ca,t:Ia,v:va,w:_a,x:Da,y:ga});function v(e,t){var n=t&&t.cache?t.cache:O;var r=t&&t.serializer?t.serializer:S;var i=t&&t.strategy?t.strategy:E;return i(e,{cache:n,serializer:r})}function y(e){return e==null||typeof e==="number"||typeof e==="boolean"}function m(e,t,n,r){var i=y(r)?r:n(r);var a=t.get(i);if(typeof a==="undefined"){a=e.call(this,r);t.set(i,a)}return a}function b(e,t,n){var r=Array.prototype.slice.call(arguments,3);var i=n(r);var a=t.get(i);if(typeof a==="undefined"){a=e.apply(this,r);t.set(i,a)}return a}function g(e,t,n,r,i){return n.bind(t,e,r,i)}function E(e,t){var n=e.length===1?m:b;return g(e,this,n,t.cache.create(),t.serializer)}function w(e,t){var n=b;return g(e,this,n,t.cache.create(),t.serializer)}function _(e,t){var n=m;return g(e,this,n,t.cache.create(),t.serializer)}function S(){return JSON.stringify(arguments)}function I(){this.cache=Object.create(null)}I.prototype.has=function(e){return e in this.cache};I.prototype.get=function(e){return this.cache[e]};I.prototype.set=function(e,t){this.cache[e]=t};var O={create:function e(){return new I}};var T=e("s",v);var x={variadic:w,monadic:_};T.strategies=x;var A=Object.freeze(Object.assign(Object.create(null),T,{default:T,strategies:x}));e("m",A);function N(e){this.message=e}N.prototype=new Error,N.prototype.name="InvalidCharacterError";var D="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new N("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,o="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?o+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function C(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(D(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return D(t)}}function k(e){this.message=e}function P(e,t){if("string"!=typeof e)throw new k("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(C(e.split(".")[n]))}catch(e){throw new k("Invalid token specified: "+e.message)}}k.prototype=new Error,k.prototype.name="InvalidTokenError";var F=Object.prototype,j=F.toString,R=F.hasOwnProperty;var M=Function.prototype.toString;var L=new Map;function q(e,t){try{return V(e,t)}finally{L.clear()}}function V(e,t){if(e===t){return true}var n=j.call(e);var r=j.call(t);if(n!==r){return false}switch(n){case"[object Array]":if(e.length!==t.length)return false;case"[object Object]":{if(J(e,t))return true;var i=B(e);var a=B(t);var o=i.length;if(o!==a.length)return false;for(var s=0;s<o;++s){if(!R.call(t,i[s])){return false}}for(var s=0;s<o;++s){var u=i[s];if(!V(e[u],t[u])){return false}}return true}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return false;if(J(e,t))return true;var c=e.entries();var l=n==="[object Map]";while(true){var f=c.next();if(f.done)break;var d=f.value,p=d[0],h=d[1];if(!t.has(p)){return false}if(l&&!V(h,t.get(p))){return false}}return true}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e);t=new Uint8Array(t);case"[object DataView]":{var v=e.byteLength;if(v===t.byteLength){while(v--&&e[v]===t[v]){}}return v===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var y=M.call(e);if(y!==M.call(t)){return false}return!G(y,$)}}return false}function B(e){return Object.keys(e).filter(U,e)}function U(e){return this[e]!==void 0}var $="{ [native code] }";function G(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function J(e,t){var n=L.get(e);if(n){if(n.has(t))return true}else{L.set(e,n=new Set)}n.add(t);return false}var K=Object.defineProperty;var H=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty;var Q=Object.prototype.propertyIsEnumerable;var X=function(e,t,n){return t in e?K(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n};var Z=function(e,t){for(var n in t||(t={}))if(z.call(t,n))X(e,n,t[n]);if(Y)for(var r=0,i=Y(t);r<i.length;r++){var n=i[r];if(Q.call(t,n))X(e,n,t[n])}return e};var ee=function(e,t){return H(e,W(t))};var te="sq:user-identity";var ne="sq:locale";var re="sq:program-id";var ie="EMBED";function ae(){return oe().type}function oe(){var e,t,n;if(window["SquatchAndroid"]){return{type:"SquatchAndroid",android:window["SquatchAndroid"],widgetIdent:window["widgetIdent"]}}if(window["SquatchPortal"]){return{type:"SquatchPortal",env:window["SquatchPortal"]}}if(window["SquatchAdmin"]){return{type:"SquatchAdmin",adminSDK:window["SquatchAdmin"]}}if((window["widgetIdent"]||((e=window.frameElement)==null?void 0:e["squatchJsApi"]))&&((t=window["widgetIdent"])==null?void 0:t.env)!=="demo"){return{type:"SquatchJS2",api:(n=window.frameElement)==null?void 0:n["squatchJsApi"],widgetIdent:window["widgetIdent"]}}return{type:"None"}}function se(){var e=oe();return e.type==="None"||e.type==="SquatchAdmin"}var ue="demo";function ce(){var e;var t=oe();switch(t.type){case"SquatchAndroid":case"SquatchIOS":case"SquatchJS2":return(e=t.widgetIdent)==null?void 0:e.tenantAlias;case"SquatchAdmin":case"None":return ue;case"SquatchPortal":return t.env.tenantAlias}}var le="https://app.referralsaasquatch.com";function fe(){var e,t;var n=oe();switch(n.type){case"SquatchAndroid":case"SquatchIOS":case"SquatchJS2":return((e=n.widgetIdent)==null?void 0:e.appDomain)||le;case"SquatchPortal":return((t=n.env)==null?void 0:t.appDomain)||le;case"SquatchAdmin":case"None":return le}}function de(){var e;var t=oe();switch(t.type){case"SquatchJS2":return((e=t.widgetIdent)==null?void 0:e.engagementMedium)||ie;case"SquatchAndroid":case"SquatchIOS":case"SquatchPortal":case"SquatchAdmin":case"None":return ie}}var pe=function(){var e;try{return(e=window==null?void 0:window.localStorage)==null?void 0:e.getItem("debug")}catch(e){return false}}();function he(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}if(pe){console.debug.apply(console,__spreadArrays(["sq:environment:"+e],t))}}var ve=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return he.apply(void 0,__spreadArrays(["history"],e))};function ye(e){if(typeof e==="string")return e;var t=new URL(e.pathname,window.origin);if(e.search)t.search=e.search;if(e.hash)t.hash=e.hash;return t}var me=function(){function e(){this.listeners=new Set;window.addEventListener("popstate",this.notify.bind(this));window.addEventListener("pushState",this.notify.bind(this));window.addEventListener("replaceState",this.notify.bind(this))}e.prototype.listen=function(e){var t=this;this.listeners.add(e);return function(){t.listeners.delete(e)}};e.prototype.notify=function(){ve("notifying listeners of route change",this.location);if(this.listeners){this.listeners.forEach((function(e){return e()}))}};Object.defineProperty(e.prototype,"location",{get:function(){return{pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,state:window.history.state}},enumerable:false,configurable:true});e.prototype.back=function(){this.go(-1)};e.prototype.forward=function(){this.go(1)};e.prototype.go=function(e){window.history.go(e)};e.prototype.push=function(e,t){var n=ye(e);window.history.pushState(t,"",n)};e.prototype.replace=function(e,t){var n=ye(e);window.history.replaceState(t,"",n)};return e}();var be=function(){function e(){this.history=[{pathname:"/",search:"",hash:""}];this.index=0;this.listeners=new Set}e.prototype.listen=function(e){var t=this;this.listeners.add(e);return function(){t.listeners.delete(e)}};e.prototype.current=function(){return this.history[this.index]};Object.defineProperty(e.prototype,"state",{get:function(){return this.current().state},enumerable:false,configurable:true});e.prototype.notify=function(){ve("notifying listeners of route change",this.location);this.listeners.forEach((function(e){return e()}))};Object.defineProperty(e.prototype,"location",{get:function(){return this.history[this.index]},enumerable:false,configurable:true});e.prototype.back=function(){this.go(-1)};e.prototype.forward=function(){this.go(1)};e.prototype.go=function(e){this.index+=e;if(this.index<0)this.index=0;if(this.index>=this.history.length)this.index=this.history.length-1;this.notify()};e.prototype.push=function(e,t){var n;if(typeof e==="string"){n={pathname:e,search:this.history[this.index].search,hash:this.history[this.index].hash,state:t}}else{n=ee(Z({},e),{state:t})}this.index++;this.history.splice(this.index,this.history.length,n);this.notify()};e.prototype.replace=function(e,t){if(typeof e==="string"){this.history[this.index]={pathname:e,search:"",hash:"",state:t}}else{this.history[this.index]=ee(Z({},e),{state:t})}this.notify()};return e}();function ge(){if(ae()==="SquatchPortal"){var e=function(e){var t=window.history[e];return function(){var n=[];for(var r=0;r<arguments.length;r++){n[r]=arguments[r]}var i=t.apply(window.history,n);var a=new Event(e);window.dispatchEvent(a);return i}};window.history.pushState=e("pushState");window.history.replaceState=e("replaceState");return new me}else{return new be}}function Ee(){window.squatchHistory=window.squatchHistory||ge();return window.squatchHistory}var we=function(){function e(){}Object.defineProperty(e.prototype,"location",{get:function(){return Ee().location},enumerable:false,configurable:true});e.prototype.listen=function(e){return Ee().listen(e)};e.prototype.back=function(){Ee().back()};e.prototype.forward=function(){Ee().forward()};e.prototype.go=function(e){Ee().go(e)};e.prototype.push=function(e,t){Ee().push(e,t)};e.prototype.replace=function(e,t){Ee().replace(e,t)};return e}();var _e=new we;var Se=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return he.apply(void 0,__spreadArrays([ne],e))};function Ie(e){if(e&&/^[a-z]{2}(_(?:[A-Z]{2}|[0-9]{3}))?$/.test(e)){return e}}function Oe(){var e;var n;var r=window.squatchLocale;if(!r){Se("Creating locale context provider");var i=(e=(n=window.widgetIdent)==null?void 0:n.locale)!==null&&e!==void 0?e:Ie(navigator.language.replaceAll("-","_"));Se("initializing with locale:",i);r=new t({element:document.documentElement,initialState:i,contextName:ne}).start();window.squatchLocale=r}return r}var Te=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return he.apply(void 0,__spreadArrays([ne],e))};var xe="\n query {\n viewer {\n ... on User {\n locale\n }\n }\n }\n";function Ae(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r;return __generator(this,(function(i){switch(i.label){case 0:Te("Fetching locale from GraphQL for current user");i.label=1;case 1:i.trys.push([1,4,,5]);return[4,fetch(fe()+"/api/v1/"+ce()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+((e=Ve())==null?void 0:e.jwt)},body:JSON.stringify({query:xe})})];case 2:t=i.sent();if(!t.ok){throw new Error("Failed to fetch locale")}return[4,t.json()];case 3:n=i.sent();if(n.errors){throw new Error(JSON.stringify(n.errors,null,2))}return[2,n.data.viewer.locale||void 0];case 4:r=i.sent();Te("Failed to fetch locale for current user",r.message);return[2,void 0];case 5:return[2]}}))}))}var Ne=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return he.apply(void 0,__spreadArrays([ne],e))};var De=function(){var e="__environment_context_listener";var t=document.getElementById(e);if(!t){t=document.createElement("div");t.id=e;document.documentElement.appendChild(t)}return t}();var Ce=new n({contextName:te,element:De,onChange:function(e){return __awaiter(h,void 0,void 0,(function(){var t,n,r,i,a;var o;return __generator(this,(function(s){switch(s.label){case 0:n=Oe();r=(o=(t=window.widgetIdent)==null?void 0:t.locale)!==null&&o!==void 0?o:Ie(navigator.language.replaceAll("-","_"));if(!e)return[3,2];Ne("User context changed, refetching locale");return[4,Ae()];case 1:a=s.sent();Ne("New value fetched from GraphQL ["+a+"]");i=a||r;return[3,3];case 2:i=r;s.label=3;case 3:Ne("Setting locale context to ["+i+"]");n.context=i;return[2]}}))}))}});function ke(){Ne("Starting user context listener for locale updates");Ce.start()}var Pe=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return he.apply(void 0,__spreadArrays([te],e))};function Fe(){var e=window.squatchUserIdentity;if(!e){Pe("Creating user context provider");e=new t({element:document.documentElement,initialState:Le(),contextName:te}).start();window.squatchUserIdentity=e;ke()}return e}function je(e){return e.user&&e.user.id&&e.user.accountId}function Re(e){return e.sub&&/.*:.*@.*:users/.test(e.sub)}function Me(e){if(!e)return void 0;try{var t=P(e);var n=t.exp;var r=void 0;var i=void 0;var a=void 0;if(Re(t)){var o=t.sub.match(/(.*):(.*)@(.*):users/);if(o==null?void 0:o[1])i=atob(o[1]);if(o==null?void 0:o[2])r=atob(o[2])}else if(je(t)){i=t.user.accountId;r=t.user.id;a=t.user.email}if(!r||!i){Pe("No user information");return void 0}if(n&&Date.now()>=n*1e3){Pe("JWT has expired");return void 0}return{id:r,accountId:i,email:a,jwt:e}}catch(e){Pe("Invalid JWT");return void 0}}function Le(){var e=oe();switch(e.type){case"SquatchIOS":case"SquatchAndroid":case"SquatchJS2":if(!e.widgetIdent)return void 0;var t=e.widgetIdent,n=t.userId,r=t.accountId,i=t.token;if(!n||!r||!i)return void 0;return{id:e.widgetIdent.userId,accountId:e.widgetIdent.accountId,email:e.widgetIdent.email,jwt:e.widgetIdent.token};case"SquatchPortal":var a=new URLSearchParams(document.location.search);if(a.has("jwt")){return Me(a.get("jwt"))}var o=localStorage.getItem(te);if(!o)return void 0;try{var s=JSON.parse(o);var u=Me(s.jwt);if(u){return Z(Z({},s),u)}return void 0}catch(e){return void 0}case"SquatchAdmin":case"None":return void 0}}function qe(e){var t=Fe();if(!q(t.context,e)){Pe("Setting user context value ["+JSON.stringify(e)+"]");t.context=e}if(e&&oe().type==="SquatchPortal"){localStorage.setItem(te,JSON.stringify(e))}else if(!e){localStorage.removeItem(te)}}function Ve(){var e;return(e=window.squatchUserIdentity)==null?void 0:e.context}var Be=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return he.apply(void 0,__spreadArrays([re],e))};function Ue(){var e;var n=window.squatchProgramId;if(!n){Be("Creating program context provider");n=new t({element:document.documentElement,initialState:((e=window.widgetIdent)==null?void 0:e.programId)||void 0,contextName:re}).start();window.squatchProgramId=n}return n}function $e(e){var t=Ue();if(t.context!==e){Be("Setting program context value ["+e+"]");t.context=e}}var Ge=e("u",(function(e,t){return r((function(){return e}),t)}));function Je(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Je=function e(t){return typeof t}}else{Je=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return Je(e)}function Ke(e){return Je(e)=="object"&&e!==null}var He=typeof Symbol==="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function We(e,t){var n=/\r\n|[\n\r]/g;var r=1;var i=t+1;var a;while((a=n.exec(e.body))&&a.index<t){r+=1;i=t+1-(a.index+a[0].length)}return{line:r,column:i}}function Ye(e){return ze(e.source,We(e.source,e.start))}function ze(e,t){var n=e.locationOffset.column-1;var r=Xe(n)+e.body;var i=t.line-1;var a=e.locationOffset.line-1;var o=t.line+a;var s=t.line===1?n:0;var u=t.column+s;var c="".concat(e.name,":").concat(o,":").concat(u,"\n");var l=r.split(/\r\n|[\n\r]/g);var f=l[i];if(f.length>120){var d=Math.floor(u/80);var p=u%80;var h=[];for(var v=0;v<f.length;v+=80){h.push(f.slice(v,v+80))}return c+Qe([["".concat(o),h[0]]].concat(h.slice(1,d+1).map((function(e){return["",e]})),[[" ",Xe(p-1)+"^"],["",h[d+1]]]))}return c+Qe([["".concat(o-1),l[i-1]],["".concat(o),f],["",Xe(u-1)+"^"],["".concat(o+1),l[i+1]]])}function Qe(e){var t=e.filter((function(e){var t=e[1];return t!==undefined}));var n=Math.max.apply(Math,t.map((function(e){var t=e[0];return t.length})));return t.map((function(e){var t=e[0],r=e[1];return Ze(n,t)+(r?" | "+r:" |")})).join("\n")}function Xe(e){return Array(e+1).join(" ")}function Ze(e,t){return Xe(e-t.length)+t}function et(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){et=function e(t){return typeof t}}else{et=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return et(e)}function tt(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function rt(e,t,n){if(t)nt(e.prototype,t);if(n)nt(e,n);return e}function it(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)dt(e,t)}function at(e){var t=lt();return function n(){var r=pt(e),i;if(t){var a=pt(this).constructor;i=Reflect.construct(r,arguments,a)}else{i=r.apply(this,arguments)}return ot(this,i)}}function ot(e,t){if(t&&(et(t)==="object"||typeof t==="function")){return t}return st(e)}function st(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function ut(e){var t=typeof Map==="function"?new Map:undefined;ut=function e(n){if(n===null||!ft(n))return n;if(typeof n!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof t!=="undefined"){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return ct(n,arguments,pt(this).constructor)}r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}});return dt(r,n)};return ut(e)}function ct(e,t,n){if(lt()){ct=Reflect.construct}else{ct=function e(t,n,r){var i=[null];i.push.apply(i,n);var a=Function.bind.apply(t,i);var o=new a;if(r)dt(o,r.prototype);return o}}return ct.apply(null,arguments)}function lt(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return true}catch(e){return false}}function ft(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function dt(e,t){dt=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return dt(e,t)}function pt(e){pt=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return pt(e)}var ht=function(e){it(n,e);var t=at(n);function n(e,r,i,a,o,s,u){var c,l,f,d;var p;tt(this,n);p=t.call(this,e);var h=Array.isArray(r)?r.length!==0?r:undefined:r?[r]:undefined;var v=i;if(!v&&h){var y;v=(y=h[0].loc)===null||y===void 0?void 0:y.source}var m=a;if(!m&&h){m=h.reduce((function(e,t){if(t.loc){e.push(t.loc.start)}return e}),[])}if(m&&m.length===0){m=undefined}var b;if(a&&i){b=a.map((function(e){return We(i,e)}))}else if(h){b=h.reduce((function(e,t){if(t.loc){e.push(We(t.loc.source,t.loc.start))}return e}),[])}var g=u;if(g==null&&s!=null){var E=s.extensions;if(Ke(E)){g=E}}Object.defineProperties(st(p),{name:{value:"GraphQLError"},message:{value:e,enumerable:true,writable:true},locations:{value:(c=b)!==null&&c!==void 0?c:undefined,enumerable:b!=null},path:{value:o!==null&&o!==void 0?o:undefined,enumerable:o!=null},nodes:{value:h!==null&&h!==void 0?h:undefined},source:{value:(l=v)!==null&&l!==void 0?l:undefined},positions:{value:(f=m)!==null&&f!==void 0?f:undefined},originalError:{value:s},extensions:{value:(d=g)!==null&&d!==void 0?d:undefined,enumerable:g!=null}});if(s!==null&&s!==void 0&&s.stack){Object.defineProperty(st(p),"stack",{value:s.stack,writable:true,configurable:true});return ot(p)}if(Error.captureStackTrace){Error.captureStackTrace(st(p),n)}else{Object.defineProperty(st(p),"stack",{value:Error().stack,writable:true,configurable:true})}return p}rt(n,[{key:"toString",value:function e(){return vt(this)}},{key:He,get:function e(){return"Object"}}]);return n}(ut(Error));function vt(e){var t=e.message;if(e.nodes){for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];if(i.loc){t+="\n\n"+Ye(i.loc)}}}else if(e.source&&e.locations){for(var a=0,o=e.locations;a<o.length;a++){var s=o[a];t+="\n\n"+ze(e.source,s)}}return t}function yt(e,t,n){return new ht("Syntax Error: ".concat(n),undefined,e,[t])}var mt=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function bt(e,t){var n=Boolean(e);if(!n){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}var gt=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):undefined;function Et(e){var t=e.prototype.toJSON;typeof t==="function"||bt(0);e.prototype.inspect=t;if(gt){e.prototype[gt]=t}}var wt=function(){function e(e,t,n){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=n}var t=e.prototype;t.toJSON=function e(){return{start:this.start,end:this.end}};return e}();Et(wt);var _t=function(){function e(e,t,n,r,i,a,o){this.kind=e;this.start=t;this.end=n;this.line=r;this.column=i;this.value=o;this.prev=a;this.next=null}var t=e.prototype;t.toJSON=function e(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};return e}();Et(_t);function St(e){return e!=null&&typeof e.kind==="string"}var It=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function Ot(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Ot=function e(t){return typeof t}}else{Ot=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return Ot(e)}var Tt=10;var xt=2;function At(e){return Nt(e,[])}function Nt(e,t){switch(Ot(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":if(e===null){return"null"}return Dt(e,t);default:return String(e)}}function Dt(e,t){if(t.indexOf(e)!==-1){return"[Circular]"}var n=[].concat(t,[e]);var r=Pt(e);if(r!==undefined){var i=r.call(e);if(i!==e){return typeof i==="string"?i:Nt(i,n)}}else if(Array.isArray(e)){return kt(e,n)}return Ct(e,n)}function Ct(e,t){var n=Object.keys(e);if(n.length===0){return"{}"}if(t.length>xt){return"["+Ft(e)+"]"}var r=n.map((function(n){var r=Nt(e[n],t);return n+": "+r}));return"{ "+r.join(", ")+" }"}function kt(e,t){if(e.length===0){return"[]"}if(t.length>xt){return"[Array]"}var n=Math.min(Tt,e.length);var r=e.length-n;var i=[];for(var a=0;a<n;++a){i.push(Nt(e[a],t))}if(r===1){i.push("... 1 more item")}else if(r>1){i.push("... ".concat(r," more items"))}return"["+i.join(", ")+"]"}function Pt(e){var t=e[String(gt)];if(typeof t==="function"){return t}if(typeof e.inspect==="function"){return e.inspect}}function Ft(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){var n=e.constructor.name;if(typeof n==="string"&&n!==""){return n}}return t}function jt(e,t){var n=Boolean(e);if(!n){throw new Error(t)}}var Rt=function e(t,n){return t instanceof n};function Mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function Lt(e,t,n){if(t)Mt(e.prototype,t);if(n)Mt(e,n);return e}var qt=function(){function e(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"GraphQL request";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{line:1,column:1};typeof e==="string"||jt(0,"Body must be a string. Received: ".concat(At(e),"."));this.body=e;this.name=t;this.locationOffset=n;this.locationOffset.line>0||jt(0,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||jt(0,"column in locationOffset is 1-indexed and must be positive.")}Lt(e,[{key:He,get:function e(){return"Source"}}]);return e}();function Vt(e){return Rt(e,qt)}var Bt=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function Ut(e){var t=e.split(/\r\n|[\n\r]/g);var n=Gt(e);if(n!==0){for(var r=1;r<t.length;r++){t[r]=t[r].slice(n)}}var i=0;while(i<t.length&&$t(t[i])){++i}var a=t.length;while(a>i&&$t(t[a-1])){--a}return t.slice(i,a).join("\n")}function $t(e){for(var t=0;t<e.length;++t){if(e[t]!==" "&&e[t]!=="\t"){return false}}return true}function Gt(e){var t;var n=true;var r=true;var i=0;var a=null;for(var o=0;o<e.length;++o){switch(e.charCodeAt(o)){case 13:if(e.charCodeAt(o+1)===10){++o}case 10:n=false;r=true;i=0;break;case 9:case 32:++i;break;default:if(r&&!n&&(a===null||i<a)){a=i}r=false}}return(t=a)!==null&&t!==void 0?t:0}function Jt(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var r=e.indexOf("\n")===-1;var i=e[0]===" "||e[0]==="\t";var a=e[e.length-1]==='"';var o=e[e.length-1]==="\\";var s=!r||a||o||n;var u="";if(s&&!(r&&i)){u+="\n"+t}u+=t?e.replace(/\n/g,"\n"+t):e;if(s){u+="\n"}return'"""'+u.replace(/"""/g,'\\"""')+'"""'}var Kt=function(){function e(e){var t=new _t(It.SOF,0,0,0,0,null);this.source=e;this.lastToken=t;this.token=t;this.line=1;this.lineStart=0}var t=e.prototype;t.advance=function e(){this.lastToken=this.token;var t=this.token=this.lookahead();return t};t.lookahead=function e(){var t=this.token;if(t.kind!==It.EOF){do{var n;t=(n=t.next)!==null&&n!==void 0?n:t.next=Yt(this,t)}while(t.kind===It.COMMENT)}return t};return e}();function Ht(e){return e===It.BANG||e===It.DOLLAR||e===It.AMP||e===It.PAREN_L||e===It.PAREN_R||e===It.SPREAD||e===It.COLON||e===It.EQUALS||e===It.AT||e===It.BRACKET_L||e===It.BRACKET_R||e===It.BRACE_L||e===It.PIPE||e===It.BRACE_R}function Wt(e){return isNaN(e)?It.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Yt(e,t){var n=e.source;var r=n.body;var i=r.length;var a=t.end;while(a<i){var o=r.charCodeAt(a);var s=e.line;var u=1+a-e.lineStart;switch(o){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a;++e.line;e.lineStart=a;continue;case 13:if(r.charCodeAt(a+1)===10){a+=2}else{++a}++e.line;e.lineStart=a;continue;case 33:return new _t(It.BANG,a,a+1,s,u,t);case 35:return Qt(n,a,s,u,t);case 36:return new _t(It.DOLLAR,a,a+1,s,u,t);case 38:return new _t(It.AMP,a,a+1,s,u,t);case 40:return new _t(It.PAREN_L,a,a+1,s,u,t);case 41:return new _t(It.PAREN_R,a,a+1,s,u,t);case 46:if(r.charCodeAt(a+1)===46&&r.charCodeAt(a+2)===46){return new _t(It.SPREAD,a,a+3,s,u,t)}break;case 58:return new _t(It.COLON,a,a+1,s,u,t);case 61:return new _t(It.EQUALS,a,a+1,s,u,t);case 64:return new _t(It.AT,a,a+1,s,u,t);case 91:return new _t(It.BRACKET_L,a,a+1,s,u,t);case 93:return new _t(It.BRACKET_R,a,a+1,s,u,t);case 123:return new _t(It.BRACE_L,a,a+1,s,u,t);case 124:return new _t(It.PIPE,a,a+1,s,u,t);case 125:return new _t(It.BRACE_R,a,a+1,s,u,t);case 34:if(r.charCodeAt(a+1)===34&&r.charCodeAt(a+2)===34){return tn(n,a,s,u,t,e)}return en(n,a,s,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Xt(n,a,o,s,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return an(n,a,s,u,t)}throw yt(n,a,zt(o))}var c=e.line;var l=1+a-e.lineStart;return new _t(It.EOF,i,i,c,l,t)}function zt(e){if(e<32&&e!==9&&e!==10&&e!==13){return"Cannot contain the invalid character ".concat(Wt(e),".")}if(e===39){return"Unexpected single quote character ('), did you mean to use a double quote (\")?"}return"Cannot parse the unexpected character ".concat(Wt(e),".")}function Qt(e,t,n,r,i){var a=e.body;var o;var s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||o===9));return new _t(It.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function Xt(e,t,n,r,i,a){var o=e.body;var s=n;var u=t;var c=false;if(s===45){s=o.charCodeAt(++u)}if(s===48){s=o.charCodeAt(++u);if(s>=48&&s<=57){throw yt(e,u,"Invalid number, unexpected digit after 0: ".concat(Wt(s),"."))}}else{u=Zt(e,u,s);s=o.charCodeAt(u)}if(s===46){c=true;s=o.charCodeAt(++u);u=Zt(e,u,s);s=o.charCodeAt(u)}if(s===69||s===101){c=true;s=o.charCodeAt(++u);if(s===43||s===45){s=o.charCodeAt(++u)}u=Zt(e,u,s);s=o.charCodeAt(u)}if(s===46||on(s)){throw yt(e,u,"Invalid number, expected digit but got: ".concat(Wt(s),"."))}return new _t(c?It.FLOAT:It.INT,t,u,r,i,a,o.slice(t,u))}function Zt(e,t,n){var r=e.body;var i=t;var a=n;if(a>=48&&a<=57){do{a=r.charCodeAt(++i)}while(a>=48&&a<=57);return i}throw yt(e,i,"Invalid number, expected digit but got: ".concat(Wt(a),"."))}function en(e,t,n,r,i){var a=e.body;var o=t+1;var s=o;var u=0;var c="";while(o<a.length&&!isNaN(u=a.charCodeAt(o))&&u!==10&&u!==13){if(u===34){c+=a.slice(s,o);return new _t(It.STRING,t,o+1,n,r,i,c)}if(u<32&&u!==9){throw yt(e,o,"Invalid character within String: ".concat(Wt(u),"."))}++o;if(u===92){c+=a.slice(s,o-1);u=a.charCodeAt(o);switch(u){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:{var l=nn(a.charCodeAt(o+1),a.charCodeAt(o+2),a.charCodeAt(o+3),a.charCodeAt(o+4));if(l<0){var f=a.slice(o+1,o+5);throw yt(e,o,"Invalid character escape sequence: \\u".concat(f,"."))}c+=String.fromCharCode(l);o+=4;break}default:throw yt(e,o,"Invalid character escape sequence: \\".concat(String.fromCharCode(u),"."))}++o;s=o}}throw yt(e,o,"Unterminated string.")}function tn(e,t,n,r,i,a){var o=e.body;var s=t+3;var u=s;var c=0;var l="";while(s<o.length&&!isNaN(c=o.charCodeAt(s))){if(c===34&&o.charCodeAt(s+1)===34&&o.charCodeAt(s+2)===34){l+=o.slice(u,s);return new _t(It.BLOCK_STRING,t,s+3,n,r,i,Ut(l))}if(c<32&&c!==9&&c!==10&&c!==13){throw yt(e,s,"Invalid character within String: ".concat(Wt(c),"."))}if(c===10){++s;++a.line;a.lineStart=s}else if(c===13){if(o.charCodeAt(s+1)===10){s+=2}else{++s}++a.line;a.lineStart=s}else if(c===92&&o.charCodeAt(s+1)===34&&o.charCodeAt(s+2)===34&&o.charCodeAt(s+3)===34){l+=o.slice(u,s)+'"""';s+=4;u=s}else{++s}}throw yt(e,s,"Unterminated string.")}function nn(e,t,n,r){return rn(e)<<12|rn(t)<<8|rn(n)<<4|rn(r)}function rn(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function an(e,t,n,r,i){var a=e.body;var o=a.length;var s=t+1;var u=0;while(s!==o&&!isNaN(u=a.charCodeAt(s))&&(u===95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122)){++s}return new _t(It.NAME,t,s,n,r,i,a.slice(t,s))}function on(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}function sn(e,t){var n=new un(e,t);return n.parseDocument()}var un=function(){function e(e,t){var n=Vt(e)?e:new qt(e);this._lexer=new Kt(n);this._options=t}var t=e.prototype;t.parseName=function e(){var t=this.expectToken(It.NAME);return{kind:mt.NAME,value:t.value,loc:this.loc(t)}};t.parseDocument=function e(){var t=this._lexer.token;return{kind:mt.DOCUMENT,definitions:this.many(It.SOF,this.parseDefinition,It.EOF),loc:this.loc(t)}};t.parseDefinition=function e(){if(this.peek(It.NAME)){switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}}else if(this.peek(It.BRACE_L)){return this.parseOperationDefinition()}else if(this.peekDescription()){return this.parseTypeSystemDefinition()}throw this.unexpected()};t.parseOperationDefinition=function e(){var t=this._lexer.token;if(this.peek(It.BRACE_L)){return{kind:mt.OPERATION_DEFINITION,operation:"query",name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)}}var n=this.parseOperationType();var r;if(this.peek(It.NAME)){r=this.parseName()}return{kind:mt.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}};t.parseOperationType=function e(){var t=this.expectToken(It.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(t)};t.parseVariableDefinitions=function e(){return this.optionalMany(It.PAREN_L,this.parseVariableDefinition,It.PAREN_R)};t.parseVariableDefinition=function e(){var t=this._lexer.token;return{kind:mt.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(It.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(It.EQUALS)?this.parseValueLiteral(true):undefined,directives:this.parseDirectives(true),loc:this.loc(t)}};t.parseVariable=function e(){var t=this._lexer.token;this.expectToken(It.DOLLAR);return{kind:mt.VARIABLE,name:this.parseName(),loc:this.loc(t)}};t.parseSelectionSet=function e(){var t=this._lexer.token;return{kind:mt.SELECTION_SET,selections:this.many(It.BRACE_L,this.parseSelection,It.BRACE_R),loc:this.loc(t)}};t.parseSelection=function e(){return this.peek(It.SPREAD)?this.parseFragment():this.parseField()};t.parseField=function e(){var t=this._lexer.token;var n=this.parseName();var r;var i;if(this.expectOptionalToken(It.COLON)){r=n;i=this.parseName()}else{i=n}return{kind:mt.FIELD,alias:r,name:i,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(It.BRACE_L)?this.parseSelectionSet():undefined,loc:this.loc(t)}};t.parseArguments=function e(t){var n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(It.PAREN_L,n,It.PAREN_R)};t.parseArgument=function e(){var t=this._lexer.token;var n=this.parseName();this.expectToken(It.COLON);return{kind:mt.ARGUMENT,name:n,value:this.parseValueLiteral(false),loc:this.loc(t)}};t.parseConstArgument=function e(){var t=this._lexer.token;return{kind:mt.ARGUMENT,name:this.parseName(),value:(this.expectToken(It.COLON),this.parseValueLiteral(true)),loc:this.loc(t)}};t.parseFragment=function e(){var t=this._lexer.token;this.expectToken(It.SPREAD);var n=this.expectOptionalKeyword("on");if(!n&&this.peek(It.NAME)){return{kind:mt.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false),loc:this.loc(t)}}return{kind:mt.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}};t.parseFragmentDefinition=function e(){var t;var n=this._lexer.token;this.expectKeyword("fragment");if(((t=this._options)===null||t===void 0?void 0:t.experimentalFragmentVariables)===true){return{kind:mt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}}return{kind:mt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}};t.parseFragmentName=function e(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()};t.parseValueLiteral=function e(t){var n=this._lexer.token;switch(n.kind){case It.BRACKET_L:return this.parseList(t);case It.BRACE_L:return this.parseObject(t);case It.INT:this._lexer.advance();return{kind:mt.INT,value:n.value,loc:this.loc(n)};case It.FLOAT:this._lexer.advance();return{kind:mt.FLOAT,value:n.value,loc:this.loc(n)};case It.STRING:case It.BLOCK_STRING:return this.parseStringLiteral();case It.NAME:this._lexer.advance();switch(n.value){case"true":return{kind:mt.BOOLEAN,value:true,loc:this.loc(n)};case"false":return{kind:mt.BOOLEAN,value:false,loc:this.loc(n)};case"null":return{kind:mt.NULL,loc:this.loc(n)};default:return{kind:mt.ENUM,value:n.value,loc:this.loc(n)}}case It.DOLLAR:if(!t){return this.parseVariable()}break}throw this.unexpected()};t.parseStringLiteral=function e(){var t=this._lexer.token;this._lexer.advance();return{kind:mt.STRING,value:t.value,block:t.kind===It.BLOCK_STRING,loc:this.loc(t)}};t.parseList=function e(t){var n=this;var r=this._lexer.token;var i=function e(){return n.parseValueLiteral(t)};return{kind:mt.LIST,values:this.any(It.BRACKET_L,i,It.BRACKET_R),loc:this.loc(r)}};t.parseObject=function e(t){var n=this;var r=this._lexer.token;var i=function e(){return n.parseObjectField(t)};return{kind:mt.OBJECT,fields:this.any(It.BRACE_L,i,It.BRACE_R),loc:this.loc(r)}};t.parseObjectField=function e(t){var n=this._lexer.token;var r=this.parseName();this.expectToken(It.COLON);return{kind:mt.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t),loc:this.loc(n)}};t.parseDirectives=function e(t){var n=[];while(this.peek(It.AT)){n.push(this.parseDirective(t))}return n};t.parseDirective=function e(t){var n=this._lexer.token;this.expectToken(It.AT);return{kind:mt.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t),loc:this.loc(n)}};t.parseTypeReference=function e(){var t=this._lexer.token;var n;if(this.expectOptionalToken(It.BRACKET_L)){n=this.parseTypeReference();this.expectToken(It.BRACKET_R);n={kind:mt.LIST_TYPE,type:n,loc:this.loc(t)}}else{n=this.parseNamedType()}if(this.expectOptionalToken(It.BANG)){return{kind:mt.NON_NULL_TYPE,type:n,loc:this.loc(t)}}return n};t.parseNamedType=function e(){var t=this._lexer.token;return{kind:mt.NAMED_TYPE,name:this.parseName(),loc:this.loc(t)}};t.parseTypeSystemDefinition=function e(){var t=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(t.kind===It.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}}throw this.unexpected(t)};t.peekDescription=function e(){return this.peek(It.STRING)||this.peek(It.BLOCK_STRING)};t.parseDescription=function e(){if(this.peekDescription()){return this.parseStringLiteral()}};t.parseSchemaDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("schema");var r=this.parseDirectives(true);var i=this.many(It.BRACE_L,this.parseOperationTypeDefinition,It.BRACE_R);return{kind:mt.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i,loc:this.loc(t)}};t.parseOperationTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseOperationType();this.expectToken(It.COLON);var r=this.parseNamedType();return{kind:mt.OPERATION_TYPE_DEFINITION,operation:n,type:r,loc:this.loc(t)}};t.parseScalarTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName();var i=this.parseDirectives(true);return{kind:mt.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i,loc:this.loc(t)}};t.parseObjectTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("type");var r=this.parseName();var i=this.parseImplementsInterfaces();var a=this.parseDirectives(true);var o=this.parseFieldsDefinition();return{kind:mt.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o,loc:this.loc(t)}};t.parseImplementsInterfaces=function e(){var t;if(!this.expectOptionalKeyword("implements")){return[]}if(((t=this._options)===null||t===void 0?void 0:t.allowLegacySDLImplementsInterfaces)===true){var n=[];this.expectOptionalToken(It.AMP);do{n.push(this.parseNamedType())}while(this.expectOptionalToken(It.AMP)||this.peek(It.NAME));return n}return this.delimitedMany(It.AMP,this.parseNamedType)};t.parseFieldsDefinition=function e(){var t;if(((t=this._options)===null||t===void 0?void 0:t.allowLegacySDLEmptyFields)===true&&this.peek(It.BRACE_L)&&this._lexer.lookahead().kind===It.BRACE_R){this._lexer.advance();this._lexer.advance();return[]}return this.optionalMany(It.BRACE_L,this.parseFieldDefinition,It.BRACE_R)};t.parseFieldDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();var r=this.parseName();var i=this.parseArgumentDefs();this.expectToken(It.COLON);var a=this.parseTypeReference();var o=this.parseDirectives(true);return{kind:mt.FIELD_DEFINITION,description:n,name:r,arguments:i,type:a,directives:o,loc:this.loc(t)}};t.parseArgumentDefs=function e(){return this.optionalMany(It.PAREN_L,this.parseInputValueDef,It.PAREN_R)};t.parseInputValueDef=function e(){var t=this._lexer.token;var n=this.parseDescription();var r=this.parseName();this.expectToken(It.COLON);var i=this.parseTypeReference();var a;if(this.expectOptionalToken(It.EQUALS)){a=this.parseValueLiteral(true)}var o=this.parseDirectives(true);return{kind:mt.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:a,directives:o,loc:this.loc(t)}};t.parseInterfaceTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("interface");var r=this.parseName();var i=this.parseImplementsInterfaces();var a=this.parseDirectives(true);var o=this.parseFieldsDefinition();return{kind:mt.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o,loc:this.loc(t)}};t.parseUnionTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("union");var r=this.parseName();var i=this.parseDirectives(true);var a=this.parseUnionMemberTypes();return{kind:mt.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:a,loc:this.loc(t)}};t.parseUnionMemberTypes=function e(){return this.expectOptionalToken(It.EQUALS)?this.delimitedMany(It.PIPE,this.parseNamedType):[]};t.parseEnumTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("enum");var r=this.parseName();var i=this.parseDirectives(true);var a=this.parseEnumValuesDefinition();return{kind:mt.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:a,loc:this.loc(t)}};t.parseEnumValuesDefinition=function e(){return this.optionalMany(It.BRACE_L,this.parseEnumValueDefinition,It.BRACE_R)};t.parseEnumValueDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();var r=this.parseName();var i=this.parseDirectives(true);return{kind:mt.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i,loc:this.loc(t)}};t.parseInputObjectTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("input");var r=this.parseName();var i=this.parseDirectives(true);var a=this.parseInputFieldsDefinition();return{kind:mt.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:a,loc:this.loc(t)}};t.parseInputFieldsDefinition=function e(){return this.optionalMany(It.BRACE_L,this.parseInputValueDef,It.BRACE_R)};t.parseTypeSystemExtension=function e(){var t=this._lexer.lookahead();if(t.kind===It.NAME){switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}}throw this.unexpected(t)};t.parseSchemaExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");var n=this.parseDirectives(true);var r=this.optionalMany(It.BRACE_L,this.parseOperationTypeDefinition,It.BRACE_R);if(n.length===0&&r.length===0){throw this.unexpected()}return{kind:mt.SCHEMA_EXTENSION,directives:n,operationTypes:r,loc:this.loc(t)}};t.parseScalarTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");var n=this.parseName();var r=this.parseDirectives(true);if(r.length===0){throw this.unexpected()}return{kind:mt.SCALAR_TYPE_EXTENSION,name:n,directives:r,loc:this.loc(t)}};t.parseObjectTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");var n=this.parseName();var r=this.parseImplementsInterfaces();var i=this.parseDirectives(true);var a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0){throw this.unexpected()}return{kind:mt.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a,loc:this.loc(t)}};t.parseInterfaceTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");var n=this.parseName();var r=this.parseImplementsInterfaces();var i=this.parseDirectives(true);var a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0){throw this.unexpected()}return{kind:mt.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a,loc:this.loc(t)}};t.parseUnionTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");var n=this.parseName();var r=this.parseDirectives(true);var i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0){throw this.unexpected()}return{kind:mt.UNION_TYPE_EXTENSION,name:n,directives:r,types:i,loc:this.loc(t)}};t.parseEnumTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");var n=this.parseName();var r=this.parseDirectives(true);var i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0){throw this.unexpected()}return{kind:mt.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i,loc:this.loc(t)}};t.parseInputObjectTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");var n=this.parseName();var r=this.parseDirectives(true);var i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0){throw this.unexpected()}return{kind:mt.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i,loc:this.loc(t)}};t.parseDirectiveDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("directive");this.expectToken(It.AT);var r=this.parseName();var i=this.parseArgumentDefs();var a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:mt.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:a,locations:o,loc:this.loc(t)}};t.parseDirectiveLocations=function e(){return this.delimitedMany(It.PIPE,this.parseDirectiveLocation)};t.parseDirectiveLocation=function e(){var t=this._lexer.token;var n=this.parseName();if(Bt[n.value]!==undefined){return n}throw this.unexpected(t)};t.loc=function e(t){var n;if(((n=this._options)===null||n===void 0?void 0:n.noLocation)!==true){return new wt(t,this._lexer.lastToken,this._lexer.source)}};t.peek=function e(t){return this._lexer.token.kind===t};t.expectToken=function e(t){var n=this._lexer.token;if(n.kind===t){this._lexer.advance();return n}throw yt(this._lexer.source,n.start,"Expected ".concat(ln(t),", found ").concat(cn(n),"."))};t.expectOptionalToken=function e(t){var n=this._lexer.token;if(n.kind===t){this._lexer.advance();return n}return undefined};t.expectKeyword=function e(t){var n=this._lexer.token;if(n.kind===It.NAME&&n.value===t){this._lexer.advance()}else{throw yt(this._lexer.source,n.start,'Expected "'.concat(t,'", found ').concat(cn(n),"."))}};t.expectOptionalKeyword=function e(t){var n=this._lexer.token;if(n.kind===It.NAME&&n.value===t){this._lexer.advance();return true}return false};t.unexpected=function e(t){var n=t!==null&&t!==void 0?t:this._lexer.token;return yt(this._lexer.source,n.start,"Unexpected ".concat(cn(n),"."))};t.any=function e(t,n,r){this.expectToken(t);var i=[];while(!this.expectOptionalToken(r)){i.push(n.call(this))}return i};t.optionalMany=function e(t,n,r){if(this.expectOptionalToken(t)){var i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(r));return i}return[]};t.many=function e(t,n,r){this.expectToken(t);var i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(r));return i};t.delimitedMany=function e(t,n){this.expectOptionalToken(t);var r=[];do{r.push(n.call(this))}while(this.expectOptionalToken(t));return r};return e}();function cn(e){var t=e.value;return ln(e.kind)+(t!=null?' "'.concat(t,'"'):"")}function ln(e){return Ht(e)?'"'.concat(e,'"'):e}var fn={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};var dn=Object.freeze({});function pn(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:fn;var r=undefined;var i=Array.isArray(e);var a=[e];var o=-1;var s=[];var u=undefined;var c=undefined;var l=undefined;var f=[];var d=[];var p=e;do{o++;var h=o===a.length;var v=h&&s.length!==0;if(h){c=d.length===0?undefined:f[f.length-1];u=l;l=d.pop();if(v){if(i){u=u.slice()}else{var y={};for(var m=0,b=Object.keys(u);m<b.length;m++){var g=b[m];y[g]=u[g]}u=y}var E=0;for(var w=0;w<s.length;w++){var _=s[w][0];var S=s[w][1];if(i){_-=E}if(i&&S===null){u.splice(_,1);E++}else{u[_]=S}}}o=r.index;a=r.keys;s=r.edits;i=r.inArray;r=r.prev}else{c=l?i?o:a[o]:undefined;u=l?l[c]:p;if(u===null||u===undefined){continue}if(l){f.push(c)}}var I=void 0;if(!Array.isArray(u)){if(!St(u)){throw new Error("Invalid AST Node: ".concat(At(u),"."))}var O=hn(t,u.kind,h);if(O){I=O.call(t,u,c,l,f,d);if(I===dn){break}if(I===false){if(!h){f.pop();continue}}else if(I!==undefined){s.push([c,I]);if(!h){if(St(I)){u=I}else{f.pop();continue}}}}}if(I===undefined&&v){s.push([c,u])}if(h){f.pop()}else{var T;r={inArray:i,index:o,keys:a,edits:s,prev:r};i=Array.isArray(u);a=i?u:(T=n[u.kind])!==null&&T!==void 0?T:[];o=-1;s=[];if(l){d.push(l)}l=u}}while(r!==undefined);if(s.length!==0){p=s[s.length-1][1]}return p}function hn(e,t,n){var r=e[t];if(r){if(!n&&typeof r==="function"){return r}var i=n?r.leave:r.enter;if(typeof i==="function"){return i}}else{var a=n?e.leave:e.enter;if(a){if(typeof a==="function"){return a}var o=a[t];if(typeof o==="function"){return o}}}}function vn(e){return pn(e,{leave:mn})}var yn=80;var mn={Name:function e(t){return t.value},Variable:function e(t){return"$"+t.name},Document:function e(t){return gn(t.definitions,"\n\n")+"\n"},OperationDefinition:function e(t){var n=t.operation;var r=t.name;var i=wn("(",gn(t.variableDefinitions,", "),")");var a=gn(t.directives," ");var o=t.selectionSet;return!r&&!a&&!i&&n==="query"?o:gn([n,gn([r,i]),a,o]," ")},VariableDefinition:function e(t){var n=t.variable,r=t.type,i=t.defaultValue,a=t.directives;return n+": "+r+wn(" = ",i)+wn(" ",gn(a," "))},SelectionSet:function e(t){var n=t.selections;return En(n)},Field:function e(t){var n=t.alias,r=t.name,i=t.arguments,a=t.directives,o=t.selectionSet;var s=wn("",n,": ")+r;var u=s+wn("(",gn(i,", "),")");if(u.length>yn){u=s+wn("(\n",_n(gn(i,"\n")),"\n)")}return gn([u,gn(a," "),o]," ")},Argument:function e(t){var n=t.name,r=t.value;return n+": "+r},FragmentSpread:function e(t){var n=t.name,r=t.directives;return"..."+n+wn(" ",gn(r," "))},InlineFragment:function e(t){var n=t.typeCondition,r=t.directives,i=t.selectionSet;return gn(["...",wn("on ",n),gn(r," "),i]," ")},FragmentDefinition:function e(t){var n=t.name,r=t.typeCondition,i=t.variableDefinitions,a=t.directives,o=t.selectionSet;return"fragment ".concat(n).concat(wn("(",gn(i,", "),")")," ")+"on ".concat(r," ").concat(wn("",gn(a," ")," "))+o},IntValue:function e(t){var n=t.value;return n},FloatValue:function e(t){var n=t.value;return n},StringValue:function e(t,n){var r=t.value,i=t.block;return i?Jt(r,n==="description"?"":" "):JSON.stringify(r)},BooleanValue:function e(t){var n=t.value;return n?"true":"false"},NullValue:function e(){return"null"},EnumValue:function e(t){var n=t.value;return n},ListValue:function e(t){var n=t.values;return"["+gn(n,", ")+"]"},ObjectValue:function e(t){var n=t.fields;return"{"+gn(n,", ")+"}"},ObjectField:function e(t){var n=t.name,r=t.value;return n+": "+r},Directive:function e(t){var n=t.name,r=t.arguments;return"@"+n+wn("(",gn(r,", "),")")},NamedType:function e(t){var n=t.name;return n},ListType:function e(t){var n=t.type;return"["+n+"]"},NonNullType:function e(t){var n=t.type;return n+"!"},SchemaDefinition:bn((function(e){var t=e.directives,n=e.operationTypes;return gn(["schema",gn(t," "),En(n)]," ")})),OperationTypeDefinition:function e(t){var n=t.operation,r=t.type;return n+": "+r},ScalarTypeDefinition:bn((function(e){var t=e.name,n=e.directives;return gn(["scalar",t,gn(n," ")]," ")})),ObjectTypeDefinition:bn((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return gn(["type",t,wn("implements ",gn(n," & ")),gn(r," "),En(i)]," ")})),FieldDefinition:bn((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(In(n)?wn("(\n",_n(gn(n,"\n")),"\n)"):wn("(",gn(n,", "),")"))+": "+r+wn(" ",gn(i," "))})),InputValueDefinition:bn((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return gn([t+": "+n,wn("= ",r),gn(i," ")]," ")})),InterfaceTypeDefinition:bn((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return gn(["interface",t,wn("implements ",gn(n," & ")),gn(r," "),En(i)]," ")})),UnionTypeDefinition:bn((function(e){var t=e.name,n=e.directives,r=e.types;return gn(["union",t,gn(n," "),r&&r.length!==0?"= "+gn(r," | "):""]," ")})),EnumTypeDefinition:bn((function(e){var t=e.name,n=e.directives,r=e.values;return gn(["enum",t,gn(n," "),En(r)]," ")})),EnumValueDefinition:bn((function(e){var t=e.name,n=e.directives;return gn([t,gn(n," ")]," ")})),InputObjectTypeDefinition:bn((function(e){var t=e.name,n=e.directives,r=e.fields;return gn(["input",t,gn(n," "),En(r)]," ")})),DirectiveDefinition:bn((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(In(n)?wn("(\n",_n(gn(n,"\n")),"\n)"):wn("(",gn(n,", "),")"))+(r?" repeatable":"")+" on "+gn(i," | ")})),SchemaExtension:function e(t){var n=t.directives,r=t.operationTypes;return gn(["extend schema",gn(n," "),En(r)]," ")},ScalarTypeExtension:function e(t){var n=t.name,r=t.directives;return gn(["extend scalar",n,gn(r," ")]," ")},ObjectTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return gn(["extend type",n,wn("implements ",gn(r," & ")),gn(i," "),En(a)]," ")},InterfaceTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return gn(["extend interface",n,wn("implements ",gn(r," & ")),gn(i," "),En(a)]," ")},UnionTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.types;return gn(["extend union",n,gn(r," "),i&&i.length!==0?"= "+gn(i," | "):""]," ")},EnumTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.values;return gn(["extend enum",n,gn(r," "),En(i)]," ")},InputObjectTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.fields;return gn(["extend input",n,gn(r," "),En(i)]," ")}};function bn(e){return function(t){return gn([t.description,e(t)],"\n")}}function gn(e){var t;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";return(t=e===null||e===void 0?void 0:e.filter((function(e){return e})).join(n))!==null&&t!==void 0?t:""}function En(e){return wn("{\n",_n(gn(e,"\n")),"\n}")}function wn(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"";return t!=null&&t!==""?e+t+n:""}function _n(e){return wn(" ",e.replace(/\n/g,"\n "))}function Sn(e){return e.indexOf("\n")!==-1}function In(e){return e!=null&&e.some(Sn)}function On(e){this.message=e}On.prototype=new Error,On.prototype.name="InvalidCharacterError";var Tn="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new On("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,o="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?o+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function xn(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Tn(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return Tn(t)}}function An(e){this.message=e}function Nn(e,t){if("string"!=typeof e)throw new An("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(xn(e.split(".")[n]))}catch(e){throw new An("Invalid token specified: "+e.message)}}An.prototype=new Error,An.prototype.name="InvalidTokenError";var Dn=i((function(e,t){var n=a&&a.__assign||function(){n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return n.apply(this,arguments)};var r=a&&a.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(t,"__esModule",{value:true});t.renameVariables=t.renameVariablesAndTopLevelFields=t.renameVariablesAndTopLevelFieldsOnOpDef=t.renameSelectionSetArguments=t.renameVariableDefinition=t.renameDirectiveArguments=t.renameArgument=t.renameValue=t.defaultRenameFn=void 0;t.defaultRenameFn=function(e,t){return e+"_"+t};function i(e,t){if(e.kind==="Variable"){return n(n({},e),{name:n(n({},e.name),{value:t(e.name.value)})})}else if(e.kind==="ObjectValue"){return n(n({},e),{fields:e.fields.map((function(e){return n(n({},e),{value:i(e.value,t)})}))})}else if(e.kind==="ListValue"){return n(n({},e),{values:e.values.map((function(e){return i(e,t)}))})}return e}t.renameValue=i;function o(e,t){return n(n({},e),{value:i(e.value,t)})}t.renameArgument=o;function s(e,t){var r;return n(n({},e),{arguments:(r=e.arguments)===null||r===void 0?void 0:r.map((function(e){return o(e,t)}))})}t.renameDirectiveArguments=s;function u(e,t){var r;return n(n({},e),{variable:n(n({},e.variable),{name:n(n({},e.variable.name),{value:t(e.variable.name.value)})}),directives:(r=e.directives)===null||r===void 0?void 0:r.map((function(e){return s(e,t)}))})}t.renameVariableDefinition=u;function c(e,t){return n(n({},e),{selections:e.selections.map((function(e){var r,i,a;switch(e.kind){case"Field":return n(n({},e),{arguments:(r=e.arguments)===null||r===void 0?void 0:r.map((function(e){return o(e,t)})),selectionSet:e.selectionSet?c(e.selectionSet,t):undefined});case"FragmentSpread":return n(n({},e),{directives:(i=e.directives)===null||i===void 0?void 0:i.map((function(e){return s(e,t)}))});case"InlineFragment":return n(n({},e),{directives:(a=e.directives)===null||a===void 0?void 0:a.map((function(e){return s(e,t)})),selectionSet:c(e.selectionSet,t)})}}))})}t.renameSelectionSetArguments=c;function l(e,t,r){var i,a;return n(n({},e),{variableDefinitions:(i=e.variableDefinitions)===null||i===void 0?void 0:i.map((function(e){return u(e,t)})),directives:(a=e.directives)===null||a===void 0?void 0:a.map((function(e){return s(e,t)})),selectionSet:c(n(n({},e.selectionSet),{selections:e.selectionSet.selections.map((function(e){var t,i;switch(e.kind){case"Field":return n(n({},e),{alias:n(n({},e.name),{value:r((i=(t=e.alias)===null||t===void 0?void 0:t.value)!==null&&i!==void 0?i:e.name.value)})});default:return e}}))}),t)})}t.renameVariablesAndTopLevelFieldsOnOpDef=l;function f(e,t,i){return n(n({},e),{definitions:r(e.definitions.filter((function(e){return e.kind!=="OperationDefinition"})),e.definitions.filter((function(e){return e.kind==="OperationDefinition"})).map((function(e){return l(e,t,i)})))})}t.renameVariablesAndTopLevelFields=f;function d(e,t){return Object.keys(e).reduce((function(r,i){var a;return n(n({},r),(a={},a[t(i)]=e[i],a))}),{})}t.renameVariables=d}));var Cn=i((function(e,t){var n=a&&a.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(t.hasOwnProperty(n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var r=a&&a.__assign||function(){r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return r.apply(this,arguments)};var i=a&&a.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(t,"__esModule",{value:true});var o={kind:"Document",definitions:[]};var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Error);var u=function(){function e(e,t,n){this.operationName=e;this.document=t;this.variables=n}e.prototype.add=function(t,n){var a=this;var o=this.document.definitions.concat(t.definitions).filter((function(e){return e.kind==="OperationDefinition"}));if(!o.length){throw new s("Expected at least one OperationDefinition, but found none.")}o.forEach((function(e){var t,n;var r=o.filter((function(t){return t!==e}));r.forEach((function(t){var n,r;if(t.operation!==e.operation){throw new s("expected all operations to be of the smae type, but "+((n=t.name)===null||n===void 0?void 0:n.value)+" is "+t.operation+" and "+((r=e.name)===null||r===void 0?void 0:r.value)+" is "+e.operation)}}));(t=e.selectionSet.selections)===null||t===void 0?void 0:t.filter((function(e){return e.kind==="Field"})).forEach((function(t){r.forEach((function(n){var r;return(r=n.selectionSet.selections)===null||r===void 0?void 0:r.filter((function(e){return e.kind==="Field"})).forEach((function(r){var i,a,o,u;if((((i=t.alias)===null||i===void 0?void 0:i.value)||t.name.value)===(((a=r.alias)===null||a===void 0?void 0:a.value)||r.name.value)){throw new s("duplicate field definition "+r.name.value+" for oprations "+((o=e.name)===null||o===void 0?void 0:o.value)+" and "+((u=n.name)===null||u===void 0?void 0:u.value))}}))}))}));(n=e.variableDefinitions)===null||n===void 0?void 0:n.forEach((function(t){r.forEach((function(n){var r;return(r=n.variableDefinitions)===null||r===void 0?void 0:r.forEach((function(r){var i,a;if(t.variable.name.value===r.variable.name.value){throw new s("duplicate variable definition "+r.variable.name.value+" for oprations "+((i=e.name)===null||i===void 0?void 0:i.value)+" and "+((a=n.name)===null||a===void 0?void 0:a.value))}}))}))}))}));var u=function(){if(a.variables&&n){return r(r({},a.variables),n)}return n||a.variables}();var c=[{kind:"OperationDefinition",directives:o.flatMap((function(e){return e.directives||[]})),name:{kind:"Name",value:this.operationName},operation:o[0].operation,selectionSet:{kind:"SelectionSet",selections:o.flatMap((function(e){return e.selectionSet.selections}))},variableDefinitions:o.flatMap((function(e){return e.variableDefinitions||[]}))}];var l=new Set;var f=this.document.definitions.concat(t.definitions);for(var d=0,p=f;d<p.length;d++){var h=p[d];if(h.kind==="OperationDefinition"){continue}if(h.kind==="FragmentDefinition"){if(l.has(h.name.value)){continue}l.add(h.name.value)}c=i([h],c)}var v={kind:"Document",definitions:c};return new e(this.operationName,v,u)};e.prototype.addN=function(e,t,n,r){if(n===void 0){n=Dn.defaultRenameFn}if(r===void 0){r=Dn.defaultRenameFn}if(!t.length){return this}return t.reduce((function(t,i,a){var o=Dn.renameVariablesAndTopLevelFields(e,(function(e){return n(e,a)}),(function(e){return r(e,a)}));var s=Dn.renameVariables(i,(function(e){return n(e,a)}));return t.add(o,s)}),this)};return e}();function c(e){return{operationName:e,add:function(e,t){return new u(this.operationName,e,t)},addN:function(e,t,n,r){return new u(this.operationName,o).addN(e,t,n,r)}}}t.default=c}));var kn=o(Cn);var Pn=i((function(e,t){var n=typeof self!=="undefined"?self:a;var r=function(){function e(){this.fetch=false;this.DOMException=n.DOMException}e.prototype=n;return new e}();(function(e){var t=function(t){var n={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{new Blob;return true}catch(e){return false}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};function r(e){return e&&DataView.prototype.isPrototypeOf(e)}if(n.arrayBuffer){var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];var a=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1}}function o(e){if(typeof e!=="string"){e=String(e)}if(/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e)){throw new TypeError("Invalid character in header field name")}return e.toLowerCase()}function s(e){if(typeof e!=="string"){e=String(e)}return e}function u(e){var t={next:function(){var t=e.shift();return{done:t===undefined,value:t}}};if(n.iterable){t[Symbol.iterator]=function(){return t}}return t}function c(e){this.map={};if(e instanceof c){e.forEach((function(e,t){this.append(t,e)}),this)}else if(Array.isArray(e)){e.forEach((function(e){this.append(e[0],e[1])}),this)}else if(e){Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}}c.prototype.append=function(e,t){e=o(e);t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};c.prototype["delete"]=function(e){delete this.map[o(e)]};c.prototype.get=function(e){e=o(e);return this.has(e)?this.map[e]:null};c.prototype.has=function(e){return this.map.hasOwnProperty(o(e))};c.prototype.set=function(e,t){this.map[o(e)]=s(t)};c.prototype.forEach=function(e,t){for(var n in this.map){if(this.map.hasOwnProperty(n)){e.call(t,this.map[n],n,this)}}};c.prototype.keys=function(){var e=[];this.forEach((function(t,n){e.push(n)}));return u(e)};c.prototype.values=function(){var e=[];this.forEach((function(t){e.push(t)}));return u(e)};c.prototype.entries=function(){var e=[];this.forEach((function(t,n){e.push([n,t])}));return u(e)};if(n.iterable){c.prototype[Symbol.iterator]=c.prototype.entries}function l(e){if(e.bodyUsed){return Promise.reject(new TypeError("Already read"))}e.bodyUsed=true}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)};e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader;var n=f(t);t.readAsArrayBuffer(e);return n}function p(e){var t=new FileReader;var n=f(t);t.readAsText(e);return n}function h(e){var t=new Uint8Array(e);var n=new Array(t.length);for(var r=0;r<t.length;r++){n[r]=String.fromCharCode(t[r])}return n.join("")}function v(e){if(e.slice){return e.slice(0)}else{var t=new Uint8Array(e.byteLength);t.set(new Uint8Array(e));return t.buffer}}function y(){this.bodyUsed=false;this._initBody=function(e){this._bodyInit=e;if(!e){this._bodyText=""}else if(typeof e==="string"){this._bodyText=e}else if(n.blob&&Blob.prototype.isPrototypeOf(e)){this._bodyBlob=e}else if(n.formData&&FormData.prototype.isPrototypeOf(e)){this._bodyFormData=e}else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)){this._bodyText=e.toString()}else if(n.arrayBuffer&&n.blob&&r(e)){this._bodyArrayBuffer=v(e.buffer);this._bodyInit=new Blob([this._bodyArrayBuffer])}else if(n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))){this._bodyArrayBuffer=v(e)}else{this._bodyText=e=Object.prototype.toString.call(e)}if(!this.headers.get("content-type")){if(typeof e==="string"){this.headers.set("content-type","text/plain;charset=UTF-8")}else if(this._bodyBlob&&this._bodyBlob.type){this.headers.set("content-type",this._bodyBlob.type)}else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)){this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8")}}};if(n.blob){this.blob=function(){var e=l(this);if(e){return e}if(this._bodyBlob){return Promise.resolve(this._bodyBlob)}else if(this._bodyArrayBuffer){return Promise.resolve(new Blob([this._bodyArrayBuffer]))}else if(this._bodyFormData){throw new Error("could not read FormData body as blob")}else{return Promise.resolve(new Blob([this._bodyText]))}};this.arrayBuffer=function(){if(this._bodyArrayBuffer){return l(this)||Promise.resolve(this._bodyArrayBuffer)}else{return this.blob().then(d)}}}this.text=function(){var e=l(this);if(e){return e}if(this._bodyBlob){return p(this._bodyBlob)}else if(this._bodyArrayBuffer){return Promise.resolve(h(this._bodyArrayBuffer))}else if(this._bodyFormData){throw new Error("could not read FormData body as text")}else{return Promise.resolve(this._bodyText)}};if(n.formData){this.formData=function(){return this.text().then(E)}}this.json=function(){return this.text().then(JSON.parse)};return this}var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e){var t=e.toUpperCase();return m.indexOf(t)>-1?t:e}function g(e,t){t=t||{};var n=t.body;if(e instanceof g){if(e.bodyUsed){throw new TypeError("Already read")}this.url=e.url;this.credentials=e.credentials;if(!t.headers){this.headers=new c(e.headers)}this.method=e.method;this.mode=e.mode;this.signal=e.signal;if(!n&&e._bodyInit!=null){n=e._bodyInit;e.bodyUsed=true}}else{this.url=String(e)}this.credentials=t.credentials||this.credentials||"same-origin";if(t.headers||!this.headers){this.headers=new c(t.headers)}this.method=b(t.method||this.method||"GET");this.mode=t.mode||this.mode||null;this.signal=t.signal||this.signal;this.referrer=null;if((this.method==="GET"||this.method==="HEAD")&&n){throw new TypeError("Body not allowed for GET or HEAD requests")}this._initBody(n)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})};function E(e){var t=new FormData;e.trim().split("&").forEach((function(e){if(e){var n=e.split("=");var r=n.shift().replace(/\+/g," ");var i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}));return t}function w(e){var t=new c;var n=e.replace(/\r?\n[\t ]+/g," ");n.split(/\r?\n/).forEach((function(e){var n=e.split(":");var r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}));return t}y.call(g.prototype);function _(e,t){if(!t){t={}}this.type="default";this.status=t.status===undefined?200:t.status;this.ok=this.status>=200&&this.status<300;this.statusText="statusText"in t?t.statusText:"OK";this.headers=new c(t.headers);this.url=t.url||"";this._initBody(e)}y.call(_.prototype);_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})};_.error=function(){var e=new _(null,{status:0,statusText:""});e.type="error";return e};var S=[301,302,303,307,308];_.redirect=function(e,t){if(S.indexOf(t)===-1){throw new RangeError("Invalid status code")}return new _(null,{status:t,headers:{location:e}})};t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e;this.name=t;var n=Error(e);this.stack=n.stack};t.DOMException.prototype=Object.create(Error.prototype);t.DOMException.prototype.constructor=t.DOMException}function I(e,r){return new Promise((function(i,a){var o=new g(e,r);if(o.signal&&o.signal.aborted){return a(new t.DOMException("Aborted","AbortError"))}var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:w(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;i(new _(t,e))};s.onerror=function(){a(new TypeError("Network request failed"))};s.ontimeout=function(){a(new TypeError("Network request failed"))};s.onabort=function(){a(new t.DOMException("Aborted","AbortError"))};s.open(o.method,o.url,true);if(o.credentials==="include"){s.withCredentials=true}else if(o.credentials==="omit"){s.withCredentials=false}if("responseType"in s&&n.blob){s.responseType="blob"}o.headers.forEach((function(e,t){s.setRequestHeader(t,e)}));if(o.signal){o.signal.addEventListener("abort",u);s.onreadystatechange=function(){if(s.readyState===4){o.signal.removeEventListener("abort",u)}}}s.send(typeof o._bodyInit==="undefined"?null:o._bodyInit)}))}I.polyfill=true;if(!e.fetch){e.fetch=I;e.Headers=c;e.Request=g;e.Response=_}t.Headers=c;t.Request=g;t.Response=_;t.fetch=I;Object.defineProperty(t,"__esModule",{value:true});return t}({})})(r);r.fetch.ponyfill=true;delete r.fetch.polyfill;var i=r;t=i.fetch;t.default=i.fetch;t.fetch=i.fetch;t.Headers=i.Headers;t.Request=i.Request;t.Response=i.Response;e.exports=t}));var Fn=i((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):undefined;var r=n;t.default=r}));var jn=i((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=s;var n=r(Fn);function r(e){return e&&e.__esModule?e:{default:e}}function i(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){i=function e(t){return typeof t}}else{i=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return i(e)}var a=10;var o=2;function s(e){return u(e,[])}function u(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":if(e===null){return"null"}return c(e,t);default:return String(e)}}function c(e,t){if(t.indexOf(e)!==-1){return"[Circular]"}var n=[].concat(t,[e]);var r=d(e);if(r!==undefined){var i=r.call(e);if(i!==e){return typeof i==="string"?i:u(i,n)}}else if(Array.isArray(e)){return f(e,n)}return l(e,n)}function l(e,t){var n=Object.keys(e);if(n.length===0){return"{}"}if(t.length>o){return"["+p(e)+"]"}var r=n.map((function(n){var r=u(e[n],t);return n+": "+r}));return"{ "+r.join(", ")+" }"}function f(e,t){if(e.length===0){return"[]"}if(t.length>o){return"[Array]"}var n=Math.min(a,e.length);var r=e.length-n;var i=[];for(var s=0;s<n;++s){i.push(u(e[s],t))}if(r===1){i.push("... 1 more item")}else if(r>1){i.push("... ".concat(r," more items"))}return"["+i.join(", ")+"]"}function d(e){var t=e[String(n.default)];if(typeof t==="function"){return t}if(typeof e.inspect==="function"){return e.inspect}}function p(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){var n=e.constructor.name;if(typeof n==="string"&&n!==""){return n}}return t}}));var Rn=i((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=n;function n(e,t){var n=Boolean(e);if(!n){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}}));var Mn=i((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=a;var n=i(Rn);var r=i(Fn);function i(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.prototype.toJSON;typeof t==="function"||(0,n.default)(0);e.prototype.inspect=t;if(r.default){e.prototype[r.default]=t}}}));var Ln=i((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.isNode=o;t.Token=t.Location=void 0;var n=r(Mn);function r(e){return e&&e.__esModule?e:{default:e}}var i=function(){function e(e,t,n){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=n}var t=e.prototype;t.toJSON=function e(){return{start:this.start,end:this.end}};return e}();t.Location=i;(0,n.default)(i);var a=function(){function e(e,t,n,r,i,a,o){this.kind=e;this.start=t;this.end=n;this.line=r;this.column=i;this.value=o;this.prev=a;this.next=null}var t=e.prototype;t.toJSON=function e(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};return e}();t.Token=a;(0,n.default)(a);function o(e){return e!=null&&typeof e.kind==="string"}}));var qn=i((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.visit=o;t.visitInParallel=s;t.getVisitFn=u;t.BREAK=t.QueryDocumentKeys=void 0;var n=r(jn);function r(e){return e&&e.__esModule?e:{default:e}}var i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=i;var a=Object.freeze({});t.BREAK=a;function o(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:i;var o=undefined;var s=Array.isArray(e);var c=[e];var l=-1;var f=[];var d=undefined;var p=undefined;var h=undefined;var v=[];var y=[];var m=e;do{l++;var b=l===c.length;var g=b&&f.length!==0;if(b){p=y.length===0?undefined:v[v.length-1];d=h;h=y.pop();if(g){if(s){d=d.slice()}else{var E={};for(var w=0,_=Object.keys(d);w<_.length;w++){var S=_[w];E[S]=d[S]}d=E}var I=0;for(var O=0;O<f.length;O++){var T=f[O][0];var x=f[O][1];if(s){T-=I}if(s&&x===null){d.splice(T,1);I++}else{d[T]=x}}}l=o.index;c=o.keys;f=o.edits;s=o.inArray;o=o.prev}else{p=h?s?l:c[l]:undefined;d=h?h[p]:m;if(d===null||d===undefined){continue}if(h){v.push(p)}}var A=void 0;if(!Array.isArray(d)){if(!(0,Ln.isNode)(d)){throw new Error("Invalid AST Node: ".concat((0,n.default)(d),"."))}var N=u(t,d.kind,b);if(N){A=N.call(t,d,p,h,v,y);if(A===a){break}if(A===false){if(!b){v.pop();continue}}else if(A!==undefined){f.push([p,A]);if(!b){if((0,Ln.isNode)(A)){d=A}else{v.pop();continue}}}}}if(A===undefined&&g){f.push([p,d])}if(b){v.pop()}else{var D;o={inArray:s,index:l,keys:c,edits:f,prev:o};s=Array.isArray(d);c=s?d:(D=r[d.kind])!==null&&D!==void 0?D:[];l=-1;f=[];if(h){y.push(h)}h=d}}while(o!==undefined);if(f.length!==0){m=f[f.length-1][1]}return m}function s(e){var t=new Array(e.length);return{enter:function n(r){for(var i=0;i<e.length;i++){if(t[i]==null){var o=u(e[i],r.kind,false);if(o){var s=o.apply(e[i],arguments);if(s===false){t[i]=r}else if(s===a){t[i]=a}else if(s!==undefined){return s}}}}},leave:function n(r){for(var i=0;i<e.length;i++){if(t[i]==null){var o=u(e[i],r.kind,true);if(o){var s=o.apply(e[i],arguments);if(s===a){t[i]=a}else if(s!==undefined&&s!==false){return s}}}else if(t[i]===r){t[i]=null}}}}}function u(e,t,n){var r=e[t];if(r){if(!n&&typeof r==="function"){return r}var i=n?r.leave:r.enter;if(typeof i==="function"){return i}}else{var a=n?e.leave:e.enter;if(a){if(typeof a==="function"){return a}var o=a[t];if(typeof o==="function"){return o}}}}}));var Vn=i((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringValue=n;t.getBlockStringIndentation=i;t.printBlockString=a;function n(e){var t=e.split(/\r\n|[\n\r]/g);var n=i(e);if(n!==0){for(var a=1;a<t.length;a++){t[a]=t[a].slice(n)}}var o=0;while(o<t.length&&r(t[o])){++o}var s=t.length;while(s>o&&r(t[s-1])){--s}return t.slice(o,s).join("\n")}function r(e){for(var t=0;t<e.length;++t){if(e[t]!==" "&&e[t]!=="\t"){return false}}return true}function i(e){var t;var n=true;var r=true;var i=0;var a=null;for(var o=0;o<e.length;++o){switch(e.charCodeAt(o)){case 13:if(e.charCodeAt(o+1)===10){++o}case 10:n=false;r=true;i=0;break;case 9:case 32:++i;break;default:if(r&&!n&&(a===null||i<a)){a=i}r=false}}return(t=a)!==null&&t!==void 0?t:0}function a(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var r=e.indexOf("\n")===-1;var i=e[0]===" "||e[0]==="\t";var a=e[e.length-1]==='"';var o=e[e.length-1]==="\\";var s=!r||a||o||n;var u="";if(s&&!(r&&i)){u+="\n"+t}u+=t?e.replace(/\n/g,"\n"+t):e;if(s){u+="\n"}return'"""'+u.replace(/"""/g,'\\"""')+'"""'}}));var Bn=i((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.print=n;function n(e){return(0,qn.visit)(e,{leave:i})}var r=80;var i={Name:function e(t){return t.value},Variable:function e(t){return"$"+t.name},Document:function e(t){return o(t.definitions,"\n\n")+"\n"},OperationDefinition:function e(t){var n=t.operation;var r=t.name;var i=u("(",o(t.variableDefinitions,", "),")");var a=o(t.directives," ");var s=t.selectionSet;return!r&&!a&&!i&&n==="query"?s:o([n,o([r,i]),a,s]," ")},VariableDefinition:function e(t){var n=t.variable,r=t.type,i=t.defaultValue,a=t.directives;return n+": "+r+u(" = ",i)+u(" ",o(a," "))},SelectionSet:function e(t){var n=t.selections;return s(n)},Field:function e(t){var n=t.alias,i=t.name,a=t.arguments,s=t.directives,l=t.selectionSet;var f=u("",n,": ")+i;var d=f+u("(",o(a,", "),")");if(d.length>r){d=f+u("(\n",c(o(a,"\n")),"\n)")}return o([d,o(s," "),l]," ")},Argument:function e(t){var n=t.name,r=t.value;return n+": "+r},FragmentSpread:function e(t){var n=t.name,r=t.directives;return"..."+n+u(" ",o(r," "))},InlineFragment:function e(t){var n=t.typeCondition,r=t.directives,i=t.selectionSet;return o(["...",u("on ",n),o(r," "),i]," ")},FragmentDefinition:function e(t){var n=t.name,r=t.typeCondition,i=t.variableDefinitions,a=t.directives,s=t.selectionSet;return"fragment ".concat(n).concat(u("(",o(i,", "),")")," ")+"on ".concat(r," ").concat(u("",o(a," ")," "))+s},IntValue:function e(t){var n=t.value;return n},FloatValue:function e(t){var n=t.value;return n},StringValue:function e(t,n){var r=t.value,i=t.block;return i?(0,Vn.printBlockString)(r,n==="description"?"":" "):JSON.stringify(r)},BooleanValue:function e(t){var n=t.value;return n?"true":"false"},NullValue:function e(){return"null"},EnumValue:function e(t){var n=t.value;return n},ListValue:function e(t){var n=t.values;return"["+o(n,", ")+"]"},ObjectValue:function e(t){var n=t.fields;return"{"+o(n,", ")+"}"},ObjectField:function e(t){var n=t.name,r=t.value;return n+": "+r},Directive:function e(t){var n=t.name,r=t.arguments;return"@"+n+u("(",o(r,", "),")")},NamedType:function e(t){var n=t.name;return n},ListType:function e(t){var n=t.type;return"["+n+"]"},NonNullType:function e(t){var n=t.type;return n+"!"},SchemaDefinition:a((function(e){var t=e.directives,n=e.operationTypes;return o(["schema",o(t," "),s(n)]," ")})),OperationTypeDefinition:function e(t){var n=t.operation,r=t.type;return n+": "+r},ScalarTypeDefinition:a((function(e){var t=e.name,n=e.directives;return o(["scalar",t,o(n," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["type",t,u("implements ",o(n," & ")),o(r," "),s(i)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(f(n)?u("(\n",c(o(n,"\n")),"\n)"):u("(",o(n,", "),")"))+": "+r+u(" ",o(i," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return o([t+": "+n,u("= ",r),o(i," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["interface",t,u("implements ",o(n," & ")),o(r," "),s(i)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return o(["union",t,o(n," "),r&&r.length!==0?"= "+o(r," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return o(["enum",t,o(n," "),s(r)]," ")})),EnumValueDefinition:a((function(e){var t=e.name,n=e.directives;return o([t,o(n," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return o(["input",t,o(n," "),s(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(f(n)?u("(\n",c(o(n,"\n")),"\n)"):u("(",o(n,", "),")"))+(r?" repeatable":"")+" on "+o(i," | ")})),SchemaExtension:function e(t){var n=t.directives,r=t.operationTypes;return o(["extend schema",o(n," "),s(r)]," ")},ScalarTypeExtension:function e(t){var n=t.name,r=t.directives;return o(["extend scalar",n,o(r," ")]," ")},ObjectTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return o(["extend type",n,u("implements ",o(r," & ")),o(i," "),s(a)]," ")},InterfaceTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return o(["extend interface",n,u("implements ",o(r," & ")),o(i," "),s(a)]," ")},UnionTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.types;return o(["extend union",n,o(r," "),i&&i.length!==0?"= "+o(i," | "):""]," ")},EnumTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.values;return o(["extend enum",n,o(r," "),s(i)]," ")},InputObjectTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.fields;return o(["extend input",n,o(r," "),s(i)]," ")}};function a(e){return function(t){return o([t.description,e(t)],"\n")}}function o(e){var t;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";return(t=e===null||e===void 0?void 0:e.filter((function(e){return e})).join(n))!==null&&t!==void 0?t:""}function s(e){return u("{\n",c(o(e,"\n")),"\n}")}function u(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"";return t!=null&&t!==""?e+t+n:""}function c(e){return u(" ",e.replace(/\n/g,"\n "))}function l(e){return e.indexOf("\n")!==-1}function f(e){return e!=null&&e.some(l)}}));var Un=function e(t){var n=t.uri,r=t.name,i=t.type;this.uri=n;this.name=r;this.type=i};var $n=function e(t){return typeof File!=="undefined"&&t instanceof File||typeof Blob!=="undefined"&&t instanceof Blob||t instanceof Un};var Gn=function e(t,n,r){if(n===void 0){n=""}if(r===void 0){r=$n}var i;var a=new Map;function o(e,t){var n=a.get(t);if(n)n.push.apply(n,e);else a.set(t,e)}if(r(t)){i=null;o([n],t)}else{var s=n?n+".":"";if(typeof FileList!=="undefined"&&t instanceof FileList)i=Array.prototype.map.call(t,(function(e,t){o([""+s+t],e);return null}));else if(Array.isArray(t))i=t.map((function(t,n){var i=e(t,""+s+n,r);i.files.forEach(o);return i.clone}));else if(t&&t.constructor===Object){i={};for(var u in t){var c=e(t[u],""+s+u,r);c.files.forEach(o);i[u]=c.clone}}else i=t}return{clone:i,files:a}};var Jn=Un;var Kn=Gn;var Hn=$n;var Wn={ReactNativeFile:Jn,extractFiles:Kn,isExtractableFile:Hn};var Yn=typeof self=="object"?self.FormData:window.FormData;var zn=i((function(e,t){var n=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var r=n(Yn);var i=function(e){return Wn.isExtractableFile(e)||e!==null&&typeof e==="object"&&typeof e.pipe==="function"};function o(e,t){var n=Wn.extractFiles({query:e,variables:t},"",i),a=n.clone,o=n.files;if(o.size===0){return JSON.stringify(a)}var s=typeof FormData==="undefined"?r.default:FormData;var u=new s;u.append("operations",JSON.stringify(a));var c={};var l=0;o.forEach((function(e){c[++l]=e}));u.append("map",JSON.stringify(c));l=0;o.forEach((function(e,t){u.append(""+ ++l,t)}));return u}t.default=o}));var Qn=i((function(e,t){var n=a&&a.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:true});t.ClientError=void 0;var r=function(e){n(t,e);function t(n,r){var i=this;var a=t.extractMessage(n)+": "+JSON.stringify({response:n,request:r});i=e.call(this,a)||this;Object.setPrototypeOf(i,t.prototype);i.response=n;i.request=r;if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(i,t)}return i}t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: "+e.status+")"}};return t}(Error);t.ClientError=r}));var Xn=e("d",i((function(e,t){var n=a&&a.__assign||function(){n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return n.apply(this,arguments)};var r=a&&a.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var i=a&&a.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))r(t,e,n);i(t,e);return t};var s=a&&a.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):i(e.value).then(o,s)}u((r=r.apply(e,t||[])).next())}))};var u=a&&a.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var c=a&&a.__rest||function(e,t){var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)n[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++){if(t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i]))n[r[i]]=e[r[i]]}return n};var l=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.gql=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var f=o(Pn),d=f;var p=l(zn);var h=Qn;Object.defineProperty(t,"ClientError",{enumerable:true,get:function(){return h.ClientError}});var v=function(e){var t={};if(e){if(typeof Headers!=="undefined"&&e instanceof Headers||e instanceof d.Headers){t=_(e)}else if(Array.isArray(e)){e.forEach((function(e){var n=e[0],r=e[1];t[n]=r}))}else{t=e}}return t};var y=function(){function e(e,t){this.url=e;this.options=t||{}}e.prototype.rawRequest=function(e,t,r){return s(this,void 0,void 0,(function(){var i,a,o,s,l,d,h,y,m,b,E;return u(this,(function(u){switch(u.label){case 0:i=this.options,a=i.headers,o=i.fetch,s=o===void 0?f.default:o,l=c(i,["headers","fetch"]);d=p.default(e,t);return[4,s(this.url,n({method:"POST",headers:n(n(n({},typeof d==="string"?{"Content-Type":"application/json"}:{}),v(a)),v(r)),body:d},l))];case 1:h=u.sent();return[4,g(h)];case 2:y=u.sent();if(h.ok&&!y.errors&&y.data){m=h.headers,b=h.status;return[2,n(n({},y),{headers:m,status:b})]}else{E=typeof y==="string"?{error:y}:y;throw new Qn.ClientError(n(n({},E),{status:h.status,headers:h.headers}),{query:e,variables:t})}}}))}))};e.prototype.request=function(e,t,r){return s(this,void 0,void 0,(function(){var i,a,o,s,l,d,h,y,m,b;return u(this,(function(u){switch(u.label){case 0:i=this.options,a=i.headers,o=i.fetch,s=o===void 0?f.default:o,l=c(i,["headers","fetch"]);d=E(e);h=p.default(d,t);return[4,s(this.url,n({method:"POST",headers:n(n(n({},typeof h==="string"?{"Content-Type":"application/json"}:{}),v(a)),v(r)),body:h},l))];case 1:y=u.sent();return[4,g(y)];case 2:m=u.sent();if(y.ok&&!m.errors&&m.data){return[2,m.data]}else{b=typeof m==="string"?{error:m}:m;throw new Qn.ClientError(n(n({},b),{status:y.status}),{query:d,variables:t})}}}))}))};e.prototype.setHeaders=function(e){this.options.headers=e;return this};e.prototype.setHeader=function(e,t){var n;var r=this.options.headers;if(r){r[e]=t}else{this.options.headers=(n={},n[e]=t,n)}return this};return e}();t.GraphQLClient=y;function m(e,t,n){return s(this,void 0,void 0,(function(){var r;return u(this,(function(i){r=new y(e);return[2,r.rawRequest(t,n)]}))}))}t.rawRequest=m;function b(e,t,n){return s(this,void 0,void 0,(function(){var r;return u(this,(function(i){r=new y(e);return[2,r.request(t,n)]}))}))}t.request=b;t.default=b;function g(e){var t=e.headers.get("Content-Type");if(t&&t.startsWith("application/json")){return e.json()}else{return e.text()}}function E(e){if(typeof e==="string")return e;return Bn.print(e)}function w(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}return e.reduce((function(e,n,r){return""+e+n+(r in t?t[r]:"")}),"")}t.gql=w;function _(e){var t={};e.forEach((function(e,n){t[n]=e}));return t}})));var Zn=function(e){if(e===void 0){e=21}var t="";var n=crypto.getRandomValues(new Uint8Array(e));while(e--){var r=n[e]&63;if(r<36){t+=r.toString(36)}else if(r<62){t+=(r-26).toString(36).toUpperCase()}else if(r<63){t+="_"}else{t+="-"}}return t};function er(e){return typeof e==="function"}var tr=false;var nr={Promise:undefined,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else if(tr){console.log("RxJS: Back to a better error behavior. Thank you. <3")}tr=e},get useDeprecatedSynchronousErrorHandling(){return tr}};function rr(e){setTimeout((function(){throw e}),0)}var ir={closed:true,next:function(e){},error:function(e){if(nr.useDeprecatedSynchronousErrorHandling){throw e}else{rr(e)}},complete:function(){}};var ar=function(){return Array.isArray||function(e){return e&&typeof e.length==="number"}}();function or(e){return e!==null&&typeof e==="object"}var sr=function(){function e(e){Error.call(this);this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"";this.name="UnsubscriptionError";this.errors=e;return this}e.prototype=Object.create(Error.prototype);return e}();var ur=sr;var cr=function(){function e(e){this.closed=false;this._parentOrParents=null;this._subscriptions=null;if(e){this._ctorUnsubscribe=true;this._unsubscribe=e}}e.prototype.unsubscribe=function(){var t;if(this.closed){return}var n=this,r=n._parentOrParents,i=n._ctorUnsubscribe,a=n._unsubscribe,o=n._subscriptions;this.closed=true;this._parentOrParents=null;this._subscriptions=null;if(r instanceof e){r.remove(this)}else if(r!==null){for(var s=0;s<r.length;++s){var u=r[s];u.remove(this)}}if(er(a)){if(i){this._unsubscribe=undefined}try{a.call(this)}catch(e){t=e instanceof ur?lr(e.errors):[e]}}if(ar(o)){var s=-1;var c=o.length;while(++s<c){var l=o[s];if(or(l)){try{l.unsubscribe()}catch(e){t=t||[];if(e instanceof ur){t=t.concat(lr(e.errors))}else{t.push(e)}}}}}if(t){throw new ur(t)}};e.prototype.add=function(t){var n=t;if(!t){return e.EMPTY}switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||typeof n.unsubscribe!=="function"){return n}else if(this.closed){n.unsubscribe();return n}else if(!(n instanceof e)){var r=n;n=new e;n._subscriptions=[r]}break;default:{throw new Error("unrecognized teardown "+t+" added to Subscription.")}}var i=n._parentOrParents;if(i===null){n._parentOrParents=this}else if(i instanceof e){if(i===this){return n}n._parentOrParents=[i,this]}else if(i.indexOf(this)===-1){i.push(this)}else{return n}var a=this._subscriptions;if(a===null){this._subscriptions=[n]}else{a.push(n)}return n};e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);if(n!==-1){t.splice(n,1)}}};return e}();cr.EMPTY=function(e){e.closed=true;return e}(new cr);function lr(e){return e.reduce((function(e,t){return e.concat(t instanceof ur?t.errors:t)}),[])}var fr=function(){return typeof Symbol==="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();var dr=function(e){__extends(t,e);function t(n,r,i){var a=e.call(this)||this;a.syncErrorValue=null;a.syncErrorThrown=false;a.syncErrorThrowable=false;a.isStopped=false;switch(arguments.length){case 0:a.destination=ir;break;case 1:if(!n){a.destination=ir;break}if(typeof n==="object"){if(n instanceof t){a.syncErrorThrowable=n.syncErrorThrowable;a.destination=n;n.add(a)}else{a.syncErrorThrowable=true;a.destination=new pr(a,n)}break}default:a.syncErrorThrowable=true;a.destination=new pr(a,n,r,i);break}return a}t.prototype[fr]=function(){return this};t.create=function(e,n,r){var i=new t(e,n,r);i.syncErrorThrowable=false;return i};t.prototype.next=function(e){if(!this.isStopped){this._next(e)}};t.prototype.error=function(e){if(!this.isStopped){this.isStopped=true;this._error(e)}};t.prototype.complete=function(){if(!this.isStopped){this.isStopped=true;this._complete()}};t.prototype.unsubscribe=function(){if(this.closed){return}this.isStopped=true;e.prototype.unsubscribe.call(this)};t.prototype._next=function(e){this.destination.next(e)};t.prototype._error=function(e){this.destination.error(e);this.unsubscribe()};t.prototype._complete=function(){this.destination.complete();this.unsubscribe()};t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;this._parentOrParents=null;this.unsubscribe();this.closed=false;this.isStopped=false;this._parentOrParents=e;return this};return t}(cr);var pr=function(e){__extends(t,e);function t(t,n,r,i){var a=e.call(this)||this;a._parentSubscriber=t;var o;var s=a;if(er(n)){o=n}else if(n){o=n.next;r=n.error;i=n.complete;if(n!==ir){s=Object.create(n);if(er(s.unsubscribe)){a.add(s.unsubscribe.bind(s))}s.unsubscribe=a.unsubscribe.bind(a)}}a._context=s;a._next=o;a._error=r;a._complete=i;return a}t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;if(!nr.useDeprecatedSynchronousErrorHandling||!t.syncErrorThrowable){this.__tryOrUnsub(this._next,e)}else if(this.__tryOrSetError(t,this._next,e)){this.unsubscribe()}}};t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;var n=nr.useDeprecatedSynchronousErrorHandling;if(this._error){if(!n||!t.syncErrorThrowable){this.__tryOrUnsub(this._error,e);this.unsubscribe()}else{this.__tryOrSetError(t,this._error,e);this.unsubscribe()}}else if(!t.syncErrorThrowable){this.unsubscribe();if(n){throw e}rr(e)}else{if(n){t.syncErrorValue=e;t.syncErrorThrown=true}else{rr(e)}this.unsubscribe()}}};t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};if(!nr.useDeprecatedSynchronousErrorHandling||!t.syncErrorThrowable){this.__tryOrUnsub(n);this.unsubscribe()}else{this.__tryOrSetError(t,n);this.unsubscribe()}}else{this.unsubscribe()}}};t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){this.unsubscribe();if(nr.useDeprecatedSynchronousErrorHandling){throw e}else{rr(e)}}};t.prototype.__tryOrSetError=function(e,t,n){if(!nr.useDeprecatedSynchronousErrorHandling){throw new Error("bad call")}try{t.call(this._context,n)}catch(t){if(nr.useDeprecatedSynchronousErrorHandling){e.syncErrorValue=t;e.syncErrorThrown=true;return true}else{rr(t);return true}}return false};t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null;this._parentSubscriber=null;e.unsubscribe()};return t}(dr);function hr(e){while(e){var t=e.closed,n=e.destination,r=e.isStopped;if(t||r){return false}else if(n&&n instanceof dr){e=n}else{e=null}}return true}function vr(e,t,n){if(e){if(e instanceof dr){return e}if(e[fr]){return e[fr]()}}if(!e&&!t&&!n){return new dr(ir)}return new dr(e,t,n)}var yr=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}();function mr(e){return e}function br(e){if(e.length===0){return mr}if(e.length===1){return e[0]}return function t(n){return e.reduce((function(e,t){return t(e)}),n)}}var gr=function(){function e(e){this._isScalar=false;if(e){this._subscribe=e}}e.prototype.lift=function(t){var n=new e;n.source=this;n.operator=t;return n};e.prototype.subscribe=function(e,t,n){var r=this.operator;var i=vr(e,t,n);if(r){i.add(r.call(i,this.source))}else{i.add(this.source||nr.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i))}if(nr.useDeprecatedSynchronousErrorHandling){if(i.syncErrorThrowable){i.syncErrorThrowable=false;if(i.syncErrorThrown){throw i.syncErrorValue}}}return i};e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){if(nr.useDeprecatedSynchronousErrorHandling){e.syncErrorThrown=true;e.syncErrorValue=t}if(hr(e)){e.error(t)}else{console.warn(t)}}};e.prototype.forEach=function(e,t){var n=this;t=Er(t);return new t((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(e){r(e);if(i){i.unsubscribe()}}}),r,t)}))};e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)};e.prototype[yr]=function(){return this};e.prototype.pipe=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}if(e.length===0){return this}return br(e)(this)};e.prototype.toPromise=function(e){var t=this;e=Er(e);return new e((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))};return e}();gr.create=function(e){return new gr(e)};function Er(e){if(!e){e=Promise}if(!e){throw new Error("no Promise impl found")}return e}var wr=function(){function e(){Error.call(this);this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}e.prototype=Object.create(Error.prototype);return e}();var _r=wr;var Sr=function(e){__extends(t,e);function t(t,n){var r=e.call(this)||this;r.subject=t;r.subscriber=n;r.closed=false;return r}t.prototype.unsubscribe=function(){if(this.closed){return}this.closed=true;var e=this.subject;var t=e.observers;this.subject=null;if(!t||t.length===0||e.isStopped||e.closed){return}var n=t.indexOf(this.subscriber);if(n!==-1){t.splice(n,1)}};return t}(cr);var Ir=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.destination=t;return n}return t}(dr);var Or=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.observers=[];t.closed=false;t.isStopped=false;t.hasError=false;t.thrownError=null;return t}t.prototype[fr]=function(){return new Ir(this)};t.prototype.lift=function(e){var t=new Tr(this,this);t.operator=e;return t};t.prototype.next=function(e){if(this.closed){throw new _r}if(!this.isStopped){var t=this.observers;var n=t.length;var r=t.slice();for(var i=0;i<n;i++){r[i].next(e)}}};t.prototype.error=function(e){if(this.closed){throw new _r}this.hasError=true;this.thrownError=e;this.isStopped=true;var t=this.observers;var n=t.length;var r=t.slice();for(var i=0;i<n;i++){r[i].error(e)}this.observers.length=0};t.prototype.complete=function(){if(this.closed){throw new _r}this.isStopped=true;var e=this.observers;var t=e.length;var n=e.slice();for(var r=0;r<t;r++){n[r].complete()}this.observers.length=0};t.prototype.unsubscribe=function(){this.isStopped=true;this.closed=true;this.observers=null};t.prototype._trySubscribe=function(t){if(this.closed){throw new _r}else{return e.prototype._trySubscribe.call(this,t)}};t.prototype._subscribe=function(e){if(this.closed){throw new _r}else if(this.hasError){e.error(this.thrownError);return cr.EMPTY}else if(this.isStopped){e.complete();return cr.EMPTY}else{this.observers.push(e);return new Sr(this,e)}};t.prototype.asObservable=function(){var e=new gr;e.source=this;return e};return t}(gr);Or.create=function(e,t){return new Tr(e,t)};var Tr=function(e){__extends(t,e);function t(t,n){var r=e.call(this)||this;r.destination=t;r.source=n;return r}t.prototype.next=function(e){var t=this.destination;if(t&&t.next){t.next(e)}};t.prototype.error=function(e){var t=this.destination;if(t&&t.error){this.destination.error(e)}};t.prototype.complete=function(){var e=this.destination;if(e&&e.complete){this.destination.complete()}};t.prototype._subscribe=function(e){var t=this.source;if(t){return this.source.subscribe(e)}else{return cr.EMPTY}};return t}(Or);var xr=function(e){__extends(t,e);function t(t,n){return e.call(this)||this}t.prototype.schedule=function(e,t){if(t===void 0){t=0}return this};return t}(cr);var Ar=function(e){__extends(t,e);function t(t,n){var r=e.call(this,t,n)||this;r.scheduler=t;r.work=n;r.pending=false;return r}t.prototype.schedule=function(e,t){if(t===void 0){t=0}if(this.closed){return this}this.state=e;var n=this.id;var r=this.scheduler;if(n!=null){this.id=this.recycleAsyncId(r,n,t)}this.pending=true;this.delay=t;this.id=this.id||this.requestAsyncId(r,this.id,t);return this};t.prototype.requestAsyncId=function(e,t,n){if(n===void 0){n=0}return setInterval(e.flush.bind(e,this),n)};t.prototype.recycleAsyncId=function(e,t,n){if(n===void 0){n=0}if(n!==null&&this.delay===n&&this.pending===false){return t}clearInterval(t);return undefined};t.prototype.execute=function(e,t){if(this.closed){return new Error("executing a cancelled action")}this.pending=false;var n=this._execute(e,t);if(n){return n}else if(this.pending===false&&this.id!=null){this.id=this.recycleAsyncId(this.scheduler,this.id,null)}};t.prototype._execute=function(e,t){var n=false;var r=undefined;try{this.work(e)}catch(e){n=true;r=!!e&&e||new Error(e)}if(n){this.unsubscribe();return r}};t.prototype._unsubscribe=function(){var e=this.id;var t=this.scheduler;var n=t.actions;var r=n.indexOf(this);this.work=null;this.state=null;this.pending=false;this.scheduler=null;if(r!==-1){n.splice(r,1)}if(e!=null){this.id=this.recycleAsyncId(t,e,null)}this.delay=null};return t}(xr);var Nr=function(){function e(t,n){if(n===void 0){n=e.now}this.SchedulerAction=t;this.now=n}e.prototype.schedule=function(e,t,n){if(t===void 0){t=0}return new this.SchedulerAction(this,e).schedule(n,t)};return e}();Nr.now=function(){return Date.now()};var Dr=function(e){__extends(t,e);function t(n,r){if(r===void 0){r=Nr.now}var i=e.call(this,n,(function(){if(t.delegate&&t.delegate!==i){return t.delegate.now()}else{return r()}}))||this;i.actions=[];i.active=false;i.scheduled=undefined;return i}t.prototype.schedule=function(n,r,i){if(r===void 0){r=0}if(t.delegate&&t.delegate!==this){return t.delegate.schedule(n,r,i)}else{return e.prototype.schedule.call(this,n,r,i)}};t.prototype.flush=function(e){var t=this.actions;if(this.active){t.push(e);return}var n;this.active=true;do{if(n=e.execute(e.state,e.delay)){break}}while(e=t.shift());this.active=false;if(n){while(e=t.shift()){e.unsubscribe()}throw n}};return t}(Nr);function Cr(e){return e&&typeof e.schedule==="function"}var kr=new Dr(Ar);var Pr=kr;function Fr(e){var t=arguments.length;var n=Pr;if(Cr(arguments[arguments.length-1])){n=arguments[arguments.length-1];t--}var r=null;if(t>=2){r=arguments[1]}var i=Number.POSITIVE_INFINITY;if(t>=3){i=arguments[2]}return function t(a){return a.lift(new jr(e,r,i,n))}}var jr=function(){function e(e,t,n,r){this.bufferTimeSpan=e;this.bufferCreationInterval=t;this.maxBufferSize=n;this.scheduler=r}e.prototype.call=function(e,t){return t.subscribe(new Mr(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))};return e}();var Rr=function(){function e(){this.buffer=[]}return e}();var Mr=function(e){__extends(t,e);function t(t,n,r,i,a){var o=e.call(this,t)||this;o.bufferTimeSpan=n;o.bufferCreationInterval=r;o.maxBufferSize=i;o.scheduler=a;o.contexts=[];var s=o.openContext();o.timespanOnly=r==null||r<0;if(o.timespanOnly){var u={subscriber:o,context:s,bufferTimeSpan:n};o.add(s.closeAction=a.schedule(Lr,n,u))}else{var c={subscriber:o,context:s};var l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:o,scheduler:a};o.add(s.closeAction=a.schedule(Vr,n,c));o.add(a.schedule(qr,r,l))}return o}t.prototype._next=function(e){var t=this.contexts;var n=t.length;var r;for(var i=0;i<n;i++){var a=t[i];var o=a.buffer;o.push(e);if(o.length==this.maxBufferSize){r=a}}if(r){this.onBufferFull(r)}};t.prototype._error=function(t){this.contexts.length=0;e.prototype._error.call(this,t)};t.prototype._complete=function(){var t=this,n=t.contexts,r=t.destination;while(n.length>0){var i=n.shift();r.next(i.buffer)}e.prototype._complete.call(this)};t.prototype._unsubscribe=function(){this.contexts=null};t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;t.unsubscribe();this.remove(t);if(!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan;var r={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(Lr,n,r))}};t.prototype.openContext=function(){var e=new Rr;this.contexts.push(e);return e};t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;var n=t?t.indexOf(e):-1;if(n>=0){t.splice(t.indexOf(e),1)}};return t}(dr);function Lr(e){var t=e.subscriber;var n=e.context;if(n){t.closeContext(n)}if(!t.closed){e.context=t.openContext();e.context.closeAction=this.schedule(e,e.bufferTimeSpan)}}function qr(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler;var a=r.openContext();var o=this;if(!r.closed){r.add(a.closeAction=i.schedule(Vr,n,{subscriber:r,context:a}));o.schedule(e,t)}}function Vr(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var Br=i((function(e,t){(function(e,n){n(t)})(a,(function(e){var t=Object.getOwnPropertyNames,n=Object.getOwnPropertySymbols;var r=Object.prototype.hasOwnProperty;function i(e,t){return function n(r,i,a){return e(r,i,a)&&t(r,i,a)}}function a(e){return function t(n,r,i){if(!n||!r||typeof n!=="object"||typeof r!=="object"){return e(n,r,i)}var a=i.cache;var o=a.get(n);var s=a.get(r);if(o&&s){return o===r&&s===n}a.set(n,r);a.set(r,n);var u=e(n,r,i);a.delete(n);a.delete(r);return u}}function o(e){return t(e).concat(n(e))}var s=Object.hasOwn||function(e,t){return r.call(e,t)};function u(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var c="_owner";var l=Object.getOwnPropertyDescriptor,f=Object.keys;function d(e,t,n){var r=e.length;if(t.length!==r){return false}while(r-- >0){if(!n.equals(e[r],t[r],r,r,e,t,n)){return false}}return true}function p(e,t){return u(e.getTime(),t.getTime())}function h(e,t,n){if(e.size!==t.size){return false}var r={};var i=e.entries();var a=0;var o;var s;while(o=i.next()){if(o.done){break}var u=t.entries();var c=false;var l=0;while(s=u.next()){if(s.done){break}var f=o.value,d=f[0],p=f[1];var h=s.value,v=h[0],y=h[1];if(!c&&!r[l]&&(c=n.equals(d,v,a,l,e,t,n)&&n.equals(p,y,d,v,e,t,n))){r[l]=true}l++}if(!c){return false}a++}return true}function v(e,t,n){var r=f(e);var i=r.length;if(f(t).length!==i){return false}var a;while(i-- >0){a=r[i];if(a===c&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof){return false}if(!s(t,a)||!n.equals(e[a],t[a],a,a,e,t,n)){return false}}return true}function y(e,t,n){var r=o(e);var i=r.length;if(o(t).length!==i){return false}var a;var u;var f;while(i-- >0){a=r[i];if(a===c&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof){return false}if(!s(t,a)){return false}if(!n.equals(e[a],t[a],a,a,e,t,n)){return false}u=l(e,a);f=l(t,a);if((u||f)&&(!u||!f||u.configurable!==f.configurable||u.enumerable!==f.enumerable||u.writable!==f.writable)){return false}}return true}function m(e,t){return u(e.valueOf(),t.valueOf())}function b(e,t){return e.source===t.source&&e.flags===t.flags}function g(e,t,n){if(e.size!==t.size){return false}var r={};var i=e.values();var a;var o;while(a=i.next()){if(a.done){break}var s=t.values();var u=false;var c=0;while(o=s.next()){if(o.done){break}if(!u&&!r[c]&&(u=n.equals(a.value,o.value,a.value,o.value,e,t,n))){r[c]=true}c++}if(!u){return false}}return true}function E(e,t){var n=e.length;if(t.length!==n){return false}while(n-- >0){if(e[n]!==t[n]){return false}}return true}var w="[object Arguments]";var _="[object Boolean]";var S="[object Date]";var I="[object Map]";var O="[object Number]";var T="[object Object]";var x="[object RegExp]";var A="[object Set]";var N="[object String]";var D=Array.isArray;var C=typeof ArrayBuffer==="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null;var k=Object.assign;var P=Object.prototype.toString.call.bind(Object.prototype.toString);function F(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,u=e.areTypedArraysEqual;return function e(c,l,f){if(c===l){return true}if(c==null||l==null||typeof c!=="object"||typeof l!=="object"){return c!==c&&l!==l}var d=c.constructor;if(d!==l.constructor){return false}if(d===Object){return i(c,l,f)}if(D(c)){return t(c,l,f)}if(C!=null&&C(c)){return u(c,l,f)}if(d===Date){return n(c,l,f)}if(d===RegExp){return o(c,l,f)}if(d===Map){return r(c,l,f)}if(d===Set){return s(c,l,f)}var p=P(c);if(p===S){return n(c,l,f)}if(p===x){return o(c,l,f)}if(p===I){return r(c,l,f)}if(p===A){return s(c,l,f)}if(p===T){return typeof c.then!=="function"&&typeof l.then!=="function"&&i(c,l,f)}if(p===w){return i(c,l,f)}if(p===_||p===O||p===N){return a(c,l,f)}return false}}function j(e){var t=e.circular,n=e.createCustomConfig,r=e.strict;var o={areArraysEqual:r?y:d,areDatesEqual:p,areMapsEqual:r?i(h,y):h,areObjectsEqual:r?y:v,arePrimitiveWrappersEqual:m,areRegExpsEqual:b,areSetsEqual:r?i(g,y):g,areTypedArraysEqual:r?y:E};if(n){o=k({},o,n(o))}if(t){var s=a(o.areArraysEqual);var u=a(o.areMapsEqual);var c=a(o.areObjectsEqual);var l=a(o.areSetsEqual);o=k({},o,{areArraysEqual:s,areMapsEqual:u,areObjectsEqual:c,areSetsEqual:l})}return o}function R(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function M(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,a=e.strict;if(r){return function e(o,s){var u=r(),c=u.cache,l=c===void 0?t?new WeakMap:undefined:c,f=u.meta;return n(o,s,{cache:l,equals:i,meta:f,strict:a})}}if(t){return function e(t,r){return n(t,r,{cache:new WeakMap,equals:i,meta:undefined,strict:a})}}var o={cache:undefined,equals:i,meta:undefined,strict:a};return function e(t,r){return n(t,r,o)}}var L=K();var q=K({strict:true});var V=K({circular:true});var B=K({circular:true,strict:true});var U=K({createInternalComparator:function(){return u}});var $=K({strict:true,createInternalComparator:function(){return u}});var G=K({circular:true,createInternalComparator:function(){return u}});var J=K({circular:true,createInternalComparator:function(){return u},strict:true});function K(e){if(e===void 0){e={}}var t=e.circular,n=t===void 0?false:t,r=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?false:a;var s=j(e);var u=F(s);var c=r?r(u):R(u);return M({circular:n,comparator:u,createState:i,equals:c,strict:o})}e.circularDeepEqual=V;e.circularShallowEqual=G;e.createCustomEqual=K;e.deepEqual=L;e.sameValueZeroEqual=u;e.shallowEqual=U;e.strictCircularDeepEqual=B;e.strictCircularShallowEqual=J;e.strictDeepEqual=q;e.strictShallowEqual=$}))}));var Ur={current:void 0};function $r(){if(void 0===Ur.current)throw new Error("no implementation of useHost provided");return Ur.current()}function Gr(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");Ur.current=e}function Jr(){Oe();var e=$r();return u(e,ne)}function Kr(){Ue();var e=$r();return u(e,re)}function Hr(){var e;return null==(e=Wr())?void 0:e.jwt}function Wr(){Fe();var e=$r(),t=u(e,te),n=Me(null==t?void 0:t.jwt);if(se()||!t||n)return t;qe(void 0)}var Yr=e("a",ce),zr=fe,Qr=e("B",de);function Xr(){return(Xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Zr(e,t){return(Zr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ei(e,t){return t||(t=e.slice(0)),e.raw=t,e}function ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ni(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ti(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var ri=function(){return(ri=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},ii=new Map,ai=new Map,oi=!0,si=!1;function ui(e){return e.replace(/[\s,]+/g," ").trim()}function ci(e){var t,n,r,i=ui(e);if(!ii.has(i)){var a=sn(e,{experimentalFragmentVariables:si});if(!a||"Document"!==a.kind)throw new Error("Not a valid GraphQL document.");ii.set(i,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=a,n=new Set,r=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=ui((o=e.loc).source.body.substring(o.start,o.end)),a=ai.get(t);a&&!a.has(i)?oi&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||ai.set(t,a=new Set),a.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var o})),ri(ri({},t),{definitions:r}))))}return ii.get(i)}function li(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){r+=t&&"Document"===t.kind?t.loc.source.body:t,r+=e[n+1]})),ci(r)}var fi,di=li;(fi=li||(li={})).gql=di,fi.resetCaches=function(){ii.clear(),ai.clear()},fi.disableFragmentWarnings=function(){oi=!1},fi.enableExperimentalFragmentVariables=function(){si=!0},fi.disableExperimentalFragmentVariables=function(){si=!1},li.default=li;var pi=li;function hi(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}var vi=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).subject=new Or;var i=new Or;return r.subject.pipe(Fr(200,void 0,10)).subscribe((function(e){try{if(!e.length)return Promise.resolve();for(var t,n=gi(e),a=n.mergedQuery,o=n.mergedVariables,s=n.mergedQueryAddedEvents,u=ni(n.unmergedQueryAddedEvents);!(t=u()).done;)i.next(t.value);return s.length?Promise.resolve(hi((function(){return Promise.resolve(r.superRequest(a,o)).then((function(e){_i(e,s)}))}),(function(e){if(e instanceof Qn.ClientError){var t=function(){var t=e.response,n=t.data,r=t.errors;if(!n)return{v:Ii(s,e)};for(var i,a=Object.keys(n),o=[].concat(s),u=function(){var t=i.value,n=void 0;t.path.find((function(r,i,s){if(a.includes(r)){var u=bi(r),c=o.findIndex((function(e){return e.id===u}));if(-1===c)return!1;a.splice(i,1),n=o.splice(c,1)[0];var l=Ei(e.response.data,n);s[i]=mi(s[i],u);var f=n.query,d=n.variables,p=Xr({},e.response,{errors:[t],data:l,path:s}),h=new Qn.ClientError(p,{query:"string"!=typeof f?vn(f):f,variables:d});return Si(n,h),!0}return!1}))},c=ni(r);!(i=c()).done;)u();_i(n,o)}();if("object"==typeof t)return t.v}else Ii(s,e)}))):Promise.resolve()}catch(e){return Promise.reject(e)}})),i.subscribe((function(e){try{var t=hi((function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then((function(t){wi(t,e)}))}),(function(t){Si(e,t)}));return Promise.resolve(t&&t.then?t.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Zr(t,n);var i=r.prototype;return i.superRequest=function(t,n){return e.prototype.request.call(this,t,n)},i.request=function(e,t,n){var r=this;return new Promise((function(i,a){var o={query:e,variables:t,id:yi(),options:n,resolve:i,reject:a};r.subject.next(o)}))},r}(Xn.GraphQLClient),yi=function(){return Zn().replace(/[-_]/g,"")},mi=function(e,t){return e.replace("_"+t,"")},bi=function(e){var t=e.split("_");return t[t.length-1]},gi=function(e){var t=[],n=[],r=e.reduce((function(e,r){var i=r.query,a=r.variables,o=r.id,s=r.options;if(null==s||!s.batch)return n.push(r),e;try{var u="string"==typeof i?sn(i):i,c=u.definitions.find((function(e){return"FragmentDefinition"===e.kind})),l="string"==typeof i?i:vn(i),f=/@/.test(l);if(c||f)return n.push(r),e;var d=function(e){return function(e,t){return e+"_"+t}(e,o)};return e=e.addN(u,[a],d,d),t.push(r),e}catch(t){return n.push(r),e}}),kn("BatchedQuery")),i=r.document,a=r.variables;return{mergedQuery:i&&vn(i),mergedVariables:a,mergedQueryAddedEvents:t,unmergedQueryAddedEvents:n}},Ei=function(e,t){if(!e)return e;var n=Object.keys(e),r=t.id;return n.reduce((function(t,n){var i;return n.endsWith(r)&&(t=Xr({},t,((i={})[mi(n,r)]=e[n],i))),t}),{})},wi=function(e,t){(0,t.resolve)(e)},_i=function(e,t){for(var n,r=ni(t);!(n=r()).done;){var i=n.value,a=Ei(e,i);i.resolve(a)}},Si=function(e,t){(0,e.reject)(t)},Ii=function(e,t){for(var n,r=ni(e);!(n=r()).done;)(0,n.value.reject)(t)},Oi=e("P","sq:graphql-client"),Ti=e("E",T((function(e,t,n){return new vi(e+"/api/v1/"+t+"/graphql",{headers:{Authorization:"Bearer "+(n||"")}})})));function xi(e,t){switch(t.type){case"loading":return{data:void 0,errors:void 0,loading:!0};case"data":return{data:t.payload,errors:void 0,loading:!1};case"errors":return{data:void 0,errors:t.payload,loading:!1}}}function Ai(e,t,n){void 0===n&&(n={batch:!0});var r,i,a,o,s,c,l=(r=Hr(),i=zr(),a=Yr(),o=Ti(i,a,r),s=$r(),null!=(c=u(s,"sq:graphql-client",{attempts:0}))?c:o),d=f(xi,t),p=d[1];return[d[0],Ge((function(t,r){void 0===r&&(r=!1);try{if(!l){var i=new Error("No GraphQL client found");return p({type:"errors",payload:i}),Promise.resolve(i)}return Promise.resolve(function(i,a){try{var o=(r||p({type:"loading"}),Promise.resolve(l.request(e,t,n)).then((function(e){return p({type:"data",payload:e}),e})))}catch(e){return a(e)}return o&&o.then?o.then(void 0,a):o}(0,(function(e){return p({type:"errors",payload:e}),e})))}catch(e){return Promise.reject(e)}}),[l,e,p])]}var Ni,Di={loading:!1,data:void 0,errors:void 0};function Ci(e){var t=Ai(e,Di);return[t[1],t[0]]}var ki,Pi=pi(Ni||(Ni=ei(["\n mutation AuthenticateWithEmailAndPassword(\n $email: String!\n $password: String!\n ) {\n authenticateManagedIdentityWithEmailAndPassword(\n authenticateManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Fi(){var e=Ci(Pi),t=e[0],n=e[1];return[function(e){try{return Promise.resolve(t(e)).then((function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithEmailAndPassword){var t=e.authenticateManagedIdentityWithEmailAndPassword.token,n=Nn(t).user;qe({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:e.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.authenticateManagedIdentityWithEmailAndPassword.sessionData}})}return e}))}catch(e){return Promise.reject(e)}},{loading:n.loading,data:n.data,errors:n.errors}]}var ji,Ri=pi(ki||(ki=ei(["\n mutation RegisterWithEmailAndPassword(\n $email: String!\n $password: String!\n $formData: RSJsonNode\n $redirectPath: String\n ) {\n registerManagedIdentityWithEmailAndPassword(\n registerManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n formData: $formData\n redirectPath: $redirectPath\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Mi(){var e=Ci(Ri),t=e[0],n=e[1];return[function(e){try{return Promise.resolve(t(e)).then((function(e){if(!(e instanceof Error)&&e.registerManagedIdentityWithEmailAndPassword){var t=e.registerManagedIdentityWithEmailAndPassword.token,n=Nn(t).user;qe({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.registerManagedIdentityWithEmailAndPassword.email,emailVerified:e.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.registerManagedIdentityWithEmailAndPassword.sessionData}})}return e}))}catch(e){return Promise.reject(e)}},{loading:n.loading,data:n.data,errors:n.errors}]}var Li,qi=pi(ji||(ji=ei(["\n mutation RegisterViaRegistrationForm($key: String!, $formData: RSJsonNode!) {\n submitForm(formSubmissionInput: { key: $key, formData: $formData }) {\n results {\n ... on FormHandlerSubmissionResult {\n result\n formHandler {\n namespace\n }\n }\n ... on FormHandlerError {\n errorCode\n error\n errorType\n formHandler {\n name\n endpointUrl\n }\n }\n }\n }\n }\n"])));function Vi(){var e=Ci(qi),t=e[0],n=e[1],r=n.loading,i=n.data,a=n.errors,o=d(null),s=o[1];return[function(e){try{return s(null),Promise.resolve(t(e)).then((function(e){var t,n,r,i;if(e instanceof Error)return e;var a=null==(t=e.submitForm)||null==(n=t.results)?void 0:n.find((function(e){var t;return"identity"===(null==e||null==(t=e.formHandler)?void 0:t.namespace)}));if(a&&null!=(r=a.result)&&null!=(i=r.results)&&i.length){var o=a.result.results[0];if(o.success){var u=o.data.token,c=Nn(u).user;qe({jwt:u,id:c.id,accountId:c.accountId,managedIdentity:{email:o.data.email,emailVerified:o.data.emailVerified,sessionData:o.data.sessionData}})}else s(o.message)}return e}))}catch(e){return Promise.reject(e)}},{loading:r,data:i,errors:a,formError:o[0]}]}var Bi,Ui=pi(Li||(Li=ei(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function $i(){var e=Ci(Ui),t=e[1];return[e[0],{loading:t.loading,data:t.data,errors:t.errors}]}var Gi,Ji=pi(Bi||(Bi=ei(["\n mutation ResetPassword($oobCode: String!, $password: String!) {\n resetManagedIdentityPassword(\n resetManagedIdentityPasswordInput: {\n password: $password\n oobCode: $oobCode\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ki(){var e=Ci(Ji),t=e[0],n=e[1];return[function(e){try{return Promise.resolve(t(e)).then((function(e){if(!(e instanceof Error)&&e.resetManagedIdentityPassword){var t=e.resetManagedIdentityPassword.token,n=Nn(t).user;qe({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.resetManagedIdentityPassword.email,emailVerified:e.resetManagedIdentityPassword.emailVerified,sessionData:e.resetManagedIdentityPassword.sessionData}})}return e}))}catch(e){return Promise.reject(e)}},{loading:n.loading,data:n.data,errors:n.errors}]}var Hi=pi(Gi||(Gi=ei(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Wi(){return Ci(Hi)}function Yi(){var e=$r();return{refresh:Ge((function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}))}),[e])}}function zi(e){var t=e.skip,n=void 0!==t&&t,i=e.update,a=e.variables;s((function(){var e=function(e){!n&&i(a,!0)};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}}),function(e){var t=p(e),n=p(0);return q(e,t.current)||(t.current=e,n.current+=1),r((function(){return t.current}),[n.current])}([a,i,n]))}var Qi,Xi={loading:!1,data:void 0,errors:void 0},Zi=Symbol();function ea(e){var t=Ai(e,Xi),n=t[0],r=t[1],i=p(Zi);zi({skip:i.current===Zi,update:r,variables:i.current});var a=Ge((function(e){return i.current=e,r(e)}),[r]);return[r,Xr({},n,{refetch:a})]}var ta,na=pi(Qi||(Qi=ei(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function ra(){var e=Wr(),t=ea(na),n=t[0],r=t[1],i=r.refetch,a=function(t){t instanceof Error||!t.managedIdentitySession||qe(Xr({},e,{managedIdentity:t.managedIdentitySession}))};return[function(){try{return Promise.resolve(n({})).then((function(e){return a(e),e}))}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors,refetch:function(){try{return Promise.resolve(i()).then((function(e){return a(e),e}))}catch(e){return Promise.reject(e)}}}]}var ia,aa=pi(ta||(ta=ei(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function oa(){var e=ra()[0],t=Ci(aa),n=t[0],r=t[1];return[function(t){try{return Promise.resolve(n(t)).then((function(t){var n=function(){if(!(t instanceof Error)&&t.verifyManagedIdentityEmail.success)return Promise.resolve(e()).then((function(){}))}();return n&&n.then?n.then((function(){return t})):t}))}catch(t){return Promise.reject(t)}},{loading:r.loading,data:r.data,errors:r.errors}]}var sa,ua=pi(ia||(ia=ei(["\n mutation RequestPasswordResetEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityPasswordResetEmail(\n requestManagedIdentityPasswordResetEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function ca(){return Ci(ua)}var la,fa=pi(sa||(sa=ei(["\n mutation RequestVerificationEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityVerificationEmail(\n requestManagedIdentityVerificationEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function da(){return Ci(fa)}var pa,ha=pi(la||(la=ei(["\n mutation authenticateManagedIdentityWithInstantAccess(\n $email: String!\n $firstName: String\n $lastName: String\n $locale: RSLocale\n $countryCode: RSCountryCode\n $cookies: String\n ) {\n authenticateManagedIdentityWithInstantAccess(\n authenticateManagedIdentityWithInstantAccessInput: {\n email: $email\n firstName: $firstName\n lastName: $lastName\n locale: $locale\n countryCode: $countryCode\n cookies: $cookies\n }\n ) {\n email\n emailVerified\n sessionData\n token\n }\n }\n"])));function va(){var e=Kr(),t=ae(),n=Ci(ha),r=n[0],i=n[1];return[function(n){try{return Promise.resolve(r(n)).then((function(n){var r=function(){if(!(n instanceof Error)&&n.authenticateManagedIdentityWithInstantAccess)return Promise.resolve(function(e,t){try{return Promise.resolve(function(n,r){try{var i=Promise.resolve(fetch(fe()+"/api/v1/"+ce()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+t},body:JSON.stringify({query:"\n query checkReferralFraudStatus($programId: ID) {\n viewer {\n ... on User {\n id\n instantAccessRewards(filter: { programId_eq: $programId }) {\n data {\n id\n pendingReasons\n cancelledReason\n }\n }\n }\n }\n }\n",variables:{programId:e}})})).then((function(e){if(!e.ok)throw new Error("Failed to fetch locale");return Promise.resolve(e.json()).then((function(e){var t;if(e.errors)throw new Error(JSON.stringify(e.errors,null,2));var n=(null==(t=e.data.viewer.instantAccessRewards)?void 0:t.data)||[];return n.some((function(e){return"SUSPECTED_FRAUD"===e.cancelledReason}))?"DENIED":n.some((function(e){var t;return null==(t=e.pendingReasons)?void 0:t.includes("SUSPECTED_FRAUD")}))?"PENDING_REVIEW":"APPROVED"}))}))}catch(e){return r(e)}return i&&i.then?i.then(void 0,r):i}(0,(function(e){console.error(e)})))}catch(e){return Promise.reject(e)}}(e,n.authenticateManagedIdentityWithInstantAccess.token)).then((function(e){if("APPROVED"!==e)throw{name:"fraud_error",message:"Referral flagged as fraud."};var r=n.authenticateManagedIdentityWithInstantAccess.email;if(qe({jwt:n.authenticateManagedIdentityWithInstantAccess.token,id:r,accountId:r}),"SquatchJS2"===t){var i=new CustomEvent("sq:user-registration",{bubbles:!0,detail:{userId:r,accountId:r}});document.dispatchEvent(i)}}))}();return r&&r.then?r.then((function(e){return n})):n}))}catch(e){return Promise.reject(e)}},{loading:i.loading,data:i.data,errors:i.errors}]}var ya=Xn.gql(pa||(pa=ei(["\n mutation authenticateManagedIdentityWithGoogle($idToken: String!) {\n authenticateManagedIdentityWithGoogle(\n authenticateManagedIdentityWithGoogleInput: { idToken: $idToken }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function ma(){var e=Ci(ya),t=e[0],n=e[1];return[function(e){try{return Promise.resolve(t(e)).then((function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithGoogle){var t=e.authenticateManagedIdentityWithGoogle.token,n=Nn(t).user;qe({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithGoogle.email,emailVerified:e.authenticateManagedIdentityWithGoogle.emailVerified,sessionData:e.authenticateManagedIdentityWithGoogle.sessionData}})}return e}))}catch(e){return Promise.reject(e)}},{loading:n.loading,data:n.data,errors:n.errors}]}function ba(e,t){var n=p();return n.current&&q(t,n.current.key)||(n.current={key:t,value:e()}),n.current.value}function ga(){return f((function(e){return e+1}),0)}function Ea(e){for(var t,n=ni(Object.getOwnPropertyNames(e));!(t=n()).done;){var r=e[t.value];r&&"object"==typeof r&&Ea(r)}return Object.freeze(e)}var wa={loading:!0,data:void 0,errors:void 0};function _a(e,t,n,r){var i=Ai(e,wa,Xr({batch:!0},r||{})),a=i[0],o=i[1],s=ga(),u=s[1];return ba((function(){!n&&o(t)}),[e,t,o,s[0],n]),zi({skip:n,update:o,variables:t}),Ea(Xr({},a,{refetch:u}))}function Sa(e){var t=$r(),n=c(t,xa(e.namespace),e.initialValue),r=n[0],i=n[1];return c(t,Aa(e.namespace),[r,i]),[r,i]}function Ia(e){var t=l(Aa(e)),n=l(xa(e));return t?[n,t[1]]:[void 0,void 0]}function Oa(e){var t=l(Aa(e));if(t)return t[1]}function Ta(e){return l(xa(e))}function xa(e){return e+"-value"}function Aa(e){return e+"-state"}function Na(e){var t=$r(),n=_a(e.query,e.variables||{},e.skip,Xr({batch:!0},e.options||{})),r=c(t,xa(e.namespace),n),i=r[0],a=r[1];return s((function(){Br.deepEqual(n,i)||a(n)}),[n,i]),n}function Da(e){return l(xa(e))||{data:null,loading:!0,refetch:function(){return console.warn("component still loading")}}}function Ca(){var e=ga()[1];return s((function(){return _e.listen((function(){e()}))}),[]),_e.location}var ka,Pa=e("j",_e);function Fa(e){var t=d({limit:e.limit,offset:e.offset}),n=t[0],r=t[1],i=n.offset,a=n.limit,o=function(e,t){return e*t},s=function(e,t){return Math.ceil(e/t)||0};return{limit:a,setLimit:function(e){var t=s(i,e),a=o(e,t);r(Xr({},n,{limit:e,offset:a}))},offset:i,setCurrentPage:function(e){var t=o(e,a);r((function(e){return Xr({},e,{offset:t})}))},calculatePagination:function(e,t){var n=s(i,a),r=function(e,t){return Math.ceil(e/t)||0}(t,a),o=0===e?"0":e>1?i+1+"-"+(i+e):""+(i+1);return{currentPage:n,pageCount:r,rangeOnPage:o,pageProgress:o+" of "+t}}}}function ja(e,t,n,r,i){var a;void 0===r&&(r={}),void 0===i&&(i=!1);var o=Fa(n),s=o.limit,u=o.setLimit,c=o.setCurrentPage,l=o.calculatePagination,f=_a(e,Xr({limit:s,offset:o.offset},r),i),d=f.loading,p=f.errors,h=f.refetch,v=t(f.data),y=l((null==v||null==(a=v.data)?void 0:a.length)||0,(null==v?void 0:v.totalCount)||0);return{envelope:v,states:{errors:p,loading:d,limit:s,currentPage:y.currentPage,pageCount:y.pageCount,pageProgress:y.pageProgress},callbacks:{refetch:h,setLimit:u,setCurrentPage:c}}}var Ra=Xn.gql(ka||(ka=ei(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Ma=1e3,La=60*Ma,qa=60*La,Va=24*qa,Ba=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return n*Va;case"hours":case"hour":case"hrs":case"hr":case"h":return n*qa;case"minutes":case"minute":case"mins":case"min":case"m":return n*La;case"seconds":case"second":case"secs":case"sec":case"s":return n*Ma;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===n&&isFinite(e))return t.long?function(e){var t=Math.abs(e);return t>=Va?Ua(e,t,Va,"day"):t>=qa?Ua(e,t,qa,"hour"):t>=La?Ua(e,t,La,"minute"):t>=Ma?Ua(e,t,Ma,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=Va?Math.round(e/Va)+"d":t>=qa?Math.round(e/qa)+"h":t>=La?Math.round(e/La)+"m":t>=Ma?Math.round(e/Ma)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Ua(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}var $a,Ga,Ja,Ka,Ha,Wa=(function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=function(){var e=!1;return function(){e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=function(e){function t(e){var r,i=null;function a(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}if(!a.enabled)return;var i=a,o=Number(new Date);i.diff=o-(r||o),i.prev=r,i.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");var s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return"%";s++;var a=t.formatters[r];return"function"==typeof a&&(n=a.call(i,e[s]),e.splice(s,1),s--),n})),t.formatArgs.call(i,e),(i.log||t.log).apply(i,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:function(){return null===i?t.enabled(e):i},set:function(e){i=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){var e=__spreadArrays(t.names.map(r),t.skips.map(r).map((function(e){return"-"+e}))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=Ba,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((function(n){t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){var n=0;for(var r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}(t);var n=e.exports.formatters;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}($a={exports:{}},$a.exports),$a.exports),Ya=Wa("sq:load-event"),za=Xn.gql(Ga||(Ga=ei(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Qa=Wa("sq:useForm"),Xa=Xn.gql(Ja||(Ja=ei(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),Za=Xn.gql(Ka||(Ka=ei(["\n mutation ($formSubmissionInput: FormSubmissionInput!) {\n submitForm(formSubmissionInput: $formSubmissionInput) {\n success\n results {\n ... on FormHandlerSubmissionResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"]))),eo=Xn.gql(Ha||(Ha=ei(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])))}}}));
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):i(e.value).then(o,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};System.register(["./p-4f5329a2.system.js"],(function(e){"use strict";var t,n,r,i,a,o,s,u,c,l,f,d,p;return{setters:[function(e){t=e.d;n=e.s;r=e.u;i=e.c;a=e.a;o=e.e;s=e.f;u=e.h;c=e.y;l=e.i;f=e.j;d=e.k;p=e.m}],execute:function(){var h=this;e({$:Ci,F:Ta,G:Hr,H:Kr,I:Sa,J:Wr,L:Jr,M:xa,O:Vi,Q:Yi,R:ja,S:Na,T:Ki,U:Gr,V:Mi,X:ea,_:$r,b:qe,c:Wi,e:oa,f:$e,g:oe,h:Oa,i:se,k:Ca,l:da,n:ra,o:$i,p:ca,q:Fi,r:ma,t:Ia,v:va,w:_a,x:Da,y:ga});function v(e,t){var n=t&&t.cache?t.cache:O;var r=t&&t.serializer?t.serializer:S;var i=t&&t.strategy?t.strategy:E;return i(e,{cache:n,serializer:r})}function y(e){return e==null||typeof e==="number"||typeof e==="boolean"}function m(e,t,n,r){var i=y(r)?r:n(r);var a=t.get(i);if(typeof a==="undefined"){a=e.call(this,r);t.set(i,a)}return a}function b(e,t,n){var r=Array.prototype.slice.call(arguments,3);var i=n(r);var a=t.get(i);if(typeof a==="undefined"){a=e.apply(this,r);t.set(i,a)}return a}function g(e,t,n,r,i){return n.bind(t,e,r,i)}function E(e,t){var n=e.length===1?m:b;return g(e,this,n,t.cache.create(),t.serializer)}function w(e,t){var n=b;return g(e,this,n,t.cache.create(),t.serializer)}function _(e,t){var n=m;return g(e,this,n,t.cache.create(),t.serializer)}function S(){return JSON.stringify(arguments)}function I(){this.cache=Object.create(null)}I.prototype.has=function(e){return e in this.cache};I.prototype.get=function(e){return this.cache[e]};I.prototype.set=function(e,t){this.cache[e]=t};var O={create:function e(){return new I}};var T=e("s",v);var x={variadic:w,monadic:_};T.strategies=x;var A=Object.freeze(Object.assign(Object.create(null),T,{default:T,strategies:x}));e("m",A);function N(e){this.message=e}N.prototype=new Error,N.prototype.name="InvalidCharacterError";var D="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new N("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,o="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?o+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function C(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(D(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return D(t)}}function k(e){this.message=e}function P(e,t){if("string"!=typeof e)throw new k("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(C(e.split(".")[n]))}catch(e){throw new k("Invalid token specified: "+e.message)}}k.prototype=new Error,k.prototype.name="InvalidTokenError";var F=Object.prototype,j=F.toString,R=F.hasOwnProperty;var M=Function.prototype.toString;var L=new Map;function q(e,t){try{return V(e,t)}finally{L.clear()}}function V(e,t){if(e===t){return true}var n=j.call(e);var r=j.call(t);if(n!==r){return false}switch(n){case"[object Array]":if(e.length!==t.length)return false;case"[object Object]":{if(J(e,t))return true;var i=B(e);var a=B(t);var o=i.length;if(o!==a.length)return false;for(var s=0;s<o;++s){if(!R.call(t,i[s])){return false}}for(var s=0;s<o;++s){var u=i[s];if(!V(e[u],t[u])){return false}}return true}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return false;if(J(e,t))return true;var c=e.entries();var l=n==="[object Map]";while(true){var f=c.next();if(f.done)break;var d=f.value,p=d[0],h=d[1];if(!t.has(p)){return false}if(l&&!V(h,t.get(p))){return false}}return true}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e);t=new Uint8Array(t);case"[object DataView]":{var v=e.byteLength;if(v===t.byteLength){while(v--&&e[v]===t[v]){}}return v===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var y=M.call(e);if(y!==M.call(t)){return false}return!G(y,$)}}return false}function B(e){return Object.keys(e).filter(U,e)}function U(e){return this[e]!==void 0}var $="{ [native code] }";function G(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function J(e,t){var n=L.get(e);if(n){if(n.has(t))return true}else{L.set(e,n=new Set)}n.add(t);return false}var K=Object.defineProperty;var H=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty;var Q=Object.prototype.propertyIsEnumerable;var X=function(e,t,n){return t in e?K(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n};var Z=function(e,t){for(var n in t||(t={}))if(z.call(t,n))X(e,n,t[n]);if(Y)for(var r=0,i=Y(t);r<i.length;r++){var n=i[r];if(Q.call(t,n))X(e,n,t[n])}return e};var ee=function(e,t){return H(e,W(t))};var te="sq:user-identity";var ne="sq:locale";var re="sq:program-id";var ie="EMBED";function ae(){return oe().type}function oe(){var e,t,n;if(window["SquatchAndroid"]){return{type:"SquatchAndroid",android:window["SquatchAndroid"],widgetIdent:window["widgetIdent"]}}if(window["SquatchPortal"]){return{type:"SquatchPortal",env:window["SquatchPortal"]}}if(window["SquatchAdmin"]){return{type:"SquatchAdmin",adminSDK:window["SquatchAdmin"]}}if((window["widgetIdent"]||((e=window.frameElement)==null?void 0:e["squatchJsApi"]))&&((t=window["widgetIdent"])==null?void 0:t.env)!=="demo"){return{type:"SquatchJS2",api:(n=window.frameElement)==null?void 0:n["squatchJsApi"],widgetIdent:window["widgetIdent"]}}return{type:"None"}}function se(){var e=oe();return e.type==="None"||e.type==="SquatchAdmin"}var ue="demo";function ce(){var e;var t=oe();switch(t.type){case"SquatchAndroid":case"SquatchIOS":case"SquatchJS2":return(e=t.widgetIdent)==null?void 0:e.tenantAlias;case"SquatchAdmin":case"None":return ue;case"SquatchPortal":return t.env.tenantAlias}}var le="https://app.referralsaasquatch.com";function fe(){var e,t;var n=oe();switch(n.type){case"SquatchAndroid":case"SquatchIOS":case"SquatchJS2":return((e=n.widgetIdent)==null?void 0:e.appDomain)||le;case"SquatchPortal":return((t=n.env)==null?void 0:t.appDomain)||le;case"SquatchAdmin":case"None":return le}}function de(){var e;var t=oe();switch(t.type){case"SquatchJS2":return((e=t.widgetIdent)==null?void 0:e.engagementMedium)||ie;case"SquatchAndroid":case"SquatchIOS":case"SquatchPortal":case"SquatchAdmin":case"None":return ie}}var pe=function(){var e;try{return(e=window==null?void 0:window.localStorage)==null?void 0:e.getItem("debug")}catch(e){return false}}();function he(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}if(pe){console.debug.apply(console,__spreadArrays(["sq:environment:"+e],t))}}var ve=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return he.apply(void 0,__spreadArrays(["history"],e))};function ye(e){if(typeof e==="string")return e;var t=new URL(e.pathname,window.origin);if(e.search)t.search=e.search;if(e.hash)t.hash=e.hash;return t}var me=function(){function e(){this.listeners=new Set;window.addEventListener("popstate",this.notify.bind(this));window.addEventListener("pushState",this.notify.bind(this));window.addEventListener("replaceState",this.notify.bind(this))}e.prototype.listen=function(e){var t=this;this.listeners.add(e);return function(){t.listeners.delete(e)}};e.prototype.notify=function(){ve("notifying listeners of route change",this.location);if(this.listeners){this.listeners.forEach((function(e){return e()}))}};Object.defineProperty(e.prototype,"location",{get:function(){return{pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,state:window.history.state}},enumerable:false,configurable:true});e.prototype.back=function(){this.go(-1)};e.prototype.forward=function(){this.go(1)};e.prototype.go=function(e){window.history.go(e)};e.prototype.push=function(e,t){var n=ye(e);window.history.pushState(t,"",n)};e.prototype.replace=function(e,t){var n=ye(e);window.history.replaceState(t,"",n)};return e}();var be=function(){function e(){this.history=[{pathname:"/",search:"",hash:""}];this.index=0;this.listeners=new Set}e.prototype.listen=function(e){var t=this;this.listeners.add(e);return function(){t.listeners.delete(e)}};e.prototype.current=function(){return this.history[this.index]};Object.defineProperty(e.prototype,"state",{get:function(){return this.current().state},enumerable:false,configurable:true});e.prototype.notify=function(){ve("notifying listeners of route change",this.location);this.listeners.forEach((function(e){return e()}))};Object.defineProperty(e.prototype,"location",{get:function(){return this.history[this.index]},enumerable:false,configurable:true});e.prototype.back=function(){this.go(-1)};e.prototype.forward=function(){this.go(1)};e.prototype.go=function(e){this.index+=e;if(this.index<0)this.index=0;if(this.index>=this.history.length)this.index=this.history.length-1;this.notify()};e.prototype.push=function(e,t){var n;if(typeof e==="string"){n={pathname:e,search:this.history[this.index].search,hash:this.history[this.index].hash,state:t}}else{n=ee(Z({},e),{state:t})}this.index++;this.history.splice(this.index,this.history.length,n);this.notify()};e.prototype.replace=function(e,t){if(typeof e==="string"){this.history[this.index]={pathname:e,search:"",hash:"",state:t}}else{this.history[this.index]=ee(Z({},e),{state:t})}this.notify()};return e}();function ge(){if(ae()==="SquatchPortal"){var e=function(e){var t=window.history[e];return function(){var n=[];for(var r=0;r<arguments.length;r++){n[r]=arguments[r]}var i=t.apply(window.history,n);var a=new Event(e);window.dispatchEvent(a);return i}};window.history.pushState=e("pushState");window.history.replaceState=e("replaceState");return new me}else{return new be}}function Ee(){window.squatchHistory=window.squatchHistory||ge();return window.squatchHistory}var we=function(){function e(){}Object.defineProperty(e.prototype,"location",{get:function(){return Ee().location},enumerable:false,configurable:true});e.prototype.listen=function(e){return Ee().listen(e)};e.prototype.back=function(){Ee().back()};e.prototype.forward=function(){Ee().forward()};e.prototype.go=function(e){Ee().go(e)};e.prototype.push=function(e,t){Ee().push(e,t)};e.prototype.replace=function(e,t){Ee().replace(e,t)};return e}();var _e=new we;var Se=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return he.apply(void 0,__spreadArrays([ne],e))};function Ie(e){if(e&&/^[a-z]{2}(_(?:[A-Z]{2}|[0-9]{3}))?$/.test(e)){return e}}function Oe(){var e;var n;var r=window.squatchLocale;if(!r){Se("Creating locale context provider");var i=(e=(n=window.widgetIdent)==null?void 0:n.locale)!==null&&e!==void 0?e:Ie(navigator.language.replaceAll("-","_"));Se("initializing with locale:",i);r=new t({element:document.documentElement,initialState:i,contextName:ne}).start();window.squatchLocale=r}return r}var Te=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return he.apply(void 0,__spreadArrays([ne],e))};var xe="\n query {\n viewer {\n ... on User {\n locale\n }\n }\n }\n";function Ae(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r;return __generator(this,(function(i){switch(i.label){case 0:Te("Fetching locale from GraphQL for current user");i.label=1;case 1:i.trys.push([1,4,,5]);return[4,fetch(fe()+"/api/v1/"+ce()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+((e=Ve())==null?void 0:e.jwt)},body:JSON.stringify({query:xe})})];case 2:t=i.sent();if(!t.ok){throw new Error("Failed to fetch locale")}return[4,t.json()];case 3:n=i.sent();if(n.errors){throw new Error(JSON.stringify(n.errors,null,2))}return[2,n.data.viewer.locale||void 0];case 4:r=i.sent();Te("Failed to fetch locale for current user",r.message);return[2,void 0];case 5:return[2]}}))}))}var Ne=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return he.apply(void 0,__spreadArrays([ne],e))};var De=function(){var e="__environment_context_listener";var t=document.getElementById(e);if(!t){t=document.createElement("div");t.id=e;document.documentElement.appendChild(t)}return t}();var Ce=new n({contextName:te,element:De,onChange:function(e){return __awaiter(h,void 0,void 0,(function(){var t,n,r,i,a;var o;return __generator(this,(function(s){switch(s.label){case 0:n=Oe();r=(o=(t=window.widgetIdent)==null?void 0:t.locale)!==null&&o!==void 0?o:Ie(navigator.language.replaceAll("-","_"));if(!e)return[3,2];Ne("User context changed, refetching locale");return[4,Ae()];case 1:a=s.sent();Ne("New value fetched from GraphQL ["+a+"]");i=a||r;return[3,3];case 2:i=r;s.label=3;case 3:Ne("Setting locale context to ["+i+"]");n.context=i;return[2]}}))}))}});function ke(){Ne("Starting user context listener for locale updates");Ce.start()}var Pe=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return he.apply(void 0,__spreadArrays([te],e))};function Fe(){var e=window.squatchUserIdentity;if(!e){Pe("Creating user context provider");e=new t({element:document.documentElement,initialState:Le(),contextName:te}).start();window.squatchUserIdentity=e;ke()}return e}function je(e){return e.user&&e.user.id&&e.user.accountId}function Re(e){return e.sub&&/.*:.*@.*:users/.test(e.sub)}function Me(e){if(!e)return void 0;try{var t=P(e);var n=t.exp;var r=void 0;var i=void 0;var a=void 0;if(Re(t)){var o=t.sub.match(/(.*):(.*)@(.*):users/);if(o==null?void 0:o[1])i=atob(o[1]);if(o==null?void 0:o[2])r=atob(o[2])}else if(je(t)){i=t.user.accountId;r=t.user.id;a=t.user.email}if(!r||!i){Pe("No user information");return void 0}if(n&&Date.now()>=n*1e3){Pe("JWT has expired");return void 0}return{id:r,accountId:i,email:a,jwt:e}}catch(e){Pe("Invalid JWT");return void 0}}function Le(){var e=oe();switch(e.type){case"SquatchIOS":case"SquatchAndroid":case"SquatchJS2":if(!e.widgetIdent)return void 0;var t=e.widgetIdent,n=t.userId,r=t.accountId,i=t.token;if(!n||!r||!i)return void 0;return{id:e.widgetIdent.userId,accountId:e.widgetIdent.accountId,email:e.widgetIdent.email,jwt:e.widgetIdent.token};case"SquatchPortal":var a=new URLSearchParams(document.location.search);if(a.has("jwt")){return Me(a.get("jwt"))}var o=localStorage.getItem(te);if(!o)return void 0;try{var s=JSON.parse(o);var u=Me(s.jwt);if(u){return Z(Z({},s),u)}return void 0}catch(e){return void 0}case"SquatchAdmin":case"None":return void 0}}function qe(e){var t=Fe();if(!q(t.context,e)){Pe("Setting user context value ["+JSON.stringify(e)+"]");t.context=e}if(e&&oe().type==="SquatchPortal"){localStorage.setItem(te,JSON.stringify(e))}else if(!e){localStorage.removeItem(te)}}function Ve(){var e;return(e=window.squatchUserIdentity)==null?void 0:e.context}var Be=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return he.apply(void 0,__spreadArrays([re],e))};function Ue(){var e;var n=window.squatchProgramId;if(!n){Be("Creating program context provider");n=new t({element:document.documentElement,initialState:((e=window.widgetIdent)==null?void 0:e.programId)||void 0,contextName:re}).start();window.squatchProgramId=n}return n}function $e(e){var t=Ue();if(t.context!==e){Be("Setting program context value ["+e+"]");t.context=e}}var Ge=e("u",(function(e,t){return r((function(){return e}),t)}));function Je(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Je=function e(t){return typeof t}}else{Je=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return Je(e)}function Ke(e){return Je(e)=="object"&&e!==null}var He=typeof Symbol==="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function We(e,t){var n=/\r\n|[\n\r]/g;var r=1;var i=t+1;var a;while((a=n.exec(e.body))&&a.index<t){r+=1;i=t+1-(a.index+a[0].length)}return{line:r,column:i}}function Ye(e){return ze(e.source,We(e.source,e.start))}function ze(e,t){var n=e.locationOffset.column-1;var r=Xe(n)+e.body;var i=t.line-1;var a=e.locationOffset.line-1;var o=t.line+a;var s=t.line===1?n:0;var u=t.column+s;var c="".concat(e.name,":").concat(o,":").concat(u,"\n");var l=r.split(/\r\n|[\n\r]/g);var f=l[i];if(f.length>120){var d=Math.floor(u/80);var p=u%80;var h=[];for(var v=0;v<f.length;v+=80){h.push(f.slice(v,v+80))}return c+Qe([["".concat(o),h[0]]].concat(h.slice(1,d+1).map((function(e){return["",e]})),[[" ",Xe(p-1)+"^"],["",h[d+1]]]))}return c+Qe([["".concat(o-1),l[i-1]],["".concat(o),f],["",Xe(u-1)+"^"],["".concat(o+1),l[i+1]]])}function Qe(e){var t=e.filter((function(e){var t=e[1];return t!==undefined}));var n=Math.max.apply(Math,t.map((function(e){var t=e[0];return t.length})));return t.map((function(e){var t=e[0],r=e[1];return Ze(n,t)+(r?" | "+r:" |")})).join("\n")}function Xe(e){return Array(e+1).join(" ")}function Ze(e,t){return Xe(e-t.length)+t}function et(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){et=function e(t){return typeof t}}else{et=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return et(e)}function tt(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function rt(e,t,n){if(t)nt(e.prototype,t);if(n)nt(e,n);return e}function it(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)dt(e,t)}function at(e){var t=lt();return function n(){var r=pt(e),i;if(t){var a=pt(this).constructor;i=Reflect.construct(r,arguments,a)}else{i=r.apply(this,arguments)}return ot(this,i)}}function ot(e,t){if(t&&(et(t)==="object"||typeof t==="function")){return t}return st(e)}function st(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function ut(e){var t=typeof Map==="function"?new Map:undefined;ut=function e(n){if(n===null||!ft(n))return n;if(typeof n!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof t!=="undefined"){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return ct(n,arguments,pt(this).constructor)}r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}});return dt(r,n)};return ut(e)}function ct(e,t,n){if(lt()){ct=Reflect.construct}else{ct=function e(t,n,r){var i=[null];i.push.apply(i,n);var a=Function.bind.apply(t,i);var o=new a;if(r)dt(o,r.prototype);return o}}return ct.apply(null,arguments)}function lt(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return true}catch(e){return false}}function ft(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function dt(e,t){dt=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return dt(e,t)}function pt(e){pt=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return pt(e)}var ht=function(e){it(n,e);var t=at(n);function n(e,r,i,a,o,s,u){var c,l,f,d;var p;tt(this,n);p=t.call(this,e);var h=Array.isArray(r)?r.length!==0?r:undefined:r?[r]:undefined;var v=i;if(!v&&h){var y;v=(y=h[0].loc)===null||y===void 0?void 0:y.source}var m=a;if(!m&&h){m=h.reduce((function(e,t){if(t.loc){e.push(t.loc.start)}return e}),[])}if(m&&m.length===0){m=undefined}var b;if(a&&i){b=a.map((function(e){return We(i,e)}))}else if(h){b=h.reduce((function(e,t){if(t.loc){e.push(We(t.loc.source,t.loc.start))}return e}),[])}var g=u;if(g==null&&s!=null){var E=s.extensions;if(Ke(E)){g=E}}Object.defineProperties(st(p),{name:{value:"GraphQLError"},message:{value:e,enumerable:true,writable:true},locations:{value:(c=b)!==null&&c!==void 0?c:undefined,enumerable:b!=null},path:{value:o!==null&&o!==void 0?o:undefined,enumerable:o!=null},nodes:{value:h!==null&&h!==void 0?h:undefined},source:{value:(l=v)!==null&&l!==void 0?l:undefined},positions:{value:(f=m)!==null&&f!==void 0?f:undefined},originalError:{value:s},extensions:{value:(d=g)!==null&&d!==void 0?d:undefined,enumerable:g!=null}});if(s!==null&&s!==void 0&&s.stack){Object.defineProperty(st(p),"stack",{value:s.stack,writable:true,configurable:true});return ot(p)}if(Error.captureStackTrace){Error.captureStackTrace(st(p),n)}else{Object.defineProperty(st(p),"stack",{value:Error().stack,writable:true,configurable:true})}return p}rt(n,[{key:"toString",value:function e(){return vt(this)}},{key:He,get:function e(){return"Object"}}]);return n}(ut(Error));function vt(e){var t=e.message;if(e.nodes){for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];if(i.loc){t+="\n\n"+Ye(i.loc)}}}else if(e.source&&e.locations){for(var a=0,o=e.locations;a<o.length;a++){var s=o[a];t+="\n\n"+ze(e.source,s)}}return t}function yt(e,t,n){return new ht("Syntax Error: ".concat(n),undefined,e,[t])}var mt=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function bt(e,t){var n=Boolean(e);if(!n){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}var gt=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):undefined;function Et(e){var t=e.prototype.toJSON;typeof t==="function"||bt(0);e.prototype.inspect=t;if(gt){e.prototype[gt]=t}}var wt=function(){function e(e,t,n){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=n}var t=e.prototype;t.toJSON=function e(){return{start:this.start,end:this.end}};return e}();Et(wt);var _t=function(){function e(e,t,n,r,i,a,o){this.kind=e;this.start=t;this.end=n;this.line=r;this.column=i;this.value=o;this.prev=a;this.next=null}var t=e.prototype;t.toJSON=function e(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};return e}();Et(_t);function St(e){return e!=null&&typeof e.kind==="string"}var It=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function Ot(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Ot=function e(t){return typeof t}}else{Ot=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return Ot(e)}var Tt=10;var xt=2;function At(e){return Nt(e,[])}function Nt(e,t){switch(Ot(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":if(e===null){return"null"}return Dt(e,t);default:return String(e)}}function Dt(e,t){if(t.indexOf(e)!==-1){return"[Circular]"}var n=[].concat(t,[e]);var r=Pt(e);if(r!==undefined){var i=r.call(e);if(i!==e){return typeof i==="string"?i:Nt(i,n)}}else if(Array.isArray(e)){return kt(e,n)}return Ct(e,n)}function Ct(e,t){var n=Object.keys(e);if(n.length===0){return"{}"}if(t.length>xt){return"["+Ft(e)+"]"}var r=n.map((function(n){var r=Nt(e[n],t);return n+": "+r}));return"{ "+r.join(", ")+" }"}function kt(e,t){if(e.length===0){return"[]"}if(t.length>xt){return"[Array]"}var n=Math.min(Tt,e.length);var r=e.length-n;var i=[];for(var a=0;a<n;++a){i.push(Nt(e[a],t))}if(r===1){i.push("... 1 more item")}else if(r>1){i.push("... ".concat(r," more items"))}return"["+i.join(", ")+"]"}function Pt(e){var t=e[String(gt)];if(typeof t==="function"){return t}if(typeof e.inspect==="function"){return e.inspect}}function Ft(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){var n=e.constructor.name;if(typeof n==="string"&&n!==""){return n}}return t}function jt(e,t){var n=Boolean(e);if(!n){throw new Error(t)}}var Rt=function e(t,n){return t instanceof n};function Mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function Lt(e,t,n){if(t)Mt(e.prototype,t);if(n)Mt(e,n);return e}var qt=function(){function e(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"GraphQL request";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{line:1,column:1};typeof e==="string"||jt(0,"Body must be a string. Received: ".concat(At(e),"."));this.body=e;this.name=t;this.locationOffset=n;this.locationOffset.line>0||jt(0,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||jt(0,"column in locationOffset is 1-indexed and must be positive.")}Lt(e,[{key:He,get:function e(){return"Source"}}]);return e}();function Vt(e){return Rt(e,qt)}var Bt=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function Ut(e){var t=e.split(/\r\n|[\n\r]/g);var n=Gt(e);if(n!==0){for(var r=1;r<t.length;r++){t[r]=t[r].slice(n)}}var i=0;while(i<t.length&&$t(t[i])){++i}var a=t.length;while(a>i&&$t(t[a-1])){--a}return t.slice(i,a).join("\n")}function $t(e){for(var t=0;t<e.length;++t){if(e[t]!==" "&&e[t]!=="\t"){return false}}return true}function Gt(e){var t;var n=true;var r=true;var i=0;var a=null;for(var o=0;o<e.length;++o){switch(e.charCodeAt(o)){case 13:if(e.charCodeAt(o+1)===10){++o}case 10:n=false;r=true;i=0;break;case 9:case 32:++i;break;default:if(r&&!n&&(a===null||i<a)){a=i}r=false}}return(t=a)!==null&&t!==void 0?t:0}function Jt(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var r=e.indexOf("\n")===-1;var i=e[0]===" "||e[0]==="\t";var a=e[e.length-1]==='"';var o=e[e.length-1]==="\\";var s=!r||a||o||n;var u="";if(s&&!(r&&i)){u+="\n"+t}u+=t?e.replace(/\n/g,"\n"+t):e;if(s){u+="\n"}return'"""'+u.replace(/"""/g,'\\"""')+'"""'}var Kt=function(){function e(e){var t=new _t(It.SOF,0,0,0,0,null);this.source=e;this.lastToken=t;this.token=t;this.line=1;this.lineStart=0}var t=e.prototype;t.advance=function e(){this.lastToken=this.token;var t=this.token=this.lookahead();return t};t.lookahead=function e(){var t=this.token;if(t.kind!==It.EOF){do{var n;t=(n=t.next)!==null&&n!==void 0?n:t.next=Yt(this,t)}while(t.kind===It.COMMENT)}return t};return e}();function Ht(e){return e===It.BANG||e===It.DOLLAR||e===It.AMP||e===It.PAREN_L||e===It.PAREN_R||e===It.SPREAD||e===It.COLON||e===It.EQUALS||e===It.AT||e===It.BRACKET_L||e===It.BRACKET_R||e===It.BRACE_L||e===It.PIPE||e===It.BRACE_R}function Wt(e){return isNaN(e)?It.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Yt(e,t){var n=e.source;var r=n.body;var i=r.length;var a=t.end;while(a<i){var o=r.charCodeAt(a);var s=e.line;var u=1+a-e.lineStart;switch(o){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a;++e.line;e.lineStart=a;continue;case 13:if(r.charCodeAt(a+1)===10){a+=2}else{++a}++e.line;e.lineStart=a;continue;case 33:return new _t(It.BANG,a,a+1,s,u,t);case 35:return Qt(n,a,s,u,t);case 36:return new _t(It.DOLLAR,a,a+1,s,u,t);case 38:return new _t(It.AMP,a,a+1,s,u,t);case 40:return new _t(It.PAREN_L,a,a+1,s,u,t);case 41:return new _t(It.PAREN_R,a,a+1,s,u,t);case 46:if(r.charCodeAt(a+1)===46&&r.charCodeAt(a+2)===46){return new _t(It.SPREAD,a,a+3,s,u,t)}break;case 58:return new _t(It.COLON,a,a+1,s,u,t);case 61:return new _t(It.EQUALS,a,a+1,s,u,t);case 64:return new _t(It.AT,a,a+1,s,u,t);case 91:return new _t(It.BRACKET_L,a,a+1,s,u,t);case 93:return new _t(It.BRACKET_R,a,a+1,s,u,t);case 123:return new _t(It.BRACE_L,a,a+1,s,u,t);case 124:return new _t(It.PIPE,a,a+1,s,u,t);case 125:return new _t(It.BRACE_R,a,a+1,s,u,t);case 34:if(r.charCodeAt(a+1)===34&&r.charCodeAt(a+2)===34){return tn(n,a,s,u,t,e)}return en(n,a,s,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Xt(n,a,o,s,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return an(n,a,s,u,t)}throw yt(n,a,zt(o))}var c=e.line;var l=1+a-e.lineStart;return new _t(It.EOF,i,i,c,l,t)}function zt(e){if(e<32&&e!==9&&e!==10&&e!==13){return"Cannot contain the invalid character ".concat(Wt(e),".")}if(e===39){return"Unexpected single quote character ('), did you mean to use a double quote (\")?"}return"Cannot parse the unexpected character ".concat(Wt(e),".")}function Qt(e,t,n,r,i){var a=e.body;var o;var s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||o===9));return new _t(It.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function Xt(e,t,n,r,i,a){var o=e.body;var s=n;var u=t;var c=false;if(s===45){s=o.charCodeAt(++u)}if(s===48){s=o.charCodeAt(++u);if(s>=48&&s<=57){throw yt(e,u,"Invalid number, unexpected digit after 0: ".concat(Wt(s),"."))}}else{u=Zt(e,u,s);s=o.charCodeAt(u)}if(s===46){c=true;s=o.charCodeAt(++u);u=Zt(e,u,s);s=o.charCodeAt(u)}if(s===69||s===101){c=true;s=o.charCodeAt(++u);if(s===43||s===45){s=o.charCodeAt(++u)}u=Zt(e,u,s);s=o.charCodeAt(u)}if(s===46||on(s)){throw yt(e,u,"Invalid number, expected digit but got: ".concat(Wt(s),"."))}return new _t(c?It.FLOAT:It.INT,t,u,r,i,a,o.slice(t,u))}function Zt(e,t,n){var r=e.body;var i=t;var a=n;if(a>=48&&a<=57){do{a=r.charCodeAt(++i)}while(a>=48&&a<=57);return i}throw yt(e,i,"Invalid number, expected digit but got: ".concat(Wt(a),"."))}function en(e,t,n,r,i){var a=e.body;var o=t+1;var s=o;var u=0;var c="";while(o<a.length&&!isNaN(u=a.charCodeAt(o))&&u!==10&&u!==13){if(u===34){c+=a.slice(s,o);return new _t(It.STRING,t,o+1,n,r,i,c)}if(u<32&&u!==9){throw yt(e,o,"Invalid character within String: ".concat(Wt(u),"."))}++o;if(u===92){c+=a.slice(s,o-1);u=a.charCodeAt(o);switch(u){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:{var l=nn(a.charCodeAt(o+1),a.charCodeAt(o+2),a.charCodeAt(o+3),a.charCodeAt(o+4));if(l<0){var f=a.slice(o+1,o+5);throw yt(e,o,"Invalid character escape sequence: \\u".concat(f,"."))}c+=String.fromCharCode(l);o+=4;break}default:throw yt(e,o,"Invalid character escape sequence: \\".concat(String.fromCharCode(u),"."))}++o;s=o}}throw yt(e,o,"Unterminated string.")}function tn(e,t,n,r,i,a){var o=e.body;var s=t+3;var u=s;var c=0;var l="";while(s<o.length&&!isNaN(c=o.charCodeAt(s))){if(c===34&&o.charCodeAt(s+1)===34&&o.charCodeAt(s+2)===34){l+=o.slice(u,s);return new _t(It.BLOCK_STRING,t,s+3,n,r,i,Ut(l))}if(c<32&&c!==9&&c!==10&&c!==13){throw yt(e,s,"Invalid character within String: ".concat(Wt(c),"."))}if(c===10){++s;++a.line;a.lineStart=s}else if(c===13){if(o.charCodeAt(s+1)===10){s+=2}else{++s}++a.line;a.lineStart=s}else if(c===92&&o.charCodeAt(s+1)===34&&o.charCodeAt(s+2)===34&&o.charCodeAt(s+3)===34){l+=o.slice(u,s)+'"""';s+=4;u=s}else{++s}}throw yt(e,s,"Unterminated string.")}function nn(e,t,n,r){return rn(e)<<12|rn(t)<<8|rn(n)<<4|rn(r)}function rn(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function an(e,t,n,r,i){var a=e.body;var o=a.length;var s=t+1;var u=0;while(s!==o&&!isNaN(u=a.charCodeAt(s))&&(u===95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122)){++s}return new _t(It.NAME,t,s,n,r,i,a.slice(t,s))}function on(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}function sn(e,t){var n=new un(e,t);return n.parseDocument()}var un=function(){function e(e,t){var n=Vt(e)?e:new qt(e);this._lexer=new Kt(n);this._options=t}var t=e.prototype;t.parseName=function e(){var t=this.expectToken(It.NAME);return{kind:mt.NAME,value:t.value,loc:this.loc(t)}};t.parseDocument=function e(){var t=this._lexer.token;return{kind:mt.DOCUMENT,definitions:this.many(It.SOF,this.parseDefinition,It.EOF),loc:this.loc(t)}};t.parseDefinition=function e(){if(this.peek(It.NAME)){switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}}else if(this.peek(It.BRACE_L)){return this.parseOperationDefinition()}else if(this.peekDescription()){return this.parseTypeSystemDefinition()}throw this.unexpected()};t.parseOperationDefinition=function e(){var t=this._lexer.token;if(this.peek(It.BRACE_L)){return{kind:mt.OPERATION_DEFINITION,operation:"query",name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)}}var n=this.parseOperationType();var r;if(this.peek(It.NAME)){r=this.parseName()}return{kind:mt.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}};t.parseOperationType=function e(){var t=this.expectToken(It.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(t)};t.parseVariableDefinitions=function e(){return this.optionalMany(It.PAREN_L,this.parseVariableDefinition,It.PAREN_R)};t.parseVariableDefinition=function e(){var t=this._lexer.token;return{kind:mt.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(It.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(It.EQUALS)?this.parseValueLiteral(true):undefined,directives:this.parseDirectives(true),loc:this.loc(t)}};t.parseVariable=function e(){var t=this._lexer.token;this.expectToken(It.DOLLAR);return{kind:mt.VARIABLE,name:this.parseName(),loc:this.loc(t)}};t.parseSelectionSet=function e(){var t=this._lexer.token;return{kind:mt.SELECTION_SET,selections:this.many(It.BRACE_L,this.parseSelection,It.BRACE_R),loc:this.loc(t)}};t.parseSelection=function e(){return this.peek(It.SPREAD)?this.parseFragment():this.parseField()};t.parseField=function e(){var t=this._lexer.token;var n=this.parseName();var r;var i;if(this.expectOptionalToken(It.COLON)){r=n;i=this.parseName()}else{i=n}return{kind:mt.FIELD,alias:r,name:i,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(It.BRACE_L)?this.parseSelectionSet():undefined,loc:this.loc(t)}};t.parseArguments=function e(t){var n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(It.PAREN_L,n,It.PAREN_R)};t.parseArgument=function e(){var t=this._lexer.token;var n=this.parseName();this.expectToken(It.COLON);return{kind:mt.ARGUMENT,name:n,value:this.parseValueLiteral(false),loc:this.loc(t)}};t.parseConstArgument=function e(){var t=this._lexer.token;return{kind:mt.ARGUMENT,name:this.parseName(),value:(this.expectToken(It.COLON),this.parseValueLiteral(true)),loc:this.loc(t)}};t.parseFragment=function e(){var t=this._lexer.token;this.expectToken(It.SPREAD);var n=this.expectOptionalKeyword("on");if(!n&&this.peek(It.NAME)){return{kind:mt.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false),loc:this.loc(t)}}return{kind:mt.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}};t.parseFragmentDefinition=function e(){var t;var n=this._lexer.token;this.expectKeyword("fragment");if(((t=this._options)===null||t===void 0?void 0:t.experimentalFragmentVariables)===true){return{kind:mt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}}return{kind:mt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}};t.parseFragmentName=function e(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()};t.parseValueLiteral=function e(t){var n=this._lexer.token;switch(n.kind){case It.BRACKET_L:return this.parseList(t);case It.BRACE_L:return this.parseObject(t);case It.INT:this._lexer.advance();return{kind:mt.INT,value:n.value,loc:this.loc(n)};case It.FLOAT:this._lexer.advance();return{kind:mt.FLOAT,value:n.value,loc:this.loc(n)};case It.STRING:case It.BLOCK_STRING:return this.parseStringLiteral();case It.NAME:this._lexer.advance();switch(n.value){case"true":return{kind:mt.BOOLEAN,value:true,loc:this.loc(n)};case"false":return{kind:mt.BOOLEAN,value:false,loc:this.loc(n)};case"null":return{kind:mt.NULL,loc:this.loc(n)};default:return{kind:mt.ENUM,value:n.value,loc:this.loc(n)}}case It.DOLLAR:if(!t){return this.parseVariable()}break}throw this.unexpected()};t.parseStringLiteral=function e(){var t=this._lexer.token;this._lexer.advance();return{kind:mt.STRING,value:t.value,block:t.kind===It.BLOCK_STRING,loc:this.loc(t)}};t.parseList=function e(t){var n=this;var r=this._lexer.token;var i=function e(){return n.parseValueLiteral(t)};return{kind:mt.LIST,values:this.any(It.BRACKET_L,i,It.BRACKET_R),loc:this.loc(r)}};t.parseObject=function e(t){var n=this;var r=this._lexer.token;var i=function e(){return n.parseObjectField(t)};return{kind:mt.OBJECT,fields:this.any(It.BRACE_L,i,It.BRACE_R),loc:this.loc(r)}};t.parseObjectField=function e(t){var n=this._lexer.token;var r=this.parseName();this.expectToken(It.COLON);return{kind:mt.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t),loc:this.loc(n)}};t.parseDirectives=function e(t){var n=[];while(this.peek(It.AT)){n.push(this.parseDirective(t))}return n};t.parseDirective=function e(t){var n=this._lexer.token;this.expectToken(It.AT);return{kind:mt.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t),loc:this.loc(n)}};t.parseTypeReference=function e(){var t=this._lexer.token;var n;if(this.expectOptionalToken(It.BRACKET_L)){n=this.parseTypeReference();this.expectToken(It.BRACKET_R);n={kind:mt.LIST_TYPE,type:n,loc:this.loc(t)}}else{n=this.parseNamedType()}if(this.expectOptionalToken(It.BANG)){return{kind:mt.NON_NULL_TYPE,type:n,loc:this.loc(t)}}return n};t.parseNamedType=function e(){var t=this._lexer.token;return{kind:mt.NAMED_TYPE,name:this.parseName(),loc:this.loc(t)}};t.parseTypeSystemDefinition=function e(){var t=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(t.kind===It.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}}throw this.unexpected(t)};t.peekDescription=function e(){return this.peek(It.STRING)||this.peek(It.BLOCK_STRING)};t.parseDescription=function e(){if(this.peekDescription()){return this.parseStringLiteral()}};t.parseSchemaDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("schema");var r=this.parseDirectives(true);var i=this.many(It.BRACE_L,this.parseOperationTypeDefinition,It.BRACE_R);return{kind:mt.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i,loc:this.loc(t)}};t.parseOperationTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseOperationType();this.expectToken(It.COLON);var r=this.parseNamedType();return{kind:mt.OPERATION_TYPE_DEFINITION,operation:n,type:r,loc:this.loc(t)}};t.parseScalarTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName();var i=this.parseDirectives(true);return{kind:mt.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i,loc:this.loc(t)}};t.parseObjectTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("type");var r=this.parseName();var i=this.parseImplementsInterfaces();var a=this.parseDirectives(true);var o=this.parseFieldsDefinition();return{kind:mt.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o,loc:this.loc(t)}};t.parseImplementsInterfaces=function e(){var t;if(!this.expectOptionalKeyword("implements")){return[]}if(((t=this._options)===null||t===void 0?void 0:t.allowLegacySDLImplementsInterfaces)===true){var n=[];this.expectOptionalToken(It.AMP);do{n.push(this.parseNamedType())}while(this.expectOptionalToken(It.AMP)||this.peek(It.NAME));return n}return this.delimitedMany(It.AMP,this.parseNamedType)};t.parseFieldsDefinition=function e(){var t;if(((t=this._options)===null||t===void 0?void 0:t.allowLegacySDLEmptyFields)===true&&this.peek(It.BRACE_L)&&this._lexer.lookahead().kind===It.BRACE_R){this._lexer.advance();this._lexer.advance();return[]}return this.optionalMany(It.BRACE_L,this.parseFieldDefinition,It.BRACE_R)};t.parseFieldDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();var r=this.parseName();var i=this.parseArgumentDefs();this.expectToken(It.COLON);var a=this.parseTypeReference();var o=this.parseDirectives(true);return{kind:mt.FIELD_DEFINITION,description:n,name:r,arguments:i,type:a,directives:o,loc:this.loc(t)}};t.parseArgumentDefs=function e(){return this.optionalMany(It.PAREN_L,this.parseInputValueDef,It.PAREN_R)};t.parseInputValueDef=function e(){var t=this._lexer.token;var n=this.parseDescription();var r=this.parseName();this.expectToken(It.COLON);var i=this.parseTypeReference();var a;if(this.expectOptionalToken(It.EQUALS)){a=this.parseValueLiteral(true)}var o=this.parseDirectives(true);return{kind:mt.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:a,directives:o,loc:this.loc(t)}};t.parseInterfaceTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("interface");var r=this.parseName();var i=this.parseImplementsInterfaces();var a=this.parseDirectives(true);var o=this.parseFieldsDefinition();return{kind:mt.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o,loc:this.loc(t)}};t.parseUnionTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("union");var r=this.parseName();var i=this.parseDirectives(true);var a=this.parseUnionMemberTypes();return{kind:mt.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:a,loc:this.loc(t)}};t.parseUnionMemberTypes=function e(){return this.expectOptionalToken(It.EQUALS)?this.delimitedMany(It.PIPE,this.parseNamedType):[]};t.parseEnumTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("enum");var r=this.parseName();var i=this.parseDirectives(true);var a=this.parseEnumValuesDefinition();return{kind:mt.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:a,loc:this.loc(t)}};t.parseEnumValuesDefinition=function e(){return this.optionalMany(It.BRACE_L,this.parseEnumValueDefinition,It.BRACE_R)};t.parseEnumValueDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();var r=this.parseName();var i=this.parseDirectives(true);return{kind:mt.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i,loc:this.loc(t)}};t.parseInputObjectTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("input");var r=this.parseName();var i=this.parseDirectives(true);var a=this.parseInputFieldsDefinition();return{kind:mt.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:a,loc:this.loc(t)}};t.parseInputFieldsDefinition=function e(){return this.optionalMany(It.BRACE_L,this.parseInputValueDef,It.BRACE_R)};t.parseTypeSystemExtension=function e(){var t=this._lexer.lookahead();if(t.kind===It.NAME){switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}}throw this.unexpected(t)};t.parseSchemaExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");var n=this.parseDirectives(true);var r=this.optionalMany(It.BRACE_L,this.parseOperationTypeDefinition,It.BRACE_R);if(n.length===0&&r.length===0){throw this.unexpected()}return{kind:mt.SCHEMA_EXTENSION,directives:n,operationTypes:r,loc:this.loc(t)}};t.parseScalarTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");var n=this.parseName();var r=this.parseDirectives(true);if(r.length===0){throw this.unexpected()}return{kind:mt.SCALAR_TYPE_EXTENSION,name:n,directives:r,loc:this.loc(t)}};t.parseObjectTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");var n=this.parseName();var r=this.parseImplementsInterfaces();var i=this.parseDirectives(true);var a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0){throw this.unexpected()}return{kind:mt.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a,loc:this.loc(t)}};t.parseInterfaceTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");var n=this.parseName();var r=this.parseImplementsInterfaces();var i=this.parseDirectives(true);var a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0){throw this.unexpected()}return{kind:mt.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a,loc:this.loc(t)}};t.parseUnionTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");var n=this.parseName();var r=this.parseDirectives(true);var i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0){throw this.unexpected()}return{kind:mt.UNION_TYPE_EXTENSION,name:n,directives:r,types:i,loc:this.loc(t)}};t.parseEnumTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");var n=this.parseName();var r=this.parseDirectives(true);var i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0){throw this.unexpected()}return{kind:mt.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i,loc:this.loc(t)}};t.parseInputObjectTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");var n=this.parseName();var r=this.parseDirectives(true);var i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0){throw this.unexpected()}return{kind:mt.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i,loc:this.loc(t)}};t.parseDirectiveDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("directive");this.expectToken(It.AT);var r=this.parseName();var i=this.parseArgumentDefs();var a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:mt.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:a,locations:o,loc:this.loc(t)}};t.parseDirectiveLocations=function e(){return this.delimitedMany(It.PIPE,this.parseDirectiveLocation)};t.parseDirectiveLocation=function e(){var t=this._lexer.token;var n=this.parseName();if(Bt[n.value]!==undefined){return n}throw this.unexpected(t)};t.loc=function e(t){var n;if(((n=this._options)===null||n===void 0?void 0:n.noLocation)!==true){return new wt(t,this._lexer.lastToken,this._lexer.source)}};t.peek=function e(t){return this._lexer.token.kind===t};t.expectToken=function e(t){var n=this._lexer.token;if(n.kind===t){this._lexer.advance();return n}throw yt(this._lexer.source,n.start,"Expected ".concat(ln(t),", found ").concat(cn(n),"."))};t.expectOptionalToken=function e(t){var n=this._lexer.token;if(n.kind===t){this._lexer.advance();return n}return undefined};t.expectKeyword=function e(t){var n=this._lexer.token;if(n.kind===It.NAME&&n.value===t){this._lexer.advance()}else{throw yt(this._lexer.source,n.start,'Expected "'.concat(t,'", found ').concat(cn(n),"."))}};t.expectOptionalKeyword=function e(t){var n=this._lexer.token;if(n.kind===It.NAME&&n.value===t){this._lexer.advance();return true}return false};t.unexpected=function e(t){var n=t!==null&&t!==void 0?t:this._lexer.token;return yt(this._lexer.source,n.start,"Unexpected ".concat(cn(n),"."))};t.any=function e(t,n,r){this.expectToken(t);var i=[];while(!this.expectOptionalToken(r)){i.push(n.call(this))}return i};t.optionalMany=function e(t,n,r){if(this.expectOptionalToken(t)){var i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(r));return i}return[]};t.many=function e(t,n,r){this.expectToken(t);var i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(r));return i};t.delimitedMany=function e(t,n){this.expectOptionalToken(t);var r=[];do{r.push(n.call(this))}while(this.expectOptionalToken(t));return r};return e}();function cn(e){var t=e.value;return ln(e.kind)+(t!=null?' "'.concat(t,'"'):"")}function ln(e){return Ht(e)?'"'.concat(e,'"'):e}var fn={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};var dn=Object.freeze({});function pn(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:fn;var r=undefined;var i=Array.isArray(e);var a=[e];var o=-1;var s=[];var u=undefined;var c=undefined;var l=undefined;var f=[];var d=[];var p=e;do{o++;var h=o===a.length;var v=h&&s.length!==0;if(h){c=d.length===0?undefined:f[f.length-1];u=l;l=d.pop();if(v){if(i){u=u.slice()}else{var y={};for(var m=0,b=Object.keys(u);m<b.length;m++){var g=b[m];y[g]=u[g]}u=y}var E=0;for(var w=0;w<s.length;w++){var _=s[w][0];var S=s[w][1];if(i){_-=E}if(i&&S===null){u.splice(_,1);E++}else{u[_]=S}}}o=r.index;a=r.keys;s=r.edits;i=r.inArray;r=r.prev}else{c=l?i?o:a[o]:undefined;u=l?l[c]:p;if(u===null||u===undefined){continue}if(l){f.push(c)}}var I=void 0;if(!Array.isArray(u)){if(!St(u)){throw new Error("Invalid AST Node: ".concat(At(u),"."))}var O=hn(t,u.kind,h);if(O){I=O.call(t,u,c,l,f,d);if(I===dn){break}if(I===false){if(!h){f.pop();continue}}else if(I!==undefined){s.push([c,I]);if(!h){if(St(I)){u=I}else{f.pop();continue}}}}}if(I===undefined&&v){s.push([c,u])}if(h){f.pop()}else{var T;r={inArray:i,index:o,keys:a,edits:s,prev:r};i=Array.isArray(u);a=i?u:(T=n[u.kind])!==null&&T!==void 0?T:[];o=-1;s=[];if(l){d.push(l)}l=u}}while(r!==undefined);if(s.length!==0){p=s[s.length-1][1]}return p}function hn(e,t,n){var r=e[t];if(r){if(!n&&typeof r==="function"){return r}var i=n?r.leave:r.enter;if(typeof i==="function"){return i}}else{var a=n?e.leave:e.enter;if(a){if(typeof a==="function"){return a}var o=a[t];if(typeof o==="function"){return o}}}}function vn(e){return pn(e,{leave:mn})}var yn=80;var mn={Name:function e(t){return t.value},Variable:function e(t){return"$"+t.name},Document:function e(t){return gn(t.definitions,"\n\n")+"\n"},OperationDefinition:function e(t){var n=t.operation;var r=t.name;var i=wn("(",gn(t.variableDefinitions,", "),")");var a=gn(t.directives," ");var o=t.selectionSet;return!r&&!a&&!i&&n==="query"?o:gn([n,gn([r,i]),a,o]," ")},VariableDefinition:function e(t){var n=t.variable,r=t.type,i=t.defaultValue,a=t.directives;return n+": "+r+wn(" = ",i)+wn(" ",gn(a," "))},SelectionSet:function e(t){var n=t.selections;return En(n)},Field:function e(t){var n=t.alias,r=t.name,i=t.arguments,a=t.directives,o=t.selectionSet;var s=wn("",n,": ")+r;var u=s+wn("(",gn(i,", "),")");if(u.length>yn){u=s+wn("(\n",_n(gn(i,"\n")),"\n)")}return gn([u,gn(a," "),o]," ")},Argument:function e(t){var n=t.name,r=t.value;return n+": "+r},FragmentSpread:function e(t){var n=t.name,r=t.directives;return"..."+n+wn(" ",gn(r," "))},InlineFragment:function e(t){var n=t.typeCondition,r=t.directives,i=t.selectionSet;return gn(["...",wn("on ",n),gn(r," "),i]," ")},FragmentDefinition:function e(t){var n=t.name,r=t.typeCondition,i=t.variableDefinitions,a=t.directives,o=t.selectionSet;return"fragment ".concat(n).concat(wn("(",gn(i,", "),")")," ")+"on ".concat(r," ").concat(wn("",gn(a," ")," "))+o},IntValue:function e(t){var n=t.value;return n},FloatValue:function e(t){var n=t.value;return n},StringValue:function e(t,n){var r=t.value,i=t.block;return i?Jt(r,n==="description"?"":" "):JSON.stringify(r)},BooleanValue:function e(t){var n=t.value;return n?"true":"false"},NullValue:function e(){return"null"},EnumValue:function e(t){var n=t.value;return n},ListValue:function e(t){var n=t.values;return"["+gn(n,", ")+"]"},ObjectValue:function e(t){var n=t.fields;return"{"+gn(n,", ")+"}"},ObjectField:function e(t){var n=t.name,r=t.value;return n+": "+r},Directive:function e(t){var n=t.name,r=t.arguments;return"@"+n+wn("(",gn(r,", "),")")},NamedType:function e(t){var n=t.name;return n},ListType:function e(t){var n=t.type;return"["+n+"]"},NonNullType:function e(t){var n=t.type;return n+"!"},SchemaDefinition:bn((function(e){var t=e.directives,n=e.operationTypes;return gn(["schema",gn(t," "),En(n)]," ")})),OperationTypeDefinition:function e(t){var n=t.operation,r=t.type;return n+": "+r},ScalarTypeDefinition:bn((function(e){var t=e.name,n=e.directives;return gn(["scalar",t,gn(n," ")]," ")})),ObjectTypeDefinition:bn((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return gn(["type",t,wn("implements ",gn(n," & ")),gn(r," "),En(i)]," ")})),FieldDefinition:bn((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(In(n)?wn("(\n",_n(gn(n,"\n")),"\n)"):wn("(",gn(n,", "),")"))+": "+r+wn(" ",gn(i," "))})),InputValueDefinition:bn((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return gn([t+": "+n,wn("= ",r),gn(i," ")]," ")})),InterfaceTypeDefinition:bn((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return gn(["interface",t,wn("implements ",gn(n," & ")),gn(r," "),En(i)]," ")})),UnionTypeDefinition:bn((function(e){var t=e.name,n=e.directives,r=e.types;return gn(["union",t,gn(n," "),r&&r.length!==0?"= "+gn(r," | "):""]," ")})),EnumTypeDefinition:bn((function(e){var t=e.name,n=e.directives,r=e.values;return gn(["enum",t,gn(n," "),En(r)]," ")})),EnumValueDefinition:bn((function(e){var t=e.name,n=e.directives;return gn([t,gn(n," ")]," ")})),InputObjectTypeDefinition:bn((function(e){var t=e.name,n=e.directives,r=e.fields;return gn(["input",t,gn(n," "),En(r)]," ")})),DirectiveDefinition:bn((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(In(n)?wn("(\n",_n(gn(n,"\n")),"\n)"):wn("(",gn(n,", "),")"))+(r?" repeatable":"")+" on "+gn(i," | ")})),SchemaExtension:function e(t){var n=t.directives,r=t.operationTypes;return gn(["extend schema",gn(n," "),En(r)]," ")},ScalarTypeExtension:function e(t){var n=t.name,r=t.directives;return gn(["extend scalar",n,gn(r," ")]," ")},ObjectTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return gn(["extend type",n,wn("implements ",gn(r," & ")),gn(i," "),En(a)]," ")},InterfaceTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return gn(["extend interface",n,wn("implements ",gn(r," & ")),gn(i," "),En(a)]," ")},UnionTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.types;return gn(["extend union",n,gn(r," "),i&&i.length!==0?"= "+gn(i," | "):""]," ")},EnumTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.values;return gn(["extend enum",n,gn(r," "),En(i)]," ")},InputObjectTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.fields;return gn(["extend input",n,gn(r," "),En(i)]," ")}};function bn(e){return function(t){return gn([t.description,e(t)],"\n")}}function gn(e){var t;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";return(t=e===null||e===void 0?void 0:e.filter((function(e){return e})).join(n))!==null&&t!==void 0?t:""}function En(e){return wn("{\n",_n(gn(e,"\n")),"\n}")}function wn(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"";return t!=null&&t!==""?e+t+n:""}function _n(e){return wn(" ",e.replace(/\n/g,"\n "))}function Sn(e){return e.indexOf("\n")!==-1}function In(e){return e!=null&&e.some(Sn)}function On(e){this.message=e}On.prototype=new Error,On.prototype.name="InvalidCharacterError";var Tn="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new On("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,o="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?o+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function xn(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Tn(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return Tn(t)}}function An(e){this.message=e}function Nn(e,t){if("string"!=typeof e)throw new An("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(xn(e.split(".")[n]))}catch(e){throw new An("Invalid token specified: "+e.message)}}An.prototype=new Error,An.prototype.name="InvalidTokenError";var Dn=i((function(e,t){var n=a&&a.__assign||function(){n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return n.apply(this,arguments)};var r=a&&a.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(t,"__esModule",{value:true});t.renameVariables=t.renameVariablesAndTopLevelFields=t.renameVariablesAndTopLevelFieldsOnOpDef=t.renameSelectionSetArguments=t.renameVariableDefinition=t.renameDirectiveArguments=t.renameArgument=t.renameValue=t.defaultRenameFn=void 0;t.defaultRenameFn=function(e,t){return e+"_"+t};function i(e,t){if(e.kind==="Variable"){return n(n({},e),{name:n(n({},e.name),{value:t(e.name.value)})})}else if(e.kind==="ObjectValue"){return n(n({},e),{fields:e.fields.map((function(e){return n(n({},e),{value:i(e.value,t)})}))})}else if(e.kind==="ListValue"){return n(n({},e),{values:e.values.map((function(e){return i(e,t)}))})}return e}t.renameValue=i;function o(e,t){return n(n({},e),{value:i(e.value,t)})}t.renameArgument=o;function s(e,t){var r;return n(n({},e),{arguments:(r=e.arguments)===null||r===void 0?void 0:r.map((function(e){return o(e,t)}))})}t.renameDirectiveArguments=s;function u(e,t){var r;return n(n({},e),{variable:n(n({},e.variable),{name:n(n({},e.variable.name),{value:t(e.variable.name.value)})}),directives:(r=e.directives)===null||r===void 0?void 0:r.map((function(e){return s(e,t)}))})}t.renameVariableDefinition=u;function c(e,t){return n(n({},e),{selections:e.selections.map((function(e){var r,i,a;switch(e.kind){case"Field":return n(n({},e),{arguments:(r=e.arguments)===null||r===void 0?void 0:r.map((function(e){return o(e,t)})),selectionSet:e.selectionSet?c(e.selectionSet,t):undefined});case"FragmentSpread":return n(n({},e),{directives:(i=e.directives)===null||i===void 0?void 0:i.map((function(e){return s(e,t)}))});case"InlineFragment":return n(n({},e),{directives:(a=e.directives)===null||a===void 0?void 0:a.map((function(e){return s(e,t)})),selectionSet:c(e.selectionSet,t)})}}))})}t.renameSelectionSetArguments=c;function l(e,t,r){var i,a;return n(n({},e),{variableDefinitions:(i=e.variableDefinitions)===null||i===void 0?void 0:i.map((function(e){return u(e,t)})),directives:(a=e.directives)===null||a===void 0?void 0:a.map((function(e){return s(e,t)})),selectionSet:c(n(n({},e.selectionSet),{selections:e.selectionSet.selections.map((function(e){var t,i;switch(e.kind){case"Field":return n(n({},e),{alias:n(n({},e.name),{value:r((i=(t=e.alias)===null||t===void 0?void 0:t.value)!==null&&i!==void 0?i:e.name.value)})});default:return e}}))}),t)})}t.renameVariablesAndTopLevelFieldsOnOpDef=l;function f(e,t,i){return n(n({},e),{definitions:r(e.definitions.filter((function(e){return e.kind!=="OperationDefinition"})),e.definitions.filter((function(e){return e.kind==="OperationDefinition"})).map((function(e){return l(e,t,i)})))})}t.renameVariablesAndTopLevelFields=f;function d(e,t){return Object.keys(e).reduce((function(r,i){var a;return n(n({},r),(a={},a[t(i)]=e[i],a))}),{})}t.renameVariables=d}));var Cn=i((function(e,t){var n=a&&a.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(t.hasOwnProperty(n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var r=a&&a.__assign||function(){r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return r.apply(this,arguments)};var i=a&&a.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(t,"__esModule",{value:true});var o={kind:"Document",definitions:[]};var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Error);var u=function(){function e(e,t,n){this.operationName=e;this.document=t;this.variables=n}e.prototype.add=function(t,n){var a=this;var o=this.document.definitions.concat(t.definitions).filter((function(e){return e.kind==="OperationDefinition"}));if(!o.length){throw new s("Expected at least one OperationDefinition, but found none.")}o.forEach((function(e){var t,n;var r=o.filter((function(t){return t!==e}));r.forEach((function(t){var n,r;if(t.operation!==e.operation){throw new s("expected all operations to be of the smae type, but "+((n=t.name)===null||n===void 0?void 0:n.value)+" is "+t.operation+" and "+((r=e.name)===null||r===void 0?void 0:r.value)+" is "+e.operation)}}));(t=e.selectionSet.selections)===null||t===void 0?void 0:t.filter((function(e){return e.kind==="Field"})).forEach((function(t){r.forEach((function(n){var r;return(r=n.selectionSet.selections)===null||r===void 0?void 0:r.filter((function(e){return e.kind==="Field"})).forEach((function(r){var i,a,o,u;if((((i=t.alias)===null||i===void 0?void 0:i.value)||t.name.value)===(((a=r.alias)===null||a===void 0?void 0:a.value)||r.name.value)){throw new s("duplicate field definition "+r.name.value+" for oprations "+((o=e.name)===null||o===void 0?void 0:o.value)+" and "+((u=n.name)===null||u===void 0?void 0:u.value))}}))}))}));(n=e.variableDefinitions)===null||n===void 0?void 0:n.forEach((function(t){r.forEach((function(n){var r;return(r=n.variableDefinitions)===null||r===void 0?void 0:r.forEach((function(r){var i,a;if(t.variable.name.value===r.variable.name.value){throw new s("duplicate variable definition "+r.variable.name.value+" for oprations "+((i=e.name)===null||i===void 0?void 0:i.value)+" and "+((a=n.name)===null||a===void 0?void 0:a.value))}}))}))}))}));var u=function(){if(a.variables&&n){return r(r({},a.variables),n)}return n||a.variables}();var c=[{kind:"OperationDefinition",directives:o.flatMap((function(e){return e.directives||[]})),name:{kind:"Name",value:this.operationName},operation:o[0].operation,selectionSet:{kind:"SelectionSet",selections:o.flatMap((function(e){return e.selectionSet.selections}))},variableDefinitions:o.flatMap((function(e){return e.variableDefinitions||[]}))}];var l=new Set;var f=this.document.definitions.concat(t.definitions);for(var d=0,p=f;d<p.length;d++){var h=p[d];if(h.kind==="OperationDefinition"){continue}if(h.kind==="FragmentDefinition"){if(l.has(h.name.value)){continue}l.add(h.name.value)}c=i([h],c)}var v={kind:"Document",definitions:c};return new e(this.operationName,v,u)};e.prototype.addN=function(e,t,n,r){if(n===void 0){n=Dn.defaultRenameFn}if(r===void 0){r=Dn.defaultRenameFn}if(!t.length){return this}return t.reduce((function(t,i,a){var o=Dn.renameVariablesAndTopLevelFields(e,(function(e){return n(e,a)}),(function(e){return r(e,a)}));var s=Dn.renameVariables(i,(function(e){return n(e,a)}));return t.add(o,s)}),this)};return e}();function c(e){return{operationName:e,add:function(e,t){return new u(this.operationName,e,t)},addN:function(e,t,n,r){return new u(this.operationName,o).addN(e,t,n,r)}}}t.default=c}));var kn=o(Cn);var Pn=i((function(e,t){var n=typeof self!=="undefined"?self:a;var r=function(){function e(){this.fetch=false;this.DOMException=n.DOMException}e.prototype=n;return new e}();(function(e){var t=function(t){var n={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{new Blob;return true}catch(e){return false}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};function r(e){return e&&DataView.prototype.isPrototypeOf(e)}if(n.arrayBuffer){var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];var a=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1}}function o(e){if(typeof e!=="string"){e=String(e)}if(/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e)){throw new TypeError("Invalid character in header field name")}return e.toLowerCase()}function s(e){if(typeof e!=="string"){e=String(e)}return e}function u(e){var t={next:function(){var t=e.shift();return{done:t===undefined,value:t}}};if(n.iterable){t[Symbol.iterator]=function(){return t}}return t}function c(e){this.map={};if(e instanceof c){e.forEach((function(e,t){this.append(t,e)}),this)}else if(Array.isArray(e)){e.forEach((function(e){this.append(e[0],e[1])}),this)}else if(e){Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}}c.prototype.append=function(e,t){e=o(e);t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};c.prototype["delete"]=function(e){delete this.map[o(e)]};c.prototype.get=function(e){e=o(e);return this.has(e)?this.map[e]:null};c.prototype.has=function(e){return this.map.hasOwnProperty(o(e))};c.prototype.set=function(e,t){this.map[o(e)]=s(t)};c.prototype.forEach=function(e,t){for(var n in this.map){if(this.map.hasOwnProperty(n)){e.call(t,this.map[n],n,this)}}};c.prototype.keys=function(){var e=[];this.forEach((function(t,n){e.push(n)}));return u(e)};c.prototype.values=function(){var e=[];this.forEach((function(t){e.push(t)}));return u(e)};c.prototype.entries=function(){var e=[];this.forEach((function(t,n){e.push([n,t])}));return u(e)};if(n.iterable){c.prototype[Symbol.iterator]=c.prototype.entries}function l(e){if(e.bodyUsed){return Promise.reject(new TypeError("Already read"))}e.bodyUsed=true}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)};e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader;var n=f(t);t.readAsArrayBuffer(e);return n}function p(e){var t=new FileReader;var n=f(t);t.readAsText(e);return n}function h(e){var t=new Uint8Array(e);var n=new Array(t.length);for(var r=0;r<t.length;r++){n[r]=String.fromCharCode(t[r])}return n.join("")}function v(e){if(e.slice){return e.slice(0)}else{var t=new Uint8Array(e.byteLength);t.set(new Uint8Array(e));return t.buffer}}function y(){this.bodyUsed=false;this._initBody=function(e){this._bodyInit=e;if(!e){this._bodyText=""}else if(typeof e==="string"){this._bodyText=e}else if(n.blob&&Blob.prototype.isPrototypeOf(e)){this._bodyBlob=e}else if(n.formData&&FormData.prototype.isPrototypeOf(e)){this._bodyFormData=e}else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)){this._bodyText=e.toString()}else if(n.arrayBuffer&&n.blob&&r(e)){this._bodyArrayBuffer=v(e.buffer);this._bodyInit=new Blob([this._bodyArrayBuffer])}else if(n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))){this._bodyArrayBuffer=v(e)}else{this._bodyText=e=Object.prototype.toString.call(e)}if(!this.headers.get("content-type")){if(typeof e==="string"){this.headers.set("content-type","text/plain;charset=UTF-8")}else if(this._bodyBlob&&this._bodyBlob.type){this.headers.set("content-type",this._bodyBlob.type)}else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)){this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8")}}};if(n.blob){this.blob=function(){var e=l(this);if(e){return e}if(this._bodyBlob){return Promise.resolve(this._bodyBlob)}else if(this._bodyArrayBuffer){return Promise.resolve(new Blob([this._bodyArrayBuffer]))}else if(this._bodyFormData){throw new Error("could not read FormData body as blob")}else{return Promise.resolve(new Blob([this._bodyText]))}};this.arrayBuffer=function(){if(this._bodyArrayBuffer){return l(this)||Promise.resolve(this._bodyArrayBuffer)}else{return this.blob().then(d)}}}this.text=function(){var e=l(this);if(e){return e}if(this._bodyBlob){return p(this._bodyBlob)}else if(this._bodyArrayBuffer){return Promise.resolve(h(this._bodyArrayBuffer))}else if(this._bodyFormData){throw new Error("could not read FormData body as text")}else{return Promise.resolve(this._bodyText)}};if(n.formData){this.formData=function(){return this.text().then(E)}}this.json=function(){return this.text().then(JSON.parse)};return this}var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e){var t=e.toUpperCase();return m.indexOf(t)>-1?t:e}function g(e,t){t=t||{};var n=t.body;if(e instanceof g){if(e.bodyUsed){throw new TypeError("Already read")}this.url=e.url;this.credentials=e.credentials;if(!t.headers){this.headers=new c(e.headers)}this.method=e.method;this.mode=e.mode;this.signal=e.signal;if(!n&&e._bodyInit!=null){n=e._bodyInit;e.bodyUsed=true}}else{this.url=String(e)}this.credentials=t.credentials||this.credentials||"same-origin";if(t.headers||!this.headers){this.headers=new c(t.headers)}this.method=b(t.method||this.method||"GET");this.mode=t.mode||this.mode||null;this.signal=t.signal||this.signal;this.referrer=null;if((this.method==="GET"||this.method==="HEAD")&&n){throw new TypeError("Body not allowed for GET or HEAD requests")}this._initBody(n)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})};function E(e){var t=new FormData;e.trim().split("&").forEach((function(e){if(e){var n=e.split("=");var r=n.shift().replace(/\+/g," ");var i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}));return t}function w(e){var t=new c;var n=e.replace(/\r?\n[\t ]+/g," ");n.split(/\r?\n/).forEach((function(e){var n=e.split(":");var r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}));return t}y.call(g.prototype);function _(e,t){if(!t){t={}}this.type="default";this.status=t.status===undefined?200:t.status;this.ok=this.status>=200&&this.status<300;this.statusText="statusText"in t?t.statusText:"OK";this.headers=new c(t.headers);this.url=t.url||"";this._initBody(e)}y.call(_.prototype);_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})};_.error=function(){var e=new _(null,{status:0,statusText:""});e.type="error";return e};var S=[301,302,303,307,308];_.redirect=function(e,t){if(S.indexOf(t)===-1){throw new RangeError("Invalid status code")}return new _(null,{status:t,headers:{location:e}})};t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e;this.name=t;var n=Error(e);this.stack=n.stack};t.DOMException.prototype=Object.create(Error.prototype);t.DOMException.prototype.constructor=t.DOMException}function I(e,r){return new Promise((function(i,a){var o=new g(e,r);if(o.signal&&o.signal.aborted){return a(new t.DOMException("Aborted","AbortError"))}var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:w(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;i(new _(t,e))};s.onerror=function(){a(new TypeError("Network request failed"))};s.ontimeout=function(){a(new TypeError("Network request failed"))};s.onabort=function(){a(new t.DOMException("Aborted","AbortError"))};s.open(o.method,o.url,true);if(o.credentials==="include"){s.withCredentials=true}else if(o.credentials==="omit"){s.withCredentials=false}if("responseType"in s&&n.blob){s.responseType="blob"}o.headers.forEach((function(e,t){s.setRequestHeader(t,e)}));if(o.signal){o.signal.addEventListener("abort",u);s.onreadystatechange=function(){if(s.readyState===4){o.signal.removeEventListener("abort",u)}}}s.send(typeof o._bodyInit==="undefined"?null:o._bodyInit)}))}I.polyfill=true;if(!e.fetch){e.fetch=I;e.Headers=c;e.Request=g;e.Response=_}t.Headers=c;t.Request=g;t.Response=_;t.fetch=I;Object.defineProperty(t,"__esModule",{value:true});return t}({})})(r);r.fetch.ponyfill=true;delete r.fetch.polyfill;var i=r;t=i.fetch;t.default=i.fetch;t.fetch=i.fetch;t.Headers=i.Headers;t.Request=i.Request;t.Response=i.Response;e.exports=t}));var Fn=i((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):undefined;var r=n;t.default=r}));var jn=i((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=s;var n=r(Fn);function r(e){return e&&e.__esModule?e:{default:e}}function i(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){i=function e(t){return typeof t}}else{i=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return i(e)}var a=10;var o=2;function s(e){return u(e,[])}function u(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":if(e===null){return"null"}return c(e,t);default:return String(e)}}function c(e,t){if(t.indexOf(e)!==-1){return"[Circular]"}var n=[].concat(t,[e]);var r=d(e);if(r!==undefined){var i=r.call(e);if(i!==e){return typeof i==="string"?i:u(i,n)}}else if(Array.isArray(e)){return f(e,n)}return l(e,n)}function l(e,t){var n=Object.keys(e);if(n.length===0){return"{}"}if(t.length>o){return"["+p(e)+"]"}var r=n.map((function(n){var r=u(e[n],t);return n+": "+r}));return"{ "+r.join(", ")+" }"}function f(e,t){if(e.length===0){return"[]"}if(t.length>o){return"[Array]"}var n=Math.min(a,e.length);var r=e.length-n;var i=[];for(var s=0;s<n;++s){i.push(u(e[s],t))}if(r===1){i.push("... 1 more item")}else if(r>1){i.push("... ".concat(r," more items"))}return"["+i.join(", ")+"]"}function d(e){var t=e[String(n.default)];if(typeof t==="function"){return t}if(typeof e.inspect==="function"){return e.inspect}}function p(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){var n=e.constructor.name;if(typeof n==="string"&&n!==""){return n}}return t}}));var Rn=i((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=n;function n(e,t){var n=Boolean(e);if(!n){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}}));var Mn=i((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=a;var n=i(Rn);var r=i(Fn);function i(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.prototype.toJSON;typeof t==="function"||(0,n.default)(0);e.prototype.inspect=t;if(r.default){e.prototype[r.default]=t}}}));var Ln=i((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.isNode=o;t.Token=t.Location=void 0;var n=r(Mn);function r(e){return e&&e.__esModule?e:{default:e}}var i=function(){function e(e,t,n){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=n}var t=e.prototype;t.toJSON=function e(){return{start:this.start,end:this.end}};return e}();t.Location=i;(0,n.default)(i);var a=function(){function e(e,t,n,r,i,a,o){this.kind=e;this.start=t;this.end=n;this.line=r;this.column=i;this.value=o;this.prev=a;this.next=null}var t=e.prototype;t.toJSON=function e(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};return e}();t.Token=a;(0,n.default)(a);function o(e){return e!=null&&typeof e.kind==="string"}}));var qn=i((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.visit=o;t.visitInParallel=s;t.getVisitFn=u;t.BREAK=t.QueryDocumentKeys=void 0;var n=r(jn);function r(e){return e&&e.__esModule?e:{default:e}}var i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=i;var a=Object.freeze({});t.BREAK=a;function o(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:i;var o=undefined;var s=Array.isArray(e);var c=[e];var l=-1;var f=[];var d=undefined;var p=undefined;var h=undefined;var v=[];var y=[];var m=e;do{l++;var b=l===c.length;var g=b&&f.length!==0;if(b){p=y.length===0?undefined:v[v.length-1];d=h;h=y.pop();if(g){if(s){d=d.slice()}else{var E={};for(var w=0,_=Object.keys(d);w<_.length;w++){var S=_[w];E[S]=d[S]}d=E}var I=0;for(var O=0;O<f.length;O++){var T=f[O][0];var x=f[O][1];if(s){T-=I}if(s&&x===null){d.splice(T,1);I++}else{d[T]=x}}}l=o.index;c=o.keys;f=o.edits;s=o.inArray;o=o.prev}else{p=h?s?l:c[l]:undefined;d=h?h[p]:m;if(d===null||d===undefined){continue}if(h){v.push(p)}}var A=void 0;if(!Array.isArray(d)){if(!(0,Ln.isNode)(d)){throw new Error("Invalid AST Node: ".concat((0,n.default)(d),"."))}var N=u(t,d.kind,b);if(N){A=N.call(t,d,p,h,v,y);if(A===a){break}if(A===false){if(!b){v.pop();continue}}else if(A!==undefined){f.push([p,A]);if(!b){if((0,Ln.isNode)(A)){d=A}else{v.pop();continue}}}}}if(A===undefined&&g){f.push([p,d])}if(b){v.pop()}else{var D;o={inArray:s,index:l,keys:c,edits:f,prev:o};s=Array.isArray(d);c=s?d:(D=r[d.kind])!==null&&D!==void 0?D:[];l=-1;f=[];if(h){y.push(h)}h=d}}while(o!==undefined);if(f.length!==0){m=f[f.length-1][1]}return m}function s(e){var t=new Array(e.length);return{enter:function n(r){for(var i=0;i<e.length;i++){if(t[i]==null){var o=u(e[i],r.kind,false);if(o){var s=o.apply(e[i],arguments);if(s===false){t[i]=r}else if(s===a){t[i]=a}else if(s!==undefined){return s}}}}},leave:function n(r){for(var i=0;i<e.length;i++){if(t[i]==null){var o=u(e[i],r.kind,true);if(o){var s=o.apply(e[i],arguments);if(s===a){t[i]=a}else if(s!==undefined&&s!==false){return s}}}else if(t[i]===r){t[i]=null}}}}}function u(e,t,n){var r=e[t];if(r){if(!n&&typeof r==="function"){return r}var i=n?r.leave:r.enter;if(typeof i==="function"){return i}}else{var a=n?e.leave:e.enter;if(a){if(typeof a==="function"){return a}var o=a[t];if(typeof o==="function"){return o}}}}}));var Vn=i((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringValue=n;t.getBlockStringIndentation=i;t.printBlockString=a;function n(e){var t=e.split(/\r\n|[\n\r]/g);var n=i(e);if(n!==0){for(var a=1;a<t.length;a++){t[a]=t[a].slice(n)}}var o=0;while(o<t.length&&r(t[o])){++o}var s=t.length;while(s>o&&r(t[s-1])){--s}return t.slice(o,s).join("\n")}function r(e){for(var t=0;t<e.length;++t){if(e[t]!==" "&&e[t]!=="\t"){return false}}return true}function i(e){var t;var n=true;var r=true;var i=0;var a=null;for(var o=0;o<e.length;++o){switch(e.charCodeAt(o)){case 13:if(e.charCodeAt(o+1)===10){++o}case 10:n=false;r=true;i=0;break;case 9:case 32:++i;break;default:if(r&&!n&&(a===null||i<a)){a=i}r=false}}return(t=a)!==null&&t!==void 0?t:0}function a(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var r=e.indexOf("\n")===-1;var i=e[0]===" "||e[0]==="\t";var a=e[e.length-1]==='"';var o=e[e.length-1]==="\\";var s=!r||a||o||n;var u="";if(s&&!(r&&i)){u+="\n"+t}u+=t?e.replace(/\n/g,"\n"+t):e;if(s){u+="\n"}return'"""'+u.replace(/"""/g,'\\"""')+'"""'}}));var Bn=i((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.print=n;function n(e){return(0,qn.visit)(e,{leave:i})}var r=80;var i={Name:function e(t){return t.value},Variable:function e(t){return"$"+t.name},Document:function e(t){return o(t.definitions,"\n\n")+"\n"},OperationDefinition:function e(t){var n=t.operation;var r=t.name;var i=u("(",o(t.variableDefinitions,", "),")");var a=o(t.directives," ");var s=t.selectionSet;return!r&&!a&&!i&&n==="query"?s:o([n,o([r,i]),a,s]," ")},VariableDefinition:function e(t){var n=t.variable,r=t.type,i=t.defaultValue,a=t.directives;return n+": "+r+u(" = ",i)+u(" ",o(a," "))},SelectionSet:function e(t){var n=t.selections;return s(n)},Field:function e(t){var n=t.alias,i=t.name,a=t.arguments,s=t.directives,l=t.selectionSet;var f=u("",n,": ")+i;var d=f+u("(",o(a,", "),")");if(d.length>r){d=f+u("(\n",c(o(a,"\n")),"\n)")}return o([d,o(s," "),l]," ")},Argument:function e(t){var n=t.name,r=t.value;return n+": "+r},FragmentSpread:function e(t){var n=t.name,r=t.directives;return"..."+n+u(" ",o(r," "))},InlineFragment:function e(t){var n=t.typeCondition,r=t.directives,i=t.selectionSet;return o(["...",u("on ",n),o(r," "),i]," ")},FragmentDefinition:function e(t){var n=t.name,r=t.typeCondition,i=t.variableDefinitions,a=t.directives,s=t.selectionSet;return"fragment ".concat(n).concat(u("(",o(i,", "),")")," ")+"on ".concat(r," ").concat(u("",o(a," ")," "))+s},IntValue:function e(t){var n=t.value;return n},FloatValue:function e(t){var n=t.value;return n},StringValue:function e(t,n){var r=t.value,i=t.block;return i?(0,Vn.printBlockString)(r,n==="description"?"":" "):JSON.stringify(r)},BooleanValue:function e(t){var n=t.value;return n?"true":"false"},NullValue:function e(){return"null"},EnumValue:function e(t){var n=t.value;return n},ListValue:function e(t){var n=t.values;return"["+o(n,", ")+"]"},ObjectValue:function e(t){var n=t.fields;return"{"+o(n,", ")+"}"},ObjectField:function e(t){var n=t.name,r=t.value;return n+": "+r},Directive:function e(t){var n=t.name,r=t.arguments;return"@"+n+u("(",o(r,", "),")")},NamedType:function e(t){var n=t.name;return n},ListType:function e(t){var n=t.type;return"["+n+"]"},NonNullType:function e(t){var n=t.type;return n+"!"},SchemaDefinition:a((function(e){var t=e.directives,n=e.operationTypes;return o(["schema",o(t," "),s(n)]," ")})),OperationTypeDefinition:function e(t){var n=t.operation,r=t.type;return n+": "+r},ScalarTypeDefinition:a((function(e){var t=e.name,n=e.directives;return o(["scalar",t,o(n," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["type",t,u("implements ",o(n," & ")),o(r," "),s(i)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(f(n)?u("(\n",c(o(n,"\n")),"\n)"):u("(",o(n,", "),")"))+": "+r+u(" ",o(i," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return o([t+": "+n,u("= ",r),o(i," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["interface",t,u("implements ",o(n," & ")),o(r," "),s(i)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return o(["union",t,o(n," "),r&&r.length!==0?"= "+o(r," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return o(["enum",t,o(n," "),s(r)]," ")})),EnumValueDefinition:a((function(e){var t=e.name,n=e.directives;return o([t,o(n," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return o(["input",t,o(n," "),s(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(f(n)?u("(\n",c(o(n,"\n")),"\n)"):u("(",o(n,", "),")"))+(r?" repeatable":"")+" on "+o(i," | ")})),SchemaExtension:function e(t){var n=t.directives,r=t.operationTypes;return o(["extend schema",o(n," "),s(r)]," ")},ScalarTypeExtension:function e(t){var n=t.name,r=t.directives;return o(["extend scalar",n,o(r," ")]," ")},ObjectTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return o(["extend type",n,u("implements ",o(r," & ")),o(i," "),s(a)]," ")},InterfaceTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return o(["extend interface",n,u("implements ",o(r," & ")),o(i," "),s(a)]," ")},UnionTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.types;return o(["extend union",n,o(r," "),i&&i.length!==0?"= "+o(i," | "):""]," ")},EnumTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.values;return o(["extend enum",n,o(r," "),s(i)]," ")},InputObjectTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.fields;return o(["extend input",n,o(r," "),s(i)]," ")}};function a(e){return function(t){return o([t.description,e(t)],"\n")}}function o(e){var t;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";return(t=e===null||e===void 0?void 0:e.filter((function(e){return e})).join(n))!==null&&t!==void 0?t:""}function s(e){return u("{\n",c(o(e,"\n")),"\n}")}function u(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"";return t!=null&&t!==""?e+t+n:""}function c(e){return u(" ",e.replace(/\n/g,"\n "))}function l(e){return e.indexOf("\n")!==-1}function f(e){return e!=null&&e.some(l)}}));var Un=function e(t){var n=t.uri,r=t.name,i=t.type;this.uri=n;this.name=r;this.type=i};var $n=function e(t){return typeof File!=="undefined"&&t instanceof File||typeof Blob!=="undefined"&&t instanceof Blob||t instanceof Un};var Gn=function e(t,n,r){if(n===void 0){n=""}if(r===void 0){r=$n}var i;var a=new Map;function o(e,t){var n=a.get(t);if(n)n.push.apply(n,e);else a.set(t,e)}if(r(t)){i=null;o([n],t)}else{var s=n?n+".":"";if(typeof FileList!=="undefined"&&t instanceof FileList)i=Array.prototype.map.call(t,(function(e,t){o([""+s+t],e);return null}));else if(Array.isArray(t))i=t.map((function(t,n){var i=e(t,""+s+n,r);i.files.forEach(o);return i.clone}));else if(t&&t.constructor===Object){i={};for(var u in t){var c=e(t[u],""+s+u,r);c.files.forEach(o);i[u]=c.clone}}else i=t}return{clone:i,files:a}};var Jn=Un;var Kn=Gn;var Hn=$n;var Wn={ReactNativeFile:Jn,extractFiles:Kn,isExtractableFile:Hn};var Yn=typeof self=="object"?self.FormData:window.FormData;var zn=i((function(e,t){var n=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var r=n(Yn);var i=function(e){return Wn.isExtractableFile(e)||e!==null&&typeof e==="object"&&typeof e.pipe==="function"};function o(e,t){var n=Wn.extractFiles({query:e,variables:t},"",i),a=n.clone,o=n.files;if(o.size===0){return JSON.stringify(a)}var s=typeof FormData==="undefined"?r.default:FormData;var u=new s;u.append("operations",JSON.stringify(a));var c={};var l=0;o.forEach((function(e){c[++l]=e}));u.append("map",JSON.stringify(c));l=0;o.forEach((function(e,t){u.append(""+ ++l,t)}));return u}t.default=o}));var Qn=i((function(e,t){var n=a&&a.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:true});t.ClientError=void 0;var r=function(e){n(t,e);function t(n,r){var i=this;var a=t.extractMessage(n)+": "+JSON.stringify({response:n,request:r});i=e.call(this,a)||this;Object.setPrototypeOf(i,t.prototype);i.response=n;i.request=r;if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(i,t)}return i}t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: "+e.status+")"}};return t}(Error);t.ClientError=r}));var Xn=e("d",i((function(e,t){var n=a&&a.__assign||function(){n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return n.apply(this,arguments)};var r=a&&a.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var i=a&&a.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=a&&a.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))r(t,e,n);i(t,e);return t};var s=a&&a.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):i(e.value).then(o,s)}u((r=r.apply(e,t||[])).next())}))};var u=a&&a.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var c=a&&a.__rest||function(e,t){var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)n[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++){if(t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i]))n[r[i]]=e[r[i]]}return n};var l=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.gql=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var f=o(Pn),d=f;var p=l(zn);var h=Qn;Object.defineProperty(t,"ClientError",{enumerable:true,get:function(){return h.ClientError}});var v=function(e){var t={};if(e){if(typeof Headers!=="undefined"&&e instanceof Headers||e instanceof d.Headers){t=_(e)}else if(Array.isArray(e)){e.forEach((function(e){var n=e[0],r=e[1];t[n]=r}))}else{t=e}}return t};var y=function(){function e(e,t){this.url=e;this.options=t||{}}e.prototype.rawRequest=function(e,t,r){return s(this,void 0,void 0,(function(){var i,a,o,s,l,d,h,y,m,b,E;return u(this,(function(u){switch(u.label){case 0:i=this.options,a=i.headers,o=i.fetch,s=o===void 0?f.default:o,l=c(i,["headers","fetch"]);d=p.default(e,t);return[4,s(this.url,n({method:"POST",headers:n(n(n({},typeof d==="string"?{"Content-Type":"application/json"}:{}),v(a)),v(r)),body:d},l))];case 1:h=u.sent();return[4,g(h)];case 2:y=u.sent();if(h.ok&&!y.errors&&y.data){m=h.headers,b=h.status;return[2,n(n({},y),{headers:m,status:b})]}else{E=typeof y==="string"?{error:y}:y;throw new Qn.ClientError(n(n({},E),{status:h.status,headers:h.headers}),{query:e,variables:t})}}}))}))};e.prototype.request=function(e,t,r){return s(this,void 0,void 0,(function(){var i,a,o,s,l,d,h,y,m,b;return u(this,(function(u){switch(u.label){case 0:i=this.options,a=i.headers,o=i.fetch,s=o===void 0?f.default:o,l=c(i,["headers","fetch"]);d=E(e);h=p.default(d,t);return[4,s(this.url,n({method:"POST",headers:n(n(n({},typeof h==="string"?{"Content-Type":"application/json"}:{}),v(a)),v(r)),body:h},l))];case 1:y=u.sent();return[4,g(y)];case 2:m=u.sent();if(y.ok&&!m.errors&&m.data){return[2,m.data]}else{b=typeof m==="string"?{error:m}:m;throw new Qn.ClientError(n(n({},b),{status:y.status}),{query:d,variables:t})}}}))}))};e.prototype.setHeaders=function(e){this.options.headers=e;return this};e.prototype.setHeader=function(e,t){var n;var r=this.options.headers;if(r){r[e]=t}else{this.options.headers=(n={},n[e]=t,n)}return this};return e}();t.GraphQLClient=y;function m(e,t,n){return s(this,void 0,void 0,(function(){var r;return u(this,(function(i){r=new y(e);return[2,r.rawRequest(t,n)]}))}))}t.rawRequest=m;function b(e,t,n){return s(this,void 0,void 0,(function(){var r;return u(this,(function(i){r=new y(e);return[2,r.request(t,n)]}))}))}t.request=b;t.default=b;function g(e){var t=e.headers.get("Content-Type");if(t&&t.startsWith("application/json")){return e.json()}else{return e.text()}}function E(e){if(typeof e==="string")return e;return Bn.print(e)}function w(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}return e.reduce((function(e,n,r){return""+e+n+(r in t?t[r]:"")}),"")}t.gql=w;function _(e){var t={};e.forEach((function(e,n){t[n]=e}));return t}})));var Zn=function(e){if(e===void 0){e=21}var t="";var n=crypto.getRandomValues(new Uint8Array(e));while(e--){var r=n[e]&63;if(r<36){t+=r.toString(36)}else if(r<62){t+=(r-26).toString(36).toUpperCase()}else if(r<63){t+="_"}else{t+="-"}}return t};function er(e){return typeof e==="function"}var tr=false;var nr={Promise:undefined,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else if(tr){console.log("RxJS: Back to a better error behavior. Thank you. <3")}tr=e},get useDeprecatedSynchronousErrorHandling(){return tr}};function rr(e){setTimeout((function(){throw e}),0)}var ir={closed:true,next:function(e){},error:function(e){if(nr.useDeprecatedSynchronousErrorHandling){throw e}else{rr(e)}},complete:function(){}};var ar=function(){return Array.isArray||function(e){return e&&typeof e.length==="number"}}();function or(e){return e!==null&&typeof e==="object"}var sr=function(){function e(e){Error.call(this);this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"";this.name="UnsubscriptionError";this.errors=e;return this}e.prototype=Object.create(Error.prototype);return e}();var ur=sr;var cr=function(){function e(e){this.closed=false;this._parentOrParents=null;this._subscriptions=null;if(e){this._ctorUnsubscribe=true;this._unsubscribe=e}}e.prototype.unsubscribe=function(){var t;if(this.closed){return}var n=this,r=n._parentOrParents,i=n._ctorUnsubscribe,a=n._unsubscribe,o=n._subscriptions;this.closed=true;this._parentOrParents=null;this._subscriptions=null;if(r instanceof e){r.remove(this)}else if(r!==null){for(var s=0;s<r.length;++s){var u=r[s];u.remove(this)}}if(er(a)){if(i){this._unsubscribe=undefined}try{a.call(this)}catch(e){t=e instanceof ur?lr(e.errors):[e]}}if(ar(o)){var s=-1;var c=o.length;while(++s<c){var l=o[s];if(or(l)){try{l.unsubscribe()}catch(e){t=t||[];if(e instanceof ur){t=t.concat(lr(e.errors))}else{t.push(e)}}}}}if(t){throw new ur(t)}};e.prototype.add=function(t){var n=t;if(!t){return e.EMPTY}switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||typeof n.unsubscribe!=="function"){return n}else if(this.closed){n.unsubscribe();return n}else if(!(n instanceof e)){var r=n;n=new e;n._subscriptions=[r]}break;default:{throw new Error("unrecognized teardown "+t+" added to Subscription.")}}var i=n._parentOrParents;if(i===null){n._parentOrParents=this}else if(i instanceof e){if(i===this){return n}n._parentOrParents=[i,this]}else if(i.indexOf(this)===-1){i.push(this)}else{return n}var a=this._subscriptions;if(a===null){this._subscriptions=[n]}else{a.push(n)}return n};e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);if(n!==-1){t.splice(n,1)}}};return e}();cr.EMPTY=function(e){e.closed=true;return e}(new cr);function lr(e){return e.reduce((function(e,t){return e.concat(t instanceof ur?t.errors:t)}),[])}var fr=function(){return typeof Symbol==="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();var dr=function(e){__extends(t,e);function t(n,r,i){var a=e.call(this)||this;a.syncErrorValue=null;a.syncErrorThrown=false;a.syncErrorThrowable=false;a.isStopped=false;switch(arguments.length){case 0:a.destination=ir;break;case 1:if(!n){a.destination=ir;break}if(typeof n==="object"){if(n instanceof t){a.syncErrorThrowable=n.syncErrorThrowable;a.destination=n;n.add(a)}else{a.syncErrorThrowable=true;a.destination=new pr(a,n)}break}default:a.syncErrorThrowable=true;a.destination=new pr(a,n,r,i);break}return a}t.prototype[fr]=function(){return this};t.create=function(e,n,r){var i=new t(e,n,r);i.syncErrorThrowable=false;return i};t.prototype.next=function(e){if(!this.isStopped){this._next(e)}};t.prototype.error=function(e){if(!this.isStopped){this.isStopped=true;this._error(e)}};t.prototype.complete=function(){if(!this.isStopped){this.isStopped=true;this._complete()}};t.prototype.unsubscribe=function(){if(this.closed){return}this.isStopped=true;e.prototype.unsubscribe.call(this)};t.prototype._next=function(e){this.destination.next(e)};t.prototype._error=function(e){this.destination.error(e);this.unsubscribe()};t.prototype._complete=function(){this.destination.complete();this.unsubscribe()};t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;this._parentOrParents=null;this.unsubscribe();this.closed=false;this.isStopped=false;this._parentOrParents=e;return this};return t}(cr);var pr=function(e){__extends(t,e);function t(t,n,r,i){var a=e.call(this)||this;a._parentSubscriber=t;var o;var s=a;if(er(n)){o=n}else if(n){o=n.next;r=n.error;i=n.complete;if(n!==ir){s=Object.create(n);if(er(s.unsubscribe)){a.add(s.unsubscribe.bind(s))}s.unsubscribe=a.unsubscribe.bind(a)}}a._context=s;a._next=o;a._error=r;a._complete=i;return a}t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;if(!nr.useDeprecatedSynchronousErrorHandling||!t.syncErrorThrowable){this.__tryOrUnsub(this._next,e)}else if(this.__tryOrSetError(t,this._next,e)){this.unsubscribe()}}};t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;var n=nr.useDeprecatedSynchronousErrorHandling;if(this._error){if(!n||!t.syncErrorThrowable){this.__tryOrUnsub(this._error,e);this.unsubscribe()}else{this.__tryOrSetError(t,this._error,e);this.unsubscribe()}}else if(!t.syncErrorThrowable){this.unsubscribe();if(n){throw e}rr(e)}else{if(n){t.syncErrorValue=e;t.syncErrorThrown=true}else{rr(e)}this.unsubscribe()}}};t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};if(!nr.useDeprecatedSynchronousErrorHandling||!t.syncErrorThrowable){this.__tryOrUnsub(n);this.unsubscribe()}else{this.__tryOrSetError(t,n);this.unsubscribe()}}else{this.unsubscribe()}}};t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){this.unsubscribe();if(nr.useDeprecatedSynchronousErrorHandling){throw e}else{rr(e)}}};t.prototype.__tryOrSetError=function(e,t,n){if(!nr.useDeprecatedSynchronousErrorHandling){throw new Error("bad call")}try{t.call(this._context,n)}catch(t){if(nr.useDeprecatedSynchronousErrorHandling){e.syncErrorValue=t;e.syncErrorThrown=true;return true}else{rr(t);return true}}return false};t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null;this._parentSubscriber=null;e.unsubscribe()};return t}(dr);function hr(e){while(e){var t=e.closed,n=e.destination,r=e.isStopped;if(t||r){return false}else if(n&&n instanceof dr){e=n}else{e=null}}return true}function vr(e,t,n){if(e){if(e instanceof dr){return e}if(e[fr]){return e[fr]()}}if(!e&&!t&&!n){return new dr(ir)}return new dr(e,t,n)}var yr=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}();function mr(e){return e}function br(e){if(e.length===0){return mr}if(e.length===1){return e[0]}return function t(n){return e.reduce((function(e,t){return t(e)}),n)}}var gr=function(){function e(e){this._isScalar=false;if(e){this._subscribe=e}}e.prototype.lift=function(t){var n=new e;n.source=this;n.operator=t;return n};e.prototype.subscribe=function(e,t,n){var r=this.operator;var i=vr(e,t,n);if(r){i.add(r.call(i,this.source))}else{i.add(this.source||nr.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i))}if(nr.useDeprecatedSynchronousErrorHandling){if(i.syncErrorThrowable){i.syncErrorThrowable=false;if(i.syncErrorThrown){throw i.syncErrorValue}}}return i};e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){if(nr.useDeprecatedSynchronousErrorHandling){e.syncErrorThrown=true;e.syncErrorValue=t}if(hr(e)){e.error(t)}else{console.warn(t)}}};e.prototype.forEach=function(e,t){var n=this;t=Er(t);return new t((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(e){r(e);if(i){i.unsubscribe()}}}),r,t)}))};e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)};e.prototype[yr]=function(){return this};e.prototype.pipe=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}if(e.length===0){return this}return br(e)(this)};e.prototype.toPromise=function(e){var t=this;e=Er(e);return new e((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))};return e}();gr.create=function(e){return new gr(e)};function Er(e){if(!e){e=Promise}if(!e){throw new Error("no Promise impl found")}return e}var wr=function(){function e(){Error.call(this);this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}e.prototype=Object.create(Error.prototype);return e}();var _r=wr;var Sr=function(e){__extends(t,e);function t(t,n){var r=e.call(this)||this;r.subject=t;r.subscriber=n;r.closed=false;return r}t.prototype.unsubscribe=function(){if(this.closed){return}this.closed=true;var e=this.subject;var t=e.observers;this.subject=null;if(!t||t.length===0||e.isStopped||e.closed){return}var n=t.indexOf(this.subscriber);if(n!==-1){t.splice(n,1)}};return t}(cr);var Ir=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.destination=t;return n}return t}(dr);var Or=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.observers=[];t.closed=false;t.isStopped=false;t.hasError=false;t.thrownError=null;return t}t.prototype[fr]=function(){return new Ir(this)};t.prototype.lift=function(e){var t=new Tr(this,this);t.operator=e;return t};t.prototype.next=function(e){if(this.closed){throw new _r}if(!this.isStopped){var t=this.observers;var n=t.length;var r=t.slice();for(var i=0;i<n;i++){r[i].next(e)}}};t.prototype.error=function(e){if(this.closed){throw new _r}this.hasError=true;this.thrownError=e;this.isStopped=true;var t=this.observers;var n=t.length;var r=t.slice();for(var i=0;i<n;i++){r[i].error(e)}this.observers.length=0};t.prototype.complete=function(){if(this.closed){throw new _r}this.isStopped=true;var e=this.observers;var t=e.length;var n=e.slice();for(var r=0;r<t;r++){n[r].complete()}this.observers.length=0};t.prototype.unsubscribe=function(){this.isStopped=true;this.closed=true;this.observers=null};t.prototype._trySubscribe=function(t){if(this.closed){throw new _r}else{return e.prototype._trySubscribe.call(this,t)}};t.prototype._subscribe=function(e){if(this.closed){throw new _r}else if(this.hasError){e.error(this.thrownError);return cr.EMPTY}else if(this.isStopped){e.complete();return cr.EMPTY}else{this.observers.push(e);return new Sr(this,e)}};t.prototype.asObservable=function(){var e=new gr;e.source=this;return e};return t}(gr);Or.create=function(e,t){return new Tr(e,t)};var Tr=function(e){__extends(t,e);function t(t,n){var r=e.call(this)||this;r.destination=t;r.source=n;return r}t.prototype.next=function(e){var t=this.destination;if(t&&t.next){t.next(e)}};t.prototype.error=function(e){var t=this.destination;if(t&&t.error){this.destination.error(e)}};t.prototype.complete=function(){var e=this.destination;if(e&&e.complete){this.destination.complete()}};t.prototype._subscribe=function(e){var t=this.source;if(t){return this.source.subscribe(e)}else{return cr.EMPTY}};return t}(Or);var xr=function(e){__extends(t,e);function t(t,n){return e.call(this)||this}t.prototype.schedule=function(e,t){if(t===void 0){t=0}return this};return t}(cr);var Ar=function(e){__extends(t,e);function t(t,n){var r=e.call(this,t,n)||this;r.scheduler=t;r.work=n;r.pending=false;return r}t.prototype.schedule=function(e,t){if(t===void 0){t=0}if(this.closed){return this}this.state=e;var n=this.id;var r=this.scheduler;if(n!=null){this.id=this.recycleAsyncId(r,n,t)}this.pending=true;this.delay=t;this.id=this.id||this.requestAsyncId(r,this.id,t);return this};t.prototype.requestAsyncId=function(e,t,n){if(n===void 0){n=0}return setInterval(e.flush.bind(e,this),n)};t.prototype.recycleAsyncId=function(e,t,n){if(n===void 0){n=0}if(n!==null&&this.delay===n&&this.pending===false){return t}clearInterval(t);return undefined};t.prototype.execute=function(e,t){if(this.closed){return new Error("executing a cancelled action")}this.pending=false;var n=this._execute(e,t);if(n){return n}else if(this.pending===false&&this.id!=null){this.id=this.recycleAsyncId(this.scheduler,this.id,null)}};t.prototype._execute=function(e,t){var n=false;var r=undefined;try{this.work(e)}catch(e){n=true;r=!!e&&e||new Error(e)}if(n){this.unsubscribe();return r}};t.prototype._unsubscribe=function(){var e=this.id;var t=this.scheduler;var n=t.actions;var r=n.indexOf(this);this.work=null;this.state=null;this.pending=false;this.scheduler=null;if(r!==-1){n.splice(r,1)}if(e!=null){this.id=this.recycleAsyncId(t,e,null)}this.delay=null};return t}(xr);var Nr=function(){function e(t,n){if(n===void 0){n=e.now}this.SchedulerAction=t;this.now=n}e.prototype.schedule=function(e,t,n){if(t===void 0){t=0}return new this.SchedulerAction(this,e).schedule(n,t)};return e}();Nr.now=function(){return Date.now()};var Dr=function(e){__extends(t,e);function t(n,r){if(r===void 0){r=Nr.now}var i=e.call(this,n,(function(){if(t.delegate&&t.delegate!==i){return t.delegate.now()}else{return r()}}))||this;i.actions=[];i.active=false;i.scheduled=undefined;return i}t.prototype.schedule=function(n,r,i){if(r===void 0){r=0}if(t.delegate&&t.delegate!==this){return t.delegate.schedule(n,r,i)}else{return e.prototype.schedule.call(this,n,r,i)}};t.prototype.flush=function(e){var t=this.actions;if(this.active){t.push(e);return}var n;this.active=true;do{if(n=e.execute(e.state,e.delay)){break}}while(e=t.shift());this.active=false;if(n){while(e=t.shift()){e.unsubscribe()}throw n}};return t}(Nr);function Cr(e){return e&&typeof e.schedule==="function"}var kr=new Dr(Ar);var Pr=kr;function Fr(e){var t=arguments.length;var n=Pr;if(Cr(arguments[arguments.length-1])){n=arguments[arguments.length-1];t--}var r=null;if(t>=2){r=arguments[1]}var i=Number.POSITIVE_INFINITY;if(t>=3){i=arguments[2]}return function t(a){return a.lift(new jr(e,r,i,n))}}var jr=function(){function e(e,t,n,r){this.bufferTimeSpan=e;this.bufferCreationInterval=t;this.maxBufferSize=n;this.scheduler=r}e.prototype.call=function(e,t){return t.subscribe(new Mr(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))};return e}();var Rr=function(){function e(){this.buffer=[]}return e}();var Mr=function(e){__extends(t,e);function t(t,n,r,i,a){var o=e.call(this,t)||this;o.bufferTimeSpan=n;o.bufferCreationInterval=r;o.maxBufferSize=i;o.scheduler=a;o.contexts=[];var s=o.openContext();o.timespanOnly=r==null||r<0;if(o.timespanOnly){var u={subscriber:o,context:s,bufferTimeSpan:n};o.add(s.closeAction=a.schedule(Lr,n,u))}else{var c={subscriber:o,context:s};var l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:o,scheduler:a};o.add(s.closeAction=a.schedule(Vr,n,c));o.add(a.schedule(qr,r,l))}return o}t.prototype._next=function(e){var t=this.contexts;var n=t.length;var r;for(var i=0;i<n;i++){var a=t[i];var o=a.buffer;o.push(e);if(o.length==this.maxBufferSize){r=a}}if(r){this.onBufferFull(r)}};t.prototype._error=function(t){this.contexts.length=0;e.prototype._error.call(this,t)};t.prototype._complete=function(){var t=this,n=t.contexts,r=t.destination;while(n.length>0){var i=n.shift();r.next(i.buffer)}e.prototype._complete.call(this)};t.prototype._unsubscribe=function(){this.contexts=null};t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;t.unsubscribe();this.remove(t);if(!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan;var r={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(Lr,n,r))}};t.prototype.openContext=function(){var e=new Rr;this.contexts.push(e);return e};t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;var n=t?t.indexOf(e):-1;if(n>=0){t.splice(t.indexOf(e),1)}};return t}(dr);function Lr(e){var t=e.subscriber;var n=e.context;if(n){t.closeContext(n)}if(!t.closed){e.context=t.openContext();e.context.closeAction=this.schedule(e,e.bufferTimeSpan)}}function qr(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler;var a=r.openContext();var o=this;if(!r.closed){r.add(a.closeAction=i.schedule(Vr,n,{subscriber:r,context:a}));o.schedule(e,t)}}function Vr(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var Br=i((function(e,t){(function(e,n){n(t)})(a,(function(e){var t=Object.getOwnPropertyNames,n=Object.getOwnPropertySymbols;var r=Object.prototype.hasOwnProperty;function i(e,t){return function n(r,i,a){return e(r,i,a)&&t(r,i,a)}}function a(e){return function t(n,r,i){if(!n||!r||typeof n!=="object"||typeof r!=="object"){return e(n,r,i)}var a=i.cache;var o=a.get(n);var s=a.get(r);if(o&&s){return o===r&&s===n}a.set(n,r);a.set(r,n);var u=e(n,r,i);a.delete(n);a.delete(r);return u}}function o(e){return t(e).concat(n(e))}var s=Object.hasOwn||function(e,t){return r.call(e,t)};function u(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var c="_owner";var l=Object.getOwnPropertyDescriptor,f=Object.keys;function d(e,t,n){var r=e.length;if(t.length!==r){return false}while(r-- >0){if(!n.equals(e[r],t[r],r,r,e,t,n)){return false}}return true}function p(e,t){return u(e.getTime(),t.getTime())}function h(e,t,n){if(e.size!==t.size){return false}var r={};var i=e.entries();var a=0;var o;var s;while(o=i.next()){if(o.done){break}var u=t.entries();var c=false;var l=0;while(s=u.next()){if(s.done){break}var f=o.value,d=f[0],p=f[1];var h=s.value,v=h[0],y=h[1];if(!c&&!r[l]&&(c=n.equals(d,v,a,l,e,t,n)&&n.equals(p,y,d,v,e,t,n))){r[l]=true}l++}if(!c){return false}a++}return true}function v(e,t,n){var r=f(e);var i=r.length;if(f(t).length!==i){return false}var a;while(i-- >0){a=r[i];if(a===c&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof){return false}if(!s(t,a)||!n.equals(e[a],t[a],a,a,e,t,n)){return false}}return true}function y(e,t,n){var r=o(e);var i=r.length;if(o(t).length!==i){return false}var a;var u;var f;while(i-- >0){a=r[i];if(a===c&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof){return false}if(!s(t,a)){return false}if(!n.equals(e[a],t[a],a,a,e,t,n)){return false}u=l(e,a);f=l(t,a);if((u||f)&&(!u||!f||u.configurable!==f.configurable||u.enumerable!==f.enumerable||u.writable!==f.writable)){return false}}return true}function m(e,t){return u(e.valueOf(),t.valueOf())}function b(e,t){return e.source===t.source&&e.flags===t.flags}function g(e,t,n){if(e.size!==t.size){return false}var r={};var i=e.values();var a;var o;while(a=i.next()){if(a.done){break}var s=t.values();var u=false;var c=0;while(o=s.next()){if(o.done){break}if(!u&&!r[c]&&(u=n.equals(a.value,o.value,a.value,o.value,e,t,n))){r[c]=true}c++}if(!u){return false}}return true}function E(e,t){var n=e.length;if(t.length!==n){return false}while(n-- >0){if(e[n]!==t[n]){return false}}return true}var w="[object Arguments]";var _="[object Boolean]";var S="[object Date]";var I="[object Map]";var O="[object Number]";var T="[object Object]";var x="[object RegExp]";var A="[object Set]";var N="[object String]";var D=Array.isArray;var C=typeof ArrayBuffer==="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null;var k=Object.assign;var P=Object.prototype.toString.call.bind(Object.prototype.toString);function F(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,u=e.areTypedArraysEqual;return function e(c,l,f){if(c===l){return true}if(c==null||l==null||typeof c!=="object"||typeof l!=="object"){return c!==c&&l!==l}var d=c.constructor;if(d!==l.constructor){return false}if(d===Object){return i(c,l,f)}if(D(c)){return t(c,l,f)}if(C!=null&&C(c)){return u(c,l,f)}if(d===Date){return n(c,l,f)}if(d===RegExp){return o(c,l,f)}if(d===Map){return r(c,l,f)}if(d===Set){return s(c,l,f)}var p=P(c);if(p===S){return n(c,l,f)}if(p===x){return o(c,l,f)}if(p===I){return r(c,l,f)}if(p===A){return s(c,l,f)}if(p===T){return typeof c.then!=="function"&&typeof l.then!=="function"&&i(c,l,f)}if(p===w){return i(c,l,f)}if(p===_||p===O||p===N){return a(c,l,f)}return false}}function j(e){var t=e.circular,n=e.createCustomConfig,r=e.strict;var o={areArraysEqual:r?y:d,areDatesEqual:p,areMapsEqual:r?i(h,y):h,areObjectsEqual:r?y:v,arePrimitiveWrappersEqual:m,areRegExpsEqual:b,areSetsEqual:r?i(g,y):g,areTypedArraysEqual:r?y:E};if(n){o=k({},o,n(o))}if(t){var s=a(o.areArraysEqual);var u=a(o.areMapsEqual);var c=a(o.areObjectsEqual);var l=a(o.areSetsEqual);o=k({},o,{areArraysEqual:s,areMapsEqual:u,areObjectsEqual:c,areSetsEqual:l})}return o}function R(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function M(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,a=e.strict;if(r){return function e(o,s){var u=r(),c=u.cache,l=c===void 0?t?new WeakMap:undefined:c,f=u.meta;return n(o,s,{cache:l,equals:i,meta:f,strict:a})}}if(t){return function e(t,r){return n(t,r,{cache:new WeakMap,equals:i,meta:undefined,strict:a})}}var o={cache:undefined,equals:i,meta:undefined,strict:a};return function e(t,r){return n(t,r,o)}}var L=K();var q=K({strict:true});var V=K({circular:true});var B=K({circular:true,strict:true});var U=K({createInternalComparator:function(){return u}});var $=K({strict:true,createInternalComparator:function(){return u}});var G=K({circular:true,createInternalComparator:function(){return u}});var J=K({circular:true,createInternalComparator:function(){return u},strict:true});function K(e){if(e===void 0){e={}}var t=e.circular,n=t===void 0?false:t,r=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?false:a;var s=j(e);var u=F(s);var c=r?r(u):R(u);return M({circular:n,comparator:u,createState:i,equals:c,strict:o})}e.circularDeepEqual=V;e.circularShallowEqual=G;e.createCustomEqual=K;e.deepEqual=L;e.sameValueZeroEqual=u;e.shallowEqual=U;e.strictCircularDeepEqual=B;e.strictCircularShallowEqual=J;e.strictDeepEqual=q;e.strictShallowEqual=$}))}));var Ur={current:void 0};function $r(){if(void 0===Ur.current)throw new Error("no implementation of useHost provided");return Ur.current()}function Gr(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");Ur.current=e}function Jr(){Oe();var e=$r();return u(e,ne)}function Kr(){Ue();var e=$r();return u(e,re)}function Hr(){var e;return null==(e=Wr())?void 0:e.jwt}function Wr(){Fe();var e=$r(),t=u(e,te),n=Me(null==t?void 0:t.jwt);if(se()||!t||n)return t;qe(void 0)}var Yr=e("a",ce),zr=fe,Qr=e("B",de);function Xr(){return(Xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Zr(e,t){return(Zr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ei(e,t){return t||(t=e.slice(0)),e.raw=t,e}function ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ni(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ti(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var ri=function(){return(ri=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},ii=new Map,ai=new Map,oi=!0,si=!1;function ui(e){return e.replace(/[\s,]+/g," ").trim()}function ci(e){var t,n,r,i=ui(e);if(!ii.has(i)){var a=sn(e,{experimentalFragmentVariables:si});if(!a||"Document"!==a.kind)throw new Error("Not a valid GraphQL document.");ii.set(i,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=a,n=new Set,r=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=ui((o=e.loc).source.body.substring(o.start,o.end)),a=ai.get(t);a&&!a.has(i)?oi&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||ai.set(t,a=new Set),a.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var o})),ri(ri({},t),{definitions:r}))))}return ii.get(i)}function li(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){r+=t&&"Document"===t.kind?t.loc.source.body:t,r+=e[n+1]})),ci(r)}var fi,di=li;(fi=li||(li={})).gql=di,fi.resetCaches=function(){ii.clear(),ai.clear()},fi.disableFragmentWarnings=function(){oi=!1},fi.enableExperimentalFragmentVariables=function(){si=!0},fi.disableExperimentalFragmentVariables=function(){si=!1},li.default=li;var pi=li;function hi(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}var vi=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).subject=new Or;var i=new Or;return r.subject.pipe(Fr(200,void 0,10)).subscribe((function(e){try{if(!e.length)return Promise.resolve();for(var t,n=gi(e),a=n.mergedQuery,o=n.mergedVariables,s=n.mergedQueryAddedEvents,u=ni(n.unmergedQueryAddedEvents);!(t=u()).done;)i.next(t.value);return s.length?Promise.resolve(hi((function(){return Promise.resolve(r.superRequest(a,o)).then((function(e){_i(e,s)}))}),(function(e){if(e instanceof Qn.ClientError){var t=function(){var t=e.response,n=t.data,r=t.errors;if(!n)return{v:Ii(s,e)};for(var i,a=Object.keys(n),o=[].concat(s),u=function(){var t=i.value,n=void 0;t.path.find((function(r,i,s){if(a.includes(r)){var u=bi(r),c=o.findIndex((function(e){return e.id===u}));if(-1===c)return!1;a.splice(i,1),n=o.splice(c,1)[0];var l=Ei(e.response.data,n);s[i]=mi(s[i],u);var f=n.query,d=n.variables,p=Xr({},e.response,{errors:[t],data:l,path:s}),h=new Qn.ClientError(p,{query:"string"!=typeof f?vn(f):f,variables:d});return Si(n,h),!0}return!1}))},c=ni(r);!(i=c()).done;)u();_i(n,o)}();if("object"==typeof t)return t.v}else Ii(s,e)}))):Promise.resolve()}catch(e){return Promise.reject(e)}})),i.subscribe((function(e){try{var t=hi((function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then((function(t){wi(t,e)}))}),(function(t){Si(e,t)}));return Promise.resolve(t&&t.then?t.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Zr(t,n);var i=r.prototype;return i.superRequest=function(t,n){return e.prototype.request.call(this,t,n)},i.request=function(e,t,n){var r=this;return new Promise((function(i,a){var o={query:e,variables:t,id:yi(),options:n,resolve:i,reject:a};r.subject.next(o)}))},r}(Xn.GraphQLClient),yi=function(){return Zn().replace(/[-_]/g,"")},mi=function(e,t){return e.replace("_"+t,"")},bi=function(e){var t=e.split("_");return t[t.length-1]},gi=function(e){var t=[],n=[],r=e.reduce((function(e,r){var i=r.query,a=r.variables,o=r.id,s=r.options;if(null==s||!s.batch)return n.push(r),e;try{var u="string"==typeof i?sn(i):i,c=u.definitions.find((function(e){return"FragmentDefinition"===e.kind})),l="string"==typeof i?i:vn(i),f=/@/.test(l);if(c||f)return n.push(r),e;var d=function(e){return function(e,t){return e+"_"+t}(e,o)};return e=e.addN(u,[a],d,d),t.push(r),e}catch(t){return n.push(r),e}}),kn("BatchedQuery")),i=r.document,a=r.variables;return{mergedQuery:i&&vn(i),mergedVariables:a,mergedQueryAddedEvents:t,unmergedQueryAddedEvents:n}},Ei=function(e,t){if(!e)return e;var n=Object.keys(e),r=t.id;return n.reduce((function(t,n){var i;return n.endsWith(r)&&(t=Xr({},t,((i={})[mi(n,r)]=e[n],i))),t}),{})},wi=function(e,t){(0,t.resolve)(e)},_i=function(e,t){for(var n,r=ni(t);!(n=r()).done;){var i=n.value,a=Ei(e,i);i.resolve(a)}},Si=function(e,t){(0,e.reject)(t)},Ii=function(e,t){for(var n,r=ni(e);!(n=r()).done;)(0,n.value.reject)(t)},Oi=e("P","sq:graphql-client"),Ti=e("E",T((function(e,t,n){return new vi(e+"/api/v1/"+t+"/graphql",{headers:{Authorization:"Bearer "+(n||"")}})})));function xi(e,t){switch(t.type){case"loading":return{data:void 0,errors:void 0,loading:!0};case"data":return{data:t.payload,errors:void 0,loading:!1};case"errors":return{data:void 0,errors:t.payload,loading:!1}}}function Ai(e,t,n){void 0===n&&(n={batch:!0});var r,i,a,o,s,c,l=(r=Hr(),i=zr(),a=Yr(),o=Ti(i,a,r),s=$r(),null!=(c=u(s,"sq:graphql-client",{attempts:0}))?c:o),d=f(xi,t),p=d[1];return[d[0],Ge((function(t,r){void 0===r&&(r=!1);try{if(!l){var i=new Error("No GraphQL client found");return p({type:"errors",payload:i}),Promise.resolve(i)}return Promise.resolve(function(i,a){try{var o=(r||p({type:"loading"}),Promise.resolve(l.request(e,t,n)).then((function(e){return p({type:"data",payload:e}),e})))}catch(e){return a(e)}return o&&o.then?o.then(void 0,a):o}(0,(function(e){return p({type:"errors",payload:e}),e})))}catch(e){return Promise.reject(e)}}),[l,e,p])]}var Ni,Di={loading:!1,data:void 0,errors:void 0};function Ci(e){var t=Ai(e,Di);return[t[1],t[0]]}var ki,Pi=pi(Ni||(Ni=ei(["\n mutation AuthenticateWithEmailAndPassword(\n $email: String!\n $password: String!\n ) {\n authenticateManagedIdentityWithEmailAndPassword(\n authenticateManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Fi(){var e=Ci(Pi),t=e[0],n=e[1];return[function(e){try{return Promise.resolve(t(e)).then((function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithEmailAndPassword){var t=e.authenticateManagedIdentityWithEmailAndPassword.token,n=Nn(t).user;qe({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:e.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.authenticateManagedIdentityWithEmailAndPassword.sessionData}})}return e}))}catch(e){return Promise.reject(e)}},{loading:n.loading,data:n.data,errors:n.errors}]}var ji,Ri=pi(ki||(ki=ei(["\n mutation RegisterWithEmailAndPassword(\n $email: String!\n $password: String!\n $formData: RSJsonNode\n $redirectPath: String\n ) {\n registerManagedIdentityWithEmailAndPassword(\n registerManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n formData: $formData\n redirectPath: $redirectPath\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Mi(){var e=Ci(Ri),t=e[0],n=e[1];return[function(e){try{return Promise.resolve(t(e)).then((function(e){if(!(e instanceof Error)&&e.registerManagedIdentityWithEmailAndPassword){var t=e.registerManagedIdentityWithEmailAndPassword.token,n=Nn(t).user;qe({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.registerManagedIdentityWithEmailAndPassword.email,emailVerified:e.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.registerManagedIdentityWithEmailAndPassword.sessionData}})}return e}))}catch(e){return Promise.reject(e)}},{loading:n.loading,data:n.data,errors:n.errors}]}var Li,qi=pi(ji||(ji=ei(["\n mutation RegisterViaRegistrationForm($key: String!, $formData: RSJsonNode!) {\n submitForm(formSubmissionInput: { key: $key, formData: $formData }) {\n results {\n ... on FormHandlerSubmissionResult {\n result\n formHandler {\n namespace\n }\n }\n ... on FormHandlerError {\n errorCode\n error\n errorType\n formHandler {\n name\n endpointUrl\n }\n }\n }\n }\n }\n"])));function Vi(){var e=Ci(qi),t=e[0],n=e[1],r=n.loading,i=n.data,a=n.errors,o=d(null),s=o[1];return[function(e){try{return s(null),Promise.resolve(t(e)).then((function(e){var t,n,r,i;if(e instanceof Error)return e;var a=null==(t=e.submitForm)||null==(n=t.results)?void 0:n.find((function(e){var t;return"identity"===(null==e||null==(t=e.formHandler)?void 0:t.namespace)}));if(a&&null!=(r=a.result)&&null!=(i=r.results)&&i.length){var o=a.result.results[0];if(o.success){var u=o.data.token,c=Nn(u).user;qe({jwt:u,id:c.id,accountId:c.accountId,managedIdentity:{email:o.data.email,emailVerified:o.data.emailVerified,sessionData:o.data.sessionData}})}else s(o.message)}return e}))}catch(e){return Promise.reject(e)}},{loading:r,data:i,errors:a,formError:o[0]}]}var Bi,Ui=pi(Li||(Li=ei(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function $i(){var e=Ci(Ui),t=e[1];return[e[0],{loading:t.loading,data:t.data,errors:t.errors}]}var Gi,Ji=pi(Bi||(Bi=ei(["\n mutation ResetPassword($oobCode: String!, $password: String!) {\n resetManagedIdentityPassword(\n resetManagedIdentityPasswordInput: {\n password: $password\n oobCode: $oobCode\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ki(){var e=Ci(Ji),t=e[0],n=e[1];return[function(e){try{return Promise.resolve(t(e)).then((function(e){if(!(e instanceof Error)&&e.resetManagedIdentityPassword){var t=e.resetManagedIdentityPassword.token,n=Nn(t).user;qe({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.resetManagedIdentityPassword.email,emailVerified:e.resetManagedIdentityPassword.emailVerified,sessionData:e.resetManagedIdentityPassword.sessionData}})}return e}))}catch(e){return Promise.reject(e)}},{loading:n.loading,data:n.data,errors:n.errors}]}var Hi=pi(Gi||(Gi=ei(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Wi(){return Ci(Hi)}function Yi(){var e=$r();return{refresh:Ge((function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}))}),[e])}}function zi(e){var t=e.skip,n=void 0!==t&&t,i=e.update,a=e.variables;s((function(){var e=function(e){!n&&i(a,!0)};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}}),function(e){var t=p(e),n=p(0);return q(e,t.current)||(t.current=e,n.current+=1),r((function(){return t.current}),[n.current])}([a,i,n]))}var Qi,Xi={loading:!1,data:void 0,errors:void 0},Zi=Symbol();function ea(e){var t=Ai(e,Xi),n=t[0],r=t[1],i=p(Zi);zi({skip:i.current===Zi,update:r,variables:i.current});var a=Ge((function(e){return i.current=e,r(e)}),[r]);return[r,Xr({},n,{refetch:a})]}var ta,na=pi(Qi||(Qi=ei(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function ra(){var e=Wr(),t=ea(na),n=t[0],r=t[1],i=r.refetch,a=function(t){t instanceof Error||!t.managedIdentitySession||qe(Xr({},e,{managedIdentity:t.managedIdentitySession}))};return[function(){try{return Promise.resolve(n({})).then((function(e){return a(e),e}))}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors,refetch:function(){try{return Promise.resolve(i()).then((function(e){return a(e),e}))}catch(e){return Promise.reject(e)}}}]}var ia,aa=pi(ta||(ta=ei(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function oa(){var e=ra()[0],t=Ci(aa),n=t[0],r=t[1];return[function(t){try{return Promise.resolve(n(t)).then((function(t){var n=function(){if(!(t instanceof Error)&&t.verifyManagedIdentityEmail.success)return Promise.resolve(e()).then((function(){}))}();return n&&n.then?n.then((function(){return t})):t}))}catch(t){return Promise.reject(t)}},{loading:r.loading,data:r.data,errors:r.errors}]}var sa,ua=pi(ia||(ia=ei(["\n mutation RequestPasswordResetEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityPasswordResetEmail(\n requestManagedIdentityPasswordResetEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function ca(){return Ci(ua)}var la,fa=pi(sa||(sa=ei(["\n mutation RequestVerificationEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityVerificationEmail(\n requestManagedIdentityVerificationEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function da(){return Ci(fa)}var pa,ha=pi(la||(la=ei(["\n mutation authenticateManagedIdentityWithInstantAccess(\n $email: String!\n $firstName: String\n $lastName: String\n $locale: RSLocale\n $countryCode: RSCountryCode\n $cookies: String\n ) {\n authenticateManagedIdentityWithInstantAccess(\n authenticateManagedIdentityWithInstantAccessInput: {\n email: $email\n firstName: $firstName\n lastName: $lastName\n locale: $locale\n countryCode: $countryCode\n cookies: $cookies\n }\n ) {\n email\n emailVerified\n sessionData\n token\n }\n }\n"])));function va(){var e=Kr(),t=ae(),n=Ci(ha),r=n[0],i=n[1];return[function(n){try{return Promise.resolve(r(n)).then((function(n){var r=function(){if(!(n instanceof Error)&&n.authenticateManagedIdentityWithInstantAccess)return Promise.resolve(function(e,t){try{return Promise.resolve(function(n,r){try{var i=Promise.resolve(fetch(fe()+"/api/v1/"+ce()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+t},body:JSON.stringify({query:"\n query checkReferralFraudStatus($programId: ID) {\n viewer {\n ... on User {\n id\n instantAccessRewards(filter: { programId_eq: $programId }) {\n data {\n id\n pendingReasons\n cancelledReason\n }\n }\n }\n }\n }\n",variables:{programId:e}})})).then((function(e){if(!e.ok)throw new Error("Failed to fetch locale");return Promise.resolve(e.json()).then((function(e){var t;if(e.errors)throw new Error(JSON.stringify(e.errors,null,2));var n=(null==(t=e.data.viewer.instantAccessRewards)?void 0:t.data)||[];return n.some((function(e){return"SUSPECTED_FRAUD"===e.cancelledReason}))?"DENIED":n.some((function(e){var t;return null==(t=e.pendingReasons)?void 0:t.includes("SUSPECTED_FRAUD")}))?"PENDING_REVIEW":"APPROVED"}))}))}catch(e){return r(e)}return i&&i.then?i.then(void 0,r):i}(0,(function(e){console.error(e)})))}catch(e){return Promise.reject(e)}}(e,n.authenticateManagedIdentityWithInstantAccess.token)).then((function(e){if("APPROVED"!==e)throw{name:"fraud_error",message:"Referral flagged as fraud."};var r=n.authenticateManagedIdentityWithInstantAccess.email;if(qe({jwt:n.authenticateManagedIdentityWithInstantAccess.token,id:r,accountId:r}),"SquatchJS2"===t){var i=new CustomEvent("sq:user-registration",{bubbles:!0,detail:{userId:r,accountId:r}});document.dispatchEvent(i)}}))}();return r&&r.then?r.then((function(e){return n})):n}))}catch(e){return Promise.reject(e)}},{loading:i.loading,data:i.data,errors:i.errors}]}var ya=Xn.gql(pa||(pa=ei(["\n mutation authenticateManagedIdentityWithGoogle($idToken: String!) {\n authenticateManagedIdentityWithGoogle(\n authenticateManagedIdentityWithGoogleInput: { idToken: $idToken }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function ma(){var e=Ci(ya),t=e[0],n=e[1];return[function(e){try{return Promise.resolve(t(e)).then((function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithGoogle){var t=e.authenticateManagedIdentityWithGoogle.token,n=Nn(t).user;qe({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithGoogle.email,emailVerified:e.authenticateManagedIdentityWithGoogle.emailVerified,sessionData:e.authenticateManagedIdentityWithGoogle.sessionData}})}return e}))}catch(e){return Promise.reject(e)}},{loading:n.loading,data:n.data,errors:n.errors}]}function ba(e,t){var n=p();return n.current&&q(t,n.current.key)||(n.current={key:t,value:e()}),n.current.value}function ga(){return f((function(e){return e+1}),0)}function Ea(e){for(var t,n=ni(Object.getOwnPropertyNames(e));!(t=n()).done;){var r=e[t.value];r&&"object"==typeof r&&Ea(r)}return Object.freeze(e)}var wa={loading:!0,data:void 0,errors:void 0};function _a(e,t,n,r){var i=Ai(e,wa,Xr({batch:!0},r||{})),a=i[0],o=i[1],s=ga(),u=s[1];return ba((function(){!n&&o(t)}),[e,t,o,s[0],n]),zi({skip:n,update:o,variables:t}),Ea(Xr({},a,{refetch:u}))}function Sa(e){var t=$r(),n=c(t,xa(e.namespace),e.initialValue),r=n[0],i=n[1];return c(t,Aa(e.namespace),[r,i]),[r,i]}function Ia(e){var t=l(Aa(e)),n=l(xa(e));return t?[n,t[1]]:[void 0,void 0]}function Oa(e){var t=l(Aa(e));if(t)return t[1]}function Ta(e){return l(xa(e))}function xa(e){return e+"-value"}function Aa(e){return e+"-state"}function Na(e){var t=$r(),n=_a(e.query,e.variables||{},e.skip,Xr({batch:!0},e.options||{})),r=c(t,xa(e.namespace),n),i=r[0],a=r[1];return s((function(){Br.deepEqual(n,i)||a(n)}),[n,i]),n}function Da(e){return l(xa(e))||{data:null,loading:!0,refetch:function(){return console.warn("component still loading")}}}function Ca(){var e=ga()[1];return s((function(){return _e.listen((function(){e()}))}),[]),_e.location}var ka,Pa=e("j",_e);function Fa(e){var t=d({limit:e.limit,offset:e.offset}),n=t[0],r=t[1],i=n.offset,a=n.limit,o=function(e,t){return e*t},s=function(e,t){return Math.ceil(e/t)||0};return{limit:a,setLimit:function(e){var t=s(i,e),a=o(e,t);r(Xr({},n,{limit:e,offset:a}))},offset:i,setCurrentPage:function(e){var t=o(e,a);r((function(e){return Xr({},e,{offset:t})}))},calculatePagination:function(e,t){var n=s(i,a),r=function(e,t){return Math.ceil(e/t)||0}(t,a),o=0===e?"0":e>1?i+1+"-"+(i+e):""+(i+1);return{currentPage:n,pageCount:r,rangeOnPage:o,pageProgress:o+" of "+t}}}}function ja(e,t,n,r,i){var a;void 0===r&&(r={}),void 0===i&&(i=!1);var o=Fa(n),s=o.limit,u=o.setLimit,c=o.setCurrentPage,l=o.calculatePagination,f=_a(e,Xr({limit:s,offset:o.offset},r),i),d=f.loading,p=f.errors,h=f.refetch,v=t(f.data),y=l((null==v||null==(a=v.data)?void 0:a.length)||0,(null==v?void 0:v.totalCount)||0);return{envelope:v,states:{errors:p,loading:d,limit:s,currentPage:y.currentPage,pageCount:y.pageCount,pageProgress:y.pageProgress},callbacks:{refetch:h,setLimit:u,setCurrentPage:c}}}var Ra=Xn.gql(ka||(ka=ei(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Ma=1e3,La=60*Ma,qa=60*La,Va=24*qa,Ba=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return n*Va;case"hours":case"hour":case"hrs":case"hr":case"h":return n*qa;case"minutes":case"minute":case"mins":case"min":case"m":return n*La;case"seconds":case"second":case"secs":case"sec":case"s":return n*Ma;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===n&&isFinite(e))return t.long?function(e){var t=Math.abs(e);return t>=Va?Ua(e,t,Va,"day"):t>=qa?Ua(e,t,qa,"hour"):t>=La?Ua(e,t,La,"minute"):t>=Ma?Ua(e,t,Ma,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=Va?Math.round(e/Va)+"d":t>=qa?Math.round(e/qa)+"h":t>=La?Math.round(e/La)+"m":t>=Ma?Math.round(e/Ma)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Ua(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}var $a,Ga,Ja,Ka,Ha,Wa=(function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=function(){var e=!1;return function(){e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=function(e){function t(e){var r,i=null;function a(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}if(!a.enabled)return;var i=a,o=Number(new Date);i.diff=o-(r||o),i.prev=r,i.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");var s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return"%";s++;var a=t.formatters[r];return"function"==typeof a&&(n=a.call(i,e[s]),e.splice(s,1),s--),n})),t.formatArgs.call(i,e),(i.log||t.log).apply(i,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:function(){return null===i?t.enabled(e):i},set:function(e){i=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){var e=__spreadArrays(t.names.map(r),t.skips.map(r).map((function(e){return"-"+e}))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=Ba,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((function(n){t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){var n=0;for(var r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}(t);var n=e.exports.formatters;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}($a={exports:{}},$a.exports),$a.exports),Ya=Wa("sq:load-event"),za=Xn.gql(Ga||(Ga=ei(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Qa=Wa("sq:useForm"),Xa=Xn.gql(Ja||(Ja=ei(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),Za=Xn.gql(Ka||(Ka=ei(["\n mutation ($formSubmissionInput: FormSubmissionInput!) {\n submitForm(formSubmissionInput: $formSubmissionInput) {\n success\n results {\n ... on FormHandlerSubmissionResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"]))),eo=Xn.gql(Ha||(Ha=ei(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])))}}}));
|