@selfcommunity/react-core 0.6.7-payments.219 → 0.6.7-payments.221
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/lib/cjs/components/context/index.d.ts +1 -0
- package/lib/cjs/components/context/index.js +24 -0
- package/lib/cjs/constants/Preferences.d.ts +1 -0
- package/lib/cjs/constants/Preferences.js +3 -1
- package/lib/cjs/index.d.ts +5 -1
- package/lib/cjs/index.js +7 -2
- package/lib/esm/components/context/index.d.ts +1 -0
- package/lib/esm/components/context/index.js +20 -0
- package/lib/esm/constants/Preferences.d.ts +1 -0
- package/lib/esm/constants/Preferences.js +2 -0
- package/lib/esm/index.d.ts +5 -1
- package/lib/esm/index.js +6 -2
- package/lib/umd/react-core.js +1 -1
- package/package.json +5 -5
package/lib/umd/react-core.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see react-core.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@mui/material"),require("notistack"),require("react-intl"),require("react/jsx-runtime"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","@mui/material","notistack","react-intl","react/jsx-runtime","react-dom"],t):"object"==typeof exports?exports.SelfCommunityReactCore=t(require("react"),require("@mui/material"),require("notistack"),require("react-intl"),require("react/jsx-runtime"),require("react-dom")):e.SelfCommunityReactCore=t(e.react,e["@mui/material"],e.notistack,e["react-intl"],e["react/jsx-runtime"],e["react-dom"])}(self,((e,t,r,n,o,i)=>(()=>{"use strict";var a,u={8011:(e,t,r)=>{function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.ApiClient=void 0;var o=r(2970).__importDefault(r(14)),i=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setDefaultHeader=function(e){var t=e.name,n=e.value,o=e.methods,i=r.client.defaults.headers;Array.isArray(o)?o.forEach((function(e){i[e]&&(i[e][t]=n)})):i.common[t]=n},this.deleteDefaultHeader=function(e){var t=e.name,n=e.methods,o=r.client.defaults.headers;Array.isArray(n)?n.forEach((function(e){o[e]&&delete o[e][t]})):delete o.common[t]},this.client=this.createClient(t),this.setDefaultHeader({name:"Content-Type",value:"application/json",methods:["post"]})}return t=e,(r=[{key:"createClient",value:function(t){return o.default.create(Object.assign(Object.assign(Object.assign({},t&&t.baseURL&&{baseURL:t.baseURL}),t&&t.responseType?{responseType:t.responseType}:{responseType:"json"}),{headers:Object.assign({},t&&t.accessToken&&{Authorization:"Token ".concat(t.accessToken)}),timeout:e.DEFAULT_TIMEOUT}))}},{key:"getClientInstance",value:function(){return this.client}},{key:"config",value:function(e){this.client(e)}},{key:"setSupportWithCredentials",value:function(e){this.client.defaults.withCredentials=e}},{key:"setBasePortal",value:function(e){this.client.defaults.baseURL=e}},{key:"setAuthorizeToken",value:function(e){e?this.setDefaultHeader({name:"Authorization",value:"Bearer ".concat(e)}):this.deleteDefaultHeader({name:"Authorization"})}},{key:"request",value:function(e){return this.client.request(e)}},{key:"get",value:function(e,t){return this.client.get(e,t)}},{key:"post",value:function(e,t,r){return r?this.client.post(e,t,r):this.client.post(e,t)}},{key:"patch",value:function(e,t){return this.client.patch(e,t)}},{key:"put",value:function(e,t){return this.client.put(e,t)}}])&&n(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();t.ApiClient=i,i.DEFAULT_TIMEOUT=1e4;var a=new i;t.default=a},5713:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=r(2137),o={AccountCreate:{url:(0,n.urlReplacer)("/api/v2/account/create/"),method:"POST"},AccountVerify:{url:(0,n.urlReplacer)("/api/v2/account/verify/"),method:"POST"},AccountVerifyValidationCode:{url:(0,n.urlReplacer)("/api/v2/account/verify/validation_code/"),method:"POST"},AccountRecover:{url:(0,n.urlReplacer)("/api/v2/account/recover/"),method:"POST"},AccountReset:{url:(0,n.urlReplacer)("/api/v2/account/reset/"),method:"POST"},AccountSearch:{url:(0,n.urlReplacer)("/api/v2/account/search/"),method:"GET"},InviteCode:{url:(0,n.urlReplacer)("/api/v2/invite_code/$(code)/"),method:"GET"},PromoCode:{url:(0,n.urlReplacer)("/api/v2/promo_code/$(code)/"),method:"GET"},OAuthToken:{url:(0,n.urlReplacer)("/oauth/token/"),method:"POST"},Preferences:{url:(0,n.urlReplacer)("/api/v2/dynamic_preference/"),method:"GET"},GetPreference:{url:(0,n.urlReplacer)("/api/v2/dynamic_preference/$(id)/"),method:"GET"},UpdatePreferences:{url:(0,n.urlReplacer)("/api/v2/dynamic_preference/"),method:"PATCH"},SignIn:{url:(0,n.urlReplacer)("/api/v2/sso/signin/"),method:"POST"},SignUp:{url:(0,n.urlReplacer)("/api/v2/sso/signup/"),method:"POST"},Feature:{url:(0,n.urlReplacer)("/api/v2/feature/"),method:"GET"},FeedObjectList:{url:(0,n.urlReplacer)("/api/v2/$(type)/"),method:"GET"},FeedObjectsUncommented:{url:(0,n.urlReplacer)("/api/v2/$(type)/uncommented/"),method:"GET"},SearchFeedObject:{url:(0,n.urlReplacer)("/api/v2/$(type)/search/"),method:"GET"},CreateFeedObject:{url:(0,n.urlReplacer)("/api/v2/$(type)/"),method:"POST"},FeedObject:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/"),method:"GET"},UpdateFeedObject:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/"),method:"PUT"},DeleteFeedObject:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/"),method:"DELETE"},FeedObjectContributorsList:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/contributors/"),method:"GET"},FeedObjectSharesList:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/shares/"),method:"GET"},FeedObjectUserSharesList:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/shares_users/"),method:"GET"},RestoreFeedObject:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/restore/"),method:"POST"},RelatedFeedObjects:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/related/"),method:"GET"},HideFeedObject:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/hide/"),method:"POST"},FeedObjectHideStatus:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/hide/status/"),method:"GET"},CheckIfFollowingFeedObject:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/following/"),method:"GET"},FeedObjectFollowingList:{url:(0,n.urlReplacer)("/api/v2/$(type)/following/"),method:"GET"},FeedObjectFlagList:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/flag/"),method:"POST"},Comment:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/"),method:"GET"},NewComment:{url:(0,n.urlReplacer)("/api/v2/comment/"),method:"POST"},UpdateComment:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/"),method:"PUT"},DeleteComment:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/"),method:"DELETE"},RestoreComment:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/restore/"),method:"POST"},Comments:{url:(0,n.urlReplacer)("/api/v2/comment/"),method:"GET"},CommentVote:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/vote/"),method:"POST"},CommentVotesList:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/vote/"),method:"GET"},CommentRestore:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/restore"),method:"POST"},CommentFlagList:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/flag/"),method:"GET"},FlagComment:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/flag/"),method:"POST"},CommentFlagStatus:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/flag/status/"),method:"GET"},FlagStatus:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/flag/status/"),method:"GET"},Flag:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/flag/"),method:"POST"},CategoryList:{url:(0,n.urlReplacer)("/api/v2/category/"),method:"GET"},SearchCategory:{url:(0,n.urlReplacer)("/api/v2/category/search/"),method:"GET"},CreateCategory:{url:(0,n.urlReplacer)("/api/v2/category/"),method:"POST"},UpdateCategory:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/"),method:"PUT"},PatchCategory:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/"),method:"PATCH"},DeleteCategory:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/"),method:"DELETE"},CategoryAudience:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/audience/"),method:"GET"},Category:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/"),method:"GET"},CategoriesFollowed:{url:(0,n.urlReplacer)("/api/v2/category/followed/"),method:"GET"},CategoryFollowers:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/followers/"),method:"GET"},CategoryTrendingFeed:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/feed/trending/"),method:"GET"},CategoryTrendingPeople:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/followers/trending/"),method:"GET"},FollowCategory:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/follow/"),method:"POST"},CheckCategoryIsFollowed:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/is_followed/"),method:"GET"},PopularCategories:{url:(0,n.urlReplacer)("/api/v2/category/popular/"),method:"GET"},TagsList:{url:(0,n.urlReplacer)("/api/v2/tag/"),method:"GET"},CreateTag:{url:(0,n.urlReplacer)("/api/v2/tag/"),method:"POST"},SearchTag:{url:(0,n.urlReplacer)("/api/v2/tag/"),method:"GET"},Tag:{url:(0,n.urlReplacer)("/api/v2/tag/$(id)/"),method:"GET"},UpdateTag:{url:(0,n.urlReplacer)("/api/v2/tag/$(id)/"),method:"PUT"},PatchTag:{url:(0,n.urlReplacer)("/api/v2/tag/$(id)/"),method:"PATCH"},AssignTag:{url:(0,n.urlReplacer)("/api/v2/tag/$(id)/assign/"),method:"POST"},UserList:{url:(0,n.urlReplacer)("/api/v2/user/"),method:"GET"},ListHiddenUsers:{url:(0,n.urlReplacer)("/api/v2/user/hidden_users/"),method:"GET"},ListHiddenUsersId:{url:(0,n.urlReplacer)("/api/v2/user/hidden_users_id/"),method:"GET"},UserAutocomplete:{url:(0,n.urlReplacer)("/api/v2/user/autocomplete/"),method:"GET"},UserSearch:{url:(0,n.urlReplacer)("/api/v2/user/search/"),method:"GET"},User:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/"),method:"GET"},UserCounters:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/counters/"),method:"GET"},UserUpdate:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/"),method:"PUT"},UserPatch:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/"),method:"PATCH"},UserDelete:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/"),method:"DELETE"},ChangeUserMail:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/change_email/"),method:"PATCH"},ConfirmUserChangeMail:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/confirm_email/"),method:"POST"},ChangeUserPassword:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/change_password/"),method:"PATCH"},UserSettings:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/settings/"),method:"GET"},UserSettingsPatch:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/settings/"),method:"PATCH"},Me:{url:(0,n.urlReplacer)("/api/v2/user/me/"),method:"GET"},MyAvatar:{url:(0,n.urlReplacer)("/api/v2/user/me/avatar/"),method:"GET"},Permission:{url:(0,n.urlReplacer)("/api/v2/user/me/permission/"),method:"GET"},Platform:{url:(0,n.urlReplacer)("/api/v2/user/me/platform_url/"),method:"GET"},FollowedCategories:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/categories/"),method:"GET"},UserFollowers:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/followers/"),method:"GET"},UserFollowings:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/followings/"),method:"GET"},FollowUser:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/follow/"),method:"POST"},CheckUserFollowed:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/is_followed/"),method:"GET"},CheckUserFollower:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/is_follower/"),method:"GET"},UserConnections:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connections/"),method:"GET"},UserCheckConnection:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/is_connection/"),method:"GET"},UserCheckConnectionStatus:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connection_status/"),method:"GET"},UserConnectionRequests:{url:(0,n.urlReplacer)("/api/v2/user/connection/requests/"),method:"GET"},UserRequestConnectionsSent:{url:(0,n.urlReplacer)("/api/v2/user/connection/requests_sent/"),method:"GET"},UserAcceptRequestConnection:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connection/accept/"),method:"POST"},UserRequestConnection:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connection/request/"),method:"POST"},UserRemoveConnection:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connection/remove/"),method:"POST"},UserCancelRejectConnectionRequest:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connection/cancel_reject/"),method:"POST"},UserCancelRequestConnection:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connection/cancel_request/"),method:"POST"},UserRejectConnectionRequest:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connection/reject/"),method:"POST"},UserMarkSeenConnectionRequest:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connection_requests/mark_seen/"),method:"POST"},UserShowHide:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/hide/"),method:"POST"},CheckUserHidden:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/is_hidden/"),method:"GET"},CheckUserHiddenBy:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/is_hidden_by/"),method:"GET"},GetUserLoyaltyPoints:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/loyalty/points/"),method:"GET"},UserConnectionStatuses:{url:(0,n.urlReplacer)("/api/v2/user/connection/statuses/"),method:"POST"},UserTagToAddressContribution:{url:(0,n.urlReplacer)("/api/v2/user/tag/tags_to_address_a_contribution/"),method:"GET"},CheckEmailToken:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/check_email_token/"),method:"GET"},AddAvatar:{url:(0,n.urlReplacer)("/api/v2/user/avatar/"),method:"POST"},GetAvatars:{url:(0,n.urlReplacer)("/api/v2/user/avatar/"),method:"GET"},RemoveAvatar:{url:(0,n.urlReplacer)("/api/v2/user/avatar/"),method:"DELETE"},SetPrimaryAvatar:{url:(0,n.urlReplacer)("/api/v2/user/avatar/"),method:"PATCH"},ProviderAssociations:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/provider/"),method:"GET"},CreateProviderAssociation:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/provider/"),method:"POST"},DeleteProviderAssociation:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/provider/"),method:"DELETE"},GetLiveStream:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/live_stream/"),method:"GET"},GetOrderHistory:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/order/"),method:"GET"},GetOrderDetail:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/order/$(order)/"),method:"GET"},BroadcastMessagesList:{url:(0,n.urlReplacer)("/api/v2/notification/banner/"),method:"GET"},BroadcastMessagesMarkRead:{url:(0,n.urlReplacer)("/api/v2/notification/banner/read/"),method:"POST"},BroadcastMessagesDispose:{url:(0,n.urlReplacer)("/api/v2/notification/banner/dispose/"),method:"POST"},BroadcastMessagesUnseenCount:{url:(0,n.urlReplacer)("/api/v2/notification/banner/unseen/count/"),method:"GET"},BroadcastMessagesUndisposedCount:{url:(0,n.urlReplacer)("/api/v2/notification/banner/undisposed/count/"),method:"GET"},UserNotificationList:{url:(0,n.urlReplacer)("/api/v2/notification/"),method:"GET"},UserMarkReadNotification:{url:(0,n.urlReplacer)("/api/v2/notification/read/"),method:"POST"},UserUnseenNotificationCount:{url:(0,n.urlReplacer)("/api/v2/notification/unseen/count/"),method:"GET"},CreateCustomNotification:{url:(0,n.urlReplacer)("/api/v2/notification/notify/"),method:"POST"},UserSuspendContributionNotification:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/suspend/"),method:"POST"},UserCheckContributionNotificationSuspended:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/suspended/"),method:"GET"},UserListContributionNotificationSuspended:{url:(0,n.urlReplacer)("/api/v2/$(type)/suspended/"),method:"GET"},CategoriesSuggestion:{url:(0,n.urlReplacer)("/api/v2/suggestion/category/"),method:"GET"},CourseSuggestion:{url:(0,n.urlReplacer)("/api/v2/suggestion/course/"),method:"GET"},GetIncubatorSuggestion:{url:(0,n.urlReplacer)("/api/v2/suggestion/incubator/"),method:"GET"},PollSuggestion:{url:(0,n.urlReplacer)("/api/v2/suggestion/poll/"),method:"GET"},UserSuggestion:{url:(0,n.urlReplacer)("/api/v2/suggestion/user/"),method:"GET"},EventSuggestion:{url:(0,n.urlReplacer)("/api/v2/suggestion/event/"),method:"GET"},SearchSuggestion:{url:(0,n.urlReplacer)("/api/v2/suggestion/"),method:"GET"},FollowContribution:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/follow/"),method:"POST"},Vote:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/vote/"),method:"POST"},VotesList:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/vote/"),method:"GET"},ShareUsersList:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/shares_users/"),method:"GET"},PollVote:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/poll/vote/"),method:"POST"},PollVotesList:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/poll/vote/"),method:"GET"},Contributors:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/contributors/"),method:"GET"},GetPrizes:{url:(0,n.urlReplacer)("/api/v2/loyalty/prize/"),method:"GET"},CreatePrize:{url:(0,n.urlReplacer)("/api/v2/loyalty/prize/"),method:"POST"},GetSpecificPrize:{url:(0,n.urlReplacer)("/api/v2/loyalty/prize/$(id)/"),method:"GET"},UpdatePrize:{url:(0,n.urlReplacer)("/api/v2/loyalty/prize/$(id)/"),method:"PUT"},PatchPrize:{url:(0,n.urlReplacer)("/api/v2/loyalty/prize/$(id)/"),method:"PATCH"},GetPrizeRequests:{url:(0,n.urlReplacer)("/api/v2/loyalty/request/"),method:"GET"},CreatePrizeRequest:{url:(0,n.urlReplacer)("/api/v2/loyalty/request/"),method:"POST"},GetSpecificPrizeRequest:{url:(0,n.urlReplacer)("/api/v2/loyalty/request/$(id)/"),method:"GET"},PatchPrizeRequest:{url:(0,n.urlReplacer)("/api/v2/loyalty/request/$(id)/"),method:"PATCH"},Composer:{url:(0,n.urlReplacer)("/api/v2/$(type)/"),method:"POST"},ComposerEdit:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/"),method:"PUT"},ComposerChunkUploadMedia:{url:(0,n.urlReplacer)("/api/v2/media/upload/chunk/"),method:"POST"},ComposerChunkUploadMediaComplete:{url:(0,n.urlReplacer)("/api/v2/media/upload/complete/"),method:"POST"},ComposerMediaCreate:{url:(0,n.urlReplacer)("/api/v2/media/"),method:"POST"},ComposerCategoryList:{url:(0,n.urlReplacer)("/api/v2/category/"),method:"GET"},ComposerAddressingTagList:{url:(0,n.urlReplacer)("/api/v2/user/tag/tags_to_address_a_contribution/"),method:"GET"},ComposerLocalitySearch:{url:(0,n.urlReplacer)("/api/v2/locality/search/"),method:"GET"},GetMedia:{url:(0,n.urlReplacer)("/api/v2/media/$(id)/"),method:"GET"},UpdateMedia:{url:(0,n.urlReplacer)("/api/v2/media/$(id)/"),method:"PUT"},DeleteMedia:{url:(0,n.urlReplacer)("/api/v2/media/$(id)/"),method:"DELETE"},MediaClickTracker:{url:(0,n.urlReplacer)("/api/v2/media/$(id)/click/"),method:"POST"},GetLocalities:{url:(0,n.urlReplacer)("/api/v2/locality/"),method:"GET"},CustomAdvList:{url:(0,n.urlReplacer)("/api/v2/custom_adv/"),method:"GET"},CustomAdv:{url:(0,n.urlReplacer)("/api/v2/custom_adv/$(id)/"),method:"GET"},CustomAdvSearch:{url:(0,n.urlReplacer)("/api/v2/custom_adv/search/"),method:"GET"},MainFeed:{url:(0,n.urlReplacer)("/api/v2/feed/"),method:"GET"},MainFeedUnseenCount:{url:(0,n.urlReplacer)("/api/v2/feed/unseen/count/"),method:"GET"},FeedObjectMarkRead:{url:(0,n.urlReplacer)("/api/v2/feed/read/"),method:"POST"},ExploreFeed:{url:(0,n.urlReplacer)("/api/v2/feed/explore/"),method:"GET"},FeedLikeThese:{url:(0,n.urlReplacer)("/api/v2/feed/likethis/"),method:"POST"},CategoryFeed:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/feed/"),method:"GET"},UserFeed:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/feed/"),method:"GET"},EmbedFeed:{url:(0,n.urlReplacer)("/api/v2/embed/feed/"),method:"GET"},EmbedList:{url:(0,n.urlReplacer)("/api/v2/embed/"),method:"GET"},EmbedCreate:{url:(0,n.urlReplacer)("/api/v2/embed/"),method:"POST"},EmbedSearch:{url:(0,n.urlReplacer)("/api/v2/embed/search/"),method:"GET"},Embed:{url:(0,n.urlReplacer)("/api/v2/embed/$(id)/"),method:"GET"},UpdateEmbed:{url:(0,n.urlReplacer)("/api/v2/embed/$(id)/"),method:"PUT"},PatchEmbed:{url:(0,n.urlReplacer)("/api/v2/embed/$(id)/"),method:"PATCH"},SpecificEmbedFeed:{url:(0,n.urlReplacer)("/api/v2/embed/$(id)/feed/"),method:"GET"},GetSnippets:{url:(0,n.urlReplacer)("/api/v2/pm/"),method:"GET"},GetASingleMessage:{url:(0,n.urlReplacer)("/api/v2/pm/$(id)/"),method:"GET"},SendMessage:{url:(0,n.urlReplacer)("/api/v2/pm/"),method:"POST"},GetAThread:{url:(0,n.urlReplacer)("/api/v2/pm/"),method:"GET"},PrivateMessageUploadMedia:{url:(0,n.urlReplacer)("/api/v2/pm/upload/"),method:"POST"},PrivateMessageUploadThumbnail:{url:(0,n.urlReplacer)("/api/v2/pm/upload/"),method:"POST"},PrivateMessageUploadMediaInChunks:{url:(0,n.urlReplacer)("/api/v2/pm/upload/"),method:"POST"},PrivateMessageChunkUploadDone:{url:(0,n.urlReplacer)("/api/v2/pm/upload/?done"),method:"POST"},DeleteASingleMessage:{url:(0,n.urlReplacer)("/api/v2/pm/$(id)/"),method:"DELETE"},DeleteAThread:{url:(0,n.urlReplacer)("/api/v2/pm/"),method:"DELETE"},PrivateMessageSearchUser:{url:(0,n.urlReplacer)("/api/v2/pm/search/?user=$(search)"),method:"GET"},Device:{url:(0,n.urlReplacer)("/api/v2/device/$(type)/$(id)/"),method:"GET"},NewDevice:{url:(0,n.urlReplacer)("/api/v2/device/$(type)/"),method:"POST"},DeleteDevice:{url:(0,n.urlReplacer)("/api/v2/device/$(type)/$(id)/"),method:"DELETE"},UsersForModeration:{url:(0,n.urlReplacer)("/api/v2/moderation/user/"),method:"GET"},ModerateUser:{url:(0,n.urlReplacer)("/api/v2/moderation/user/$(id)/"),method:"PATCH"},FlaggedContributions:{url:(0,n.urlReplacer)("/api/v2/moderation/contribution/"),method:"GET"},FlagsForSpecificContribution:{url:(0,n.urlReplacer)("/api/v2/moderation/contribution/$(id)/flag/?contribution_type=$(contribution_type)"),method:"GET"},ModerateContribution:{url:(0,n.urlReplacer)("/api/v2/moderation/contribution/$(id)/"),method:"PATCH"},ModerateContributionStatus:{url:(0,n.urlReplacer)("/api/v2/moderation/contribution/$(id)/status/?contribution_type=$(contribution_type)"),method:"GET"},InsightBestContribution:{url:(0,n.urlReplacer)("/api/v2/insight/contribution/"),method:"GET"},InsightBestEmbed:{url:(0,n.urlReplacer)("/api/v2/insight/embed/"),method:"GET"},InsightBestUser:{url:(0,n.urlReplacer)("/api/v2/insight/user/"),method:"GET"},InsightContributionCounter:{url:(0,n.urlReplacer)("/api/v2/insight/contribution/counters/?contribution_id=$(id)"),method:"GET"},InsightEmbedCounter:{url:(0,n.urlReplacer)("/api/v2/insight/embed/counters/?embed_type=$(type)&embed_id=$(id)"),method:"GET"},InsightUserCounter:{url:(0,n.urlReplacer)("/api/v2/insight/user/counters/?user_id=$(id)"),method:"GET"},GetAllIncubators:{url:(0,n.urlReplacer)("/api/v2/incubator/"),method:"GET"},SearchIncubators:{url:(0,n.urlReplacer)("/api/v2/incubator/search/"),method:"GET"},GetASpecificIncubator:{url:(0,n.urlReplacer)("/api/v2/incubator/$(id)/"),method:"GET"},CheckIncubatorSubscription:{url:(0,n.urlReplacer)("/api/v2/incubator/$(id)/subscribed/"),method:"GET"},SubscribeToIncubator:{url:(0,n.urlReplacer)("/api/v2/incubator/$(id)/subscribe/"),method:"POST"},CreateAnIncubator:{url:(0,n.urlReplacer)("/api/v2/incubator/"),method:"POST"},GetIncubatorSubscribers:{url:(0,n.urlReplacer)("/api/v2/incubator/$(id)/subscribers/"),method:"GET"},GetCustomMenus:{url:(0,n.urlReplacer)("/api/v2/custom_menu/"),method:"GET"},CustomMenu:{url:(0,n.urlReplacer)("/api/v2/custom_menu/$(id)/"),method:"GET"},CustomMenuSearch:{url:(0,n.urlReplacer)("/api/v2/custom_menu/search/"),method:"GET"},GetCustomPages:{url:(0,n.urlReplacer)("/api/v2/custom_page/"),method:"GET"},CustomPage:{url:(0,n.urlReplacer)("/api/v2/custom_page/$(id)/"),method:"GET"},CustomPageSearch:{url:(0,n.urlReplacer)("/api/v2/custom_page/search/"),method:"GET"},LegalPage:{url:(0,n.urlReplacer)("/api/v2/legal_page/$(id)/"),method:"GET"},GetLegalPages:{url:(0,n.urlReplacer)("/api/v2/legal_page/"),method:"GET"},SearchLegalPages:{url:(0,n.urlReplacer)("/api/v2/legal_page/search/"),method:"GET"},LegalPagesLastRevision:{url:(0,n.urlReplacer)("/api/v2/legal_page/last_revisions/"),method:"GET"},LegalPageLastRevision:{url:(0,n.urlReplacer)("/api/v2/legal_page/$(policy)/"),method:"GET"},LegalPageRevisions:{url:(0,n.urlReplacer)("/api/v2/legal_page/$(policy)/revisions/"),method:"GET"},AckLegalPage:{url:(0,n.urlReplacer)("/api/v2/legal_page/$(id)/ack/"),method:"POST"},SpecificUserAck:{url:(0,n.urlReplacer)("/api/v2/legal_page/$(id)/user_ack/"),method:"GET"},UserAckList:{url:(0,n.urlReplacer)("/api/v2/legal_page/user_acks/"),method:"GET"},WebhookEndpointsList:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/"),method:"GET"},WebhookEventsList:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/event/"),method:"GET"},WebhookCreate:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/"),method:"POST"},GetSpecificWebhook:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/"),method:"GET"},WebhookUpdate:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/"),method:"PUT"},WebhookPatch:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/"),method:"PATCH"},WebhookDelete:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/"),method:"DELETE"},WebhookEndpointAttempts:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/attempt/"),method:"GET"},WebhookExpireSigningSecret:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/secret/expire/"),method:"POST"},WebhookRevealSigningSecret:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/secret/reveal/"),method:"POST"},WebhookResendEndpointEvent:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/event/resend/"),method:"POST"},WebhookResendMultipleEndpointEvent:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/event/resend/bulk/"),method:"POST"},GenerateDataPortability:{url:(0,n.urlReplacer)("/api/v2/udp/"),method:"POST"},DataPortabilityStatus:{url:(0,n.urlReplacer)("/api/v2/udp/"),method:"GET"},DataPortabilityDownload:{url:(0,n.urlReplacer)("/api/v2/udp/download/"),method:"GET"},ScoresList:{url:(0,n.urlReplacer)("/api/v2/score/"),method:"GET"},SearchScore:{url:(0,n.urlReplacer)("/api/v2/score/search/"),method:"GET"},AddScore:{url:(0,n.urlReplacer)("/api/v2/score/"),method:"POST"},GetReactions:{url:(0,n.urlReplacer)("/api/v2/reaction/"),method:"GET"},GetSpecificReaction:{url:(0,n.urlReplacer)("/api/v2/reaction/$(id)/"),method:"GET"},GetUserGroups:{url:(0,n.urlReplacer)("/api/v2/group/"),method:"GET"},GetGroupInfo:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/"),method:"GET"},GetGroupFeed:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/feed/"),method:"GET"},SearchGroups:{url:(0,n.urlReplacer)("/api/v2/group/search/"),method:"GET"},CreateGroup:{url:(0,n.urlReplacer)("/api/v2/group/"),method:"POST"},UpdateGroup:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/"),method:"PUT"},PatchGroup:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/"),method:"PATCH"},DeleteGroup:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/"),method:"DELETE"},GetGroupSuggestedUsers:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/user/?search=$(search)"),method:"GET"},GetGroupsSuggestedUsers:{url:(0,n.urlReplacer)("/api/v2/group/user/?search=$(search)"),method:"GET"},InviteOrAcceptGroupRequest:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/invite/"),method:"POST"},GetGroupInvitedUsers:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/invite/"),method:"GET"},GetGroupSubscriptionStatus:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/status/"),method:"GET"},SubscribeToGroup:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/subscribe/"),method:"POST"},GetGroupSubscribers:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/subscribe/"),method:"GET"},GetGroupWaitingApprovalSubscribers:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/request_subscribe/"),method:"GET"},UnsubscribeFromGroup:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/subscribe/"),method:"DELETE"},RemoveUserFromGroup:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/subscribe/?user=$(user)"),method:"DELETE"},GetUserSubscribedGroups:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/groups/"),method:"GET"},GetUserEvents:{url:(0,n.urlReplacer)("/api/v2/event/"),method:"GET"},GetEventInfo:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/"),method:"GET"},GetEventFeed:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/feed/"),method:"GET"},SearchEvents:{url:(0,n.urlReplacer)("/api/v2/event/search/"),method:"GET"},CreateEvent:{url:(0,n.urlReplacer)("/api/v2/event/"),method:"POST"},UpdateEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/"),method:"PUT"},DeleteEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/"),method:"DELETE"},PatchEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/"),method:"PATCH"},GetEventSuggestedUsers:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/user/?search=$(search)"),method:"GET"},GetUsersGoingToEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/going/"),method:"GET"},GetUsersNotGoingToEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/not_going/"),method:"GET"},GoToEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/going/"),method:"POST"},RemoveGoingToEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/going/"),method:"DELETE"},NotGoingToEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/not_going/"),method:"POST"},RemoveNotGoingToEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/not_going/"),method:"DELETE"},GetEventsSuggestedUsers:{url:(0,n.urlReplacer)("/api/v2/event/user/?search=$(search)"),method:"GET"},InviteOrAcceptEventRequest:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/invite/"),method:"POST"},RemoveInviteEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/invite/"),method:"DELETE"},GetEventInvitedUsers:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/invite/"),method:"GET"},GetEventSubscriptionStatus:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/status/"),method:"GET"},SubscribeToEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/subscribe/"),method:"POST"},GetEventSubscribers:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/subscribe/"),method:"GET"},GetEventWaitingApprovalSubscribers:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/request_subscribe/"),method:"GET"},UnsubscribeFromEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/subscribe/"),method:"DELETE"},GetUserSubscribedEvents:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/events/"),method:"GET"},GetEventRelated:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/related/"),method:"GET"},GetUserCreatedEvents:{url:(0,n.urlReplacer)("/api/v2/event/created/"),method:"GET"},ShowEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/show/"),method:"POST"},HideEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/hide/"),method:"POST"},GetEventPhotoGallery:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/gallery/"),method:"GET"},AddMediaToEventPhotoGallery:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/gallery/"),method:"POST"},RemoveMediasFromEventPhotoGallery:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/gallery/"),method:"DELETE"},GetLiveStreamInfo:{url:(0,n.urlReplacer)("/api/v2/live_stream/$(id)/"),method:"GET"},SearchLiveStream:{url:(0,n.urlReplacer)("/api/v2/live_stream/search/"),method:"GET"},CreateLiveStream:{url:(0,n.urlReplacer)("/api/v2/live_stream/"),method:"POST"},UpdateLiveStream:{url:(0,n.urlReplacer)("/api/v2/live_stream/$(id)/"),method:"PUT"},DeleteLiveStream:{url:(0,n.urlReplacer)("/api/v2/live_stream/$(id)/"),method:"DELETE"},PatchLiveStream:{url:(0,n.urlReplacer)("/api/v2/live_stream/$(id)/"),method:"PATCH"},CloseLiveStream:{url:(0,n.urlReplacer)("/api/v2/live_stream/$(id)/close/"),method:"POST"},JoinLiveStream:{url:(0,n.urlReplacer)("/api/v2/live_stream/$(id)/join/"),method:"POST"},RemoveParticipant:{url:(0,n.urlReplacer)("/api/v2/live_stream/$(id)/remove_participant/"),method:"POST"},GetLiveStreamMonthlyDuration:{url:(0,n.urlReplacer)("/api/v2/live_stream/monthly_duration/"),method:"GET"},GetAllSteps:{url:(0,n.urlReplacer)("/api/v2/onboarding/"),method:"GET"},GetAStep:{url:(0,n.urlReplacer)("/api/v2/onboarding/$(step)/"),method:"GET"},StartAStep:{url:(0,n.urlReplacer)("/api/v2/onboarding/$(step)/start/"),method:"POST"},CompleteAStep:{url:(0,n.urlReplacer)("/api/v2/onboarding/$(step)/complete/"),method:"POST"},ChangeCourseUserRole:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/role/"),method:"POST"},CreateCourse:{url:(0,n.urlReplacer)("/api/v2/course/"),method:"POST"},CreateCourseComment:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/"),method:"POST"},CreateCourseLesson:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/"),method:"POST"},CreateCourseSection:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/"),method:"POST"},DeleteCourse:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/"),method:"DELETE"},DeleteCourseComment:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/$(comment_id)/"),method:"DELETE"},DeleteCourseLesson:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/"),method:"DELETE"},DeleteCourseSection:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/"),method:"DELETE"},GetCourseComments:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/comment/"),method:"GET"},GetCourseDashboardUsers:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/users/"),method:"GET"},GetCourseInfo:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/"),method:"GET"},GetCourseInvitedUsers:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/invite/"),method:"GET"},GetCourseJoinedUsers:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/join/"),method:"GET"},GetCourseLesson:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/"),method:"GET"},GetCourseLessonComment:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/$(comment_id)/"),method:"GET"},GetCourseLessonComments:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/"),method:"GET"},GetCourseLessons:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/"),method:"GET"},GetCourseSection:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/"),method:"GET"},GetCourseSections:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/"),method:"GET"},GetCourseStatus:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/status/"),method:"GET"},GetCourseWaitingApproval:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/request_join/"),method:"GET"},GetJoinedCourses:{url:(0,n.urlReplacer)("/api/v2/course/"),method:"GET"},InviteOrAcceptUsersToCourse:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/invite/"),method:"POST"},JoinOrAcceptInviteToCourse:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/join/"),method:"POST"},LeaveOrRemoveCourseRequest:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/join/"),method:"DELETE"},MarkLessonComplete:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/complete/"),method:"POST"},MarkLessonIncomplete:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/incomplete/"),method:"POST"},PatchCourse:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/"),method:"PATCH"},PatchCourseComment:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/$(comment_id)/"),method:"PATCH"},PatchCourseLesson:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/"),method:"PATCH"},PatchCourseSection:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/"),method:"PATCH"},RemoveInvitationToCourse:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/invite/"),method:"DELETE"},SearchCourses:{url:(0,n.urlReplacer)("/api/v2/course/search/"),method:"GET"},GetCourseSuggestedUsers:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/user/"),method:"GET"},UpdateCourse:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/"),method:"PUT"},UpdateCourseComment:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/$(comment_id)/"),method:"PUT"},UpdateCourseLesson:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/"),method:"PUT"},UpdateCourseSection:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/"),method:"PUT"},GetUserJoinedCourses:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/courses/"),method:"GET"},GetCommunities:{url:(0,n.urlReplacer)("/api/v2/community/"),method:"GET"},GetCommunity:{url:(0,n.urlReplacer)("/api/v2/community/$(id)/"),method:"GET"},GetPaymentContentStatus:{url:(0,n.urlReplacer)("/api/v2/payments/content_status/"),method:"GET"},GetPaywalls:{url:(0,n.urlReplacer)("/api/v2/payments/paywall/"),method:"GET"},GetPaywall:{url:(0,n.urlReplacer)("/api/v2/payments/paywall/$(id)/"),method:"GET"},GetPaymentProducts:{url:(0,n.urlReplacer)("/api/v2/payments/payment_product/"),method:"GET"},GetPaymentProduct:{url:(0,n.urlReplacer)("/api/v2/payments/payment_product/$(id)/"),method:"GET"},GetPaymentProductPrices:{url:(0,n.urlReplacer)("/api/v2/payments/payment_product/$(id)/"),method:"GET"},GetCheckoutSession:{url:(0,n.urlReplacer)("/api/v2/payments/checkout_session/"),method:"GET"},CheckoutCreateSession:{url:(0,n.urlReplacer)("/api/v2/payments/checkout_session/"),method:"POST"},CheckoutSessionComplete:{url:(0,n.urlReplacer)("/api/v2/payments/checkout_session/complete/"),method:"POST"},GetPaymentOrders:{url:(0,n.urlReplacer)("/api/v2/payments/payment_order/"),method:"GET"},GetPaymentOrder:{url:(0,n.urlReplacer)("/api/v2/payments/payment_order/$(id)/"),method:"GET"},GetPaymentOrderPdf:{url:(0,n.urlReplacer)("/api/v2/payments/payment_order/$(id)/pdf/"),method:"GET"},CreateCustomerPortalSession:{url:(0,n.urlReplacer)("/api/v2/payments/customer_portal_session/"),method:"POST"},CreatePaymentProduct:{url:(0,n.urlReplacer)("/api/v2/payments/payment_product/price/"),method:"POST"}};t.default=o},94:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SCOPE_API_SERVICES=void 0,t.SCOPE_API_SERVICES="@selfcommunity/api-services"},7475:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ModerationService=t.MediaApiClient=t.MediaService=t.LoyaltyApiClient=t.LoyaltyService=t.LocalityApiClient=t.LocalityService=t.LegalPageApiClient=t.LegalPageService=t.InviteApiClient=t.InviteService=t.InsightApiClient=t.InsightService=t.IncubatorApiClient=t.IncubatorService=t.FeedObjectApiClient=t.FeedObjectService=t.FeedApiClient=t.FeedService=t.EmbedApiClient=t.EmbedService=t.DataPortabilityApiClient=t.DataPortabilityService=t.CustomPageApiClient=t.CustomPageService=t.CustomMenuApiClient=t.CustomMenuService=t.CustomAdvApiClient=t.CustomAdvService=t.CommentApiClient=t.CommentService=t.CategoryApiClient=t.CategoryService=t.FeatureApiClient=t.FeatureService=t.UserApiClient=t.UserService=t.PreferenceApiClient=t.PreferenceService=t.AccountApiClient=t.AccountService=t.Endpoints=t.urlParams=t.parseJwt=t.generateJWTToken=t.getCancelTokenSourceRequest=t.formatHttpErrorCode=t.formatHttpError=t.apiRequest=t.http=void 0,t.CommunityApiClient=t.CommunityService=t.PaymentApiClient=t.PaymentService=t.CourseApiClient=t.CourseService=t.CourseInfoViewType=t.OnBoardingStep=t.OnBoardingApiClient=t.OnBoardingService=t.LiveStreamApiClient=t.LiveStreamService=t.EventApiClient=t.EventService=t.GroupApiClient=t.GroupService=t.ReactionApiClient=t.ReactionService=t.MediaTypes=t.WebhookApiClient=t.WebhookService=t.TagApiClient=t.TagService=t.SuggestionApiClient=t.SuggestionService=t.SSOApiClient=t.SSOService=t.ScoreApiClient=t.ScoreService=t.PromoApiClient=t.PromoService=t.PrivateMessageApiClient=t.PrivateMessageService=t.NotificationApiClient=t.NotificationService=t.ModerationApiClient=void 0;var n=r(2970),o=n.__importDefault(r(8011));t.http=o.default;var i=n.__importDefault(r(5713));t.Endpoints=i.default;var a=r(2722);Object.defineProperty(t,"formatHttpError",{enumerable:!0,get:function(){return a.formatHttpError}}),Object.defineProperty(t,"formatHttpErrorCode",{enumerable:!0,get:function(){return a.formatHttpErrorCode}}),Object.defineProperty(t,"getCancelTokenSourceRequest",{enumerable:!0,get:function(){return a.getCancelTokenSourceRequest}});var u=r(7013);Object.defineProperty(t,"generateJWTToken",{enumerable:!0,get:function(){return u.generateJWTToken}}),Object.defineProperty(t,"parseJwt",{enumerable:!0,get:function(){return u.parseJwt}});var c=r(9714);Object.defineProperty(t,"apiRequest",{enumerable:!0,get:function(){return c.apiRequest}});var s=r(9258);Object.defineProperty(t,"urlParams",{enumerable:!0,get:function(){return s.urlParams}});var l=n.__importStar(r(1216));t.AccountService=l.default,Object.defineProperty(t,"AccountApiClient",{enumerable:!0,get:function(){return l.AccountApiClient}});var f=n.__importStar(r(3523));t.CategoryService=f.default,Object.defineProperty(t,"CategoryApiClient",{enumerable:!0,get:function(){return f.CategoryApiClient}});var d=n.__importStar(r(1358));t.CommentService=d.default,Object.defineProperty(t,"CommentApiClient",{enumerable:!0,get:function(){return d.CommentApiClient}});var p=n.__importStar(r(6598));t.CustomAdvService=p.default,Object.defineProperty(t,"CustomAdvApiClient",{enumerable:!0,get:function(){return p.CustomAdvApiClient}});var h=n.__importStar(r(9053));t.CustomMenuService=h.default,Object.defineProperty(t,"CustomMenuApiClient",{enumerable:!0,get:function(){return h.CustomMenuApiClient}});var v=n.__importStar(r(2897));t.CustomPageService=v.default,Object.defineProperty(t,"CustomPageApiClient",{enumerable:!0,get:function(){return v.CustomPageApiClient}});var y=n.__importStar(r(2230));t.DataPortabilityService=y.default,Object.defineProperty(t,"DataPortabilityApiClient",{enumerable:!0,get:function(){return y.DataPortabilityApiClient}});var g=n.__importStar(r(3755));t.EmbedService=g.default,Object.defineProperty(t,"EmbedApiClient",{enumerable:!0,get:function(){return g.EmbedApiClient}});var m=n.__importStar(r(3537));t.FeatureService=m.default,Object.defineProperty(t,"FeatureApiClient",{enumerable:!0,get:function(){return m.FeatureApiClient}});var _=n.__importStar(r(3663));t.FeedService=_.default,Object.defineProperty(t,"FeedApiClient",{enumerable:!0,get:function(){return _.FeedApiClient}});var E=n.__importStar(r(1117));t.FeedObjectService=E.default,Object.defineProperty(t,"FeedObjectApiClient",{enumerable:!0,get:function(){return E.FeedObjectApiClient}});var S=n.__importStar(r(8473));t.IncubatorService=S.default,Object.defineProperty(t,"IncubatorApiClient",{enumerable:!0,get:function(){return S.IncubatorApiClient}});var O=n.__importStar(r(3912));t.InsightService=O.default,Object.defineProperty(t,"InsightApiClient",{enumerable:!0,get:function(){return O.InsightApiClient}});var b=n.__importStar(r(9001));t.InviteService=b.default,Object.defineProperty(t,"InviteApiClient",{enumerable:!0,get:function(){return b.InviteApiClient}});var C=n.__importStar(r(6433));t.LegalPageService=C.default,Object.defineProperty(t,"LegalPageApiClient",{enumerable:!0,get:function(){return C.LegalPageApiClient}});var T=n.__importStar(r(1748));t.LocalityService=T.default,Object.defineProperty(t,"LocalityApiClient",{enumerable:!0,get:function(){return T.LocalityApiClient}});var w=n.__importStar(r(9327));t.LoyaltyService=w.default,Object.defineProperty(t,"LoyaltyApiClient",{enumerable:!0,get:function(){return w.LoyaltyApiClient}});var R=n.__importStar(r(6539));t.MediaService=R.default,Object.defineProperty(t,"MediaApiClient",{enumerable:!0,get:function(){return R.MediaApiClient}});var A=n.__importStar(r(556));t.ModerationService=A.default,Object.defineProperty(t,"ModerationApiClient",{enumerable:!0,get:function(){return A.ModerationApiClient}});var P=n.__importStar(r(1617));t.NotificationService=P.default,Object.defineProperty(t,"NotificationApiClient",{enumerable:!0,get:function(){return P.NotificationApiClient}});var L=n.__importStar(r(600));t.PreferenceService=L.default,Object.defineProperty(t,"PreferenceApiClient",{enumerable:!0,get:function(){return L.PreferenceApiClient}});var I=n.__importStar(r(5425));t.PrivateMessageService=I.default,Object.defineProperty(t,"PrivateMessageApiClient",{enumerable:!0,get:function(){return I.PrivateMessageApiClient}});var N=n.__importStar(r(7889));t.PromoService=N.default,Object.defineProperty(t,"PromoApiClient",{enumerable:!0,get:function(){return N.PromoApiClient}});var j=n.__importStar(r(9215));t.ScoreService=j.default,Object.defineProperty(t,"ScoreApiClient",{enumerable:!0,get:function(){return j.ScoreApiClient}});var k=n.__importStar(r(5571));t.SSOService=k.default,Object.defineProperty(t,"SSOApiClient",{enumerable:!0,get:function(){return k.SSOApiClient}});var U=n.__importStar(r(9615));t.SuggestionService=U.default,Object.defineProperty(t,"SuggestionApiClient",{enumerable:!0,get:function(){return U.SuggestionApiClient}});var x=n.__importStar(r(3820));t.TagService=x.default,Object.defineProperty(t,"TagApiClient",{enumerable:!0,get:function(){return x.TagApiClient}});var G=n.__importStar(r(9607));t.UserService=G.default,Object.defineProperty(t,"UserApiClient",{enumerable:!0,get:function(){return G.UserApiClient}});var D=n.__importStar(r(2136));t.WebhookService=D.default,Object.defineProperty(t,"WebhookApiClient",{enumerable:!0,get:function(){return D.WebhookApiClient}});var M=n.__importStar(r(4));t.ReactionService=M.default,Object.defineProperty(t,"ReactionApiClient",{enumerable:!0,get:function(){return M.ReactionApiClient}});var F=n.__importStar(r(53));t.GroupService=F.default,Object.defineProperty(t,"GroupApiClient",{enumerable:!0,get:function(){return F.GroupApiClient}});var B=n.__importStar(r(2554));t.EventService=B.default,Object.defineProperty(t,"EventApiClient",{enumerable:!0,get:function(){return B.EventApiClient}});var V=n.__importStar(r(448));t.LiveStreamService=V.default,Object.defineProperty(t,"LiveStreamApiClient",{enumerable:!0,get:function(){return V.LiveStreamApiClient}});var Y=n.__importStar(r(2974));t.OnBoardingService=Y.default,Object.defineProperty(t,"OnBoardingApiClient",{enumerable:!0,get:function(){return Y.OnBoardingApiClient}});var q=n.__importStar(r(8008));t.CourseService=q.default,Object.defineProperty(t,"CourseApiClient",{enumerable:!0,get:function(){return q.CourseApiClient}});var K=n.__importStar(r(9627));t.PaymentService=K.default,Object.defineProperty(t,"PaymentApiClient",{enumerable:!0,get:function(){return K.PaymentApiClient}});var W=n.__importStar(r(6925));t.CommunityService=W.default,Object.defineProperty(t,"CommunityApiClient",{enumerable:!0,get:function(){return W.CommunityApiClient}});var H=r(708);Object.defineProperty(t,"MediaTypes",{enumerable:!0,get:function(){return H.MediaTypes}}),Object.defineProperty(t,"OnBoardingStep",{enumerable:!0,get:function(){return H.OnBoardingStep}}),Object.defineProperty(t,"CourseInfoViewType",{enumerable:!0,get:function(){return H.CourseInfoViewType}})},1216:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.AccountApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=function(){return u((function e(){i(this,e)}),null,[{key:"create",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:s.default.AccountCreate.url({}),method:s.default.AccountCreate.method}))}},{key:"verify",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:s.default.AccountVerify.url({}),method:s.default.AccountVerify.method}))}},{key:"verifyValidationCode",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:s.default.AccountVerifyValidationCode.url({}),method:s.default.AccountVerifyValidationCode.method}))}},{key:"recover",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:s.default.AccountRecover.url({}),method:s.default.AccountRecover.method}))}},{key:"reset",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:s.default.AccountReset.url({}),method:s.default.AccountReset.method}))}},{key:"search",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:s.default.AccountSearch.url({}),method:s.default.AccountSearch.method}))}}])}();t.AccountApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"create",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.create(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"verify",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.verify(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"verifyValidationCode",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.verifyValidationCode(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"recover",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.recover(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"reset",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.reset(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"search",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.search(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=d},3523:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.CategoryApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=function(){return u((function e(){i(this,e)}),null,[{key:"getAllCategories",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:s.default.CategoryList.url({}),method:s.default.CategoryList.method}))}},{key:"searchCategory",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:s.default.SearchCategory.url({}),method:s.default.SearchCategory.method}))}},{key:"createCategory",value:function(e,t){return(0,l.apiRequest)(Object.assign({url:s.default.CreateCategory.url({}),method:s.default.CreateCategory.method,data:e},t))}},{key:"getSpecificCategory",value:function(e,t){return(0,l.apiRequest)(Object.assign({url:s.default.Category.url({id:e}),method:s.default.Category.method},t))}},{key:"updateASpecificCategory",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.UpdateCategory.url({id:e}),method:s.default.UpdateCategory.method,data:t},r))}},{key:"patchASpecificCategory",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.PatchCategory.url({id:e}),method:s.default.PatchCategory.method,data:t},r))}},{key:"deleteASpecificCategory",value:function(e,t){return(0,l.apiRequest)(Object.assign({url:s.default.DeleteCategory.url({id:e}),method:s.default.DeleteCategory.method},t))}},{key:"getCategoryAudience",value:function(e,t){return(0,l.apiRequest)(Object.assign({url:s.default.CategoryAudience.url({id:e}),method:s.default.CategoryAudience.method},t))}},{key:"getCategoryFollowers",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.CategoryFollowers.url({id:e}),method:s.default.CategoryFollowers.method,params:t},r))}},{key:"getCategoryFeed",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.CategoryFeed.url({id:e}),method:s.default.CategoryFeed.method,params:t},r))}},{key:"getCategoryTrendingFeed",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{params:t,url:s.default.CategoryTrendingFeed.url({id:e}),method:s.default.CategoryTrendingFeed.method}))}},{key:"getCategoryTrendingFollowers",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.CategoryTrendingPeople.url({id:e}),method:s.default.CategoryTrendingPeople.method,params:t},r))}},{key:"followCategory",value:function(e,t){return(0,l.apiRequest)(Object.assign({url:s.default.FollowCategory.url({id:e}),method:s.default.FollowCategory.method},t))}},{key:"checkCategoryIsFollowed",value:function(e,t){return(0,l.apiRequest)(Object.assign({url:s.default.CheckCategoryIsFollowed.url({id:e}),method:s.default.CheckCategoryIsFollowed.method},t))}},{key:"getFollowedCategories",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:s.default.CategoriesFollowed.url({}),method:s.default.CategoriesFollowed.method}))}},{key:"getPopularCategories",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:s.default.PopularCategories.url({}),method:s.default.PopularCategories.method}))}}])}();t.CategoryApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllCategories",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getAllCategories(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchCategory",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.searchCategory(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createCategory",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.createCategory(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificCategory",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getSpecificCategory(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateASpecificCategory",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.updateASpecificCategory(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"patchASpecificCategory",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.patchASpecificCategory(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"deleteASpecificCategory",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.deleteASpecificCategory(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getCategoryAudience",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getCategoryAudience(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getCategoryFollowers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.getCategoryFollowers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCategoryFeed",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.getCategoryFeed(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCategoryTrendingFeed",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.getCategoryTrendingFeed(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCategoryTrendingFollowers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.getCategoryTrendingFollowers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"followCategory",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.followCategory(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"checkCategoryIsFollowed",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.checkCategoryIsFollowed(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getFollowedCategories",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getFollowedCategories(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getPopularCategories",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getPopularCategories(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=d},1358:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.CommentApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllComments",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.Comments.url({}),"?").concat(r.toString()),method:s.default.Comments.method}))}},{key:"createComment",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.NewComment.url({}),method:s.default.NewComment.method,data:e}))}},{key:"getASpecificComment",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.Comment.url({id:e}),method:s.default.Comment.method}))}},{key:"updateComment",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.UpdateComment.url({id:e}),method:s.default.UpdateComment.method,data:{text:t}}))}},{key:"deleteComment",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.DeleteComment.url({id:e}),method:s.default.DeleteComment.method}))}},{key:"restoreComment",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.RestoreComment.url({id:e}),method:s.default.RestoreComment.method}))}},{key:"getSpecificCommentVotesList",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CommentVotesList.url({id:e}),method:s.default.CommentVotesList.method}))}},{key:"upvoteComment",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CommentVote.url({id:e}),method:s.default.CommentVote.method}))}},{key:"getSpecificCommentFlags",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CommentFlagList.url({id:e}),method:s.default.CommentFlagList.method}))}},{key:"flagComment",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.FlagComment.url({id:e}),method:s.default.FlagComment.method,data:{flagType:t}}))}},{key:"getSpecificCommentFlagStatus",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CommentFlagStatus.url({id:e}),method:s.default.CommentFlagStatus.method}))}}])}();t.CommentApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllComments",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllComments(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createComment",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createComment(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getASpecificComment",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getASpecificComment(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateComment",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.updateComment(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"deleteComment",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.deleteComment(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"restoreComment",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.restoreComment(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificCommentVotesList",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificCommentVotesList(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"upvoteComment",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.upvoteComment(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificCommentFlags",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificCommentFlags(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"flagComment",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.flagComment(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getSpecificCommentFlagStatus",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificCommentFlagStatus(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},6925:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.CommunityApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getCommunities",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetCommunities.url({}),"?").concat(r.toString()),method:s.default.GetCommunities.method}))}},{key:"getCommunity",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetCommunity.url({id:e}),method:s.default.GetCommunity.method}))}}])}();t.CommunityApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getCommunities",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getCommunities(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getPaymentProduct",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getCommunity(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},8008:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.CourseApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"changeCourseUserRole",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.ChangeCourseUserRole.url({id:e}),method:s.default.ChangeCourseUserRole.method,data:t}))}},{key:"getJoinedCourses",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetJoinedCourses.url({}),"?").concat(r.toString()),method:s.default.GetJoinedCourses.method}))}},{key:"getUserJoinedCourses",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{params:t,url:s.default.GetUserJoinedCourses.url({id:e}),method:s.default.GetUserJoinedCourses.method}))}},{key:"searchCourses",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:s.default.SearchCourses.url({}),method:s.default.SearchCourses.method}))}},{key:"getSpecificCourseInfo",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{params:t,url:s.default.GetCourseInfo.url({id:e}),method:s.default.GetCourseInfo.method}))}},{key:"getCourseDashboardUsers",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{params:t,url:s.default.GetCourseDashboardUsers.url({id:e}),method:s.default.GetCourseDashboardUsers.method}))}},{key:"createCourse",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CreateCourse.url({}),method:s.default.CreateCourse.method,data:e}))}},{key:"updateCourse",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.UpdateCourse.url({id:e}),method:s.default.UpdateCourse.method,data:t}))}},{key:"patchCourse",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.PatchCourse.url({id:e}),method:s.default.PatchCourse.method,data:t}))}},{key:"deleteCourse",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.DeleteCourse.url({id:e}),method:s.default.DeleteCourse.method}))}},{key:"getCourseLessonComment",value:function(e,t,r,n,o){return(0,l.apiRequest)(Object.assign(Object.assign({},o),{url:s.default.GetCourseLessonComment.url({id:e,section_id:t,lesson_id:r,comment_id:n}),method:s.default.GetCourseLessonComment.method}))}},{key:"getCourseComments",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.GetCourseComments.url({id:e}),method:s.default.GetCourseComments.method,params:t}))}},{key:"createCourseComment",value:function(e,t,r,n,o){return(0,l.apiRequest)(Object.assign(Object.assign({},o),{url:s.default.CreateCourseComment.url({id:e,section_id:t,lesson_id:r}),method:s.default.CreateCourseComment.method,data:n}))}},{key:"updateCourseComment",value:function(e,t,r,n,o,i){return(0,l.apiRequest)(Object.assign(Object.assign({},i),{url:s.default.UpdateCourseComment.url({id:e,section_id:t,lesson_id:r,comment_id:n}),method:s.default.UpdateCourseComment.method,data:o}))}},{key:"patchCourseComment",value:function(e,t,r,n,o,i){return(0,l.apiRequest)(Object.assign(Object.assign({},i),{url:s.default.PatchCourseComment.url({id:e,section_id:t,lesson_id:r,comment_id:n}),method:s.default.PatchCourseComment.method,data:o}))}},{key:"deleteCourseComment",value:function(e,t,r,n,o){return(0,l.apiRequest)(Object.assign(Object.assign({},o),{url:s.default.DeleteCourseComment.url({id:e,section_id:t,lesson_id:r,comment_id:n}),method:s.default.DeleteCourseComment.method}))}},{key:"getCourseSection",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.GetCourseSection.url({id:e,section_id:t}),method:s.default.GetCourseSection.method}))}},{key:"getCourseSections",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetCourseSections.url({id:e}),method:s.default.GetCourseSections.method}))}},{key:"createCourseSection",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.CreateCourseSection.url({id:e}),method:s.default.CreateCourseSection.method,data:t}))}},{key:"updateCourseSection",value:function(e,t,r,n){return(0,l.apiRequest)(Object.assign(Object.assign({},n),{url:s.default.UpdateCourseSection.url({id:e,section_id:t}),method:s.default.UpdateCourseSection.method,data:r}))}},{key:"patchCourseSection",value:function(e,t,r,n){return(0,l.apiRequest)(Object.assign(Object.assign({},n),{url:s.default.PatchCourseSection.url({id:e,section_id:t}),method:s.default.PatchCourseSection.method,data:r}))}},{key:"deleteCourseSection",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.DeleteCourseSection.url({id:e,section_id:t}),method:s.default.DeleteCourseSection.method}))}},{key:"getCourseLesson",value:function(e,t,r,n){return(0,l.apiRequest)(Object.assign(Object.assign({},n),{url:s.default.GetCourseLesson.url({id:e,section_id:t,lesson_id:r}),method:s.default.GetCourseLesson.method}))}},{key:"getCourseLessonComments",value:function(e,t,r,n,o){return(0,l.apiRequest)(Object.assign(Object.assign({},o),{url:s.default.GetCourseLessonComments.url({id:e,section_id:t,lesson_id:r}),method:s.default.GetCourseLessonComments.method,params:n}))}},{key:"getCourseLessons",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.GetCourseLessons.url({id:e,section_id:t}),method:s.default.GetCourseLessons.method}))}},{key:"createCourseLesson",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CreateCourseLesson.url({}),method:s.default.CreateCourseLesson.method,data:e}))}},{key:"updateCourseLesson",value:function(e,t,r,n,o){return(0,l.apiRequest)(Object.assign(Object.assign({},o),{url:s.default.UpdateCourseLesson.url({id:e,section_id:t,lesson_id:r}),method:s.default.UpdateCourseLesson.method,data:n}))}},{key:"patchCourseLesson",value:function(e,t,r,n,o){return(0,l.apiRequest)(Object.assign(Object.assign({},o),{url:s.default.PatchCourseLesson.url({id:e,section_id:t,lesson_id:r}),method:s.default.PatchCourseLesson.method,data:n}))}},{key:"deleteCourseLesson",value:function(e,t,r,n){return(0,l.apiRequest)(Object.assign(Object.assign({},n),{url:s.default.DeleteCourseLesson.url({id:e,section_id:t,lesson_id:r}),method:s.default.DeleteCourseLesson.method}))}},{key:"markLessonComplete",value:function(e,t,r,n){return(0,l.apiRequest)(Object.assign(Object.assign({},n),{url:s.default.MarkLessonComplete.url({id:e,section_id:t,lesson_id:r}),method:s.default.MarkLessonComplete.method}))}},{key:"markLessonIncomplete",value:function(e,t,r,n){return(0,l.apiRequest)(Object.assign(Object.assign({},n),{url:s.default.MarkLessonIncomplete.url({id:e,section_id:t,lesson_id:r}),method:s.default.MarkLessonIncomplete.method}))}},{key:"changeCourseCover",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.PatchCourse.url({id:e}),method:s.default.PatchCourse.method,data:t},r))}},{key:"getCourseWaitingApproval",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetCourseWaitingApproval.url({id:e}),"?").concat(n.toString()),method:s.default.GetCourseWaitingApproval.method}))}},{key:"getCourseSuggestedUsers",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.GetCourseSuggestedUsers.url({id:e,search:t}),method:s.default.GetCourseSuggestedUsers.method}))}},{key:"getCourseInvitedUsers",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetCourseInvitedUsers.url({id:e}),"?").concat(n.toString()),method:s.default.GetCourseInvitedUsers.method}))}},{key:"getCourseJoinedUsers",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetCourseJoinedUsers.url({id:e}),"?").concat(n.toString()),method:s.default.GetCourseJoinedUsers.method}))}},{key:"joinOrAcceptInviteToCourse",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.JoinOrAcceptInviteToCourse.url({id:e}),method:s.default.JoinOrAcceptInviteToCourse.method}))}},{key:"leaveOrRemoveCourseRequest",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.LeaveOrRemoveCourseRequest.url({id:e}),method:s.default.LeaveOrRemoveCourseRequest.method,params:t}))}},{key:"inviteOrAcceptUsersToCourse",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.InviteOrAcceptUsersToCourse.url({id:e}),method:s.default.InviteOrAcceptUsersToCourse.method,data:t}))}},{key:"removeInvitationToCourse",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.RemoveInvitationToCourse.url({id:e}),method:s.default.RemoveInvitationToCourse.method,data:t}))}},{key:"getCourseStatus",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetCourseStatus.url({id:e}),method:s.default.GetCourseStatus.method}))}}])}();t.CourseApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"changeCourseUserRole",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.changeCourseUserRole(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getJoinedCourses",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getJoinedCourses(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserJoinedCourses",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserJoinedCourses(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"searchCourses",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchCourses(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificCourseInfo",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getSpecificCourseInfo(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCourseDashboardUsers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getCourseDashboardUsers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"createCourse",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createCourse(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateCourse",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.updateCourse(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"patchCourse",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.patchCourse(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"deleteCourse",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.deleteCourse(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getCourseLessonComment",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.getCourseLessonComment(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"getCourseComments",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getCourseComments(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"createCourseComment",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.createCourseComment(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"updateCourseComment",value:function(e,t,r,n,i,a){return c.__awaiter(this,void 0,void 0,o().mark((function u(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.updateCourseComment(e,t,r,n,i,a));case 1:case"end":return o.stop()}}),u)})))}},{key:"patchCourseComment",value:function(e,t,r,n,i,a){return c.__awaiter(this,void 0,void 0,o().mark((function u(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.patchCourseComment(e,t,r,n,i,a));case 1:case"end":return o.stop()}}),u)})))}},{key:"deleteCourseComment",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.deleteCourseComment(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"getCourseSection",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getCourseSection(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCourseSections",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getCourseSections(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createCourseSection",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.createCourseSection(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"updateCourseSection",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.updateCourseSection(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"patchCourseSection",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.patchCourseSection(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"deleteCourseSection",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.deleteCourseSection(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCourseLesson",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.getCourseLesson(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"getCourseLessonComments",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.getCourseLessonComments(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"getCourseLessons",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getCourseLessons(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"createCourseLesson",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createCourseLesson(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateCourseLesson",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.updateCourseLesson(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"patchCourseLesson",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.patchCourseLesson(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"deleteCourseLesson",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.deleteCourseLesson(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"markLessonComplete",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.markLessonComplete(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"markLessonIncomplete",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.markLessonIncomplete(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"changeCourseCover",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.changeCourseCover(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCourseWaitingApproval",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getCourseWaitingApproval(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCourseSuggestedUsers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getCourseSuggestedUsers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCourseInvitedUsers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getCourseInvitedUsers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCourseJoinedUsers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getCourseJoinedUsers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"joinOrAcceptInviteToCourse",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.joinOrAcceptInviteToCourse(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"leaveOrRemoveCourseRequest",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.leaveOrRemoveCourseRequest(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"inviteOrAcceptUsersToCourse",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.inviteOrAcceptUsersToCourse(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"removeInvitationToCourse",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.removeInvitationToCourse(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCourseStatus",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getCourseStatus(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},6598:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAdvApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getASpecificCustomAdv",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CustomAdv.url({id:e}),method:l.default.CustomAdv.method}))}},{key:"getAllCustomAdv",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.CustomAdvList.url({}),"?").concat(r.toString()),method:l.default.CustomAdvList.method}))}},{key:"searchCustomAdv",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.CustomAdvSearch.url({}),"?").concat(r.toString()),method:l.default.CustomAdvSearch.method}))}}])}();t.CustomAdvApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getASpecificCustomAdv",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getASpecificCustomAdv(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAllCustomAdv",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllCustomAdv(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchCustomAdv",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchCustomAdv(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},9053:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.CustomMenuApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getASpecificCustomMenu",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CustomMenu.url({id:e}),method:s.default.CustomMenu.method}))}},{key:"getAllCustomMenus",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetCustomMenus.url({}),"?").concat(r.toString()),method:s.default.GetCustomMenus.method}))}},{key:"getBaseCustomMenu",value:function(e){return(0,l.apiRequest)(Object.assign(Object.assign({},e),{url:s.default.CustomMenu.url({id:"base"}),method:s.default.CustomMenu.method}))}},{key:"searchCustomMenus",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.CustomMenuSearch.url({}),"?").concat(r.toString()),method:s.default.CustomMenuSearch.method}))}}])}();t.CustomMenuApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getASpecificCustomMenu",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getASpecificCustomMenu(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAllCustomMenus",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllCustomMenus(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getBaseCustomMenu",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getBaseCustomMenu(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"searchCustomMenus",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchCustomMenus(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},2897:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPageApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getASpecificCustomPage",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CustomPage.url({id:e}),method:s.default.CustomPage.method}))}},{key:"getAllCustomPages",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetCustomPages.url({}),"?").concat(r.toString()),method:s.default.GetCustomPages.method}))}},{key:"searchCustomPages",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.CustomPageSearch.url({}),"?").concat(r.toString()),method:s.default.CustomPageSearch.method}))}}])}();t.CustomPageApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getASpecificCustomPage",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getASpecificCustomPage(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAllCustomPages",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllCustomPages(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchCustomPages",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchCustomPages(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},2230:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.DataPortabilityApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=function(){return u((function e(){i(this,e)}),null,[{key:"generateDataPortability",value:function(e){return(0,s.apiRequest)(Object.assign({url:l.default.GenerateDataPortability.url({}),method:l.default.GenerateDataPortability.method},e))}},{key:"downloadDataPortability",value:function(e){return(0,s.apiRequest)(Object.assign({url:l.default.DataPortabilityDownload.url({}),method:l.default.DataPortabilityDownload.method,responseType:"blob"},e))}},{key:"dataPortabilityStatus",value:function(e){return(0,s.apiRequest)(Object.assign({url:l.default.DataPortabilityStatus.url({}),method:l.default.DataPortabilityStatus.method},e))}}])}();t.DataPortabilityApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"generateDataPortability",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.generateDataPortability(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"downloadDataPortability",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.downloadDataPortability(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"dataPortabilityStatus",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.dataPortabilityStatus(e));case 1:case"end":return t.stop()}}),t)})))}}])}();t.default=d},3755:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllEmbeds",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.EmbedList.url({}),"?").concat(r.toString()),method:l.default.EmbedList.method}))}},{key:"createEmbed",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.EmbedCreate.url({}),method:l.default.EmbedCreate.method,data:e}))}},{key:"searchEmbed",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.EmbedSearch.url({}),"?").concat(r.toString()),method:l.default.EmbedSearch.method}))}},{key:"getSpecificEmbed",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.Embed.url({id:e}),method:l.default.Embed.method}))}},{key:"updateASpecificEmbed",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UpdateEmbed.url({id:e}),method:l.default.UpdateEmbed.method,data:t}))}},{key:"patchASpecificEmbed",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.PatchEmbed.url({id:e}),method:l.default.PatchEmbed.method,data:t}))}},{key:"getEmbedFeed",value:function(e,t,r){var n=(0,f.urlParams)(Object.assign(Object.assign({},e&&{embed_type:e}),t&&{embed_id:t}));return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.EmbedFeed.url({}),"?").concat(n.toString()),method:l.default.EmbedFeed.method}))}},{key:"getSpecificEmbedFeed",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.SpecificEmbedFeed.url({id:e}),method:l.default.SpecificEmbedFeed.method}))}}])}();t.EmbedApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllEmbeds",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllEmbeds(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchEmbed",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchEmbed(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createEmbed",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createEmbed(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificEmbed",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificEmbed(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateASpecificEmbed",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.updateASpecificEmbed(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"patchASpecificEmbed",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.patchASpecificEmbed(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getEmbedFeed",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEmbedFeed(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getSpecificEmbedFeed",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificEmbedFeed(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},2554:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.EventApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getUserEvents",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetUserEvents.url({}),"?").concat(r.toString()),method:s.default.GetUserEvents.method}))}},{key:"getUserSubscribedEvents",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetUserSubscribedEvents.url({id:e}),"?").concat(n.toString()),method:s.default.GetUserSubscribedEvents.method}))}},{key:"getUserCreatedEvents",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetUserCreatedEvents.url({}),"?").concat(r.toString()),method:s.default.GetUserCreatedEvents.method}))}},{key:"searchEvents",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.SearchEvents.url({}),"?").concat(r.toString()),method:s.default.SearchEvents.method}))}},{key:"getSpecificEventInfo",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetEventInfo.url({id:e}),method:s.default.GetEventInfo.method}))}},{key:"getEventFeed",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetEventFeed.url({id:e}),"?").concat(n.toString()),method:s.default.GetEventFeed.method}))}},{key:"createEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CreateEvent.url({}),method:s.default.CreateEvent.method,data:e}))}},{key:"updateEvent",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.UpdateEvent.url({id:e}),method:s.default.UpdateEvent.method,data:t}))}},{key:"patchEvent",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.PatchEvent.url({id:e}),method:s.default.PatchEvent.method,data:t}))}},{key:"deleteEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.DeleteEvent.url({id:e}),method:s.default.DeleteEvent.method}))}},{key:"changeEventCover",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.PatchEvent.url({id:e}),method:s.default.PatchEvent.method,data:t},r))}},{key:"getEventMembers",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetEventSubscribers.url({id:e}),"?").concat(n.toString()),method:s.default.GetEventSubscribers.method}))}},{key:"getEventWaitingApprovalSubscribers",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetEventWaitingApprovalSubscribers.url({id:e}),"?").concat(n.toString()),method:s.default.GetEventSubscribers.method}))}},{key:"getEventSuggestedUsers",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.GetEventSuggestedUsers.url({id:e,search:t}),method:s.default.GetEventSuggestedUsers.method}))}},{key:"getEventsSuggestedUsers",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetEventsSuggestedUsers.url({search:e}),method:s.default.GetEventsSuggestedUsers.method}))}},{key:"getEventInvitedUsers",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetEventInvitedUsers.url({id:e}),"?").concat(n.toString()),method:s.default.GetEventInvitedUsers.method}))}},{key:"getUsersGoingToEvent",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetUsersGoingToEvent.url({id:e}),"?").concat(n.toString()),method:s.default.GetUsersGoingToEvent.method}))}},{key:"getUsersNotGoingToEvent",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetUsersNotGoingToEvent.url({id:e}),"?").concat(n.toString()),method:s.default.GetUsersNotGoingToEvent.method}))}},{key:"subscribeToEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.SubscribeToEvent.url({id:e}),method:s.default.SubscribeToEvent.method}))}},{key:"unsubscribeFromEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.UnsubscribeFromEvent.url({id:e}),method:s.default.UnsubscribeFromEvent.method}))}},{key:"inviteOrAcceptEventRequest",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.InviteOrAcceptEventRequest.url({id:e}),method:s.default.InviteOrAcceptEventRequest.method,data:t}))}},{key:"removeInviteEvent",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.RemoveInviteEvent.url({id:e}),method:s.default.RemoveInviteEvent.method,data:t}))}},{key:"getEventSubscriptionStatus",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetEventSubscriptionStatus.url({id:e}),method:s.default.GetEventSubscriptionStatus.method}))}},{key:"goToEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GoToEvent.url({id:e}),method:s.default.GoToEvent.method}))}},{key:"removeGoingToEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.RemoveGoingToEvent.url({id:e}),method:s.default.RemoveGoingToEvent.method}))}},{key:"notGoingToEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.NotGoingToEvent.url({id:e}),method:s.default.NotGoingToEvent.method}))}},{key:"removeNotGoingToEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.RemoveNotGoingToEvent.url({id:e}),method:s.default.RemoveNotGoingToEvent.method}))}},{key:"getEventRelated",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetEventRelated.url({id:e}),"?").concat(n.toString()),method:s.default.GetEventRelated.method}))}},{key:"showEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.ShowEvent.url({id:e}),method:s.default.ShowEvent.method}))}},{key:"hideEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.hideEvent.url({id:e}),method:s.default.hideEvent.method}))}},{key:"getEventPhotoGallery",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetEventPhotoGallery.url({id:e}),"?").concat(n.toString()),method:s.default.GetEventPhotoGallery.method}))}},{key:"addMediaToEventPhotoGallery",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.AddMediaToEventPhotoGallery.url({id:e}),method:s.default.AddMediaToEventPhotoGallery.method}))}},{key:"removeMediasFromEventPhotoGallery",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.RemoveMediasFromEventPhotoGallery.url({id:e}),method:s.default.RemoveMediasFromEventPhotoGallery.method}))}}])}();t.EventApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getUserEvents",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserEvents(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserSubscribedEvents",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserSubscribedEvents(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getUserCretaedEvents",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserCreatedEvents(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchEvents",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchEvents(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificEventInfo",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificEventInfo(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getEventFeed",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEventFeed(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"createEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateEvent",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.updateEvent(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"patchEvent",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.patchEvent(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"deleteEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.deleteEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"changeEventCover",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.changeEventCover(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getEventMembers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEventMembers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getEventWaitingApprovalSubscribers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEventWaitingApprovalSubscribers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getEventSuggestedUsers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEventSuggestedUsers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getEventsSuggestedUsers",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getEventsSuggestedUsers(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getEventInvitedUsers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEventInvitedUsers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getUsersGoingToEvent",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUsersGoingToEvent(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getUsersNotGoingToEvent",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUsersNotGoingToEvent(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"subscribeToEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.subscribeToEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"unsubscribeFromEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.unsubscribeFromEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"inviteOrAcceptEventRequest",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.inviteOrAcceptEventRequest(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"removeInviteEvent",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.removeInviteEvent(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getEventSubscriptionStatus",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getEventSubscriptionStatus(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"goToEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.goToEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"removeGoingToEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.removeGoingToEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"notGoingToEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.notGoingToEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"removeNotGoingToEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.removeNotGoingToEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getEventRelated",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEventRelated(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"showEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.showEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"hideEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.hideEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getEventPhotoGallery",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEventPhotoGallery(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"addMediaToEventPhotoGallery",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.addMediaToEventPhotoGallery(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"removeMediasFromEventPhotoGallery",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.removeMediasFromEventPhotoGallery(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},3537:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllFeatures",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.Feature.url({}),"?").concat(r.toString()),method:l.default.Feature.method}))}}])}();t.FeatureApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllFeatures",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllFeatures(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},3663:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.FeedApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getMainFeed",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.MainFeed.url({}),"?").concat(r.toString()),method:l.default.MainFeed.method}))}},{key:"getExploreFeed",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.ExploreFeed.url({}),"?").concat(r.toString()),method:l.default.ExploreFeed.method}))}},{key:"getMainFeedUnseenCount",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.MainFeedUnseenCount.url({}),method:l.default.MainFeedUnseenCount.method}))}},{key:"markReadASpecificFeedObj",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.FeedObjectMarkRead.url({}),method:l.default.FeedObjectMarkRead.method,data:{object:e}}))}},{key:"likeFeedObjs",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.FeedLikeThese.url({}),method:l.default.FeedLikeThese.method,data:{object:e}}))}}])}();t.FeedApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getMainFeed",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getMainFeed(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getExploreFeed",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getExploreFeed(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getMainFeedUnseenCount",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getMainFeedUnseenCount(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"markReadASpecificFeedObj",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.markReadASpecificFeedObj(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"likeFeedObjs",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.likeFeedObjs(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},1117:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.FeedObjectApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllFeedObjects",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.FeedObjectList.url({type:e}),"?").concat(n.toString()),method:l.default.FeedObjectList.method}))}},{key:"getUncommentedFeedObjects",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.FeedObjectsUncommented.url({type:e}),"?").concat(n.toString()),method:l.default.FeedObjectsUncommented.method}))}},{key:"searchFeedObject",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.SearchFeedObject.url({type:e}),"?").concat(n.toString()),method:l.default.SearchFeedObject.method}))}},{key:"createFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.CreateFeedObject.url({type:e}),method:l.default.CreateFeedObject.method,data:t}))}},{key:"getSpecificFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.FeedObject.url({type:e,id:t}),method:l.default.FeedObject.method}))}},{key:"updateFeedObject",value:function(e,t,r,n){return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:l.default.UpdateFeedObject.url({id:t,type:e}),method:l.default.UpdateFeedObject.method,data:r}))}},{key:"deleteFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.DeleteFeedObject.url({type:e,id:t}),method:l.default.DeleteFeedObject.method}))}},{key:"feedObjectContributorsList",value:function(e,t,r,n){var o=(0,f.urlParams)(r);return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:"".concat(l.default.FeedObjectContributorsList.url({type:e,id:t}),"?").concat(o.toString()),method:l.default.FeedObjectContributorsList.method}))}},{key:"feedObjectSharesList",value:function(e,t,r,n){var o=(0,f.urlParams)(r);return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:"".concat(l.default.FeedObjectSharesList.url({type:e,id:t}),"?").concat(o.toString()),method:l.default.FeedObjectSharesList.method}))}},{key:"feedObjectUserSharesList",value:function(e,t,r,n){var o=(0,f.urlParams)(r);return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:"".concat(l.default.FeedObjectUserSharesList.url({type:e,id:t}),"?").concat(o.toString()),method:l.default.FeedObjectUserSharesList.method}))}},{key:"restoreFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.RestoreFeedObject.url({type:e,id:t}),method:l.default.RestoreFeedObject.method}))}},{key:"relatedFeedObjects",value:function(e,t,r,n){var o=(0,f.urlParams)(r);return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:"".concat(l.default.RelatedFeedObjects.url({type:e,id:t}),"?").concat(o.toString()),method:l.default.RelatedFeedObjects.method}))}},{key:"voteFeedObject",value:function(e,t,r,n){var o=(0,f.urlParams)(Object.assign({},r&&{reaction:r}));return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:"".concat(l.default.Vote.url({type:e,id:t}),"?").concat(o.toString()),method:l.default.Vote.method}))}},{key:"feedObjectVotes",value:function(e,t,r,n){var o=(0,f.urlParams)(r);return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:"".concat(l.default.VotesList.url({type:e,id:t}),"?").concat(o.toString()),method:l.default.VotesList.method}))}},{key:"feedObjectPollVote",value:function(e,t,r,n){return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:l.default.PollVote.url({type:e,id:t}),method:l.default.PollVote.method,data:{choice:r}}))}},{key:"feedObjectPollVotesList",value:function(e,t,r,n){var o=(0,f.urlParams)(r);return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:"".concat(l.default.PollVotesList.url({type:e,id:t}),"?").concat(o.toString()),method:l.default.PollVotesList.method}))}},{key:"followFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.FollowContribution.url({id:t}),method:l.default.FollowContribution.method}))}},{key:"feedObjectFollowingList",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.FeedObjectFollowingList.url({type:e}),"?").concat(n.toString()),method:l.default.FeedObjectFollowingList.method}))}},{key:"checkIfFollowingFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.CheckIfFollowingFeedObject.url({type:e,id:t}),method:l.default.CheckIfFollowingFeedObject.method}))}},{key:"suspendFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserSuspendContributionNotification.url({type:e,id:t}),method:l.default.UserSuspendContributionNotification.method}))}},{key:"checkIfSuspendedFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserCheckContributionNotificationSuspended.url({type:e,id:t}),method:l.default.UserCheckContributionNotificationSuspended.method}))}},{key:"feedObjectSuspendedList",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.UserListContributionNotificationSuspended.url({type:e}),"?").concat(n.toString()),method:l.default.UserListContributionNotificationSuspended.method}))}},{key:"flagFeedObject",value:function(e,t,r,n){return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:l.default.Flag.url({type:e,id:t}),method:l.default.Flag.method,data:r}))}},{key:"feedObjectFlagStatus",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.FlagStatus.url({type:e,id:t}),method:l.default.FlagStatus.method}))}},{key:"feedObjectFlagList",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.FeedObjectFlagList.url({type:e,id:t}),method:l.default.FeedObjectFlagList.method}))}},{key:"hideFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.HideFeedObject.url({type:e,id:t}),method:l.default.HideFeedObject.method}))}},{key:"feedObjectHideStatus",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.FeedObjectHideStatus.url({type:e,id:t}),method:l.default.FeedObjectHideStatus.method}))}}])}();t.FeedObjectApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllFeedObjects",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getAllFeedObjects(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getUncommentedFeedObjects",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUncommentedFeedObjects(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"searchFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.searchFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"createFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.createFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getSpecificFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getSpecificFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"updateFeedObject",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.updateFeedObject(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"deleteFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.deleteFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"feedObjectContributorsList",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.feedObjectContributorsList(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"feedObjectSharesList",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.feedObjectSharesList(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"feedObjectUserSharesList",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.feedObjectUserSharesList(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"restoreFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.restoreFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"relatedFeedObjects",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.relatedFeedObjects(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"voteFeedObject",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.voteFeedObject(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"feedObjectVotes",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.feedObjectVotes(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"feedObjectPollVote",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.feedObjectPollVote(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"feedObjectPollVotesList",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.feedObjectPollVotesList(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"followFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.followFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"feedObjectFollowingList",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.feedObjectFollowingList(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"checkIfFollowingFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.checkIfFollowingFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"suspendFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.suspendFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"checkIfSuspendedFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.checkIfSuspendedFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"feedObjectSuspendedList",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.feedObjectSuspendedList(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"flagFeedObject",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.flagFeedObject(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"feedObjectFlagList",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.feedObjectFlagList(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"feedObjectFlagStatus",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.feedObjectFlagStatus(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"hideFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.hideFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"feedObjectHideStatus",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.feedObjectHideStatus(e,t,r));case 1:case"end":return n.stop()}}),n)})))}}])}();t.default=p},53:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.GroupApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getUserGroups",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.GetUserGroups.url({}),"?").concat(r.toString()),method:l.default.GetUserGroups.method}))}},{key:"getUserSubscribedGroups",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.GetUserSubscribedGroups.url({id:e}),"?").concat(n.toString()),method:l.default.GetUserSubscribedGroups.method}))}},{key:"searchGroups",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.SearchGroups.url({}),"?").concat(r.toString()),method:l.default.SearchGroups.method}))}},{key:"getSpecificGroupInfo",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetGroupInfo.url({id:e}),method:l.default.GetGroupInfo.method}))}},{key:"getGroupFeed",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.GetGroupFeed.url({id:e}),"?").concat(n.toString()),method:l.default.GetGroupFeed.method}))}},{key:"createGroup",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CreateGroup.url({}),method:l.default.CreateGroup.method,data:e}))}},{key:"updateGroup",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UpdateGroup.url({id:e}),method:l.default.UpdateGroup.method,data:t}))}},{key:"patchGroup",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.PatchGroup.url({id:e}),method:l.default.PatchGroup.method,data:t}))}},{key:"deleteGroup",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.DeleteGroup.url({id:e}),method:l.default.DeleteGroup.method}))}},{key:"changeGroupAvatarOrCover",value:function(e,t,r){return(0,s.apiRequest)(Object.assign({url:l.default.PatchGroup.url({id:e}),method:l.default.PatchGroup.method,data:t},r))}},{key:"getGroupMembers",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.GetGroupSubscribers.url({id:e}),"?").concat(n.toString()),method:l.default.GetGroupSubscribers.method}))}},{key:"getGroupSuggestedUsers",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.GetGroupSuggestedUsers.url({id:e,search:t}),method:l.default.GetGroupSuggestedUsers.method}))}},{key:"getGroupsSuggestedUsers",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetGroupsSuggestedUsers.url({search:e}),method:l.default.GetGroupsSuggestedUsers.method}))}},{key:"removeUserFromGroup",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.RemoveUserFromGroup.url({id:e,user:t}),method:l.default.RemoveUserFromGroup.method}))}},{key:"getGroupInvitedUsers",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.GetGroupInvitedUsers.url({id:e}),"?").concat(n.toString()),method:l.default.GetGroupInvitedUsers.method}))}},{key:"subscribeToGroup",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.SubscribeToGroup.url({id:e}),method:l.default.SubscribeToGroup.method}))}},{key:"unsubscribeFromGroup",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UnsubscribeFromGroup.url({id:e}),method:l.default.UnsubscribeFromGroup.method}))}},{key:"inviteOrAcceptGroupRequest",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.InviteOrAcceptGroupRequest.url({id:e}),method:l.default.InviteOrAcceptGroupRequest.method,data:t}))}},{key:"getGroupSubscriptionStatus",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetGroupSubscriptionStatus.url({id:e}),method:l.default.GetGroupSubscriptionStatus.method}))}},{key:"getGroupWaitingApprovalSubscribers",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.GetGroupWaitingApprovalSubscribers.url({id:e}),"?").concat(n.toString()),method:l.default.GetGroupWaitingApprovalSubscribers.method}))}}])}();t.GroupApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getUserGroups",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserGroups(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserSubscribedGroups",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserSubscribedGroups(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"searchGroups",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchGroups(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificGroupInfo",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificGroupInfo(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getGroupFeed",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getGroupFeed(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"createGroup",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createGroup(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateGroup",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.updateGroup(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"patchGroup",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.patchGroup(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"deleteGroup",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.deleteGroup(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"changeGroupAvatarOrCover",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.changeGroupAvatarOrCover(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getGroupMembers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getGroupMembers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getGroupSuggestedUsers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getGroupSuggestedUsers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getGroupsSuggestedUsers",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getGroupsSuggestedUsers(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"removeUserFromGroup",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.removeUserFromGroup(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getGroupInvitedUsers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getGroupInvitedUsers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"subscribeToGroup",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.subscribeToGroup(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"unsubscribeFromGroup",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.unsubscribeFromGroup(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"inviteOrAcceptGroupRequest",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.inviteOrAcceptGroupRequest(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getGroupSubscriptionStatus",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getGroupSubscriptionStatus(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getGroupWaitingApprovalSubscribers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getGroupWaitingApprovalSubscribers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}}])}();t.default=p},8473:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.IncubatorApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllIncubators",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.GetAllIncubators.url({}),"?").concat(r.toString()),method:l.default.GetAllIncubators.method}))}},{key:"searchIncubators",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.SearchIncubators.url({}),"?").concat(r.toString()),method:l.default.SearchIncubators.method}))}},{key:"getSpecificIncubator",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetASpecificIncubator.url({id:e}),method:l.default.GetASpecificIncubator.method}))}},{key:"createIncubator",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CreateAnIncubator.url({}),method:l.default.CreateAnIncubator.method,data:e}))}},{key:"getIncubatorSubscribers",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetIncubatorSubscribers.url({id:e}),method:l.default.GetIncubatorSubscribers.method}))}},{key:"subscribeToIncubator",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.SubscribeToIncubator.url({id:e}),method:l.default.SubscribeToIncubator.method}))}},{key:"checkIncubatorSubscription",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CheckIncubatorSubscription.url({id:e}),method:l.default.CheckIncubatorSubscription.method}))}}])}();t.IncubatorApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllIncubators",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllIncubators(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchIncubators",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchIncubators(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificIncubator",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificIncubator(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createIncubator",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createIncubator(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getIncubatorSubscribers",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getIncubatorSubscribers(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"subscribeToIncubator",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.subscribeToIncubator(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"checkIncubatorSubscription",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.checkIncubatorSubscription(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},3912:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.InsightApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getBestContributionInsight",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.InsightBestContribution.url({}),"?").concat(r.toString()),method:l.default.InsightBestContribution.method}))}},{key:"getBestEmbedInsight",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.InsightBestEmbed.url({}),"?").concat(r.toString()),method:l.default.InsightBestEmbed.method}))}},{key:"getBestUsersInsight",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.InsightBestUser.url({}),"?").concat(r.toString()),method:l.default.InsightBestUser.method}))}},{key:"getContributionsInsightCounters",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.InsightContributionCounter.url({id:e}),method:l.default.InsightContributionCounter.method}))}},{key:"getEmbedsInsightCounters",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.InsightEmbedCounter.url({type:e,id:t}),method:l.default.InsightEmbedCounter.method}))}},{key:"getUsersInsightCounters",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.InsightUserCounter.url({id:e}),method:l.default.InsightUserCounter.method}))}}])}();t.InsightApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getBestContributionInsight",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getBestContributionInsight(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getBestEmbedInsight",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getBestEmbedInsight(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getBestUsersInsight",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getBestUsersInsight(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getContributionsInsightCounters",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getContributionsInsightCounters(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getEmbedsInsightCounters",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEmbedsInsightCounters(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getUsersInsightCounters",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUsersInsightCounters(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},9001:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.InviteApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=function(){return u((function e(){i(this,e)}),null,[{key:"getSpecificInvite",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.InviteCode.url({code:e}),method:s.default.User.method}))}}])}();t.InviteApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"getSpecificInvite",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getSpecificInvite(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=d},6433:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.LegalPageApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getLegalPages",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetLegalPages.url({}),"?").concat(r.toString()),method:s.default.GetLegalPages.method}))}},{key:"getSpecificLegalPage",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.LegalPage.url({id:e}),method:s.default.LegalPage.method}))}},{key:"getAllRevisionsOfLegalPage",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.LegalPageRevisions.url({policy:e}),method:s.default.LegalPageRevisions.method}))}},{key:"getAllLastRevisionsOfLegalPages",value:function(e){return(0,l.apiRequest)(Object.assign(Object.assign({},e),{url:s.default.LegalPagesLastRevision.url({}),method:s.default.LegalPagesLastRevision.method}))}},{key:"getLastRevisionOfLegalPage",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.LegalPageLastRevision.url({policy:e}),method:s.default.LegalPageLastRevision.method}))}},{key:"searchLegalPages",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.SearchLegalPages.url({}),"?").concat(r.toString()),method:s.default.SearchLegalPages.method}))}},{key:"ackLegalPage",value:function(e,t,r){var n;return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.AckLegalPage.url({id:e}),method:s.default.AckLegalPage.method,data:null!==(n={accept:t})&&void 0!==n?n:null}))}},{key:"getSpecificUserAck",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.SpecificUserAck.url({id:e}),method:s.default.SpecificUserAck.method}))}},{key:"userAckList",value:function(e){return(0,l.apiRequest)(Object.assign(Object.assign({},e),{url:s.default.UserAckList.url({}),method:s.default.UserAckList.method}))}}])}();t.LegalPageApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getLegalPages",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getLegalPages(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificLegalPage",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificLegalPage(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAllRevisionsOfLegalPage",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllRevisionsOfLegalPage(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAllLastRevisionsOfLegalPages",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getAllLastRevisionsOfLegalPages(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"getLastRevisionOfLegalPage",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getLastRevisionOfLegalPage(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchLegalPages",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchLegalPages(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"ackLegalPage",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.ackLegalPage(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getSpecificUserAck",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificUserAck(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userAckList",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.userAckList(e));case 1:case"end":return t.stop()}}),t)})))}}])}();t.default=p},448:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.LiveStreamApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"search",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.SearchLiveStream.url({}),"?").concat(r.toString()),method:s.default.SearchLiveStream.method}))}},{key:"getSpecificInfo",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetLiveStreamInfo.url({id:e}),method:s.default.GetLiveStreamInfo.method}))}},{key:"create",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CreateLiveStream.url({}),method:s.default.CreateLiveStream.method,data:e}))}},{key:"update",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.UpdateLiveStream.url({id:e}),method:s.default.UpdateLiveStream.method,data:t}))}},{key:"patch",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.PatchLiveStream.url({id:e}),method:s.default.PatchLiveStream.method,data:t}))}},{key:"delete",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.DeleteLiveStream.url({id:e}),method:s.default.DeleteLiveStream.method}))}},{key:"close",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CloseLiveStream.url({id:e}),method:s.default.CloseLiveStream.method}))}},{key:"changeCover",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.PatchLiveStream.url({id:e}),method:s.default.PatchLiveStream.method,data:t},r))}},{key:"join",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.JoinLiveStream.url({id:e}),method:s.default.JoinLiveStream.method}))}},{key:"removeParticipant",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.RemoveParticipant.url({id:e}),method:s.default.RemoveParticipant.method,data:t},r))}},{key:"getMonthlyDuration",value:function(e){return(0,l.apiRequest)(Object.assign(Object.assign({},e),{url:s.default.GetLiveStreamMonthlyDuration.url({}),method:s.default.GetLiveStreamMonthlyDuration.method}))}}])}();t.LiveStreamApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"search",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.search(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificInfo",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificInfo(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"create",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.create(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"update",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.update(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"patch",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.patch(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"delete",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.delete(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"close",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.close(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"changeCover",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.changeCover(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"join",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.join(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"removeParticipant",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.removeParticipant(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getMonthlyDuration",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getMonthlyDuration(e));case 1:case"end":return t.stop()}}),t)})))}}])}();t.default=p},1748:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.LocalityApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getLocalities",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetLocalities.url({}),"?").concat(r.toString()),method:s.default.GetLocalities.method}))}},{key:"searchLocalities",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.ComposerLocalitySearch.url({}),"?").concat(r.toString()),method:s.default.ComposerLocalitySearch.method}))}}])}();t.LocalityApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getLocalities",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getLocalities(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchLocalities",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchLocalities(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},9327:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.LoyaltyApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=function(){return u((function e(){i(this,e)}),null,[{key:"getPrizes",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:l.default.GetPrizes.url({}),method:l.default.GetPrizes.method}))}},{key:"createPrize",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CreatePrize.url({}),method:l.default.CreatePrize.method,data:e}))}},{key:"getSpecificPrize",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetSpecificPrize.url({id:e}),method:l.default.GetSpecificPrize.method}))}},{key:"updatePrize",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UpdatePrize.url({id:e}),method:l.default.UpdatePrize.method,data:t}))}},{key:"patchPrize",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.PatchPrize.url({id:e}),method:l.default.PatchPrize.method,data:t}))}},{key:"getAllPrizeRequests",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.GetPrizeRequests.url({}),method:l.default.GetPrizeRequests.method}))}},{key:"createPrizeRequest",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CreatePrizeRequest.url({}),method:l.default.CreatePrizeRequest.method,data:{prize:e}}))}},{key:"getSpecificPrizeRequest",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetSpecificPrizeRequest.url({id:e}),method:l.default.GetSpecificPrizeRequest.method}))}},{key:"patchPrizeRequest",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.PatchPrizeRequest.url({id:e}),method:l.default.PatchPrizeRequest.method,data:{status:t}}))}}])}();t.LoyaltyApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"getPrizes",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getPrizes(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createPrize",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.createPrize(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificPrize",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getSpecificPrize(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updatePrize",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.updatePrize(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"patchPrize",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.patchPrize(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getAllPrizeRequests",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.getAllPrizeRequests(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"createPrizeRequest",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.createPrizeRequest(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificPrizeRequest",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getSpecificPrizeRequest(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"patchPrizeRequest",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.patchPrizeRequest(e,t,r));case 1:case"end":return n.stop()}}),n)})))}}])}();t.default=d},6539:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.MediaApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=function(){return u((function e(){i(this,e)}),null,[{key:"chunkUploadMedia",value:function(e,t,r,n,o){return(0,s.apiRequest)(Object.assign(Object.assign({},o),{url:l.default.ComposerChunkUploadMedia.url({}),method:l.default.ComposerChunkUploadMedia.method,data:e,headers:{"Content-Range":"bytes ".concat(t,"-").concat(r,"/").concat(n)}}))}},{key:"chunkUploadMediaComplete",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.ComposerChunkUploadMediaComplete.url({}),method:l.default.ComposerChunkUploadMediaComplete.method,data:e}))}},{key:"createMedia",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.ComposerMediaCreate.url({}),method:l.default.ComposerMediaCreate.method,data:e}))}},{key:"clickMedia",value:function(e,t,r){var n;return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.MediaClickTracker.url({id:e}),method:l.default.MediaClickTracker.method,data:null!==(n={ip:t})&&void 0!==n?n:null}))}},{key:"getSpecificMedia",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetMedia.url({id:e}),method:l.default.GetMedia.method}))}},{key:"updateMedia",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UpdateMedia.url({id:e}),method:l.default.UpdateMedia.method,data:{image:t}}))}},{key:"deleteMedia",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.DeleteMedia.url({id:e}),method:l.default.DeleteMedia.method}))}}])}();t.MediaApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"chunkUploadMedia",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",f.chunkUploadMedia(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"chunkUploadMediaComplete",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.chunkUploadMediaComplete(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createMedia",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.createMedia(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"clickMedia",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.clickMedia(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getSpecificMedia",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getSpecificMedia(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateMedia",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.updateMedia(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"deleteMedia",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.deleteMedia(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=d},556:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.ModerationApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getUsersForModeration",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.UsersForModeration.url({}),"?").concat(r.toString()),method:l.default.UsersForModeration.method}))}},{key:"moderateASpecificUser",value:function(e,t,r,n,o){var i=(0,f.urlParams)(Object.assign(Object.assign({},r&&{days_blocked:r}),n&&{hard:n}));return(0,s.apiRequest)(Object.assign(Object.assign({},o),{url:"".concat(l.default.ModerateUser.url({id:e}),"?").concat(i.toString()),method:l.default.ModerateUser.method,data:{status:t}}))}},{key:"getAllFlaggedContributions",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.FlaggedContributions.url({}),"?").concat(r.toString()),method:l.default.FlaggedContributions.method}))}},{key:"getAllFlagsForSpecificContribution",value:function(e,t,r,n){return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:l.default.FlagsForSpecificContribution.url({id:e,contribution_type:t}),method:l.default.FlagsForSpecificContribution.method,data:{flag_type:null!=r?r:null}}))}},{key:"moderateAContribution",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.ModerateContribution.url({id:e}),method:l.default.ModerateContribution.method,data:t}))}},{key:"getContributionModerationStatus",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.ModerateContributionStatus.url({id:e,contribution_type:t}),method:l.default.ModerateContributionStatus.method}))}}])}();t.ModerationApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getUsersForModeration",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUsersForModeration(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"moderateASpecificUser",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.moderateASpecificUser(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"getAllFlaggedContributions",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllFlaggedContributions(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAllFlagsForSpecificContribution",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.getAllFlagsForSpecificContribution(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"moderateAContribution",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.moderateAContribution(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getContributionModerationStatus",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getContributionModerationStatus(e,t,r));case 1:case"end":return n.stop()}}),n)})))}}])}();t.default=p},1617:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=function(){return u((function e(){i(this,e)}),null,[{key:"listUserNotification",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.UserNotificationList.url({}),method:l.default.UserNotificationList.method}))}},{key:"markReadNotification",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserMarkReadNotification.url({}),method:l.default.UserMarkReadNotification.method,data:{sids:e}}))}},{key:"getUnseenNotification",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.UserUnseenNotificationCount.url({}),method:l.default.UserUnseenNotificationCount.method}))}},{key:"createCustomNotification",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CreateCustomNotification.url({}),method:l.default.CreateCustomNotification.method,data:e}))}},{key:"listBroadcastMessages",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.BroadcastMessagesList.url({}),method:l.default.BroadcastMessagesList.method}))}},{key:"listBroadcastMessagesUnseenCount",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.BroadcastMessagesUnseenCount.url({}),method:l.default.BroadcastMessagesUnseenCount.method}))}},{key:"listBroadcastMessagesUndisposedCount",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.BroadcastMessagesUndisposedCount.url({}),method:l.default.BroadcastMessagesUndisposedCount.method}))}},{key:"markReadBroadcastMessages",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.BroadcastMessagesMarkRead.url({}),method:l.default.BroadcastMessagesMarkRead.method,data:{banner_ids:e}}))}},{key:"disposeBroadcastMessages",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.BroadcastMessagesDispose.url({}),method:l.default.BroadcastMessagesDispose.method,data:{banner_ids:e}}))}}])}();t.NotificationApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"listUserNotification",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.listUserNotification(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"markReadNotification",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.markReadNotification(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUnseenNotification",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.getUnseenNotification(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"createCustomNotification",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.createCustomNotification(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"listBroadcastMessages",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.listBroadcastMessages(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"listBroadcastMessagesUnseenCount",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.listBroadcastMessagesUnseenCount(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"listBroadcastMessagesUndisposedCount",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.listBroadcastMessagesUndisposedCount(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"disposeBroadcastMessages",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.disposeBroadcastMessages(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"markReadBroadcastMessages",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.markReadBroadcastMessages(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=d},2974:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.OnBoardingApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=function(){return u((function e(){i(this,e)}),null,[{key:"getAllSteps",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:s.default.GetAllSteps.url({}),method:s.default.GetAllSteps.method}))}},{key:"getAStep",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetAStep.url({step:e}),method:s.default.GetAStep.method}))}},{key:"startAStep",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{params:t,url:s.default.StartAStep.url({step:e}),method:s.default.StartAStep.method}))}},{key:"completeAStep",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CompleteAStep.url({step:e}),method:s.default.CompleteAStep.method}))}}])}();t.OnBoardingApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllSteps",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getAllSteps(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAStep",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getAStep(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"startAStep",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.startAStep(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"completeAStep",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.completeAStep(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=d},9627:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.PaymentApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getPaymentContentStatus",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:"".concat(s.default.GetPaymentContentStatus.url({})),method:s.default.GetPaymentContentStatus.method}))}},{key:"getPaywalls",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetPaywalls.url({}),"?").concat(r.toString()),method:s.default.GetPaywalls.method}))}},{key:"getPaymentProducts",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign({url:"".concat(s.default.GetPaymentProducts.url({}),"?").concat(r.toString()),method:s.default.GetPaymentProducts.method},t))}},{key:"getPaymentProduct",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetPaymentProduct.url({id:e}),method:s.default.GetPaymentProduct.method}))}},{key:"getPaymentProductPrices",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetPaymentProductPrices.url({id:e}),"?").concat(n.toString()),method:s.default.GetPaymentProductPrices.method}))}},{key:"checkoutCreateSession",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CheckoutCreateSession.url({}),method:s.default.CheckoutCreateSession.method,data:e}))}},{key:"createPaymentProduct",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CreatePaymentProduct.url({}),method:s.default.CreatePaymentProduct.method,data:e}))}},{key:"getCheckoutSession",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetCheckoutSession.url({}),"?").concat(r.toString()),method:s.default.GetCheckoutSession.method}))}},{key:"checkoutCompleteSession",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CheckoutSessionComplete.url({}),method:s.default.CheckoutSessionComplete.method,data:e}))}},{key:"getPaymentsOrder",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetPaymentOrders.url({}),"?").concat(r.toString()),method:s.default.GetPaymentOrders.method}))}},{key:"getPaymentOrder",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetPaymentOrder.url({id:e})),method:s.default.GetPaymentOrder.method}))}},{key:"getPaymentOrderPdf",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetPaymentOrderPdf.url({id:e})),method:s.default.GetPaymentOrderPdf.method}))}},{key:"getPaymentsCustomerPortal",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CreateCustomerPortalSession.url({}),method:s.default.CreateCustomerPortalSession.method,data:e}))}}])}();t.PaymentApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getPaymentContentStatus",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getPaymentContentStatus(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getPaywalls",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getPaywalls(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getPaymentProducts",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getPaymentProducts(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getPaymentProduct",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getPaymentProduct(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getPaymentProductPrices",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getPaymentProductPrices(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"checkoutCreateSession",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.checkoutCreateSession(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getCheckoutSession",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getCheckoutSession(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"checkoutCompleteSession",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.checkoutCompleteSession(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getPaymentsOrder",value:function(e,t){return d.getPaymentsOrder(e,t)}},{key:"getPaymentOrder",value:function(e,t){return d.getPaymentOrder(e,t)}},{key:"getPaymentOrderPdf",value:function(e,t){return d.getPaymentOrderPdf(e,t)}},{key:"getPaymentsCustomerPortal",value:function(e,t){return d.getPaymentsCustomerPortal(e,t)}},{key:"createPaymentProduct",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createPaymentProduct(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},600:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.PreferenceApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllPreferences",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.Preferences.url({}),method:l.default.Preferences.method}))}},{key:"searchPreferences",value:function(e,t,r,n,o){var i=(0,f.urlParams)(Object.assign(Object.assign(Object.assign(Object.assign({},e&&{search:e}),t&&{section:t}),r&&{keys:r}),n&&{ordering:n}));return(0,s.apiRequest)(Object.assign(Object.assign({},o),{url:"".concat(l.default.Preferences.url({}),"?").concat(i.toString()),method:l.default.Preferences.method}))}},{key:"getSpecificPreference",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetPreference.url({id:e}),method:l.default.Preferences.method}))}},{key:"updatePreferences",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UpdatePreferences.url(),method:l.default.UpdatePreferences.method,data:e}))}}])}();t.PreferenceApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllPreferences",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getAllPreferences(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"searchPreferences",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.searchPreferences(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"getSpecificPreference",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificPreference(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updatePreferences",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.updatePreferences(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},5425:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.PrivateMessageApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllSnippets",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.GetSnippets.url({}),method:l.default.GetSnippets.method}))}},{key:"getAThread",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.GetAThread.url({}),"?").concat(r.toString()),method:l.default.GetAThread.method}))}},{key:"getASingleMessage",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetASingleMessage.url({id:e}),method:l.default.GetASingleMessage.method}))}},{key:"sendAMessage",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:l.default.SendMessage.url({}),method:l.default.SendMessage.method}))}},{key:"deleteAMessage",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.DeleteASingleMessage.url({id:e}),method:l.default.DeleteASingleMessage.method}))}},{key:"deleteAThread",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.DeleteAThread.url({}),"?").concat(r.toString()),method:l.default.DeleteAThread.method}))}},{key:"uploadMedia",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:l.default.PrivateMessageUploadMedia.url({}),method:l.default.PrivateMessageUploadMedia.method}))}},{key:"uploadThumbnail",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:l.default.PrivateMessageUploadThumbnail.url({}),method:l.default.PrivateMessageUploadThumbnail.method}))}},{key:"uploadMediaInChunks",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:l.default.PrivateMessageUploadMediaInChunks.url({}),method:l.default.PrivateMessageUploadMediaInChunks.method}))}},{key:"chunkUploadDone",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.PrivateMessageChunkUploadDone.url({}),method:l.default.PrivateMessageChunkUploadDone.method,data:e}))}},{key:"searchUser",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.PrivateMessageSearchUser.url({search:e}),method:l.default.PrivateMessageSearchUser.method}))}}])}();t.PrivateMessageApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllSnippets",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getAllSnippets(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"getAThread",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAThread(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getASingleMessage",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getASingleMessage(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"sendAMessage",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.sendAMessage(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"deleteAMessage",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.deleteAMessage(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"deleteAThread",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.deleteAThread(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"uploadMedia",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.uploadMedia(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"uploadThumbnail",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.uploadThumbnail(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"uploadMediaInChunks",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.uploadMediaInChunks(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"chunkUploadDone",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.chunkUploadDone(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchUser",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchUser(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},7889:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.PromoApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=function(){return u((function e(){i(this,e)}),null,[{key:"getSpecificPromo",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.PromoCode.url({code:e}),method:s.default.User.method}))}}])}();t.PromoApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"getSpecificPromo",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getSpecificPromo(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=d},4:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.ReactionApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){function e(){i(this,e)}return u(e,null,[{key:"getAllReactions",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.GetReactions.url({}),"?").concat(r.toString()),method:l.default.GetReactions.method}))}},{key:"getAllReactionsList",value:function(t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){var i,a;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=(0,f.urlParams)(t),n.next=3,(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.GetReactions.url({}),"?").concat(i.toString()),method:l.default.GetReactions.method}));case 3:if(!(a=n.sent).next){n.next=10;break}return n.t0=a.results,n.next=8,e.getAllReactionsList(t,Object.assign(Object.assign({},r),{url:a.next,method:l.default.GetReactions.method}));case 8:return n.t1=n.sent,n.abrupt("return",n.t0.concat.call(n.t0,n.t1));case 10:return n.abrupt("return",a.results);case 11:case"end":return n.stop()}}),n)})))}},{key:"getSpecificReaction",value:function(e,t){return(0,s.apiRequest)(Object.assign({url:l.default.GetSpecificReaction.url({id:e}),method:l.default.GetSpecificReaction.method},t))}}])}();t.ReactionApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllReactions",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllReactions(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAllReactionsList",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllReactionsList(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificReaction",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificReaction(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},9215:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.ScoreApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllScores",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.ScoresList.url({}),"?").concat(r.toString()),method:l.default.ScoresList.method}))}},{key:"searchScore",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.SearchScore.url({}),"?").concat(r.toString()),method:l.default.SearchScore.method}))}},{key:"addScore",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.AddScore.url({}),method:l.default.AddScore.method,data:e}))}}])}();t.ScoreApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllScores",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllScores(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchScore",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchScore(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"addScore",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.addScore(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},5571:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.SSOApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=function(){return u((function e(){i(this,e)}),null,[{key:"SignIn",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.SignIn.url({}),method:l.default.SignIn.method}))}},{key:"SignUp",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.SignUp.url({}),method:l.default.SignUp.method,data:e}))}}])}();t.SSOApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"SignIn",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.SignIn(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"SignUp",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.SignUp(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=d},9615:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.SuggestionApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getCategorySuggestion",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CategoriesSuggestion.url({}),method:l.default.CategoriesSuggestion.method,params:e}))}},{key:"getCourseSuggestion",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CourseSuggestion.url({}),method:l.default.CourseSuggestion.method,params:e}))}},{key:"getIncubatorSuggestion",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetIncubatorSuggestion.url({}),method:l.default.GetIncubatorSuggestion.method,params:e}))}},{key:"getPollSuggestion",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.PollSuggestion.url({}),method:l.default.PollSuggestion.method,params:e}))}},{key:"getUserSuggestion",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserSuggestion.url({}),method:l.default.UserSuggestion.method,params:e}))}},{key:"getEventSuggestion",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.EventSuggestion.url({}),method:l.default.EventSuggestion.method,params:e}))}},{key:"getSearchSuggestion",value:function(e,t,r){var n=(0,f.urlParams)({search:e});return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.SearchSuggestion.url({}),"?").concat(n.toString()),method:l.default.UserSuggestion.method,params:t}))}}])}();t.SuggestionApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getCategorySuggestion",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getCategorySuggestion(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getCourseSuggestion",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getCourseSuggestion(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getIncubatorSuggestion",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getIncubatorSuggestion(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getPollSuggestion",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getPollSuggestion(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserSuggestion",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserSuggestion(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getEventSuggestion",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getEventSuggestion(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSearchSuggestion",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getSearchSuggestion(e,t,r));case 1:case"end":return n.stop()}}),n)})))}}])}();t.default=p},3820:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.TagApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllTags",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.TagsList.url({}),"?").concat(r.toString()),method:l.default.TagsList.method}))}},{key:"createTag",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CreateTag.url({}),method:l.default.CreateTag.method,data:e}))}},{key:"searchTag",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.SearchTag.url({}),"?").concat(r.toString()),method:l.default.SearchTag.method}))}},{key:"getSpecificTag",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.Tag.url({id:e}),method:l.default.Tag.method}))}},{key:"updateTag",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UpdateTag.url({id:e}),method:l.default.UpdateTag.method,data:null!=t?t:null}))}},{key:"patchTag",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.PatchTag.url({id:e}),method:l.default.PatchTag.method,data:null!=t?t:null}))}},{key:"assignATag",value:function(e,t,r,n){return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:l.default.AssignTag.url({id:e}),method:l.default.AssignTag.method,data:t?{user:t}:{category:r}}))}}])}();t.TagApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllTags",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllTags(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createTag",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createTag(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchTag",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchTag(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificTag",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificTag(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateTag",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.updateTag(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"patchTag",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.patchTag(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"assignATag",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.assignATag(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}}])}();t.default=p},9607:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.UserApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllUsers",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.UserList.url({}),"?").concat(r.toString()),method:l.default.UserList.method}))}},{key:"getHiddenUsers",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.ListHiddenUsers.url({}),"?").concat(r.toString()),method:l.default.ListHiddenUsers.method}))}},{key:"getHiddenUsersId",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.ListHiddenUsersId.url({}),"?").concat(r.toString()),method:l.default.ListHiddenUsersId.method}))}},{key:"userAutocomplete",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.UserAutocomplete.url({}),"?").concat(r.toString()),method:l.default.UserAutocomplete.method}))}},{key:"userSearch",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.UserSearch.url({}),"?").concat(r.toString()),method:l.default.UserSearch.method}))}},{key:"getSpecificUser",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.User.url({id:e}),method:l.default.User.method}))}},{key:"getUserCounters",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserCounters.url({id:e}),method:l.default.UserCounters.method}))}},{key:"userUpdate",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserUpdate.url({id:e}),method:l.default.UserUpdate.method,data:t}))}},{key:"userPatch",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserPatch.url({id:e}),method:l.default.UserPatch.method,data:t}))}},{key:"userDelete",value:function(e,t,r){var n=(0,f.urlParams)(Object.assign({},t&&{hard:t}));return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.UserDelete.url({id:e}),"?").concat(n.toString()),method:l.default.UserDelete.method}))}},{key:"changeUserMail",value:function(e,t,r,n,o){return(0,s.apiRequest)(Object.assign(Object.assign({},o),{url:l.default.ChangeUserMail.url({id:e}),method:l.default.ChangeUserMail.method,data:Object.assign({new_email:t,confirm:r},n?{send_email:n}:{})}))}},{key:"confirmChangeUserMail",value:function(e,t,r,n){return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:l.default.ConfirmUserChangeMail.url({id:e}),method:l.default.ConfirmUserChangeMail.method,data:{new_email:t,validation_code:r}}))}},{key:"changeUserPassword",value:function(e,t,r,n){return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:l.default.ChangeUserPassword.url({id:e}),method:l.default.ChangeUserPassword.method,data:{password:t,new_password:r}}))}},{key:"userSettings",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserSettings.url({id:e}),method:l.default.UserSettings.method}))}},{key:"userSettingsPatch",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserSettingsPatch.url({id:e}),method:l.default.UserSettingsPatch.method,data:null!=t?t:null}))}},{key:"getCurrentUser",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.Me.url(),method:l.default.Me.method}))}},{key:"getCurrentUserAvatar",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.MyAvatar.url({}),method:l.default.MyAvatar.method}))}},{key:"getCurrentUserPermission",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.Permission.url({}),method:l.default.Permission.method}))}},{key:"getCurrentUserPlatform",value:function(e,t){var r=(0,f.urlParams)(Object.assign({},e&&{next:e}));return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.Platform.url({}),"?").concat(r.toString()),method:l.default.Platform.method}))}},{key:"getUserFollowedCategories",value:function(e,t,r){var n=(0,f.urlParams)(Object.assign({},t&&{mutual:t}));return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.FollowedCategories.url({id:e}),"?").concat(n.toString()),method:l.default.FollowedCategories.method}))}},{key:"getUserFeed",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserFeed.url({id:e}),method:l.default.UserFeed.method,params:t}))}},{key:"getUserFollowers",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserFollowers.url({id:e}),method:l.default.UserFollowers.method,params:t}))}},{key:"getUserFollowings",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserFollowings.url({id:e}),method:l.default.UserFollowings.method,params:t}))}},{key:"followUser",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.FollowUser.url({id:e}),method:l.default.FollowUser.method}))}},{key:"checkUserFollowed",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CheckUserFollowed.url({id:e}),method:l.default.CheckUserFollowed.method}))}},{key:"checkUserFollower",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CheckUserFollower.url({id:e}),method:l.default.CheckUserFollower.method}))}},{key:"getUserConnections",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserConnections.url({id:e}),method:l.default.UserConnections.method,params:t}))}},{key:"checkUserConnections",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserCheckConnection.url({id:e}),method:l.default.UserCheckConnection.method}))}},{key:"getUserConnectionRequests",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserConnectionRequests.url(),method:l.default.UserConnectionRequests.method,params:e}))}},{key:"getUserRequestConnectionsSent",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserRequestConnectionsSent.url(),method:l.default.UserRequestConnectionsSent.method,params:e}))}},{key:"userAcceptRequestConnection",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserAcceptRequestConnection.url({id:e}),method:l.default.UserAcceptRequestConnection.method}))}},{key:"userRequestConnection",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserRequestConnection.url({id:e}),method:l.default.UserRequestConnection.method}))}},{key:"userRemoveConnection",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserRemoveConnection.url({id:e}),method:l.default.UserRemoveConnection.method}))}},{key:"userCancelRejectConnectionRequest",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserCancelRejectConnectionRequest.url({id:e}),method:l.default.UserCancelRejectConnectionRequest.method}))}},{key:"userCancelRequestConnection",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserCancelRequestConnection.url({id:e}),method:l.default.UserCancelRequestConnection.method}))}},{key:"userRejectConnectionRequest",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserRejectConnectionRequest.url({id:e}),method:l.default.UserRejectConnectionRequest.method}))}},{key:"userMarkSeenConnectionRequest",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserMarkSeenConnectionRequest.url({id:e}),method:l.default.UserMarkSeenConnectionRequest.method}))}},{key:"showHideUser",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserShowHide.url({id:e}),method:l.default.UserShowHide.method}))}},{key:"checkUserHidden",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CheckUserHidden.url({id:e}),method:l.default.CheckUserHidden.method}))}},{key:"checkUserHiddenBy",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CheckUserHiddenBy.url({id:e}),method:l.default.CheckUserHiddenBy.method}))}},{key:"getUserLoyaltyPoints",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetUserLoyaltyPoints.url({id:e}),method:l.default.GetUserLoyaltyPoints.method}))}},{key:"getUserConnectionStatuses",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserConnectionStatuses.url({}),method:l.default.UserConnectionStatuses.method,data:{users:e}}))}},{key:"userTagToAddressContribution",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.UserTagToAddressContribution.url({}),method:l.default.UserTagToAddressContribution.method}))}},{key:"checkUserEmailToken",value:function(e,t,r){var n=(0,f.urlParams)({email_token:t});return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.CheckEmailToken.url({id:e}),"?").concat(n.toString()),method:l.default.CheckEmailToken.method}))}},{key:"addUserAvatar",value:function(e,t){return(0,s.apiRequest)(Object.assign({url:l.default.AddAvatar.url({}),method:l.default.AddAvatar.method,data:e},t))}},{key:"getUserAvatars",value:function(e){return(0,s.apiRequest)(Object.assign({url:l.default.GetAvatars.url({}),method:l.default.GetAvatars.method},e))}},{key:"removeUserAvatar",value:function(e,t){return(0,s.apiRequest)(Object.assign({url:l.default.RemoveAvatar.url({}),method:l.default.RemoveAvatar.method,data:{avatar_id:e}},t))}},{key:"setUserPrimaryAvatar",value:function(e,t){return(0,s.apiRequest)(Object.assign({url:l.default.SetPrimaryAvatar.url({}),method:l.default.SetPrimaryAvatar.method,data:{avatar_id:e}},t))}},{key:"getProviderAssociations",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.ProviderAssociations.url({id:e}),method:l.default.ProviderAssociations.method}))}},{key:"createProviderAssociation",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:l.default.CreateProviderAssociation.url({id:e.user_id}),method:l.default.CreateProviderAssociation.method}))}},{key:"deleteProviderAssociation",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:l.default.DeleteProviderAssociation.url({id:e.user_id}),method:l.default.DeleteProviderAssociation.method}))}},{key:"getUserLiveStream",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.GetLiveStream.url({id:e}),method:l.default.UserFeed.method,params:t}))}},{key:"getOrderHistory",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.GetOrderHistory.url({id:e}),method:l.default.GetOrderHistory.method,params:t}))}},{key:"getOrderDetail",value:function(e,t,r,n){return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:l.default.GetOrderDetail.url({id:e,order:t}),method:l.default.GetOrderDetail.method,params:r}))}}])}();t.UserApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllUsers",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllUsers(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getHiddenUsers",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getHiddenUsers(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getHiddenUsersId",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getHiddenUsersId(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userAutocomplete",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userAutocomplete(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userSearch",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userSearch(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificUser",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificUser(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserCounters",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserCounters(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userUpdate",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.userUpdate(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"userPatch",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.userPatch(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"userDelete",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.userDelete(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"changeUserMail",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.changeUserMail(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"confirmChangeUserMail",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.confirmChangeUserMail(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"changeUserPassword",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.changeUserPassword(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"userSettings",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userSettings(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userSettingsPatch",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.userSettingsPatch(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCurrentUser",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getCurrentUser(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"getCurrentUserAvatar",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getCurrentUserAvatar(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"getCurrentUserPermission",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getCurrentUserPermission(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"getCurrentUserPlatform",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getCurrentUserPlatform(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserFollowedCategories",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserFollowedCategories(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getUserFeed",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserFeed(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getUserFollowers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserFollowers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getUserFollowings",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserFollowings(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"followUser",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.followUser(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"checkUserFollowed",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.checkUserFollowed(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"checkUserFollower",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.checkUserFollower(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserConnections",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserConnections(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"checkUserConnections",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.checkUserConnections(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserConnectionRequests",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserConnectionRequests(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserRequestConnectionsSent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserRequestConnectionsSent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userAcceptRequestConnection",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userAcceptRequestConnection(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userRequestConnection",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userRequestConnection(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userRemoveConnection",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userRemoveConnection(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userCancelRejectConnectionRequest",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userCancelRejectConnectionRequest(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userCancelRequestConnection",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userCancelRequestConnection(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userRejectConnectionRequest",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userRejectConnectionRequest(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userMarkSeenConnectionRequest",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userMarkSeenConnectionRequest(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"showHideUser",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.showHideUser(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"checkUserHidden",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.checkUserHidden(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"checkUserHiddenBy",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.checkUserHiddenBy(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserLoyaltyPoints",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserLoyaltyPoints(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserConnectionStatuses",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserConnectionStatuses(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userTagToAddressContribution",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.userTagToAddressContribution(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"checkUserEmailToken",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.checkUserEmailToken(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"addUserAvatar",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.addUserAvatar(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserAvatars",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getUserAvatars(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"removeUserAvatar",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.removeUserAvatar(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"setUserPrimaryAvatar",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.setUserPrimaryAvatar(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getProviderAssociations",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getProviderAssociations(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createProviderAssociation",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createProviderAssociation(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"deleteProviderAssociation",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.deleteProviderAssociation(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserLiveStream",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserLiveStream(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getOrderHistory",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getOrderHistory(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getOrderDetail",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.getOrderDetail(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}}])}();t.default=p},2136:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.WebhookApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=function(){return u((function e(){i(this,e)}),null,[{key:"getAllWebhookEndpoints",value:function(e){return(0,l.apiRequest)(Object.assign(Object.assign({},e),{url:s.default.WebhookEndpointsList.url({}),method:s.default.WebhookEndpointsList.method}))}},{key:"getAllWebhookEvents",value:function(e){return(0,l.apiRequest)(Object.assign(Object.assign({},e),{url:s.default.WebhookEventsList.url({}),method:s.default.WebhookEventsList.method}))}},{key:"createWebhookEndpoint",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.WebhookCreate.url({}),method:s.default.WebhookCreate.method,data:e}))}},{key:"getASpecificWebhookEndpoint",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetSpecificWebhook.url({id:e}),method:s.default.GetSpecificWebhook.method}))}},{key:"updateASpecificWebhookEndpoint",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.WebhookUpdate.url({id:e}),method:s.default.WebhookUpdate.method,data:t}))}},{key:"updateASingleWebhookEndpointField",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.WebhookPatch.url({id:e}),method:s.default.WebhookPatch.method,data:t}))}},{key:"deleteWebhookEndpoint",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.WebhookDelete.url({id:e}),method:s.default.WebhookDelete.method}))}},{key:"getAllWebhookEndpointAttempts",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.WebhookEndpointAttempts.url({id:e}),method:s.default.WebhookEndpointAttempts.method}))}},{key:"expireWebhookSigningSecret",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.WebhookExpireSigningSecret.url({id:e}),method:s.default.WebhookExpireSigningSecret.method}))}},{key:"revealWebhookSigningSecret",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.WebhookRevealSigningSecret.url({id:e}),method:s.default.WebhookRevealSigningSecret.method}))}},{key:"resendWebhookEndpointEvent",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.WebhookResendEndpointEvent.url({id:e}),method:s.default.WebhookResendEndpointEvent.method,data:{event:t}}))}},{key:"resendMultipleWebhookEndpointEvent",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.WebhookResendMultipleEndpointEvent.url({id:e}),method:s.default.WebhookResendMultipleEndpointEvent.method,data:{event:t}}))}}])}();t.WebhookApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllWebhookEndpoints",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.getAllWebhookEndpoints(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"getAllWebhookEvents",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.getAllWebhookEvents(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"createWebhookEndpoint",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.createWebhookEndpoint(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getASpecificWebhookEndpoint",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getASpecificWebhookEndpoint(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateASpecificWebhookEndpoint",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.updateASpecificWebhookEndpoint(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"updateASingleWebhookEndpointField",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.updateASingleWebhookEndpointField(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"deleteWebhookEndpoint",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.deleteWebhookEndpoint(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAllWebhookEndpointAttempts",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getAllWebhookEndpointAttempts(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"expireWebhookSigningSecret",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.expireWebhookSigningSecret(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"revealWebhookSigningSecret",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.revealWebhookSigningSecret(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"resendWebhookEndpointEvent",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.resendWebhookEndpointEvent(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"resendMultipleWebhookEndpointEvent",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.resendMultipleWebhookEndpointEvent(e,t,r));case 1:case"end":return n.stop()}}),n)})))}}])}();t.default=d},4848:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.CourseInfoViewType=void 0,(r=t.CourseInfoViewType||(t.CourseInfoViewType={})).USER="user",r.EDIT="edit",r.DASHBOARD="dashboard"},708:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CourseInfoViewType=t.OnBoardingStep=t.MediaTypes=void 0;var n=r(6080);Object.defineProperty(t,"MediaTypes",{enumerable:!0,get:function(){return n.MediaTypes}});var o=r(3925);Object.defineProperty(t,"OnBoardingStep",{enumerable:!0,get:function(){return o.OnBoardingStep}});var i=r(4848);Object.defineProperty(t,"CourseInfoViewType",{enumerable:!0,get:function(){return i.CourseInfoViewType}})},6080:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.MediaTypes=void 0,(r=t.MediaTypes||(t.MediaTypes={})).URL="url",r.SHARE="share",r.EMBED="embed"},3925:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.OnBoardingStep=void 0,(r=t.OnBoardingStep||(t.OnBoardingStep={}))[r.CONTENTS=1]="CONTENTS",r[r.CATEGORIES=2]="CATEGORIES",r[r.APPEARANCE=3]="APPEARANCE",r[r.PROFILE=4]="PROFILE",r[r.INVITE=5]="INVITE",r[r.APP=6]="APP"},9714:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.apiRequest=void 0;var n=r(2970).__importDefault(r(8011)),o=r(94),i=r(2137);t.apiRequest=function(e){return n.default.request(e).then((function(t){return t?t.status>=300?(i.Logger.info(o.SCOPE_API_SERVICES,"Unable to ".concat(e.method," ").concat(e.url," (Response code: ").concat(t.status,").")),Promise.reject(t)):Promise.resolve(t.data):(i.Logger.info(o.SCOPE_API_SERVICES,"Request ".concat(e.method," ").concat(e.url," aborted.")),Promise.reject("Request ".concat(e.method," ").concat(e.url," aborted.")))})).catch((function(t){return i.Logger.warn(o.SCOPE_API_SERVICES,"Unable to ".concat(e.method," ").concat(e.url," ").concat(t)),Promise.reject(t)}))}},2722:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getCancelTokenSourceRequest=t.formatHttpErrorCode=t.formatHttpError=t.defaultError=void 0;var o=r(2970),i=r(2137),a=o.__importDefault(r(14));function u(e){e.request?console.log(e.request):console.log("Error",e.message)}t.defaultError=u;var c=function(e){var t={};if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];n.field?t["".concat((0,i.camelCase)(n.field),"Error")]=Array.isArray(n.messages)?c(n.messages):n.messages:t.error=n.message}else t.error=e.errors;return t};t.formatHttpError=function(e){var t={};return e.response&&e.response.data&&"object"===n(e.response.data)&&e.response.data.errors?t=Object.assign({},c(e.response.data.errors)):u(e),t};var s=function(e){var t={};if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];n.field?t["".concat((0,i.camelCase)(n.field),"Error")]=Array.isArray(n.messages)?s(n.messages):n.messages:t.error=n.code}else t.error=e.errors;return t};t.formatHttpErrorCode=function(e){var t={};return e.response&&e.response.data&&"object"===n(e.response.data)&&e.response.data.errors?t=Object.assign({},s(e.response.data.errors)):u(e),t},t.getCancelTokenSourceRequest=function(){return a.default.CancelToken.source()}},7013:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJwt=t.generateJWTToken=void 0;var i=r(2970),a=i.__importStar(r(1137));t.generateJWTToken=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"2h";return i.__awaiter(this,void 0,void 0,o().mark((function n(){var i,u;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={token_type:"access",user_id:e,jti:(new Date).getTime().toString()},u=(new TextEncoder).encode(t),n.next=4,new a.SignJWT(i).setProtectedHeader({alg:"HS256",typ:"JWT"}).setIssuedAt().setExpirationTime(r||"2h").sign(u);case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})))},t.parseJwt=function(e){var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(r)}},9258:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.urlParams=void 0,t.urlParams=function(e){return new URLSearchParams(e)}},7718:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCAlertMessagesContext=void 0,t.default=function(e){var t,r=e.children,n=void 0===r?null:r,a=(2,function(e){if(Array.isArray(e))return e}(t=(0,o.useState)({maxSnack:3,autoHideDuration:null}))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return u(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],l=a[1];return o.default.createElement(c.Provider,{value:{options:s,setOptions:l}},o.default.createElement(i.SnackbarProvider,s,n))},t.useSCAlertMessages=function(){return(0,o.useContext)(c)};var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=i?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o}(r(8156)),i=r(4584);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=(0,o.createContext)({});t.SCAlertMessagesContext=c},9082:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCContext=void 0,t.default=function(e){var t,r=e.conf,n=e.children,o=(0,i.useMemo)((function(){var e=(0,c.validateOptions)(r,c.validOptions),t=e.validationResult,n=e.settings;return t.hasErrors()?(t.emit(),null):(t.emitWarnings(),a.http.setBasePortal(n.portal),n)}),[r]),l=(2,function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(o))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return f(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=l[0],h=l[1];(0,u.useDeepCompareEffectNoCheck)((function(){v.current&&h(o)}),[o]);var v=(0,s.default)();return i.default.createElement(d.Provider,{value:{settings:p}},p&&p.contextProviders.reduceRight((function(e,t){return i.default.createElement(t,null,e)}),n))},t.useSCContext=function(){return(0,i.useContext)(d)};var o,i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(8156)),a=r(7475),u=r(4537),c=r(2517),s=(o=r(5189))&&o.__esModule?o:{default:o};function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d=(0,i.createContext)({});t.SCContext=d},1249:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCLocaleContext=void 0,t.default=function(e){var t,r=e.children,n=void 0===r?null:r,d=(0,i.useSCContext)(),p=null!==(t=d.settings.locale)&&void 0!==t&&t.default?d.settings.locale.default:u.DEFAULT_LANGUAGE_UI,v=(0,a.loadLocaleData)(p,d.settings),g=h((0,o.useState)(v.locale),2),m=g[0],_=g[1],E=h((0,o.useState)(v.messages),2),S=E[0],O=E[1],b=(0,o.useMemo)((function(){return function(e){var t,r=(0,a.loadLocaleData)(e,d.settings),n=r.messages,o=r.locale;_((t={messages:n,locale:o}).locale),O(t.messages)}}),[m]);return(0,f.useDeepCompareEffectNoCheck)((function(){var e;b(null!==(e=d.settings.locale)&&void 0!==e&&e.default?d.settings.locale.default:u.DEFAULT_LANGUAGE_UI)}),[d.settings.locale]),o.default.createElement(y.Provider,{value:{locale:m,messages:S,selectLocale:b}},o.default.createElement(c.IntlProvider,{key:m,locale:m,messages:S,onError:function(e){if("MISSING_TRANSLATION"!==e.code)throw e;s.Logger.warn(l.SCOPE_SC_CORE,"Missing translation: ".concat(e.message))}},n))},t.useSCLocale=function(){return(0,o.useContext)(y)},t.withSCLocale=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(8156)),i=r(9082),a=r(8483),u=r(7523),c=r(9767),s=r(2137),l=r(3240),f=r(4537);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var y=(0,o.createContext)({});t.SCLocaleContext=y,t.withSCLocale=function(e){return function(t){var r=(0,o.useContext)(y);return o.default.createElement(c.IntlProvider,{locale:r.locale,messages:r.messages},o.default.createElement(e,p({setLanguage:r.selectLocale},t)))}}},823:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCNotificationContext=void 0,t.default=function(e){var t=e.children,r=void 0===t?null:t,n=(0,i.default)().wsInstance,c=(0,a.default)().wpSubscription,s=(0,u.default)().mnpmInstance;return o.default.createElement(l.Provider,{value:{wsInstance:n,wpSubscription:c,mnpmInstance:s}},r)},t.useSCNotification=function(){return(0,o.useContext)(l)};var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(8156)),i=c(r(3808)),a=c(r(3926)),u=c(r(5126));function c(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var l=(0,o.createContext)({});t.SCNotificationContext=l},9723:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCPreferencesContext=void 0,t.default=function(e){var t=e.children,r=void 0===t?null:t,n=(0,c.useSCContext)(),s=p((0,a.useState)(n.settings.preferences.preferences),2),l=s[0],h=s[1],y=p((0,a.useState)(n.settings.preferences.features),2),g=y[0],m=y[1],_=p((0,a.useState)(),2)[1],E=p((0,a.useState)(!(Object.keys(n.settings.preferences.preferences).length&&n.settings.preferences.features.length)),2),S=E[0],O=E[1];return(0,a.useEffect)((function(){Promise.all([o.PreferenceService.getAllPreferences(),o.FeatureService.getAllFeatures()]).then((function(e){var t=p(e,2),r=t[0],n=t[1];h(r.results.reduce((function(e,t){return f(f({},e),{},d({},"".concat(t.section,".").concat(t.name),t))}),{})),m(n.results.filter((function(e){return e.enabled})).map((function(e){return e.name}))),O(!1)})).catch((function(e){i.Logger.error(u.SCOPE_SC_CORE,e),_(e)}))}),[]),a.default.createElement(v.Provider,{value:{preferences:l,features:g,setPreferences:h,setFeatures:m,refresh:function(){Promise.all([o.PreferenceService.getAllPreferences(),o.FeatureService.getAllFeatures()]).then((function(e){var t=p(e,2),r=t[0],n=t[1];h(r.results.reduce((function(e,t){return f(f({},e),{},d({},"".concat(t.section,".").concat(t.name),t))}),{})),m(n.results.filter((function(e){return e.enabled})).map((function(e){return e.name})))})).catch((function(e){i.Logger.error(u.SCOPE_SC_CORE,e),_(e)}))}}},!S&&r)},t.useSCPreferences=function(){return(0,a.useContext)(v)};var o=r(7475),i=r(2137),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(8156)),u=r(3240),c=r(9082);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var v=(0,a.createContext)({});t.SCPreferencesContext=v},2075:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCRoutingContext=void 0,t.default=function(e){var t,r=e.children,n=void 0===r?null:r,s=(0,o.useContext)(a.SCPreferencesContext),l=(0,i.useSCContext)(),f=l.settings.router?l.settings.router:{},v=f.routerLink?f.routerLink:null,y=Object.assign(Object.keys(s.preferences).length?(p(p(p(p(p(p(p(p(p(p(t={},c.POST_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_POST].value)),c.DISCUSSION_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_DISCUSSION].value)),c.STATUS_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_STATUS].value)),c.COMMENT_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_COMMENT].value)),c.CATEGORY_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_CATEGORY].value)),c.CATEGORIES_LIST_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_CATEGORIES_LIST].value)),c.USER_PROFILE_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_USER_PROFILE].value)),c.USER_PROFILE_SETTINGS_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_USER_PROFILE_SETTINGS].value)),c.USER_NOTIFICATIONS_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_NOTIFICATIONS].value)),c.USER_PRIVATE_MESSAGES_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_USER_PRIVATE_MESSAGES].value)),p(p(t,c.INCUBATOR_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_INCUBATOR].value)),c.LIVESTREAM_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_LIVE_STREAM].value))):{},c.defaultRoutes),g=f.routes?d(d({},y),f.routes):c.defaultRoutes;function m(e){for(var t=e,r=/\{([^/]+)?\}/g,n=r.exec(e);n;)t=t.replace(n[0],":".concat(n[1])),r.lastIndex=0,n=r.exec(t);return t}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=function(r,n){for(var o=/:([^/|^?|^#]+)?/g,i=r,a=o.exec(r),u=Object.keys(n).length>0;a;)i=u?i.replace(a[0],n[a[1]]):i.split(a[0])[0],o.lastIndex=0,a=o.exec(i);return f.handleRoute?f.handleRoute(e,i,t,r):i};return r(g[e],t)}var E=(0,o.useMemo)((function(){return{routerLink:v,routes:g,url:_}}),[v,g]);return o.default.createElement(h.Provider,{value:E},n)},t.useSCRouting=function(){return(0,o.useContext)(h)};var o=l(r(8156)),i=r(9082),a=r(9723),u=l(r(4592)),c=r(8461);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h=(0,o.createContext)({});t.SCRoutingContext=h},5373:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCThemeContext=void 0,t.default=function(e){var t,r=e.children,n=void 0===r?null:r,o=(0,c.useSCContext)(),f=(0,s.useSCPreferences)(),d=(2,function(e){if(Array.isArray(e))return e}(t=(0,i.useState)((0,u.default)(o.settings.theme,f.preferences)))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return p(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=d[0],y=d[1],g=function(e){y((0,u.default)(e,f.preferences))};return(0,l.useDeepCompareEffectNoCheck)((function(){g(v)}),[o.settings.theme]),i.default.createElement(h.Provider,{value:{theme:v,setTheme:g}},i.default.createElement(a.ThemeProvider,{theme:v},n))},t.useSCTheme=function(){return(0,i.useContext)(h)},t.withSCTheme=void 0;var o,i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(8156)),a=r(901),u=(o=r(7746))&&o.__esModule?o:{default:o},c=r(9082),s=r(9723),l=r(4537);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var h=(0,i.createContext)({});t.SCThemeContext=h,t.withSCTheme=function(e){return function(t){var r=(0,i.useContext)(h);return i.default.createElement(a.ThemeProvider,{theme:r.theme},i.default.createElement(e,d({setTheme:r.setTheme},t)))}}},4702:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCUserContext=void 0,t.default=function(e){var t=e.children,r=(0,o.useContext)(a.SCContext).settings.session,n=(0,u.default)(r),C=n.state,T=n.dispatch,w=n.helpers;function R(e){T({type:u.userActionTypes.UPDATE_USER,payload:e})}var P=(0,h.default)(C.user),I=(0,p.default)(C.user),N=(0,v.default)(C.user),j=(0,m.default)(C.user),k=(0,y.default)(C.user),U=(0,d.default)(C.user,R),x=(0,_.default)(C.user),G=(0,S.default)(C.user),D=(0,O.default)(C.user),M=(0,b.default)(C.user),F=(0,o.useRef)(null),B=(0,o.useRef)(null);function V(){!window.document.hidden&&C.user&&(P.refresh&&P.refresh(),W(),U.refresh&&U.refresh(),I.refresh&&I.refresh(),k.refresh&&k.refresh(),j.refresh&&j.refresh(),x.refresh&&x.refresh(),G.refresh&&G.refresh(),D.refresh&&D.refresh(),M.refresh&&M.refresh())}function Y(e){T({type:u.userActionTypes.UPDATE_USER,payload:{unseen_interactions_counter:Math.max(e,0)}})}function q(e){T({type:u.userActionTypes.UPDATE_USER,payload:{unseen_notification_banners_counter:Math.max(e,0)}})}function K(){return w.refreshSession()}(0,f.useDeepCompareEffectNoCheck)((function(){C.session.authToken&&C.session.authToken.accessToken||C.session.type===E.COOKIE_SESSION?(T({type:u.userActionTypes.LOGIN_LOADING}),i.UserService.getCurrentUser().then((function(e){T({type:u.userActionTypes.LOGIN_SUCCESS,payload:{user:e}})})).catch((function(e){c.Logger.error(l.SCOPE_SC_CORE,"Unable to retrieve the authenticated user."),T({type:u.userActionTypes.LOGIN_FAILURE,payload:{error:e}})}))):T({type:u.userActionTypes.LOGIN_FAILURE})}),[C.session]),(0,o.useEffect)((function(){return window.document.addEventListener("visibilitychange",V),function(){window.document.removeEventListener("visibilitychange",V)}}),[]),(0,o.useEffect)((function(){return F.current=s.default.subscribe("".concat(g.SCNotificationTopicType.INTERACTION,".").concat(g.SCNotificationTypologyType.BLOCKED_USER),(function(){T({type:u.userActionTypes.UPDATE_USER,payload:{status:g.SCUserStatus.BLOCKED}})})),B.current=s.default.subscribe("".concat(g.SCNotificationTopicType.INTERACTION,".").concat(g.SCNotificationTypologyType.UNBLOCKED_USER),(function(){T({type:u.userActionTypes.UPDATE_USER,payload:{status:g.SCUserStatus.APPROVED}})})),function(){s.default.unsubscribe(F.current),s.default.unsubscribe(B.current)}}),[]);var W=(0,o.useMemo)((function(){return function(){return C.user?i.UserService.getCurrentUser().then((function(e){T({type:u.userActionTypes.UPDATE_USER,payload:A(A(A(A(A(A(A(A(A(A({unseen_interactions_counter:e.unseen_interactions_counter,unseen_notification_banners_counter:e.unseen_notification_banners_counter},e.followers_counter?{followers_counter:e.followers_counter}:{}),e.followings_counter?{followings_counter:e.followings_counter}:{}),e.categories_counter?{categories_counter:e.categories_counter}:{}),e.discussions_counter?{discussions_counter:e.discussions_counter}:{}),e.posts_counter?{posts_counter:e.posts_counter}:{}),e.statuses_counter?{status_counter:e.statuses_counter}:{}),e.polls_counter?{polls_counter:e.polls_counter}:{}),e.connections_counter?{connections_counter:e.connections_counter}:{}),e.connection_requests_sent_counter?{connection_requests_sent_counter:e.connection_requests_sent_counter}:{}),e.connection_requests_received_counter?{connection_requests_received_counter:e.connection_requests_received_counter}:{})})})).catch((function(e){c.Logger.error(l.SCOPE_SC_CORE,"Unable to refresh counters. Error: ".concat(e.response.toString()))})):Promise.reject()}}),[C.user]);function H(){w.logoutSession()}var $=(0,o.useMemo)((function(){return{user:C.user,session:C.session,loading:C.loading,error:C.error,updateUser:R,setUnseenInteractionsCounter:Y,setUnseenNotificationBannersCounter:q,refreshCounters:W,logout:H,refreshSession:K,managers:{settings:P,categories:U,followed:I,followers:N,connections:k,incubators:j,blockedUsers:x,groups:G,events:D,courses:M}}}),[C,P.all,P.isLoading,U.loading,U.categories,I.loading,I.followed,N.loading,N.followers,k.loading,k.connections,x.blocked,j.loading,j.incubators,G.loading,G.groups,D.loading,D.events,M.loading,M.emptyCache]);return o.default.createElement(L.Provider,{value:$},t)},t.useSCUser=function(){return(0,o.useContext)(L)};var o=w(r(8156)),i=r(7475),a=r(9082),u=w(r(8291)),c=r(2137),s=C(r(8641)),l=r(3240),f=r(4537),d=C(r(9467)),p=C(r(7309)),h=C(r(2985)),v=C(r(5421)),y=C(r(1870)),g=r(9954),m=C(r(1776)),_=C(r(8887)),E=w(r(4191)),S=C(r(8793)),O=C(r(6336)),b=C(r(145));function C(e){return e&&e.__esModule?e:{default:e}}function T(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(T=function(e){return e?r:t})(e)}function w(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=T(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){P(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var L=(0,o.createContext)({});t.SCUserContext=L},8719:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCVoteContext=void 0,t.default=function(e){var t=e.children,r=void 0===t?null:t,n=(0,c.useSCContext)(),f=(0,o.useContext)(l.SCPreferencesContext),p=d((0,o.useState)(n.settings.vote.reactions),2),v=p[0],y=p[1],g=d((0,o.useState)(),2)[1],m=d((0,o.useState)(f.features&&!f.features.includes(s.SCFeatureName.REACTION)||null!==n.settings.vote.reactions),2),_=m[0],E=m[1],S=d((0,o.useState)(f.features&&f.features.includes(s.SCFeatureName.REACTION)&&null===n.settings.vote.reactions),2),O=S[0],b=S[1],C=(0,o.useCallback)((function(){return i.ReactionService.getAllReactionsList().then((function(e){return y(e),e}))}),[]),T=(0,o.useCallback)((function(){_||(E(!0),b(!0),C().then((function(){b(!1)})).catch((function(e){a.Logger.error(u.SCOPE_SC_CORE,e),g(e)})))}),[O,_]);return(0,o.useEffect)((function(){var e;if(f.features&&f.features.includes(s.SCFeatureName.REACTION)&&!v)return e=setTimeout(T),function(){e&&clearTimeout(e)}}),[f.features,v]),o.default.createElement(h.Provider,{value:{reactions:v,isLoading:O,refreshReactions:C}},_&&r)},t.useSCVote=function(){return(0,o.useContext)(h)};var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(8156)),i=r(7475),a=r(2137),u=r(3240),c=r(9082),s=r(9954),l=r(9723);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var h=(0,o.createContext)({});t.SCVoteContext=h},6358:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(8156)),i=r(2075),a=["children"],u=["to"];function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var f=function(e,t){var r=e.children,n=l(e,a),c=(0,o.useContext)(i.SCRoutingContext);if(c.routerLink){var f=c.routerLink;return o.default.createElement(f,s({},n,{ref:t}),r)}var d=n.to,p=l(n,u);return o.default.createElement("a",s({href:d},p,{ref:t}),r)},d=o.default.forwardRef(f);t.default=d},1844:(e,t)=>{t.__esModule=!0,t.HANDLE_ANONYMOUS_ACTION_OPTION=void 0,t.HANDLE_ANONYMOUS_ACTION_OPTION="handleAnonymousAction"},7748:(e,t)=>{t.__esModule=!0,t.getWidgetStateCacheKey=t.getVirtualizedScrollStateCacheKey=t.getStateFeedCacheKey=t.getPmSnippetsObjectCacheKey=t.getPmSnippetObjectCacheKey=t.getPaymentProductObjectCacheKey=t.getPaymentOrderObjectCacheKey=t.getLiveStreamObjectCacheKey=t.getLessonObjectCacheKey=t.getLessonCommentsCachePrefixKeys=t.getLessonCommentsCacheKey=t.getLessonCommentCacheKey=t.getIncubatorObjectCacheKey=t.getGroupsObjectCacheKey=t.getGroupObjectCacheKey=t.getFeedSPCacheKey=t.getFeedObjectCacheKey=t.getFeedCacheKey=t.getEventsObjectCacheKey=t.getEventObjectCacheKey=t.getCoursesObjectCacheKey=t.getCourseObjectCacheKey=t.getContributorsCachePrefixKeys=t.getContributorsCacheKey=t.getCommentObjectsCachePrefixKeys=t.getCommentObjectsCacheKey=t.getCommentObjectCacheKey=t.getCategoryObjectCacheKey=t.getCategoriesObjectCacheKey=t.getBroadcastMessagesObjectCacheKey=t.getAdvObjectCacheKey=t.VIRTUALIZED_SCROLL_STATE_CACHE_PREFIX_KEY=t.USER_REQUESTS_EVENTS_STATE_CACHE_PREFIX_KEY=t.USER_PARTECIPANTS_EVENTS_STATE_CACHE_PREFIX_KEY=t.USER_OTHER_EVENTS_STATE_CACHE_PREFIX_KEY=t.USER_LIVE_STREAM_CACHE_PREFIX_KEY=t.USER_INVITED_EVENTS_STATE_CACHE_PREFIX_KEY=t.USER_FOLLOWERS_TOOLS_STATE_CACHE_PREFIX_KEY=t.USER_FOLLOWED_TOOLS_STATE_CACHE_PREFIX_KEY=t.USER_EVENTS_STATE_CACHE_PREFIX_KEY=t.USER_CREATED_COURSES_STATE_CACHE_PREFIX_KEY=t.USER_CONNECTIONS_TOOLS_STATE_CACHE_PREFIX_KEY=t.USER_CONNECTIONS_REQUESTS_TOOLS_STATE_CACHE_PREFIX_KEY=t.USER_CONNECTIONS_REQUESTS_SENT_TOOLS_STATE_CACHE_PREFIX_KEY=t.USER_COMMENTS_COURSES_STATE_CACHE_PREFIX_KEY=t.USERS_REQUESTS_COURSES_STATE_CACHE_PREFIX_KEY=t.USERS_PARTECIPANTS_COURSES_STATE_CACHE_PREFIX_KEY=t.TRENDING_PEOPLE_TOOLS_STATE_CACHE_PREFIX_KEY=t.TRENDING_FEED_TOOLS_STATE_CACHE_PREFIX_KEY=t.STUDENTS_PARTECIPANTS_COURSES_STATE_CACHE_PREFIX_KEY=t.RELATED_FEED_TOOLS_STATE_CACHE_PREFIX_KEY=t.POLL_SUGGESTION_TOOLS_STATE_CACHE_PREFIX_KEY=t.PM_SNIPPET_OBJECT_CACHE_PREFIX_KEY=t.PM_SNIPPETS_OBJECT_CACHE_PREFIX_KEY=t.PEOPLE_SUGGESTION_TOOLS_STATE_CACHE_PREFIX_KEY=t.PAYMENT_PRODUCT_OBJECT_CACHE_PREFIX_KEY=t.PAYMENT_ORDER_OBJECT_CACHE_PREFIX_KEY=t.LIVESTREAM_OBJECT_CACHE_PREFIX_KEY=t.LESSON_OBJECT_CACHE_PREFIX_KEY=t.LESSON_COMMENT_CACHE_PREFIX_KEY=t.LESSON_COMMENTS_CACHE_PREFIX_KEY=t.INCUBATOR_SUGGESTION_TOOLS_STATE_CACHE_PREFIX_KEY=t.INCUBATOR_OBJECT_CACHE_PREFIX_KEY=t.INCUBATOR_LIST_TOOLS_STATE_CACHE_PREFIX_KEY=t.GROUP_REQUESTS_TOOLS_STATE_CACHE_PREFIX_KEY=t.GROUP_OBJECT_CACHE_PREFIX_KEY=t.GROUP_MEMBERS_TOOLS_STATE_CACHE_PREFIX_KEY=t.GROUPS_SUBSCRIBED_TOOLS_STATE_CACHE_PREFIX_KEY=t.GROUPS_OBJECT_CACHE_PREFIX_KEY=t.GROUPS_LIST_TOOLS_STATE_CACHE_PREFIX_KEY=t.FEED_STATE_CACHE_PREFIX_KEY=t.FEED_OBJECT_CACHE_PREFIX_KEY=t.FEED_CACHE_SP_KEY=t.FEED_CACHE_PREFIX_KEY=t.EVENT_OBJECT_CACHE_PREFIX_KEY=t.EVENT_MEDIA_STATE_CACHE_PREFIX_KEY=t.EVENTS_OBJECT_CACHE_PREFIX_KEY=t.COURSE_OBJECT_CACHE_PREFIX_KEY=t.COURSES_OBJECT_CACHE_PREFIX_KEY=t.CONTRIBUTORS_CACHE_PREFIX_KEY=t.COMMENT_OBJECT_CACHE_PREFIX_KEY=t.COMMENT_OBJECTS_CACHE_PREFIX_KEY=t.CATEGORY_OBJECT_CACHE_PREFIX_KEY=t.CATEGORIES_SUGGESTION_TOOLS_STATE_CACHE_PREFIX_KEY=t.CATEGORIES_POPULAR_TOOLS_STATE_CACHE_PREFIX_KEY=t.CATEGORIES_OBJECT_CACHE_PREFIX_KEY=t.CATEGORIES_LIST_TOOLS_STATE_CACHE_PREFIX_KEY=t.CATEGORIES_FOLLOWED_TOOLS_STATE_CACHE_PREFIX_KEY=t.BROADCAST_MESSAGES_OBJECT_CACHE_PREFIX_KEY=t.ADV_OBJECT_CACHE_PREFIX_KEY=void 0;var r="_fo_";t.FEED_OBJECT_CACHE_PREFIX_KEY=r,t.getFeedObjectCacheKey=function(e,t){return"".concat(r).concat(t,"_").concat(e)};var n="_co_";t.COMMENT_OBJECT_CACHE_PREFIX_KEY=n,t.getCommentObjectCacheKey=function(e){return"".concat(n).concat(e)};var o="_cos_";t.COMMENT_OBJECTS_CACHE_PREFIX_KEY=o,t.getCommentObjectsCacheKey=function(e,t,r){return"".concat(o).concat(t,"_").concat(e,"_").concat(r)},t.getCommentObjectsCachePrefixKeys=function(e,t){return"".concat(o).concat(t,"_").concat(e)};var i="_lco_";t.LESSON_COMMENT_CACHE_PREFIX_KEY=i,t.getLessonCommentCacheKey=function(e){return"".concat(i).concat(e)};var a="_lcos_";t.LESSON_COMMENTS_CACHE_PREFIX_KEY=a,t.getLessonCommentsCacheKey=function(e,t){return"".concat(a).concat(e,"_").concat(t)},t.getLessonCommentsCachePrefixKeys=function(e){return"".concat(a).concat(e)};var u="_cas_";t.CATEGORIES_OBJECT_CACHE_PREFIX_KEY=u,t.getCategoriesObjectCacheKey=function(){return"".concat(u)};var c="_ca_";t.CATEGORY_OBJECT_CACHE_PREFIX_KEY=c,t.getCategoryObjectCacheKey=function(e){return"".concat(c).concat(e)};var s="_crs_";t.COURSE_OBJECT_CACHE_PREFIX_KEY=s,t.getCourseObjectCacheKey=function(e){return"".concat(s).concat(e)};var l="_crss_";t.COURSES_OBJECT_CACHE_PREFIX_KEY=l,t.getCoursesObjectCacheKey=function(){return"".concat(l)};var f="_lss_";t.LESSON_OBJECT_CACHE_PREFIX_KEY=f,t.getLessonObjectCacheKey=function(e){return"".concat(f).concat(e)};var d="_evt_";t.EVENT_OBJECT_CACHE_PREFIX_KEY=d,t.getEventObjectCacheKey=function(e){return"".concat(d).concat(e)};var p="_evts_";t.EVENTS_OBJECT_CACHE_PREFIX_KEY=p,t.getEventsObjectCacheKey=function(){return"".concat(p)};var h="_liveStream_";t.LIVESTREAM_OBJECT_CACHE_PREFIX_KEY=h,t.getLiveStreamObjectCacheKey=function(e){return"".concat(h).concat(e)};var v="_grp_";t.GROUP_OBJECT_CACHE_PREFIX_KEY=v,t.getGroupObjectCacheKey=function(e){return"".concat(v).concat(e)};var y="_grps_";t.GROUPS_OBJECT_CACHE_PREFIX_KEY=y,t.getGroupsObjectCacheKey=function(){return"".concat(y)};var g="_inc_";t.INCUBATOR_OBJECT_CACHE_PREFIX_KEY=g,t.getIncubatorObjectCacheKey=function(e){return"".concat(g).concat(e)};var m="_contr_";t.CONTRIBUTORS_CACHE_PREFIX_KEY=m,t.getContributorsCacheKey=function(e,t,r){return"".concat(m).concat(t,"_").concat(e,"_").concat(r)},t.getContributorsCachePrefixKeys=function(e,t){return"".concat(m).concat(t,"_").concat(e)};var _="_bcms_";t.BROADCAST_MESSAGES_OBJECT_CACHE_PREFIX_KEY=_,t.getBroadcastMessagesObjectCacheKey=function(){return"".concat(_)};var E="_feed_";t.FEED_CACHE_PREFIX_KEY=E,t.getFeedCacheKey=function(e,t){return"".concat(E).concat(e,"_").concat(t)};var S="_feed_st_";t.FEED_STATE_CACHE_PREFIX_KEY=S,t.getStateFeedCacheKey=function(e){return"".concat(S).concat(e)};var O="_virtualized_scroll_st_";t.VIRTUALIZED_SCROLL_STATE_CACHE_PREFIX_KEY=O,t.getVirtualizedScrollStateCacheKey=function(e){return"".concat(O).concat(e)};var b="_feed_spos_";t.FEED_CACHE_SP_KEY=b,t.getFeedSPCacheKey=function(e){return"".concat(b).concat(e)};var C="_adv_";t.ADV_OBJECT_CACHE_PREFIX_KEY=C,t.getAdvObjectCacheKey=function(e){return"".concat(C).concat(e)};var T="_pmss_";t.PM_SNIPPETS_OBJECT_CACHE_PREFIX_KEY=T,t.getPmSnippetsObjectCacheKey=function(){return"".concat(T)};var w="_pms_";t.PM_SNIPPET_OBJECT_CACHE_PREFIX_KEY=w,t.getPmSnippetObjectCacheKey=function(e){return"".concat(w).concat(e)};var R="_ppo_";t.PAYMENT_PRODUCT_OBJECT_CACHE_PREFIX_KEY=R,t.getPaymentProductObjectCacheKey=function(e){return"".concat(R).concat(e)};var A="_pord_";t.PAYMENT_ORDER_OBJECT_CACHE_PREFIX_KEY=A,t.getPaymentOrderObjectCacheKey=function(e){return"".concat(A).concat(e)},t.CATEGORIES_LIST_TOOLS_STATE_CACHE_PREFIX_KEY="_cListWidget_",t.CATEGORIES_FOLLOWED_TOOLS_STATE_CACHE_PREFIX_KEY="_cFolWidget_",t.CATEGORIES_SUGGESTION_TOOLS_STATE_CACHE_PREFIX_KEY="_cSugWidget_",t.CATEGORIES_POPULAR_TOOLS_STATE_CACHE_PREFIX_KEY="_cPopWidget_",t.USER_FOLLOWERS_TOOLS_STATE_CACHE_PREFIX_KEY="_uFolWidget_",t.USER_FOLLOWED_TOOLS_STATE_CACHE_PREFIX_KEY="_uFoldWidget_",t.USER_CREATED_COURSES_STATE_CACHE_PREFIX_KEY="_uCreCoursesWidget_",t.USER_EVENTS_STATE_CACHE_PREFIX_KEY="_uEvents_",t.USER_OTHER_EVENTS_STATE_CACHE_PREFIX_KEY="_uOtherEvents_",t.USER_PARTECIPANTS_EVENTS_STATE_CACHE_PREFIX_KEY="_uPartecipantsEvents_",t.USERS_PARTECIPANTS_COURSES_STATE_CACHE_PREFIX_KEY="_uPartecipantsCourses_",t.STUDENTS_PARTECIPANTS_COURSES_STATE_CACHE_PREFIX_KEY="_sPartecipantsCourses_",t.USERS_REQUESTS_COURSES_STATE_CACHE_PREFIX_KEY="_uRequestsCourses_",t.USER_COMMENTS_COURSES_STATE_CACHE_PREFIX_KEY="_uCommentsCourses_",t.USER_INVITED_EVENTS_STATE_CACHE_PREFIX_KEY="_uInvitedEvents_",t.USER_REQUESTS_EVENTS_STATE_CACHE_PREFIX_KEY="_uRequestsEvents_",t.USER_LIVE_STREAM_CACHE_PREFIX_KEY="_uUserLives_",t.EVENT_MEDIA_STATE_CACHE_PREFIX_KEY="_eMedia_",t.USER_CONNECTIONS_TOOLS_STATE_CACHE_PREFIX_KEY="_uConWidget_",t.USER_CONNECTIONS_REQUESTS_TOOLS_STATE_CACHE_PREFIX_KEY="_uConReqWidget_",t.USER_CONNECTIONS_REQUESTS_SENT_TOOLS_STATE_CACHE_PREFIX_KEY="_uConReqSentWidget_",t.TRENDING_FEED_TOOLS_STATE_CACHE_PREFIX_KEY="_fTrendWidget_",t.RELATED_FEED_TOOLS_STATE_CACHE_PREFIX_KEY="_rFeedWidget_",t.TRENDING_PEOPLE_TOOLS_STATE_CACHE_PREFIX_KEY="_pTrendWidget_",t.PEOPLE_SUGGESTION_TOOLS_STATE_CACHE_PREFIX_KEY="_pSugWidget_",t.INCUBATOR_LIST_TOOLS_STATE_CACHE_PREFIX_KEY="_iListWidget_",t.INCUBATOR_SUGGESTION_TOOLS_STATE_CACHE_PREFIX_KEY="_iSugWidget_",t.POLL_SUGGESTION_TOOLS_STATE_CACHE_PREFIX_KEY="_pSugWidget_",t.GROUP_MEMBERS_TOOLS_STATE_CACHE_PREFIX_KEY="_gMemWidget_",t.GROUP_REQUESTS_TOOLS_STATE_CACHE_PREFIX_KEY="_gReqWidget_",t.GROUPS_LIST_TOOLS_STATE_CACHE_PREFIX_KEY="_glIST_",t.GROUPS_SUBSCRIBED_TOOLS_STATE_CACHE_PREFIX_KEY="_gSubWidget_",t.getWidgetStateCacheKey=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return"".concat(e).concat(void 0!==t?t:"")}},2225:(e,t,r)=>{t.__esModule=!0,t.DEFAULT_CONTEXT_PROVIDERS=t.CONTEXT_PROVIDERS_OPTION=void 0;var n=f(r(9723)),o=f(r(8719)),i=f(r(2075)),a=f(r(4702)),u=f(r(823)),c=f(r(5373)),s=f(r(1249)),l=f(r(7718));function f(e){return e&&e.__esModule?e:{default:e}}t.CONTEXT_PROVIDERS_OPTION="contextProviders";var d=[n.default,o.default,i.default,a.default,s.default,c.default,l.default,u.default];t.DEFAULT_CONTEXT_PROVIDERS=d},4357:(e,t)=>{t.__esModule=!0,t.WEB_PUSH_NOTIFICATION_DEVICE_TYPE=t.REGISTRATION_ID_KEY=t.PLATFORM_KEY=t.PLATFORMS=t.PLATFORM=t.NOTIFICATION_SERVICE_KEY=t.NOTIFICATIONS_SERVICES=t.IOS_PUSH_NOTIFICATION_IOS_DEVICE_TYPE=t.DEVICE_ID_KEY=t.ANDROID_PUSH_NOTIFICATION_GCM_DEVICE_TYPE=t.ANDROID_PUSH_NOTIFICATION_FCM_DEVICE_TYPE=void 0,t.WEB_PUSH_NOTIFICATION_DEVICE_TYPE="wp",t.ANDROID_PUSH_NOTIFICATION_GCM_DEVICE_TYPE="gcm",t.ANDROID_PUSH_NOTIFICATION_FCM_DEVICE_TYPE="fcm";var r="apns";t.IOS_PUSH_NOTIFICATION_IOS_DEVICE_TYPE=r;var n={ANDROID:"Android",IOS:"iOS"};t.PLATFORM=n;var o=Object.keys(n).map((function(e){return n[e]}));t.PLATFORMS=o;var i=["gcm","fcm",r];t.NOTIFICATIONS_SERVICES=i,t.PLATFORM_KEY="app-platform",t.REGISTRATION_ID_KEY="app-registrationId",t.NOTIFICATION_SERVICE_KEY="app-notificationService",t.DEVICE_ID_KEY="app-deviceId"},3240:(e,t)=>{t.__esModule=!0,t.SCOPE_SC_CORE=void 0,t.SCOPE_SC_CORE="@selfcommunity/react-core"},6115:(e,t)=>{t.__esModule=!0,t.FEATURES_OPTION=t.DEFAULT_FEATURES_OPTION=void 0,t.FEATURES_OPTION="features",t.DEFAULT_FEATURES_OPTION=[]},7452:(e,t)=>{function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.__esModule=!0,t.INTEGRATIONS_OPTION=t.INTEGRATIONS_OPENAI_SECRETKEY_OPTION=t.INTEGRATIONS_OPENAI_OPTION=t.INTEGRATIONS_GEOCODING_OPTION=t.INTEGRATIONS_GEOCODING_APIKEY_OPTION=t.DEFAULT_INTEGRATIONS_OPTION=void 0,t.INTEGRATIONS_OPTION="integrations";var n="openai";t.INTEGRATIONS_OPENAI_OPTION=n;var o="secretKey";t.INTEGRATIONS_OPENAI_SECRETKEY_OPTION=o;var i="geocoding";t.INTEGRATIONS_GEOCODING_OPTION=i;var a="apiKey";t.INTEGRATIONS_GEOCODING_APIKEY_OPTION=a;var u=r(r({},n,r({},o,null)),i,r({},a,null));t.DEFAULT_INTEGRATIONS_OPTION=u},7523:(e,t)=>{t.__esModule=!0,t.LOCALE_OPTION=t.LOCALE_MESSAGES_OPTION=t.LOCALE_IT=t.LOCALE_EN=t.LOCALE_DEFAULT_OPTION=t.LOCALES=t.DEFAULT_LANGUAGE_UI=void 0,t.LOCALE_OPTION="locale",t.LOCALE_DEFAULT_OPTION="default",t.LOCALE_MESSAGES_OPTION="messages";t.LOCALE_EN="en",t.LOCALE_IT="it";var r=["en","it"];t.LOCALES=r,t.DEFAULT_LANGUAGE_UI="en"},3973:(e,t,r)=>{t.__esModule=!0,t.SCSilentToastNotifications=t.SCSilentSnippetNotifications=t.SCNotificationTopics=t.SCNotificationMapping=t.NOTIFICATIONS_SETTINGS_TOAST_EMIT_SOUND=t.NOTIFICATIONS_SETTINGS_SHOW_TOAST=t.NOTIFICATIONS_SETTINGS_QA_FREQUENCY=t.NOTIFICATIONS_SETTINGS_MOBILE=t.NOTIFICATIONS_SETTINGS_EMAIL_NOT_QA=void 0;var n=r(9954),o=[n.SCNotificationTopicType.INTERACTION,n.SCNotificationTopicType.NEWS];t.SCNotificationTopics=o;var i={1:n.SCNotificationTypologyType.CONTRIBUTION,2:n.SCNotificationTypologyType.COMMENT,4:n.SCNotificationTypologyType.NESTED_COMMENT,55:n.SCNotificationTypologyType.CONNECTION_REQUEST,56:n.SCNotificationTypologyType.CONNECTION_ACCEPT,57:n.SCNotificationTypologyType.CONNECTION_REJECT,58:n.SCNotificationTypologyType.CONNECTION_CANCEL_REJECT,59:n.SCNotificationTypologyType.CONNECTION_REMOVE,60:n.SCNotificationTypologyType.CONNECTION_CANCEL_REQUEST,19:n.SCNotificationTypologyType.MENTION,9:n.SCNotificationTypologyType.VOTE_UP,16:n.SCNotificationTypologyType.FOLLOW,37:n.SCNotificationTypologyType.PRIVATE_MESSAGE,105:n.SCNotificationTypologyType.DELETE_PRIVATE_MESSAGE,26:n.SCNotificationTypologyType.LIVE_STREAM_STARTED,50:n.SCNotificationTypologyType.DELETED_FOR_ADVERTISING,51:n.SCNotificationTypologyType.DELETED_FOR_AGGRESSIVE,52:n.SCNotificationTypologyType.DELETED_FOR_VULGAR,65:n.SCNotificationTypologyType.DELETED_FOR_POOR,66:n.SCNotificationTypologyType.DELETED_FOR_OFFTOPIC,54:n.SCNotificationTypologyType.UNDELETED_FOR,75:n.SCNotificationTypologyType.COLLAPSED_FOR_ADVERTISING,76:n.SCNotificationTypologyType.COLLAPSED_FOR_AGGRESSIVE,77:n.SCNotificationTypologyType.COLLAPSED_FOR_VULGAR,78:n.SCNotificationTypologyType.COLLAPSED_FOR_POOR,79:n.SCNotificationTypologyType.COLLAPSED_FOR_OFFTOPIC,97:n.SCNotificationTypologyType.USER_FOLLOW,98:n.SCNotificationTypologyType.USER_UNFOLLOW,67:n.SCNotificationTypologyType.KINDLY_NOTICE_ADVERTISING,68:n.SCNotificationTypologyType.KINDLY_NOTICE_AGGRESSIVE,69:n.SCNotificationTypologyType.KINDLY_NOTICE_VULGAR,70:n.SCNotificationTypologyType.KINDLY_NOTICE_POOR,71:n.SCNotificationTypologyType.KINDLY_NOTICE_OFFTOPIC,73:n.SCNotificationTypologyType.KINDLY_NOTICE_FLAG,74:n.SCNotificationTypologyType.BLOCKED_USER,83:n.SCNotificationTypologyType.UNBLOCKED_USER,96:n.SCNotificationTypologyType.INCUBATOR_APPROVED,99:n.SCNotificationTypologyType.CUSTOM_NOTIFICATION,31:n.SCNotificationTypologyType.USER_INVITED_TO_JOIN_GROUP,32:n.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP,33:n.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP,34:n.SCNotificationTypologyType.USER_ADDED_TO_GROUP,7:n.SCNotificationTypologyType.USER_INVITED_TO_JOIN_EVENT,10:n.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT,14:n.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_EVENT,15:n.SCNotificationTypologyType.USER_ADDED_TO_EVENT,27:n.SCNotificationTypologyType.USER_INVITED_TO_JOIN_COURSE,29:n.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_COURSE,30:n.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_COURSE,46:n.SCNotificationTypologyType.USER_ADDED_TO_COURSE,80:n.SCNotificationTypologyType.MANAGER_ADDED_TO_COURSE,82:n.SCNotificationTypologyType.USER_COMMENTED_A_COURSE_LESSON};t.SCNotificationMapping=i,t.SCSilentSnippetNotifications=[57,58,59,60,98,99,105],t.SCSilentToastNotifications=[50,51,52,54,57,58,59,60,65,66,67,68,69,70,71,75,76,77,78,79,98,99,105],t.NOTIFICATIONS_SETTINGS_QA_FREQUENCY="qa_frequency",t.NOTIFICATIONS_SETTINGS_EMAIL_NOT_QA="email_notification_not_qa",t.NOTIFICATIONS_SETTINGS_MOBILE="mobile_notifications_scmty",t.NOTIFICATIONS_SETTINGS_TOAST_EMIT_SOUND="toast_notifications_emit_sound",t.NOTIFICATIONS_SETTINGS_SHOW_TOAST="show_toast_notifications"},6506:(e,t)=>{function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.__esModule=!0,t.NOTIFICATIONS_WEB_SOCKET_OPTION=t.NOTIFICATIONS_WEB_PUSH_MESSAGING_OPTION=t.NOTIFICATIONS_WEB_PUSH_MESSAGING_DIALOG_COOKIE=t.NOTIFICATIONS_WEBSOCKET_SECURE_OPTION=t.NOTIFICATIONS_WEBSOCKET_PREFIX_PATH_OPTION=t.NOTIFICATIONS_OPTION=t.NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING_OPTION=t.NOTIFICATIONS_MOBILE_NATIVE_DISABLE_OPTION=t.NOTIFICATIONS_DISABLE_TOAST_MESSAGE_OPTION=t.NOTIFICATIONS_APPLICATION_SERVER_KEY_OPTION=t.DEFAULT_NOTIFICATIONS=void 0,t.NOTIFICATIONS_OPTION="notifications";var n="webSocket";t.NOTIFICATIONS_WEB_SOCKET_OPTION=n;var o="webPushMessaging";t.NOTIFICATIONS_WEB_PUSH_MESSAGING_OPTION=o;var i="mobileNativePushMessaging";t.NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING_OPTION=i,t.NOTIFICATIONS_WEB_PUSH_MESSAGING_DIALOG_COOKIE="wpnDialogDisabled";var a="disableToastMessage";t.NOTIFICATIONS_DISABLE_TOAST_MESSAGE_OPTION=a;var u="disable";t.NOTIFICATIONS_MOBILE_NATIVE_DISABLE_OPTION=u;var c="secure";t.NOTIFICATIONS_WEBSOCKET_SECURE_OPTION=c,t.NOTIFICATIONS_WEBSOCKET_PREFIX_PATH_OPTION="prefixPath",t.NOTIFICATIONS_APPLICATION_SERVER_KEY_OPTION="applicationServerKey";var s=r(r(r({},n,r(r({},a,!1),c,!0)),o,r({},a,!0)),i,r({},u,!1));t.DEFAULT_NOTIFICATIONS=s},4592:(e,t,r)=>{t.__esModule=!0,t.POINTS_CONNECTION_OR_FOLLOWER=t.POINTS_APP_USED=t.LOYALTY_PRIZE_C_IMAGE=t.LOYALTY_PRIZE_B_IMAGE=t.LOYALTY_PRIZE_A_IMAGE=t.LOGO_NAVBAR_LOGO_MOBILE=t.LOGO_NAVBAR_LOGO=t.IMAGES_USER_DEFAULT_COVER=t.IMAGES_ERROR_503=t.IMAGES_ERROR_404=t.IMAGES_ERRORPAGES_IMAGE=t.IMAGES_APP_ICON=t.GLOBAL_PREFERENCES_OPTION=t.DEFAULT_GLOBAL_PREFERENCES_OPTION=t.DATA_TYPES=t.COVERS_VISIBILITY=t.COVERS_COVER_4_HP_M1920=t.COVERS_COVER_3_HP_M1920=t.COVERS_COVER_2_HP_M1920=t.COVERS_COVER_1_HP_M1920=t.CONFIGURATIONS_USER_METADATA_DEFINITIONS=t.CONFIGURATIONS_USERS_APPROVAL_ENABLED=t.CONFIGURATIONS_URL_TEMPLATE_VERIFY_EMAIL=t.CONFIGURATIONS_URL_TEMPLATE_USER_PROFILE_SETTINGS=t.CONFIGURATIONS_URL_TEMPLATE_USER_PROFILE=t.CONFIGURATIONS_URL_TEMPLATE_USER_PRIVATE_MESSAGES=t.CONFIGURATIONS_URL_TEMPLATE_STATUS=t.CONFIGURATIONS_URL_TEMPLATE_POST=t.CONFIGURATIONS_URL_TEMPLATE_PASSWORD_RECOVER=t.CONFIGURATIONS_URL_TEMPLATE_NOTIFICATIONS=t.CONFIGURATIONS_URL_TEMPLATE_LIVE_STREAM=t.CONFIGURATIONS_URL_TEMPLATE_INCUBATOR=t.CONFIGURATIONS_URL_TEMPLATE_EMAIL_UNSUBSCRIBE=t.CONFIGURATIONS_URL_TEMPLATE_EMAIL_SETTINGS=t.CONFIGURATIONS_URL_TEMPLATE_DISCUSSION=t.CONFIGURATIONS_URL_TEMPLATE_COMMENT=t.CONFIGURATIONS_URL_TEMPLATE_CATEGORY=t.CONFIGURATIONS_URL_TEMPLATE_CATEGORIES_LIST=t.CONFIGURATIONS_TAG_MANAGER_CONTAINER_ID=t.CONFIGURATIONS_SUBSCRIPTION_TIER=t.CONFIGURATIONS_STRIPE_CONNECTED_ACCOUNT_ID=t.CONFIGURATIONS_STREAM_QUALITY=t.CONFIGURATIONS_STATUS_TYPE_ENABLED=t.CONFIGURATIONS_POST_TYPE_ENABLED=t.CONFIGURATIONS_POST_ONLY_STAFF_ENABLED=t.CONFIGURATIONS_PEOPLE_SEARCH_ENABLED=t.CONFIGURATIONS_PAYMENTS_ENABLED=t.CONFIGURATIONS_ONBOARDING_HIDDEN=t.CONFIGURATIONS_ONBOARDING_ENABLED=t.CONFIGURATIONS_MANUAL_CATEGORIES_ORDER_ENABLED=t.CONFIGURATIONS_LIVE_VIDEO_CONFERENCE_ENABLED=t.CONFIGURATIONS_LIVE_STREAM_ONLY_STAFF_ENABLED=t.CONFIGURATIONS_LIVE_STREAM_ENABLED=t.CONFIGURATIONS_HOME_STREAM_ORDER_BY=t.CONFIGURATIONS_GROUPS_VISIBILITY_ENABLED=t.CONFIGURATIONS_GROUPS_PRIVATE_ENABLED=t.CONFIGURATIONS_GROUPS_ONLY_STAFF_ENABLED=t.CONFIGURATIONS_GROUPS_ENABLED=t.CONFIGURATIONS_GDPR_SIGNUP_ACCEPT_HTML=t.CONFIGURATIONS_GDPR_COOKIE_CONSENT_EXTERNAL_HTML=t.CONFIGURATIONS_FOLLOW_ENABLED=t.CONFIGURATIONS_EXPLORE_STREAM_ORDER_BY=t.CONFIGURATIONS_EXPLORE_STREAM_ENABLED=t.CONFIGURATIONS_EVENTS_VISIBILITY_ENABLED=t.CONFIGURATIONS_EVENTS_PRIVATE_ENABLED=t.CONFIGURATIONS_EVENTS_ONLY_STAFF_ENABLED=t.CONFIGURATIONS_EVENTS_ENABLED=t.CONFIGURATIONS_DISCUSSION_TYPE_ENABLED=t.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL=t.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_TEXT=t.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_IMAGE=t.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_ENABLED=t.CONFIGURATIONS_COURSES_VISIBILITY_ENABLED=t.CONFIGURATIONS_COURSES_PRIVATE_ENABLED=t.CONFIGURATIONS_COURSES_ONLY_STAFF_ENABLED=t.CONFIGURATIONS_COURSES_ENABLED=t.CONFIGURATIONS_COURSES_ADVANCED_ENABLED=t.CONFIGURATIONS_CONTENT_AVAILABILITY=t.CONFIGURATIONS_CONNECTION_ENABLED=t.CONFIGURATIONS_APP_URL=t.COLORS_NAVBARBACK=t.COLORS_COLORSECONDARY=t.COLORS_COLORPRIMARY=t.COLORS_COLORFONTSECONDARY=t.COLORS_COLORFONT=t.COLORS_COLORBACK=t.ADVERTISING_CUSTOM_ADV_ONLY_FOR_ANONYMOUS_USERS_ENABLED=t.ADVERTISING_CUSTOM_ADV_ENABLED=t.ADDONS_SHARE_POST_ON_TWITTER_ENABLED=t.ADDONS_SHARE_POST_ON_LINKEDIN_ENABLED=t.ADDONS_SHARE_POST_ON_FACEBOOK_ENABLED=t.ADDONS_REGISTRATION_WIZARD=t.ADDONS_PRIVATE_MESSAGES_ENABLED=t.ADDONS_POST_GEOLOCATION_ENABLED=t.ADDONS_POLLS_ENABLED=t.ADDONS_LOYALTY_POINTS_COLLECTION=t.ADDONS_INCUBATOR_SUBSCRIBERS=t.ADDONS_INCUBATOR_ENABLED=t.ADDONS_CLOSED_COMMUNITY=t.ADDONS_AFFINITY_ENABLED=void 0,t.getPreferenceSection=t.getPreferenceName=t.getPreference=t.WEBMASTER_META_TITLE_HOME_NOT_LOGGED=t.WEBMASTER_META_ROBOTS=t.WEBMASTER_META_DESCRIPTION=t.TEXT_ERROR_PAGES_TITLE=t.TEXT_ERROR_PAGES_SUBTITLE=t.TEXT_APPLICATION_SLOGAN2=t.TEXT_APPLICATION_SLOGAN1=t.TEXT_APPLICATION_NAME=t.TEXT_APPLICATION_COPYRIGHT=t.STYLE_FONT_FAMILY=t.STATIC_STRIPE_PUBLIC_KEY=t.STATIC_STACKID=t.STATIC_ENVIRONMENT=t.STAFF_STAFF_BADGE_LABEL=t.STAFF_STAFF_BADGE_ICON=t.PROVIDERS_WEB_PUSH_PUBLIC_KEY=t.PROVIDERS_WEB_PUSH_ENABLED=t.PROVIDERS_TWITTER_SIGNIN_ENABLED=t.PROVIDERS_TWITTER_APP_SECRET=t.PROVIDERS_TWITTER_APP_KEY=t.PROVIDERS_LINKEDIN_SIGNIN_ENABLED=t.PROVIDERS_LINKEDIN_APP_SECRET=t.PROVIDERS_LINKEDIN_APP_KEY=t.PROVIDERS_GOOGLE_SIGNIN_ENABLED=t.PROVIDERS_GOOGLE_GEOCODING_API_KEY=t.PROVIDERS_GOOGLE_APP_SECRET=t.PROVIDERS_GOOGLE_APP_KEY=t.PROVIDERS_FACEBOOK_SIGNIN_ENABLED=t.PROVIDERS_FACEBOOK_APP_SECRET=t.PROVIDERS_FACEBOOK_APP_KEY=t.PROVIDERS_APP_URL_ON_GOOGLE_PLAY=t.PROVIDERS_APP_URL_ON_APP_STORE=t.PREFERENCES_OPTION=t.POINTS_SOCIAL_SHARE=t.POINTS_RECEIVE_VOTE=t.POINTS_MAKE_POST=t.POINTS_MAKE_DISCUSSION=t.POINTS_MAKE_COMMENT=t.POINTS_DAILY_VISIT=void 0;var n,o=r(9954);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.PREFERENCES_OPTION="preferences",t.GLOBAL_PREFERENCES_OPTION="preferences",t.DEFAULT_GLOBAL_PREFERENCES_OPTION={};var c="".concat(o.SCPreferenceSection.TEXT,".").concat(o.SCPreferenceName.APPLICATION_NAME);t.TEXT_APPLICATION_NAME=c;var s="".concat(o.SCPreferenceSection.TEXT,".").concat(o.SCPreferenceName.APPLICATION_SLOGAN1);t.TEXT_APPLICATION_SLOGAN1=s;var l="".concat(o.SCPreferenceSection.TEXT,".").concat(o.SCPreferenceName.APPLICATION_SLOGAN2);t.TEXT_APPLICATION_SLOGAN2=l;var f="".concat(o.SCPreferenceSection.TEXT,".").concat(o.SCPreferenceName.APPLICATION_COPYRIGHT);t.TEXT_APPLICATION_COPYRIGHT=f;var d="".concat(o.SCPreferenceSection.TEXT,".").concat(o.SCPreferenceName.ERRORPAGES_TITLE);t.TEXT_ERROR_PAGES_TITLE=d;var p="".concat(o.SCPreferenceSection.TEXT,".").concat(o.SCPreferenceName.ERRORPAGES_SUBTITLE);t.TEXT_ERROR_PAGES_SUBTITLE=p;var h="".concat(o.SCPreferenceSection.STYLE,".").concat(o.SCPreferenceName.FONT_FAMILY);t.STYLE_FONT_FAMILY=h;var v="".concat(o.SCPreferenceSection.LOGO,".").concat(o.SCPreferenceName.NAVBAR_LOGO);t.LOGO_NAVBAR_LOGO=v;var y="".concat(o.SCPreferenceSection.LOGO,".").concat(o.SCPreferenceName.NAVBAR_LOGO_MOBILE);t.LOGO_NAVBAR_LOGO_MOBILE=y;var g="".concat(o.SCPreferenceSection.COLORS,".").concat(o.SCPreferenceName.COLORBACK);t.COLORS_COLORBACK=g;var m="".concat(o.SCPreferenceSection.COLORS,".").concat(o.SCPreferenceName.COLORPRIMARY);t.COLORS_COLORPRIMARY=m;var _="".concat(o.SCPreferenceSection.COLORS,".").concat(o.SCPreferenceName.COLORSECONDARY);t.COLORS_COLORSECONDARY=_;var E="".concat(o.SCPreferenceSection.COLORS,".").concat(o.SCPreferenceName.NAVBARBACK);t.COLORS_NAVBARBACK=E;var S="".concat(o.SCPreferenceSection.COLORS,".").concat(o.SCPreferenceName.COLORFONT);t.COLORS_COLORFONT=S;var O="".concat(o.SCPreferenceSection.COLORS,".").concat(o.SCPreferenceName.COLORFONTSECONDARY);t.COLORS_COLORFONTSECONDARY=O;var b="".concat(o.SCPreferenceSection.COVERS,".").concat(o.SCPreferenceName.COVER_1_HP_M1920);t.COVERS_COVER_1_HP_M1920=b;var C="".concat(o.SCPreferenceSection.COVERS,".").concat(o.SCPreferenceName.COVER_2_HP_M1920);t.COVERS_COVER_2_HP_M1920=C;var T="".concat(o.SCPreferenceSection.COVERS,".").concat(o.SCPreferenceName.COVER_3_HP_M1920);t.COVERS_COVER_3_HP_M1920=T;var w="".concat(o.SCPreferenceSection.COVERS,".").concat(o.SCPreferenceName.COVER_4_HP_M1920);t.COVERS_COVER_4_HP_M1920=w;var R="".concat(o.SCPreferenceSection.COVERS,".").concat(o.SCPreferenceName.COVERS_VISIBILITY);t.COVERS_VISIBILITY=R;var A="".concat(o.SCPreferenceSection.IMAGES,".").concat(o.SCPreferenceName.APP_ICON);t.IMAGES_APP_ICON=A;var P="".concat(o.SCPreferenceSection.IMAGES,".").concat(o.SCPreferenceName.USER_DEFAULT_COVER);t.IMAGES_USER_DEFAULT_COVER=P;var L="".concat(o.SCPreferenceSection.IMAGES,".").concat(o.SCPreferenceName.ERROR_404);t.IMAGES_ERROR_404=L;var I="".concat(o.SCPreferenceSection.IMAGES,".").concat(o.SCPreferenceName.ERROR_503);t.IMAGES_ERROR_503=I;var N="".concat(o.SCPreferenceSection.IMAGES,".").concat(o.SCPreferenceName.ERRORPAGES_IMAGE);t.IMAGES_ERRORPAGES_IMAGE=N;var j="".concat(o.SCPreferenceSection.STAFF,".").concat(o.SCPreferenceName.STAFF_BADGE_ICON);t.STAFF_STAFF_BADGE_ICON=j;var k="".concat(o.SCPreferenceSection.STAFF,".").concat(o.SCPreferenceName.STAFF_BADGE_LABEL);t.STAFF_STAFF_BADGE_LABEL=k;var U="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.PRIZE_A_IMAGE);t.LOYALTY_PRIZE_A_IMAGE=U;var x="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.PRIZE_B_IMAGE);t.LOYALTY_PRIZE_B_IMAGE=x;var G="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.PRIZE_C_IMAGE);t.LOYALTY_PRIZE_C_IMAGE=G;var D="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.POINTS_MAKE_DISCUSSION);t.POINTS_MAKE_DISCUSSION=D;var M="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.POINTS_MAKE_POST);t.POINTS_MAKE_POST=M;var F="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.POINTS_MAKE_COMMENT);t.POINTS_MAKE_COMMENT=F;var B="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.POINTS_RECEIVE_VOTE);t.POINTS_RECEIVE_VOTE=B;var V="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.POINTS_CONNECTION_OR_FOLLOWER);t.POINTS_CONNECTION_OR_FOLLOWER=V;var Y="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.POINTS_SOCIAL_SHARE);t.POINTS_SOCIAL_SHARE=Y;var q="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.POINTS_APP_USED);t.POINTS_APP_USED=q;var K="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.POINTS_DAILY_VISIT);t.POINTS_DAILY_VISIT=K;var W="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.AFFINITY_ENABLED);t.ADDONS_AFFINITY_ENABLED=W;var H="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.CLOSED_COMMUNITY);t.ADDONS_CLOSED_COMMUNITY=H;var $="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.INCUBATOR_ENABLED);t.ADDONS_INCUBATOR_ENABLED=$;var X="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.INCUBATOR_SUBSCRIBERS);t.ADDONS_INCUBATOR_SUBSCRIBERS=X;var J="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.LOYALTY_POINTS_COLLECTION);t.ADDONS_LOYALTY_POINTS_COLLECTION=J;var z="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.POLLS_ENABLED);t.ADDONS_POLLS_ENABLED=z;var Q="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.REGISTRATION_WIZARD);t.ADDONS_REGISTRATION_WIZARD=Q;var Z="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.POST_GEOLOCATION_ENABLED);t.ADDONS_POST_GEOLOCATION_ENABLED=Z;var ee="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.SHARE_POST_ON_FACEBOOK_ENABLED);t.ADDONS_SHARE_POST_ON_FACEBOOK_ENABLED=ee;var te="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.SHARE_POST_ON_TWITTER_ENABLED);t.ADDONS_SHARE_POST_ON_TWITTER_ENABLED=te;var re="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.SHARE_POST_ON_LINKEDIN_ENABLED);t.ADDONS_SHARE_POST_ON_LINKEDIN_ENABLED=re;var ne="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.PRIVATE_MESSAGES_ENABLED);t.ADDONS_PRIVATE_MESSAGES_ENABLED=ne;var oe="".concat(o.SCPreferenceSection.ADVERTISING,".").concat(o.SCPreferenceName.CUSTOM_ADV_ENABLED);t.ADVERTISING_CUSTOM_ADV_ENABLED=oe;var ie="".concat(o.SCPreferenceSection.ADVERTISING,".").concat(o.SCPreferenceName.CUSTOM_ADV_ONLY_FOR_ANONYMOUS_USERS_ENABLED);t.ADVERTISING_CUSTOM_ADV_ONLY_FOR_ANONYMOUS_USERS_ENABLED=ie;var ae="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.CONNECTION_ENABLED);t.CONFIGURATIONS_CONNECTION_ENABLED=ae;var ue="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.FOLLOW_ENABLED);t.CONFIGURATIONS_FOLLOW_ENABLED=ue;var ce="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.EXPLORE_STREAM_ENABLED);t.CONFIGURATIONS_EXPLORE_STREAM_ENABLED=ce;var se="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.EXPLORE_STREAM_ORDER_BY);t.CONFIGURATIONS_EXPLORE_STREAM_ORDER_BY=se;var le="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.HOME_STREAM_ORDER_BY);t.CONFIGURATIONS_HOME_STREAM_ORDER_BY=le;var fe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.MANUAL_CATEGORIES_ORDER_ENABLED);t.CONFIGURATIONS_MANUAL_CATEGORIES_ORDER_ENABLED=fe;var de="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.PEOPLE_SEARCH_ENABLED);t.CONFIGURATIONS_PEOPLE_SEARCH_ENABLED=de;var pe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.POST_ONLY_STAFF_ENABLED);t.CONFIGURATIONS_POST_ONLY_STAFF_ENABLED=pe;var he="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.STREAM_QUALITY);t.CONFIGURATIONS_STREAM_QUALITY=he;var ve="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.CONTENT_AVAILABILITY);t.CONFIGURATIONS_CONTENT_AVAILABILITY=ve;var ye="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.USERS_APPROVAL_ENABLED);t.CONFIGURATIONS_USERS_APPROVAL_ENABLED=ye;var ge="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.POST_TYPE_ENABLED);t.CONFIGURATIONS_POST_TYPE_ENABLED=ge;var me="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.DISCUSSION_TYPE_ENABLED);t.CONFIGURATIONS_DISCUSSION_TYPE_ENABLED=me;var _e="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.STATUS_TYPE_ENABLED);t.CONFIGURATIONS_STATUS_TYPE_ENABLED=_e;var Ee="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_EMAIL_SETTINGS);t.CONFIGURATIONS_URL_TEMPLATE_EMAIL_SETTINGS=Ee;var Se="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_EMAIL_UNSUBSCRIBE);t.CONFIGURATIONS_URL_TEMPLATE_EMAIL_UNSUBSCRIBE=Se;var Oe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_PASSWORD_RECOVER);t.CONFIGURATIONS_URL_TEMPLATE_PASSWORD_RECOVER=Oe;var be="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_VERIFY_EMAIL);t.CONFIGURATIONS_URL_TEMPLATE_VERIFY_EMAIL=be;var Ce="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_POST);t.CONFIGURATIONS_URL_TEMPLATE_POST=Ce;var Te="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_DISCUSSION);t.CONFIGURATIONS_URL_TEMPLATE_DISCUSSION=Te;var we="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_STATUS);t.CONFIGURATIONS_URL_TEMPLATE_STATUS=we;var Re="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_COMMENT);t.CONFIGURATIONS_URL_TEMPLATE_COMMENT=Re;var Ae="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_CATEGORY);t.CONFIGURATIONS_URL_TEMPLATE_CATEGORY=Ae;var Pe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_CATEGORIES_LIST);t.CONFIGURATIONS_URL_TEMPLATE_CATEGORIES_LIST=Pe;var Le="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_USER_PROFILE);t.CONFIGURATIONS_URL_TEMPLATE_USER_PROFILE=Le;var Ie="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_USER_PROFILE_SETTINGS);t.CONFIGURATIONS_URL_TEMPLATE_USER_PROFILE_SETTINGS=Ie;var Ne="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_NOTIFICATIONS);t.CONFIGURATIONS_URL_TEMPLATE_NOTIFICATIONS=Ne;var je="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_USER_PRIVATE_MESSAGES);t.CONFIGURATIONS_URL_TEMPLATE_USER_PRIVATE_MESSAGES=je;var ke="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_INCUBATOR);t.CONFIGURATIONS_URL_TEMPLATE_INCUBATOR=ke;var Ue="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_LIVE_STREAM);t.CONFIGURATIONS_URL_TEMPLATE_LIVE_STREAM=Ue;var xe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.APP_URL);t.CONFIGURATIONS_APP_URL=xe;var Ge="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.USER_METADATA_DEFINITIONS);t.CONFIGURATIONS_USER_METADATA_DEFINITIONS=Ge;var De="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.TAG_MANAGER_CONTAINER_ID);t.CONFIGURATIONS_TAG_MANAGER_CONTAINER_ID=De;var Me="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.GDPR_COOKIE_CONSENT_EXTERNAL_HTML);t.CONFIGURATIONS_GDPR_COOKIE_CONSENT_EXTERNAL_HTML=Me;var Fe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.GDPR_SIGNUP_ACCEPT_HTML);t.CONFIGURATIONS_GDPR_SIGNUP_ACCEPT_HTML=Fe;var Be="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.CUSTOM_NAVBAR_ITEM_ENABLED);t.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_ENABLED=Be;var Ve="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.CUSTOM_NAVBAR_ITEM_TEXT);t.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_TEXT=Ve;var Ye="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.CUSTOM_NAVBAR_ITEM_URL);t.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL=Ye;var qe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.CUSTOM_NAVBAR_ITEM_IMAGE);t.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_IMAGE=qe;var Ke="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.GROUPS_ENABLED);t.CONFIGURATIONS_GROUPS_ENABLED=Ke;var We="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.GROUPS_ONLY_STAFF_ENABLED);t.CONFIGURATIONS_GROUPS_ONLY_STAFF_ENABLED=We;var He="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.GROUPS_VISIBILITY_ENABLED);t.CONFIGURATIONS_GROUPS_VISIBILITY_ENABLED=He;var $e="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.GROUPS_PRIVATE_ENABLED);t.CONFIGURATIONS_GROUPS_PRIVATE_ENABLED=$e;var Xe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.EVENTS_ENABLED);t.CONFIGURATIONS_EVENTS_ENABLED=Xe;var Je="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.EVENTS_ONLY_STAFF_ENABLED);t.CONFIGURATIONS_EVENTS_ONLY_STAFF_ENABLED=Je;var ze="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.EVENTS_VISIBILITY_ENABLED);t.CONFIGURATIONS_EVENTS_VISIBILITY_ENABLED=ze;var Qe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.EVENTS_PRIVATE_ENABLED);t.CONFIGURATIONS_EVENTS_PRIVATE_ENABLED=Qe;var Ze="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.COURSES_ENABLED);t.CONFIGURATIONS_COURSES_ENABLED=Ze;var et="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.COURSES_ONLY_STAFF_ENABLED);t.CONFIGURATIONS_COURSES_ONLY_STAFF_ENABLED=et;var tt="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.COURSES_VISIBILITY_ENABLED);t.CONFIGURATIONS_COURSES_VISIBILITY_ENABLED=tt;var rt="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.COURSES_PRIVATE_ENABLED);t.CONFIGURATIONS_COURSES_PRIVATE_ENABLED=rt;var nt="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.COURSES_ADVANCED_ENABLED);t.CONFIGURATIONS_COURSES_ADVANCED_ENABLED=nt;var ot="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.ONBOARDING_ENABLED);t.CONFIGURATIONS_ONBOARDING_ENABLED=ot;var it="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.ONBOARDING_HIDDEN);t.CONFIGURATIONS_ONBOARDING_HIDDEN=it;var at="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.LIVE_STREAM_ENABLED);t.CONFIGURATIONS_LIVE_STREAM_ENABLED=at;var ut="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.LIVE_STREAM_ONLY_STAFF_ENABLED);t.CONFIGURATIONS_LIVE_STREAM_ONLY_STAFF_ENABLED=ut;var ct="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.LIVE_STREAM_VIDEO_CONFERENCE_ENABLED);t.CONFIGURATIONS_LIVE_VIDEO_CONFERENCE_ENABLED=ct;var st="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.SUBSCRIPTION_TIER);t.CONFIGURATIONS_SUBSCRIPTION_TIER=st;var lt="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.PAYMENTS_ENABLED);t.CONFIGURATIONS_PAYMENTS_ENABLED=lt;var ft="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.STRIPE_CONNECTED_ACCOUNT_ID);t.CONFIGURATIONS_STRIPE_CONNECTED_ACCOUNT_ID=ft;var dt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.APP_URL_ON_APP_STORE);t.PROVIDERS_APP_URL_ON_APP_STORE=dt;var pt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.APP_URL_ON_GOOGLE_PLAY);t.PROVIDERS_APP_URL_ON_GOOGLE_PLAY=pt;var ht="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.FACEBOOK_SIGNIN_ENABLED);t.PROVIDERS_FACEBOOK_SIGNIN_ENABLED=ht;var vt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.FACEBOOK_APP_KEY);t.PROVIDERS_FACEBOOK_APP_KEY=vt;var yt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.FACEBOOK_APP_SECRET);t.PROVIDERS_FACEBOOK_APP_SECRET=yt;var gt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.LINKEDIN_SIGNIN_ENABLED);t.PROVIDERS_LINKEDIN_SIGNIN_ENABLED=gt;var mt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.LINKEDIN_APP_KEY);t.PROVIDERS_LINKEDIN_APP_KEY=mt;var _t="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.LINKEDIN_APP_SECRET);t.PROVIDERS_LINKEDIN_APP_SECRET=_t;var Et="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.TWITTER_SIGNIN_ENABLED);t.PROVIDERS_TWITTER_SIGNIN_ENABLED=Et;var St="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.TWITTER_APP_KEY);t.PROVIDERS_TWITTER_APP_KEY=St;var Ot="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.TWITTER_APP_SECRET);t.PROVIDERS_TWITTER_APP_SECRET=Ot;var bt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.GOOGLE_GEOCODING_API_KEY);t.PROVIDERS_GOOGLE_GEOCODING_API_KEY=bt;var Ct="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.GOOGLE_SIGNIN_ENABLED);t.PROVIDERS_GOOGLE_SIGNIN_ENABLED=Ct;var Tt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.GOOGLE_APP_KEY);t.PROVIDERS_GOOGLE_APP_KEY=Tt;var wt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.GOOGLE_APP_SECRET);t.PROVIDERS_GOOGLE_APP_SECRET=wt;var Rt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.WEB_PUSH_PUBLIC_KEY);t.PROVIDERS_WEB_PUSH_PUBLIC_KEY=Rt;var At="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.WEB_PUSH_ENABLED);t.PROVIDERS_WEB_PUSH_ENABLED=At;var Pt="".concat(o.SCPreferenceSection.WEBMASTER,".").concat(o.SCPreferenceName.META_ROBOTS);t.WEBMASTER_META_ROBOTS=Pt;var Lt="".concat(o.SCPreferenceSection.WEBMASTER,".").concat(o.SCPreferenceName.META_TITLE_HOME_NOT_LOGGED);t.WEBMASTER_META_TITLE_HOME_NOT_LOGGED=Lt;var It="".concat(o.SCPreferenceSection.WEBMASTER,".").concat(o.SCPreferenceName.META_DESCRIPTION);t.WEBMASTER_META_DESCRIPTION=It;var Nt="".concat(o.SCPreferenceSection.STATIC,".").concat(o.SCPreferenceName.ENVIRONMENT);t.STATIC_ENVIRONMENT=Nt;var jt="".concat(o.SCPreferenceSection.STATIC,".").concat(o.SCPreferenceName.STACK_ID);t.STATIC_STACKID=jt;var kt="".concat(o.SCPreferenceSection.STATIC,".").concat(o.SCPreferenceName.STRIPE_PUBLIC_KEY);t.STATIC_STRIPE_PUBLIC_KEY=kt;var Ut=function(e){return"True"===e||"False"!==e&&null};t.getPreferenceSection=function(e){return e?a(e.split("."),1)[0]:null},t.getPreferenceName=function(e){return e?a(e.split("."),2)[1]:null},t.getPreference=function(e){if(e){var t=a(e.split("."),2);return{section:t[0],name:t[1]}}return null};var xt=function(e){return parseInt(e,10)},Gt=function(e){return e.toString()},Dt=(i(i(i(i(i(i(i(i(i(i(n={},s,Gt),l,Gt),f,Gt),v,Gt),y,Gt),g,Gt),m,Gt),_,Gt),E,Gt),S,Gt),i(i(i(i(i(i(i(i(i(i(n,O,Gt),b,Gt),C,Gt),T,Gt),w,Gt),R,xt),A,Gt),P,Gt),L,Gt),I,Gt),i(i(i(i(i(i(i(i(i(i(n,N,Gt),d,Gt),p,Gt),j,Gt),k,Gt),U,Gt),x,Gt),G,Gt),W,Ut),H,Ut),i(i(i(i(i(i(i(i(i(i(n,$,Ut),X,xt),J,Ut),z,Ut),Q,Ut),Z,Ut),ee,Ut),te,Ut),re,Ut),ue,Ut),i(i(i(i(i(i(i(i(i(i(n,ce,Ut),se,Gt),le,Gt),fe,Ut),de,Ut),pe,Ut),ve,Ut),he,Ut),ye,Ut),me,Ut),i(i(i(i(i(i(i(i(i(i(n,_e,Ut),Ee,Gt),Se,Gt),Oe,Gt),be,Gt),Ce,Gt),Te,Gt),we,Gt),Re,Gt),Ae,Gt),i(i(i(i(i(i(i(i(i(i(n,Pe,Gt),Le,Gt),Ie,Gt),Ne,Gt),je,Gt),ke,Gt),Ue,Gt),xe,Gt),Ge,Gt),De,Gt),i(i(i(i(i(i(i(i(i(i(n,Me,Gt),Fe,Gt),Be,Gt),Ve,Gt),Ye,Gt),qe,Gt),Ke,Ut),We,Ut),He,Ut),$e,Ut),i(i(i(i(i(i(i(i(i(i(n,Xe,Ut),Je,Ut),ze,Ut),Qe,Ut),Ze,Ut),et,Ut),tt,Ut),rt,Ut),nt,Ut),ot,Ut),i(i(i(i(i(i(i(i(i(i(n,it,Ut),at,Ut),ut,Ut),ct,Ut),st,Gt),lt,Ut),ft,Gt),dt,Gt),pt,Gt),ht,Gt),i(i(i(i(i(i(i(i(i(i(n,vt,Gt),yt,Gt),gt,Gt),mt,Gt),_t,Gt),Et,Gt),St,Gt),Ot,Gt),bt,Gt),Ct,Gt),i(i(i(i(i(i(i(i(i(i(n,Tt,Gt),wt,Gt),Rt,Gt),At,Ut),Pt,Gt),Lt,Gt),It,Gt),Nt,Gt),jt,Gt),kt,Gt));t.DATA_TYPES=Dt},8461:(e,t)=>{var r;function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.__esModule=!0,t.defaultRoutes=t.USER_PROFILE_SETTINGS_ROUTE_NAME=t.USER_PROFILE_ROUTE_NAME=t.USER_PROFILE_FOLLOWINGS_ROUTE_NAME=t.USER_PROFILE_FOLLOWERS_ROUTE_NAME=t.USER_PROFILE_FOLLOWED_POSTS_ROUTE_NAME=t.USER_PROFILE_FOLLOWED_DISCUSSIONS_ROUTE_NAME=t.USER_PROFILE_CONNECTIONS_ROUTE_NAME=t.USER_PROFILE_CONNECTIONS_REQUESTS_SENT_ROUTE_NAME=t.USER_PROFILE_CONNECTIONS_REQUESTS_ROUTE_NAME=t.USER_PROFILE_CATEGORIES_ROUTE_NAME=t.USER_PRIVATE_MESSAGES_ROUTE_NAME=t.USER_PAYMENT_METHODS_ROUTE_NAME=t.USER_PAYMENTS_ORDER_PDF_ROUTE_NAME=t.USER_PAYMENTS_HISTORY_ORDERS_ROUTE_NAME=t.USER_NOTIFICATIONS_ROUTE_NAME=t.STATUS_ROUTE_NAME=t.SIGNUP_ROUTE_NAME=t.SIGNIN_ROUTE_NAME=t.ROUTER_OPTION=t.RECOVER_ROUTE_NAME=t.POST_ROUTE_NAME=t.PORTAL_OPTION=t.LOYALTY_ROUTE_NAME=t.LIVESTREAM_ROUTE_NAME=t.LEGAL_PAGES_ROUTE_NAME=t.INCUBATOR_ROUTE_NAME=t.HOME_ROUTE_NAME=t.GROUP_ROUTE_NAME=t.GROUP_MESSAGES_ROUTE_NAME=t.GROUP_MEMBERS_ROUTE_NAME=t.GROUPS_SUBSCRIBED_ROUTE_NAME=t.GROUPS_ROUTE_NAME=t.EXPLORE_ROUTE_NAME=t.EVENT_ROUTE_NAME=t.EVENTS_SUGGESTED_ROUTE_NAME=t.EVENTS_SUBSCRIBED_ROUTE_NAME=t.EVENTS_ROUTE_NAME=t.EVENTS_HIGHLIGHT_ROUTE_NAME=t.DISCUSSION_ROUTE_NAME=t.CUSTOM_PAGES_ROUTE_NAME=t.COURSE_ROUTE_NAME=t.COURSE_LESSON_ROUTE_NAME=t.COURSE_LESSON_PREVIEW_ROUTE_NAME=t.COURSE_LESSON_EDIT_ROUTE_NAME=t.COURSE_LESSON_COMMENTS_ROUTE_NAME=t.COURSE_EDIT_ROUTE_NAME=t.COURSE_DASHBOARD_ROUTE_NAME=t.COURSES_ROUTE_NAME=t.COMMENT_ROUTE_NAME=t.CHECKOUT_PAYMENT=t.CATEGORY_TRENDING_FEED_ROUTE_NAME=t.CATEGORY_ROUTE_NAME=t.CATEGORIES_LIST_ROUTE_NAME=void 0,t.PORTAL_OPTION="portal",t.ROUTER_OPTION="router";var o="home";t.HOME_ROUTE_NAME=o;var i="explore";t.EXPLORE_ROUTE_NAME=i;var a="post";t.POST_ROUTE_NAME=a;var u="discussion";t.DISCUSSION_ROUTE_NAME=u;var c="status";t.STATUS_ROUTE_NAME=c;var s="comment";t.COMMENT_ROUTE_NAME=s;var l="category";t.CATEGORY_ROUTE_NAME=l;var f="category_trending_feed";t.CATEGORY_TRENDING_FEED_ROUTE_NAME=f;var d="categories";t.CATEGORIES_LIST_ROUTE_NAME=d;var p="user_profile";t.USER_PROFILE_ROUTE_NAME=p;var h="user_profile_settings";t.USER_PROFILE_SETTINGS_ROUTE_NAME=h;var v="user_notifications";t.USER_NOTIFICATIONS_ROUTE_NAME=v;var y="user_messages";t.USER_PRIVATE_MESSAGES_ROUTE_NAME=y;var g="user_followings";t.USER_PROFILE_FOLLOWINGS_ROUTE_NAME=g;var m="user_followers";t.USER_PROFILE_FOLLOWERS_ROUTE_NAME=m;var _="user_connections";t.USER_PROFILE_CONNECTIONS_ROUTE_NAME=_;var E="user_connections_requests";t.USER_PROFILE_CONNECTIONS_REQUESTS_ROUTE_NAME=E;var S="user_connections_requests_sent";t.USER_PROFILE_CONNECTIONS_REQUESTS_SENT_ROUTE_NAME=S;var O="user_categories";t.USER_PROFILE_CATEGORIES_ROUTE_NAME=O;var b="user_followed_posts";t.USER_PROFILE_FOLLOWED_POSTS_ROUTE_NAME=b;var C="user_followed_discussions";t.USER_PROFILE_FOLLOWED_DISCUSSIONS_ROUTE_NAME=C;var T="user_payments_history_orders";t.USER_PAYMENTS_HISTORY_ORDERS_ROUTE_NAME=T;var w="user_payments_order_pdf";t.USER_PAYMENTS_ORDER_PDF_ROUTE_NAME=w;var R="user_payment_methods";t.USER_PAYMENT_METHODS_ROUTE_NAME=R;var A="loyalty";t.LOYALTY_ROUTE_NAME=A;var P="incubator";t.INCUBATOR_ROUTE_NAME=P;var L="signin";t.SIGNIN_ROUTE_NAME=L;var I="signup";t.SIGNUP_ROUTE_NAME=I;var N="recover";t.RECOVER_ROUTE_NAME=N;var j="custom_pages";t.CUSTOM_PAGES_ROUTE_NAME=j;var k="legal_pages";t.LEGAL_PAGES_ROUTE_NAME=k;var U="group";t.GROUP_ROUTE_NAME=U;var x="group_members";t.GROUP_MEMBERS_ROUTE_NAME=x;var G="group_messages";t.GROUP_MESSAGES_ROUTE_NAME=G;var D="groups";t.GROUPS_ROUTE_NAME=D;var M="groups_subscribed";t.GROUPS_SUBSCRIBED_ROUTE_NAME=M;var F="event";t.EVENT_ROUTE_NAME=F;var B="events";t.EVENTS_ROUTE_NAME=B;var V="course";t.COURSE_ROUTE_NAME=V;var Y="course_edit";t.COURSE_EDIT_ROUTE_NAME=Y;var q="course_dashboard";t.COURSE_DASHBOARD_ROUTE_NAME=q;var K="course_lesson";t.COURSE_LESSON_ROUTE_NAME=K;var W="course_lesson_preview";t.COURSE_LESSON_PREVIEW_ROUTE_NAME=W;var H="course_lesson_edit";t.COURSE_LESSON_EDIT_ROUTE_NAME=H;var $="course_lesson_comments";t.COURSE_LESSON_COMMENTS_ROUTE_NAME=$;var X="courses";t.COURSES_ROUTE_NAME=X;var J="events_suggested";t.EVENTS_SUGGESTED_ROUTE_NAME=J;var z="events_subscribed";t.EVENTS_SUBSCRIBED_ROUTE_NAME=z;var Q="events_highlight";t.EVENTS_HIGHLIGHT_ROUTE_NAME=Q;var Z="live";t.LIVESTREAM_ROUTE_NAME=Z;var ee="checkout_payment";t.CHECKOUT_PAYMENT=ee;var te=(n(n(n(n(n(n(n(n(n(n(r={},o,"/"),i,"/explore/"),a,"/post/:id/"),u,"/discussion/:id/"),c,"/status/:id/"),s,"/:contribution_type/:contribution_id/comment/:id/"),l,"/category/:id/:slug/"),f,"/category/:id/:slug/trending/"),d,"/categories/"),p,"/user/:id/"),n(n(n(n(n(n(n(n(n(n(r,h,"/user/:id/edit/"),v,"/notification/"),y,"/messages/:id/"),g,"/user/:id/followed/"),m,"/user/:id/followers/"),_,"/user/:id/connections/"),E,"/user/:id/connections/requests/"),S,"/user/:id/connections/requests/sent/"),O,"/user/:id/categories/"),b,"/user/:id/posts/followed/"),n(n(n(n(n(n(n(n(n(n(r,C,"/user/:id/discussions/followed/"),T,"/user/:id/:username/history_orders/"),w,"/user/:id/:username/order/:pid/pdf/"),R,"/user/:id/:username/payment_methods/"),A,"/loyalty/"),P,"/incubator/:id/"),L,"/signin/"),I,"/signup/"),N,"/recover/"),j,"/:id/:slug/"),n(n(n(n(n(n(n(n(n(n(r,k,"/legal/:policy/"),U,"/group/:id/:slug/"),x,"/group/:id/:slug/members/"),G,"/group/:id/:slug/messages/"),D,"/groups/"),M,"/groups/subscribed/"),B,"/events/"),J,"/events/suggested"),F,"/event/:id/:slug/"),z,"/events/subscribed/"),n(n(n(n(n(n(n(n(n(n(r,Q,"/events/highlight/"),V,"/course/:id/:slug/"),X,"/courses/"),Y,"/course/:id/:slug/edit/:tab"),q,"/course/:id/:slug/dashboard"),K,"/course/:id/:slug/section/:section_id/lesson/:lesson_id/"),W,"/course/:id/:slug/section/:section_id/lesson/:lesson_id/preview"),$,"/course/:id/:slug/section/:section_id/lesson/:lesson_id/comments"),H,"/course/:id/:slug/section/:section_id/lesson/:lesson_id/edit"),Z,"/live/:slug/"),n(r,ee,"/checkout/:content_type/:content_id/price/:price_id"));t.defaultRoutes=te},4191:(e,t)=>{t.__esModule=!0,t.sessionTypes=t.SESSION_TYPE_OPTION=t.SESSION_OPTION=t.SESSION_HANDLE_REFRESH_TOKEN_OPTION=t.SESSION_HANDLE_LOGOUT_OPTION=t.SESSION_CLIENT_ID_OPTION=t.SESSION_AUTH_TOKEN_OPTION=t.OAUTH_SESSION=t.JWT_SESSION=t.COOKIE_SESSION=void 0,t.SESSION_OPTION="session",t.SESSION_TYPE_OPTION="type",t.SESSION_CLIENT_ID_OPTION="clientId",t.SESSION_AUTH_TOKEN_OPTION="authToken",t.SESSION_HANDLE_REFRESH_TOKEN_OPTION="handleRefreshToken",t.SESSION_HANDLE_LOGOUT_OPTION="handleLogout";var r="Cookie";t.COOKIE_SESSION=r,t.JWT_SESSION="JWT";var n="OAuth";t.OAUTH_SESSION=n;var o=["JWT",n,r];t.sessionTypes=o},3232:(e,t)=>{t.__esModule=!0,t.THEME_OPTION=void 0,t.THEME_OPTION="theme"},3789:(e,t)=>{t.__esModule=!0,t.VOTE_REACTIONS_OPTION=t.VOTE_OPTION=t.DEFAULT_VOTE_REACTIONS_OPTION=void 0,t.VOTE_OPTION="vote",t.VOTE_REACTIONS_OPTION="reactions",t.DEFAULT_VOTE_REACTIONS_OPTION=null},706:(e,t)=>{t.__esModule=!0,t.WS_SUB_PROTOCOL_PREFIX=t.WS_PROTOCOL_SECURE=t.WS_PROTOCOL_INSECURE=t.WS_PREFIX_PATH=t.WS_HEARTBEAT_MESSAGE=t.WS_FACILITY_NOTIFY=void 0,t.WS_PROTOCOL_SECURE="wss",t.WS_PROTOCOL_INSECURE="ws",t.WS_PREFIX_PATH="ws",t.WS_SUB_PROTOCOL_PREFIX="__",t.WS_FACILITY_NOTIFY="notify",t.WS_HEARTBEAT_MESSAGE="--1a61c1de89b75ddfbb684b8d224ee3ae--"},8291:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=function(e){var t,r=(2,function(e){if(Array.isArray(e))return e}(t=(0,a.useReducer)(_,{},(function(){return E(e)})))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return h(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=r[0],o=r[1],f=(0,a.useRef)(null),v=(0,a.useRef)(!1),y=(0,a.useRef)([]),g=n.user?n.user.id:null,S=n.session.authToken&&n.session.authToken.accessToken?n.session.authToken.accessToken:null;(0,c.default)((function(){o({type:m.REFRESH_SESSION,payload:{conf:E(e)}})}),[e]);var O=(0,a.useMemo)((function(){return function(){var e=n.session;return!v.current&&e.handleRefreshToken?(v.current=!0,e.handleRefreshToken(n.session).then((function(e){return v.current=!1,o({type:m.REFRESH_TOKEN_SUCCESS,payload:{token:e}}),Promise.resolve(e)})).catch((function(e){return s.Logger.error(l.SCOPE_SC_CORE,"Unable to refresh user session."),e.response&&e.response.data&&o({type:m.REFRESH_TOKEN_FAILURE,payload:{error:e.response.toString()}}),Promise.reject(e)}))):Promise.reject(new Error("Unable to refresh session. Unauthenticated user."))}}),[S]),b=(0,a.useMemo)((function(){return function(){o({type:m.LOGOUT});var e=n.session;e.handleLogout&&e.handleLogout()}}),[]),C=(0,a.useMemo)((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;y.current.forEach((function(r){e?r.reject(e):r.resolve(t)})),y.current=[]}}),[y.current]);return(0,a.useEffect)((function(){return null!==g&&(f.current=i.http.getClientInstance().interceptors.response.use((function(e){return e}),function(){var e,t=(e=d().mark((function e(t){var r,o,a,c;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.config,!t.response){e.next=23;break}if(401!==t.response.status){e.next=22;break}if(!v.current){e.next=5;break}return e.abrupt("return",new Promise((function(e,t){y.current.push({resolve:e,reject:t})})).then((function(e){return r.headers.Authorization="Bearer "+e,i.http.request(r)})).catch((function(e){return s.Logger.error(l.SCOPE_SC_CORE,"Unable to resolve promises in failedQueue."),Promise.reject(e)})));case 5:if(o=n.session,a=o&&"authToken"in o?o.authToken:null,!(o.type!==u.COOKIE_SESSION&&!v.current&&n.user&&o&&o.handleRefreshToken&&Boolean(a&&a.refreshToken))){e.next=22;break}return e.prev=8,e.next=11,O();case 11:return c=e.sent,r.headers.Authorization="Bearer ".concat(c.accessToken),C(null,c.accessToken),e.abrupt("return",Promise.resolve(i.http.request(r)));case 17:if(e.prev=17,e.t0=e.catch(8),!e.t0.response||!e.t0.response.data){e.next=22;break}return C(e.t0,null),e.abrupt("return",Promise.reject(e.t0.response.data));case 22:return e.abrupt("return",Promise.reject(t));case 23:case"end":return e.stop()}}),e,null,[[8,17]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){p(i,n,o,a,u,"next",e)}function u(e){p(i,n,o,a,u,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}())),function(){null!==f.current&&i.http.getClientInstance().interceptors.response.eject(f.current)}}),[g,S]),{state:n,dispatch:o,helpers:{refreshSession:O,logoutSession:b}}},t.userActionTypes=void 0;var o,i=r(7475),a=r(8156),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(4191)),c=(o=r(4537))&&o.__esModule?o:{default:o},s=r(2137),l=r(3240);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function d(){d=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function p(){}function h(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,i)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=l(e[i],e,a);if("throw"!==s.type){var f=s.arg,d=f.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){f.value=e,u(f)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,c(_,"constructor",v),c(v,"constructor",h),h.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function p(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m={LOGIN_LOADING:"_login_loading",LOGIN_SUCCESS:"_login_success",LOGIN_FAILURE:"_login_failure",LOGOUT:"_logout",REFRESH_TOKEN_SUCCESS:"_refresh_token_success",REFRESH_TOKEN_FAILURE:"_invalid_token_failure",REFRESH_SESSION:"_refresh_token",UPDATE_USER:"_change_user"};function _(e,t){switch(t.type){case m.LOGIN_LOADING:return{session:Object.assign({},e.session),error:null,loading:!0};case m.LOGIN_SUCCESS:return{user:t.payload.user,error:null,session:Object.assign({},e.session),loading:!1};case m.LOGIN_FAILURE:return{user:null,session:Object.assign({},e.session),error:t.payload&&t.payload.error?t.payload.error:null,loading:!1};case m.REFRESH_TOKEN_SUCCESS:var r=Object.assign({},e.session.authToken,y(y(y({},e.session.authToken),{},{accessToken:t.payload.token.accessToken},t.payload.token.refreshToken?{refreshToken:t.payload.token.refreshToken}:{}),t.payload.token.expiresIn?{expiresIn:t.payload.token.expiresIn}:{})),n=Object.assign({},e.session,{authToken:r});return i.http.setAuthorizeToken(r.accessToken),y(y({},e),{},{session:n,error:null,loading:!1});case m.REFRESH_TOKEN_FAILURE:return{user:null,session:Object.assign({},e.session),loading:null,error:t.payload.error};case m.LOGOUT:return{user:void 0,session:{},error:null,loading:null};case m.UPDATE_USER:return y(y({},e),{},{user:y(y({},e.user),t.payload)});case m.REFRESH_SESSION:return y(y({},e),t.payload.conf);default:throw new Error("Unhandled type: ".concat(t.type))}}function E(e){var t=Object.assign({},e);return[u.OAUTH_SESSION,u.JWT_SESSION].includes(t.type)?t.authToken&&t.authToken.accessToken?i.http.setAuthorizeToken(t.authToken.accessToken):i.http.setAuthorizeToken():t.type===u.COOKIE_SESSION&&i.http.setAuthorizeToken(),i.http.setSupportWithCredentials(t.type===u.COOKIE_SESSION),{user:void 0,session:t,error:null,loading:!0,isSessionRefreshing:!1,refreshSession:!1}}t.userActionTypes=m},8887:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=c((0,n.useState)(!1),2),r=t[0],s=t[1],l=c((0,n.useState)([]),2),f=l[0],d=l[1],p=e?e.id:null,h=(0,n.useMemo)((function(){return function(){return r}}),[r]),v=(0,n.useMemo)((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?(t&&s(!0),o.UserService.getHiddenUsersId().then((function(e){return d(e),t&&s(!1),Promise.resolve(e)})).catch((function(e){return i.Logger.error(a.SCOPE_SC_CORE,"Unable to load blocked users."),i.Logger.error(a.SCOPE_SC_CORE,e),t&&s(!1),Promise.reject(e)}))):Promise.reject()}}),[f,e]),y=(0,n.useMemo)((function(){return function(e){return s(!0),o.http.request({url:o.Endpoints.UserShowHide.url({id:e.id}),method:o.Endpoints.UserShowHide.method}).then((function(t){if(t.status>=300)return Promise.reject(t);var r=f.includes(e.id),n=r?u(f.filter((function(t){return t!==e.id}))):[e.id].concat(u(f));return d(n),s(!1),Promise.resolve(!r)}))}}),[r,f.length,s]),g=(0,n.useMemo)((function(){return function(e){return!!p&&f.includes(e.id)}}),[f]);return(0,n.useEffect)((function(){p?v(!0):d([])}),[p]),e?{blocked:f,loading:r,isLoading:h,block:y,isBlocked:g,refresh:v}:{blocked:f,loading:r,isLoading:h}};var n=r(8156),o=r(7475),i=r(2137),a=r(3240);function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},4486:(e,t,r)=>{t.__esModule=!0,t.default=function(){var e=(0,n.useRef)([]),t=(0,n.useRef)([]),r=i((0,n.useState)([]),2),a=r[0],u=r[1],c=i((0,n.useState)([]),2),s=c[0],l=c[1],f=(0,n.useMemo)((function(){return function(t){t.map((function(t){e.current.includes(t)||e.current.push(t)}))}}),[e]),d=(0,n.useMemo)((function(){return function(){e.current=[],t.current=[]}}),[e]),p=(0,n.useMemo)((function(){return function(e){return"number"==typeof e?t.current.includes(e):t.current.includes(e.id)}}),[a,t]),h=(0,n.useMemo)((function(){return function(e){t.current=t.current.includes(e)?t.current:[].concat(o(t.current),[e]),u((function(t){return t.includes(e)?t:[].concat(o(t),[e])}))}}),[t,a]),v=(0,n.useMemo)((function(){return function(e){t.current=t.current.filter((function(t){return t!==e})),u((function(t){return t.filter((function(t){return t!==e}))}))}}),[t,a]);return{cache:e.current,updateCache:f,emptyCache:d,data:s,setData:l,loading:a,setLoading:h,setUnLoading:v,isLoading:p}};var n=r(8156);function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},1870:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=(0,l.default)(),r=t.cache,h=t.updateCache,g=t.emptyCache,m=t.data,_=t.setData,E=t.loading,S=t.setLoading,O=t.setUnLoading,b=t.isLoading,C=(0,c.useSCPreferences)(),T=e?e.id:null,w=s.CONFIGURATIONS_FOLLOW_ENABLED in C.preferences&&C.preferences[s.CONFIGURATIONS_FOLLOW_ENABLED].value,R=(0,n.useRef)(null),A=(0,n.useRef)(null),P=(0,n.useRef)(null),L=(0,n.useRef)(null),I=function(e,t){if(void 0!==t.data.connection){var r;switch(d.SCNotificationMapping[t.data.activity_type]){case i.SCNotificationTypologyType.CONNECTION_REQUEST:r={user:"request_user",state:i.SCConnectionStatus.CONNECTION_REQUEST_RECEIVED};break;case i.SCNotificationTypologyType.CONNECTION_CANCEL_REQUEST:r={user:"cancel_request_user",state:null};break;case i.SCNotificationTypologyType.CONNECTION_ACCEPT:r={user:"accept_user",state:i.SCConnectionStatus.CONNECTED};break;case i.SCNotificationTypologyType.CONNECTION_REMOVE:r={user:"remove_user",state:null}}h([t.data[r.user].id]),_((function(e){return F(e,t.data[r.user].id,r.state)}))}};(0,p.useDeepCompareEffectNoCheck)((function(){return R.current=f.default.subscribe("".concat(i.SCNotificationTopicType.INTERACTION,".").concat(i.SCNotificationTypologyType.CONNECTION_ACCEPT),I),A.current=f.default.subscribe("".concat(i.SCNotificationTopicType.INTERACTION,".").concat(i.SCNotificationTypologyType.CONNECTION_REQUEST),I),L.current=f.default.subscribe("".concat(i.SCNotificationTopicType.INTERACTION,".").concat(i.SCNotificationTypologyType.CONNECTION_CANCEL_REQUEST),I),P.current=f.default.subscribe("".concat(i.SCNotificationTopicType.INTERACTION,".").concat(i.SCNotificationTypologyType.CONNECTION_REMOVE),I),function(){f.default.unsubscribe(R.current),f.default.unsubscribe(A.current),f.default.unsubscribe(L.current),f.default.unsubscribe(P.current)}}),[m]);var N=(0,n.useMemo)((function(){return function(){g(),T&&r.length>0&&o.http.request({url:o.Endpoints.UserConnectionStatuses.url({}),method:o.Endpoints.UserConnectionStatuses.method,data:{users:r}}).then((function(e){return e.status>=300?Promise.reject(e):(h(Object.keys(e.data.connection_statuses).map((function(e){return parseInt(e)}))),_(Object.keys(e.data.connection_statuses).map((function(t){return y({},t,e.data.connection_statuses[t])}))),Promise.resolve(e.data))})).catch((function(e){a.Logger.error(u.SCOPE_SC_CORE,"Unable to refresh users Connections by the authenticated user."),a.Logger.error(u.SCOPE_SC_CORE,e)}))}}),[m,T,r]),j=(0,n.useMemo)((function(){return function(e,t){return S(e.id),o.http.request({url:t.url({id:e.id}),method:t.method}).then((function(t){return t.status>=300?Promise.reject(t):(h([e.id]),_((function(r){return F(r,e.id,t.data.connection_status)})),O(e.id),Promise.resolve(t.data))})).catch((function(t){return a.Logger.error(u.SCOPE_SC_CORE,t),t&&t.response&&t.response&&t.response.status&&403===t.response.status?(O(e.id),Promise.reject(t)):M(e)}))}}),[m,E,r]),k=(0,n.useMemo)((function(){return function(e){return j(e,o.Endpoints.UserRequestConnection)}}),[j]),U=(0,n.useMemo)((function(){return function(e){return j(e,o.Endpoints.UserCancelRequestConnection)}}),[j]),x=(0,n.useMemo)((function(){return function(e){return j(e,o.Endpoints.UserRemoveConnection)}}),[j]),G=(0,n.useMemo)((function(){return function(e){return j(e,o.Endpoints.UserAcceptRequestConnection)}}),[j]),D=(0,n.useMemo)((function(){return function(e){var t=m.filter((function(t){return parseInt(Object.keys(t)[0])===e.id}));return t.length?t[0][e.id]:null}}),[m]),M=function(e){return S(e.id),o.http.request({url:o.Endpoints.UserCheckConnectionStatus.url({id:e.id}),method:o.Endpoints.UserCheckConnectionStatus.method}).then((function(t){return t.status>=300?Promise.reject(t):(_((function(r){return F(r,e.id,t.data.connection_status)})),h([e.id]),O(e.id),Promise.resolve(t.data))})).catch((function(t){return O(e.id),Promise.reject(t)}))},F=function(e,t,r){var n;return e.findIndex((function(e){return parseInt(Object.keys(e)[0])===t}))<0?[].concat(function(e){if(Array.isArray(e))return v(e)}(n=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[y({},t,r)]):e.map((function(n,o){return parseInt(Object.keys(n)[0])===t?y({},Object.keys(n)[0],r):y({},Object.keys(n)[0],e[o][Object.keys(n)[0]])}))},B=(0,n.useMemo)((function(){return function(e){return h([e.id]),_((function(t){return F(t,e.id,e.connection_status)})),e.connection_status}}),[m,r]);return(0,n.useEffect)((function(){T||g()}),[T]),w||!e?{connections:m,loading:E,isLoading:b}:{connections:m,loading:E,isLoading:b,status:function(e){if(r.includes(e.id))return D(e);if(T){if("connection_status"in e)return B(e);b(e)||M(e)}return null},requestConnection:k,cancelRequestConnection:U,acceptConnection:G,removeConnection:x,refresh:N,emptyCache:g}};var n=r(8156),o=r(7475),i=r(9954),a=r(2137),u=r(3240),c=r(9723),s=r(4592),l=h(r(4486)),f=h(r(8641)),d=r(3973),p=r(4537);function h(e){return e&&e.__esModule?e:{default:e}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},6167:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.fetch,r=void 0!==t&&t,s=c((0,n.useState)([]),2),l=s[0],f=s[1],d=c((0,n.useState)(!1),2),p=d[0],h=d[1],v=(0,u.useSCUser)(),y=(0,a.useSCPreferences)(),g=(0,n.useMemo)((function(){return function(){return i.http.request({url:i.Endpoints.ComposerAddressingTagList.url(),method:i.Endpoints.ComposerAddressingTagList.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[]);return(0,n.useEffect)((function(){!p&&r&&v.user&&y.features.includes(o.SCFeatureName.TAGGING)&&g().then((function(e){h(!0),f(e)}))}),[p,r,v.user,y.features]),{scAddressingTags:l}};var n=r(8156),o=r(9954),i=r(7475),a=r(9723),u=r(4702);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},7626:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=void 0;var o=r(8156),i=r(7475),a=r(2137),u=r(7748),c=r(3240);function s(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(){l=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,i)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,c(_,"constructor",v),c(v,"constructor",h),h.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function f(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function d(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){f(i,n,o,a,u,"next",e)}function u(e){f(i,n,o,a,u,"throw",e)}a(void 0)}))}}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var y="".concat(i.Endpoints.BroadcastMessagesList.url(),"?limit=3"),g=(0,u.getBroadcastMessagesObjectCacheKey)(),m={results:[],next:y,previous:null,count:0};t.default=function(e){var t=(e||{}).cacheStrategy,r=(void 0===t?a.CacheStrategies.CACHE_FIRST:t)!==a.CacheStrategies.NETWORK_ONLY?a.LRUCache.get(g,null):null,n=p((0,o.useState)(null!==r?r:m),2),u=n[0],f=n[1],h=p((0,o.useState)(!r&&null),2),v=h[0],_=h[1],E=function(){var e=d(l().mark((function e(t){var r,n,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.http.request({url:t,method:i.Endpoints.BroadcastMessagesList.method});case 2:if(r=e.sent,!(n=r.data).next||n.results[n.results.length-1].viewed_at){e.next=9;break}return e.next=7,E(n.next);case 7:return o=e.sent,e.abrupt("return",{results:n.results.concat(o.results),next:o.next,previous:null,count:o.count});case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=d(l().mark((function e(){var t,r=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]&&r[0],_(!0),e.abrupt("return",E(t?y:u.next).then((function(e){var r=t?e:{results:[].concat(s(u.results),s(e.results)),next:e.next,count:e.count,previous:e.previous};return f(r),_(!1),a.LRUCache.set(g,r),Promise.resolve(e)})).catch((function(e){return a.Logger.error(c.SCOPE_SC_CORE,e),Promise.reject()})));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return{data:u,loading:v,fetchMessages:S,setMessages:function(e){var t={results:s(e),next:u.next,count:Math.max(u.count-(u.results.length-e.length),0),previous:u.previous};return f(t),a.LRUCache.set(g,t),t}}}},472:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=void 0;var o=r(8156),i=r(3240),a=r(7475),u=r(2137),c=r(7748);function s(){s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,i)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,c(_,"constructor",v),c(v,"constructor",h),h.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var v={categories:[],isLoading:!0};t.default=function(e){var t,r,n=e||{},l=n.cacheStrategy,d=void 0===l?u.CacheStrategies.CACHE_FIRST:l,y=n.endpointQueryParams,g=void 0===y?{}:y,m=(0,c.getCategoriesObjectCacheKey)(),_=d!==u.CacheStrategies.NETWORK_ONLY?function(e,t){if(!e)return null;var r=e.map((function(e){var t=(0,c.getCategoryObjectCacheKey)(e);return u.LRUCache.get(t)}));return r.filter((function(e){return!e})).length>0?null:null!=t&&t.can_create_content?r.filter((function(e){return!e.content_only_staff})):r}(u.LRUCache.get(m,null),g):null,E=(t=(0,o.useState)(null!==_?{categories:_,isLoading:!1}:v),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),S=E[0],O=E[1],b=function(){var e,t=(e=s().mark((function e(){var t,r,n=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:a.Endpoints.CategoryList.url(),e.next=3,a.CategoryService.getAllCategories(f({active:!0},g),{url:t});case 3:if(!(r=e.sent).next){e.next=12;break}return e.t1=r.results,e.next=8,b(r.next);case 8:e.t2=e.sent,e.t0=e.t1.concat.call(e.t1,e.t2),e.next=13;break;case 12:e.t0=r.results;case 13:return e.abrupt("return",e.t0);case 14:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){p(i,n,o,a,u,"next",e)}function u(e){p(i,n,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){d===u.CacheStrategies.CACHE_FIRST&&_||b().then((function(e){O({categories:e,isLoading:!1}),u.LRUCache.set(m,e.map((function(e){var t=(0,c.getCategoryObjectCacheKey)(e.id);return u.LRUCache.set(t,e),e.id})))})).catch((function(e){console.log(e),u.Logger.error(i.SCOPE_SC_CORE,"Unable to retrieve categories")}))}),[]),S}},8895:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.category,d=void 0===f?null:f,p=e.cacheStrategy,h=void 0===p?a.CacheStrategies.CACHE_FIRST:p,v=d?d.id:r,y=(0,s.useSCUser)(),g=y.user?y.user.id:null,m=(0,u.getCategoryObjectCacheKey)(v),_=g?d:(0,a.objectWithoutProperties)(d,["followed"]),E=l((0,n.useState)(h!==a.CacheStrategies.NETWORK_ONLY?a.LRUCache.get(m,_):null),2),S=E[0],O=E[1],b=l((0,n.useState)(null),2),C=b[0],T=b[1],w=(0,n.useMemo)((function(){return function(){return i.http.request({url:i.Endpoints.Category.url({id:v}),method:i.Endpoints.Category.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[v]),R=(0,n.useMemo)((function(){return function(){w().then((function(e){var t=g?e:(0,a.objectWithoutProperties)(e,["followed"]);O(t),a.LRUCache.set(m,t)})).catch((function(e){a.LRUCache.delete(m),T("Error on refresh category with id ".concat(r)),a.Logger.error(o.SCOPE_SC_CORE,"Error on refresh category with id ".concat(r)),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}}),[v,O,m]);return(0,n.useEffect)((function(){v&&(!S||S&&v!==S.id)&&w().then((function(e){var t=g?e:(0,a.objectWithoutProperties)(e,["followed"]);O(t),a.LRUCache.set(m,t)})).catch((function(e){a.LRUCache.delete(m),T("Category with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,"Category with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}),[v]),(0,c.useDeepCompareEffectNoCheck)((function(){if(d){var e=g?d:(0,a.objectWithoutProperties)(d,["followed"]);O(e),a.LRUCache.set(m,e)}}),[d]),{scCategory:S,setSCCategory:O,error:C,refreshCategory:R}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137),u=r(7748),c=r(4537),s=r(4702);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},634:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,l=e.commentObject,f=void 0===l?null:l,d=e.cacheStrategy,p=void 0===d?a.CacheStrategies.CACHE_FIRST:d,h=f?f.id:r,v=(0,u.getCommentObjectCacheKey)(h),y=s((0,n.useState)(p!==a.CacheStrategies.NETWORK_ONLY?a.LRUCache.get(v,f):f),2),g=y[0],m=y[1],_=s((0,n.useState)(null),2),E=_[0],S=_[1],O=(0,n.useMemo)((function(){return function(){return i.http.request({url:i.Endpoints.Comment.url({id:h}),method:i.Endpoints.Comment.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[h]);return(0,n.useEffect)((function(){!h||g&&p!==a.CacheStrategies.STALE_WHILE_REVALIDATE||O().then((function(e){m(e),a.LRUCache.set(v,e)})).catch((function(e){a.LRUCache.delete(v),S("CommentObject with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,"CommentObject with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}),[h]),(0,c.useDeepCompareEffectNoCheck)((function(){f&&(m(f),a.LRUCache.set(v,g))}),[f]),{obj:g,setObj:m,error:E}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137),u=r(7748),c=r(4537);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},393:(e,t,r)=>{t.__esModule=!0,t.commentsObjectActionTypes=void 0,t.default=function(e){var t,r=e.id,n=e.feedObject,v=e.feedObjectType,y=e.offset,m=void 0===y?0:y,O=e.pageSize,b=void 0===O?5:O,C=e.orderBy,T=void 0===C?a.SCCommentsOrderBy.ADDED_AT_DESC:C,w=e.parent,R=e.onChangePage,A=e.cacheStrategy,P=void 0===A?c.CacheStrategies.NETWORK_ONLY:A,L=(0,s.default)({id:r,feedObject:n,feedObjectType:v,cacheStrategy:P}),I=L.obj,N=L.setObj,j=function(){var e=m?"&offset=".concat(m):"",t=w?"&parent=".concat(w):"",n=I?I.id:r,o=I?I.type:v;return"".concat(u.Endpoints.Comments.url(),"?").concat(o,"=").concat(n,"&limit=").concat(b,"&ordering=").concat(T).concat(e).concat(t)},k=(2,function(e){if(Array.isArray(e))return e}(t=(0,o.useReducer)(E,{obj:I,offset:m,pageSize:b,next:j(),cacheStrategy:P},S))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t)||h(t,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),U=k[0],x=k[1],G=(0,f.useIsComponentMountedRef)(),D=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=(0,l.getCommentObjectsCacheKey)(I.id,I.type,e);return t&&c.LRUCache.hasKey(r)&&P!==c.CacheStrategies.NETWORK_ONLY?Promise.resolve(c.LRUCache.get(r)):u.http.request({url:e,method:u.Endpoints.Comments.method}).then((function(e){return e.status>=300?Promise.reject(e):(c.LRUCache.set(r,e.data),e.data.results.forEach((function(e){return c.LRUCache.set((0,l.getCommentObjectCacheKey)(e.id),e)})),Promise.resolve(e.data))}))};function M(){if(I&&U.next&&!U.isLoadingNext){var e=U.next;x({type:_.LOADING_NEXT}),D(e).then((function(t){if(G.current){var r=(0,d.getCurrentPage)(e,b),n=t.next?r+1:null;x({type:_.DATA_NEXT_LOADED,payload:g({page:r,nextPage:n,comments:[].concat(p(U.comments),p(t.results)),next:t.next,total:t.count,componentLoaded:!0},m&&0===U.comments.length?{previous:t.previous,previousPage:t.previous?r-1:null}:{})}),R&&R(r)}})).catch((function(e){c.Logger.error(i.SCOPE_SC_CORE,e)})).then((function(){G.current&&P===c.CacheStrategies.STALE_WHILE_REVALIDATE&&x({type:_.DATA_REVALIDATE,payload:{revalidateNext:e}})}))}}return(0,o.useEffect)((function(){G.current&&U.componentLoaded&&U.reload&&!U.isLoadingNext&&!U.isLoadingPrevious&&(x({type:_.DATA_RELOADED}),M())}),[U.reload,G]),(0,o.useEffect)((function(){var e,t;G.current&&U.componentLoaded&&Boolean(I)&&!U.reload&&U.revalidate&&(e=U.revalidateNext,t=Boolean(U.revalidateNext),D(e,!1).then((function(e){var r,n=(0,d.getCurrentPage)(t?e.next:e.previous,b);if(t)r=U.comments.slice(0,U.comments.length-e.results.length).concat(e.results);else{var o=U.comments.slice(e.results.length,U.comments.length);r=e.results.concat(o)}G.current&&x({type:t?_.DATA_NEXT_LOADED:_.DATA_PREVIOUS_LOADED,payload:g(g({page:n,comments:r},t?{next:e.next}:{previous:e.previous}),{},{total:e.count})})})))}),[U.revalidate,G]),g(g({feedObject:I,setFeedObject:N},U),{},{pageSize:b,getNextPage:M,getPreviousPage:function(){if(I&&U.previous&&!U.isLoadingPrevious){var e=U.previous;x({type:_.LOADING_PREVIOUS}),D(e).then((function(t){if(G.current){var r=(0,d.getCurrentPage)(e,b),n=t.previous?r-1:null;x({type:_.DATA_PREVIOUS_LOADED,payload:{page:r,previousPage:n,comments:[].concat(p(t.results),p(U.comments)),previous:t.previous}}),R&&R(r)}})).catch((function(e){c.Logger.error(i.SCOPE_SC_CORE,e)})).then((function(){G.current&&P===c.CacheStrategies.STALE_WHILE_REVALIDATE&&x({type:_.DATA_REVALIDATE,payload:{revalidatePrevious:e}})}))}},orderBy:T,reload:function(){G.current&&U.componentLoaded&&Boolean(I)&&!U.isLoadingNext&&!U.reload&&x({type:_.DATA_RELOAD,payload:{next:j()}})}})};var n,o=r(8156),i=r(3240),a=r(9954),u=r(7475),c=r(2137),s=(n=r(6594))&&n.__esModule?n:{default:n},l=r(7748),f=r(357),d=r(2584);function p(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _={LOADING_NEXT:"_loading_next",LOADING_PREVIOUS:"_loading_previous",DATA_NEXT_LOADED:"_data_next_loaded",DATA_PREVIOUS_LOADED:"_data_previous_loaded",DATA_RELOAD:"_data_reload",DATA_RELOADED:"_data_reloaded",DATA_REVALIDATE:"_data_revalidate"};function E(e,t){switch(t.type){case _.LOADING_NEXT:return g(g({},e),{},{isLoadingNext:!0,isLoadingPrevious:!1});case _.LOADING_PREVIOUS:return g(g({},e),{},{isLoadingNext:!1,isLoadingPrevious:!0});case _.DATA_NEXT_LOADED:return g(g(g(g(g(g({},e),{},{comments:t.payload.comments,isLoadingNext:!1,componentLoaded:!0,revalidate:!1,revalidateNext:null,revalidatePrevious:null,next:t.payload.next},t.payload.page?{page:t.payload.page}:{}),t.payload.nextPage?{nextPage:t.payload.nextPage}:{}),t.payload.previous?{previous:t.payload.previous}:{}),t.payload.previousPage?{previousPage:t.payload.previousPage}:{}),t.payload.total?{total:t.payload.total}:{});case _.DATA_PREVIOUS_LOADED:return g(g(g({},e),{},{comments:t.payload.comments,isLoadingPrevious:!1,revalidate:!1,revalidateNext:null,revalidatePrevious:null,previous:t.payload.previous},t.payload.page?{page:t.payload.page}:{}),t.payload.previousPage?{previousPage:t.payload.previousPage}:{});case _.DATA_RELOAD:return g(g({},e),{},{next:t.payload.next,previousPage:null,nextPage:null,comments:[],total:0,previous:null,isLoadingNext:!0,reload:!0});case _.DATA_RELOADED:return g(g({},e),{},{componentLoaded:!0,reload:!1});case _.DATA_REVALIDATE:return g(g(g(g({},e),{},{componentLoaded:!0,revalidate:!0},t.payload.revalidateNext?{revalidateNext:t.payload.revalidateNext}:{}),t.payload.revalidatePrevious?{revalidatePrevious:t.payload.revalidatePrevious}:{}),{},{reload:!1});default:throw new Error("Unhandled type: ".concat(t.type))}}function S(e){var t=e.obj?(0,l.getCommentObjectsCacheKey)(e.obj.id,e.obj.type,e.next):null,r={componentLoaded:!1,comments:[],total:0,next:e.next,previous:null,isLoadingNext:!1,isLoadingPrevious:!1,page:Math.ceil(e.offset/e.pageSize+1),reload:!1,revalidate:!1,revalidateNext:null,revalidatePrevious:null};if(r.nextPage=r.next?r.page+1:null,r.previousPage=r.previous?r.page-1:null,t&&c.LRUCache.hasKey(t)&&e.cacheStrategy!==c.CacheStrategies.NETWORK_ONLY){var n=c.LRUCache.get(t),o=Math.max((0,d.getCurrentPage)(n.next,e.pageSize),1),i=n.next?(0,d.getCurrentPage)(n.next,e.pageSize):null,a=n.previous?Math.max((0,d.getCurrentPage)(n.previous,e.pageSize)-1,1):null;return g(g({},r),{total:n.count,next:n.next,previous:n.previous,comments:n.results,page:o,nextPage:i,previousPage:a,componentLoaded:!0})}return r}t.commentsObjectActionTypes=_},2118:(e,t,r)=>{t.__esModule=!0,t.contributorsObjectActionTypes=void 0,t.default=function(e){var t,r=e.id,n=e.feedObject,p=e.feedObjectType,h=e.offset,y=void 0===h?0:h,_=e.pageSize,E=void 0===_?5:_,S=e.onChangePage,O=e.cacheStrategy,b=void 0===O?u.CacheStrategies.CACHE_FIRST:O,C=(0,l.useIsComponentMountedRef)(),T=(0,c.default)({id:r,feedObject:n,feedObjectType:p}),w=T.obj,R=T.setObj,A=w?w.id:null,P=function(){var e=y?"&offset=".concat(y):"",t=w?w.id:r,n=w?w.type:p;return"".concat(a.Endpoints.FeedObjectContributorsList.url({type:n,id:t}),"?limit=").concat(E).concat(e)},L=(2,function(e){if(Array.isArray(e))return e}(t=(0,o.useReducer)(m,{},(function(){return function(e){var t=e.obj?(0,s.getContributorsCacheKey)(e.obj.id,e.obj.type,e.next):null,r={componentLoaded:!1,contributors:[],total:0,next:e.next,previous:null,isLoadingNext:!1,isLoadingPrevious:!1,page:e.offset/e.pageSize+1,reload:!1};if(t&&u.LRUCache.hasKey(t)&&e.cacheStrategy!==u.CacheStrategies.NETWORK_ONLY){var n=u.LRUCache.get(t);return v(v({},r),{total:n.count,next:n.next,previous:n.previous,contributors:n.results})}return r}({obj:w,offset:y,pageSize:E,next:P(),cacheStrategy:b})})))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t)||d(t,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),I=L[0],N=L[1],j=function(e){var t=new URLSearchParams(e),r=Object.fromEntries(t.entries());return(r.offset?parseInt(r.offset):0)/E+1},k=function(e,t){return U(e,!1).then((function(e){var r,n=j(I.next);if(t)r=I.contributors.slice(0,I.contributors.length-e.results.length).concat(e.results);else{var o=I.contributors.slice(e.results.length,I.contributors.length);r=e.results.concat(o)}C.current&&N({type:t?g.DATA_NEXT_LOADED:g.DATA_PREVIOUS_LOADED,payload:v(v({page:n,contributors:r},t?{next:e.next}:{previous:e.previous}),{},{total:e.count})})}))},U=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=(0,s.getContributorsCacheKey)(w.id,w.type,e);return t&&u.LRUCache.hasKey(r)&&b!==u.CacheStrategies.NETWORK_ONLY?Promise.resolve(u.LRUCache.get(r)):a.http.request({url:e,method:a.Endpoints.Comments.method}).then((function(e){return e.status>=300?Promise.reject(e):(u.LRUCache.set(r,e.data),Promise.resolve(e.data))}))};function x(){w&&I.next&&!I.isLoadingNext&&(N({type:g.LOADING_NEXT}),U(I.next).then((function(e){if(C.current){var t=j(I.next);N({type:g.DATA_NEXT_LOADED,payload:v({page:t,contributors:[].concat(f(I.contributors),f(e.results)),next:e.next,total:e.count,componentLoaded:!0},y&&0===I.contributors.length?{previous:e.previous}:{})}),S&&S(t)}})).catch((function(e){u.Logger.error(i.SCOPE_SC_CORE,e)})).then((function(){C.current&&b===u.CacheStrategies.STALE_WHILE_REVALIDATE&&k(I.next,!0)})))}return(0,o.useEffect)((function(){C.current&&I.componentLoaded&&Boolean(w)&&!I.reload&&N({type:g.DATA_RELOAD,payload:{next:P()}})}),[A,E,y,C]),(0,o.useEffect)((function(){C.current&&I.componentLoaded&&I.reload&&!I.isLoadingNext&&!I.isLoadingPrevious&&(N({type:g.DATA_RELOADED}),x())}),[I.reload,C]),v(v({feedObject:w,setFeedObject:R},I),{},{pageSize:E,getNextPage:x,getPreviousPage:function(){w&&I.previous&&!I.isLoadingPrevious&&(N({type:g.LOADING_PREVIOUS}),U(I.previous).then((function(e){if(C.current){var t=j(I.previous);N({type:g.DATA_PREVIOUS_LOADED,payload:{page:t,contributors:[].concat(f(e.results),f(I.contributors)),previous:e.previous}}),S&&S(t)}})).catch((function(e){u.Logger.error(i.SCOPE_SC_CORE,e)})).then((function(){b===u.CacheStrategies.STALE_WHILE_REVALIDATE&&k(I.next,!1)})))}})};var n,o=r(8156),i=r(3240),a=r(7475),u=r(2137),c=(n=r(6594))&&n.__esModule?n:{default:n},s=r(7748),l=r(357);function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g={LOADING_NEXT:"_loading_next",LOADING_PREVIOUS:"_loading_previous",DATA_NEXT_LOADED:"_data_next_loaded",DATA_PREVIOUS_LOADED:"_data_previous_loaded",DATA_RELOAD:"_data_reload",DATA_RELOADED:"_data_reloaded"};function m(e,t){switch(t.type){case g.LOADING_NEXT:return v(v({},e),{},{isLoadingNext:!0,isLoadingPrevious:!1});case g.LOADING_PREVIOUS:return v(v({},e),{},{isLoadingNext:!1,isLoadingPrevious:!0});case g.DATA_NEXT_LOADED:return v(v(v({},e),{},{page:t.payload.currentPage,contributors:t.payload.contributors,isLoadingNext:!1,componentLoaded:!0,next:t.payload.next},t.payload.previous?{previous:t.payload.previous}:{}),t.payload.total?{total:t.payload.total}:{});case g.DATA_PREVIOUS_LOADED:return v(v({},e),{},{page:t.payload.currentPage,contributors:t.payload.contributors,isLoadingPrevious:!1,previous:t.payload.previous});case g.DATA_RELOAD:return v(v({},e),{},{next:t.payload.next,contributors:[],total:0,previous:null,reload:!0});case g.DATA_RELOADED:return v(v({},e),{},{componentLoaded:!1,reload:!1});default:throw new Error("Unhandled type: ".concat(t.type))}}t.contributorsObjectActionTypes=g},6552:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.course,d=void 0===f?null:f,p=e.cacheStrategy,h=void 0===p?o.CacheStrategies.CACHE_FIRST:p,v=e.params,y=void 0===v?null:v,g=(0,i.useMemo)((function(){return(null==d?void 0:d.id)||r}),[d,r]),m=(0,u.useSCUser)(),_=(0,i.useMemo)((function(){var e;return(null===(e=m.user)||void 0===e?void 0:e.id)||null}),[m.user]),E=(0,i.useMemo)((function(){return(0,c.getCourseObjectCacheKey)(g)}),[g]),S=(0,i.useMemo)((function(){return _?d:(0,o.objectWithoutProperties)(d,["join_status"])}),[_,d]),O=l((0,i.useState)(h!==o.CacheStrategies.NETWORK_ONLY?o.LRUCache.get(E,S):null),2),b=O[0],C=O[1],T=l((0,i.useState)(null),2),w=T[0],R=T[1],A=(0,i.useCallback)((function(e){C(e),o.LRUCache.set(E,e)}),[C,E]),P=(0,i.useMemo)((function(){return function(e){return n.http.request({url:n.Endpoints.GetCourseInfo.url({id:e}),method:n.Endpoints.GetCourseInfo.method,params:null!=y?y:{}}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[]),L=(0,i.useMemo)((function(){return function(){P(r).then((function(e){A(e)})).catch((function(e){o.LRUCache.delete(E),R("Error on refresh course with id ".concat(r)),o.Logger.error(s.SCOPE_SC_CORE,"Error on refresh course with id ".concat(r)),o.Logger.error(s.SCOPE_SC_CORE,e.message)}))}}),[r,E,A]);return(0,i.useEffect)((function(){null==r||d||P(r).then((function(e){A(e)})).catch((function(e){o.LRUCache.delete(E),403===e.status?(R("You do not have permission to perform this action."),o.Logger.error(s.SCOPE_SC_CORE,"You do not have permission to perform this action.")):(R("Course with id ".concat(r," not found")),o.Logger.error(s.SCOPE_SC_CORE,"Course with id ".concat(r," not found"))),o.Logger.error(s.SCOPE_SC_CORE,e.message)}))}),[r,d,_]),(0,a.useDeepCompareEffectNoCheck)((function(){d&&A(d)}),[d,_]),{scCourse:b,setSCCourse:A,error:w,refreshCourse:L}};var n=r(7475),o=r(2137),i=r(8156),a=r(4537),u=r(4702),c=r(7748),s=r(3240);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},2619:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=void 0;var o=r(8156),i=r(3240),a=r(7475),u=r(2137),c=r(7748);function s(){s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,i)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,c(_,"constructor",v),c(v,"constructor",h),h.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function l(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d={courses:[],isLoading:!0};t.default=function(e){var t,r,n=(e||{}).cacheStrategy,p=void 0===n?u.CacheStrategies.CACHE_FIRST:n,h=(0,c.getCoursesObjectCacheKey)(),v=p!==u.CacheStrategies.NETWORK_ONLY?function(e){if(!e)return null;var t=e.map((function(e){var t=(0,c.getCourseObjectCacheKey)(e);return u.LRUCache.get(t)}));return t.filter((function(e){return!e})).length>0?null:t}(u.LRUCache.get(h,null)):null,y=(t=(0,o.useState)(null!==v?{courses:v,isLoading:!1}:d),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=y[0],m=y[1],_=function(){var e,t=(e=s().mark((function e(){var t,r,n,o=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:a.Endpoints.GetJoinedCourses.url(),e.next=3,a.http.request({url:t,method:a.Endpoints.GetJoinedCourses.method});case 3:if(r=e.sent,!(n=r.data).next){e.next=11;break}return e.t0=n.results,e.next=9,_(n.next);case 9:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 11:return e.abrupt("return",n.results);case 12:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){l(i,n,o,a,u,"next",e)}function u(e){l(i,n,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){p===u.CacheStrategies.CACHE_FIRST&&v||_().then((function(e){m({courses:e,isLoading:!1}),u.LRUCache.set(h,e.map((function(e){var t=(0,c.getCourseObjectCacheKey)(e.id);return u.LRUCache.set(t,e),e.id})))})).catch((function(e){console.log(e),u.Logger.error(i.SCOPE_SC_CORE,"Unable to retrieve courses")}))}),[]),g}},1219:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,n=e.position,l=void 0===n?null:n,d=e.categoriesId,h=void 0===d?null:d,v=e.active,y=void 0===v||v,g=e.cacheStrategy,m=void 0===g?u.CacheStrategies.CACHE_FIRST:g,_=p((0,o.useState)(null!==r&&m===u.CacheStrategies.CACHE_FIRST&&u.LRUCache.get((0,s.getAdvObjectCacheKey)(r))?u.LRUCache.get((0,s.getAdvObjectCacheKey)(r)):null),2),E=_[0],S=_[1],O=p((0,o.useState)(null),2),b=O[0],C=O[1],T=(0,c.default)(),w=(0,o.useMemo)((function(){return function(e){e.map((function(e){u.LRUCache.set((0,s.getAdvObjectCacheKey)(e.id),e)}))}}),[]),R=(0,o.useMemo)((function(){return function(){return null!==r?a.http.request({url:"".concat(a.Endpoints.CustomAdv.url({id:r}),"?active=").concat(Boolean(y)),method:a.Endpoints.CustomAdv.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve([e.data])})):a.http.request({url:"".concat(a.Endpoints.CustomAdvSearch.url({}),"?active=").concat(Boolean(y)),method:a.Endpoints.CustomAdvSearch.method,params:f(f({},l&&{position:l}),{categories:h?"[".concat(h.toString(),"]"):"[]"})}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data.results)}))}}),[r,l,"".concat(h)]);return(0,o.useEffect)((function(){E&&m===u.CacheStrategies.CACHE_FIRST||R().then((function(e){T.current&&S(e[Math.floor(Math.random()*e.length)]),w(e)})).catch((function(e){T.current&&C("Custom ADV with position ".concat(l," not found")),u.Logger.error(i.SCOPE_SC_CORE,"Custom ADV with position ".concat(l," not found")),u.Logger.error(i.SCOPE_SC_CORE,e.message)}))}),[r,l,"".concat(h),E]),{scCustomAdv:E,setSCCustomAdv:S,error:b}};var n,o=r(8156),i=r(3240),a=r(7475),u=r(2137),c=(n=r(5189))&&n.__esModule?n:{default:n},s=r(7748);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},458:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.event,p=void 0===f?null:f,v=e.autoSubscribe,y=void 0===v||v,g=e.cacheStrategy,m=void 0===g?i.CacheStrategies.CACHE_FIRST:g,_=(0,a.useMemo)((function(){return(null==p?void 0:p.id)||r}),[p,r]),E=(0,c.useSCUser)(),S=(0,a.useMemo)((function(){var e;return(null===(e=E.user)||void 0===e?void 0:e.id)||null}),[E.user]),O=(0,a.useMemo)((function(){return(0,s.getEventObjectCacheKey)(_)}),[_]),b=(0,a.useMemo)((function(){return S?p:(0,i.objectWithoutProperties)(p,["subscription_status"])}),[S,p]),C=h((0,a.useState)(m!==i.CacheStrategies.NETWORK_ONLY?i.LRUCache.get(O,b):null),2),T=C[0],w=C[1],R=h((0,a.useState)(null),2),A=R[0],P=R[1],L=(0,a.useMemo)((function(){return function(e){y&&null!==S&&(e.privacy===o.SCEventPrivacyType.PUBLIC&&!e.subscription_status||e.subscription_status===o.SCEventSubscriptionStatusType.INVITED)?n.EventService.subscribeToEvent(e.id).then((function(){var t=d(d({},e),{},{subscription_status:o.SCEventSubscriptionStatusType.SUBSCRIBED});w(t),i.LRUCache.set(O,t)})).catch((function(){w(e),i.LRUCache.set(O,e)})):(w(e),i.LRUCache.set(O,e))}}),[y,S,w]),I=(0,a.useMemo)((function(){return function(e){return n.http.request({url:n.Endpoints.GetEventInfo.url({id:e}),method:n.Endpoints.GetEventInfo.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[]),N=(0,a.useMemo)((function(){return function(){return function(){I(r).then((function(e){L(e)})).catch((function(e){i.LRUCache.delete(O),P("Error on refresh event with id ".concat(r)),i.Logger.error(l.SCOPE_SC_CORE,"Error on refresh event with id ".concat(r)),i.Logger.error(l.SCOPE_SC_CORE,e.message)}))}}}),[r,L,O]);return(0,a.useEffect)((function(){null==r||p||I(r).then((function(e){L(e)})).catch((function(e){i.LRUCache.delete(O),P("Event with id ".concat(r," not found")),i.Logger.error(l.SCOPE_SC_CORE,"Event with id ".concat(r," not found")),i.Logger.error(l.SCOPE_SC_CORE,e.message)}))}),[r,p,S]),(0,u.useDeepCompareEffectNoCheck)((function(){p&&L(p)}),[p,S]),{scEvent:T,setSCEvent:L,error:A,refreshEvent:N}};var n=r(7475),o=r(9954),i=r(2137),a=r(8156),u=r(4537),c=r(4702),s=r(7748),l=r(3240);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},519:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=void 0;var o=r(8156),i=r(3240),a=r(7475),u=r(2137),c=r(7748);function s(){s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,i)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,c(_,"constructor",v),c(v,"constructor",h),h.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function l(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d={events:[],isLoading:!0};t.default=function(e){var t,r,n=(e||{}).cacheStrategy,p=void 0===n?u.CacheStrategies.CACHE_FIRST:n,h=(0,c.getEventsObjectCacheKey)(),v=p!==u.CacheStrategies.NETWORK_ONLY?function(e){if(!e)return null;var t=e.map((function(e){var t=(0,c.getEventObjectCacheKey)(e);return u.LRUCache.get(t)}));return t.filter((function(e){return!e})).length>0?null:t}(u.LRUCache.get(h,null)):null,y=(t=(0,o.useState)(null!==v?{events:v,isLoading:!1}:d),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=y[0],m=y[1],_=function(){var e,t=(e=s().mark((function e(){var t,r,n,o=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:a.Endpoints.GetUserEvents.url(),e.next=3,a.http.request({url:t,method:a.Endpoints.GetUserEvents.method});case 3:if(r=e.sent,!(n=r.data).next){e.next=11;break}return e.t0=n.results,e.next=9,_(n.next);case 9:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 11:return e.abrupt("return",n.results);case 12:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){l(i,n,o,a,u,"next",e)}function u(e){l(i,n,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){p===u.CacheStrategies.CACHE_FIRST&&v||_().then((function(e){m({events:e,isLoading:!1}),u.LRUCache.set(h,e.map((function(e){var t=(0,c.getEventObjectCacheKey)(e.id);return u.LRUCache.set(t,e),e.id})))})).catch((function(e){console.log(e),u.Logger.error(i.SCOPE_SC_CORE,"Unable to retrieve events")}))}),[]),g}},6694:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t,r=e.id,n=e.endpoint,l=e.endpointQueryParams,d=void 0===l?{limit:5,offset:0}:l,p=e.onNextPage,_=e.onPreviousPage,E=e.cacheStrategy,S=void 0===E?u.CacheStrategies.NETWORK_ONLY:E,O=e.prefetchedData,b=(0,o.useMemo)((function(){return Object.assign({limit:10,offset:0},d)}),[d]),C=(0,s.default)(),T=(0,o.useMemo)((function(){return function(){return(0,u.appendURLSearchParams)(n.url({}),Object.keys(b).map((function(e){return v({},e,b[e])})))}}),[b]),w=(2,function(e){if(Array.isArray(e))return e}(t=(0,o.useReducer)(g,{},(function(){return m({id:r,endpoint:n,queryParams:b,next:T(),cacheStrategy:S,prefetchedData:O})})))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t)||f(t,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),R=w[0],A=w[1],P=function(e){var t=new URLSearchParams(e),r=Object.fromEntries(t.entries());return r.offset?parseInt(r.offset):0},L=function(e,t){return I(e,!1).then((function(e){var r;if(t)r=R.results.slice(0,R.results.length-e.results.length).concat(e.results);else{var n=R.results.slice(e.results.length,R.results.length);r=e.results.concat(n)}A({type:y.DATA_REVALIDATE,payload:{results:r}})}))},I=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2?arguments[2]:void 0,i=(0,c.getFeedCacheKey)(r,e);return t&&u.LRUCache.hasKey(i)&&S!==u.CacheStrategies.NETWORK_ONLY?Promise.resolve(u.LRUCache.get(i)):a.http.request(h({url:e,method:n.method},o?{cancelToken:o.token}:{})).then((function(e){return e.status>=300?Promise.reject(e):(u.LRUCache.set(i,e.data),Promise.resolve(e.data))}))};function N(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n&&R.next&&!R.isLoadingNext&&(A({type:y.LOADING_NEXT}),I(R.next,null,e).then((function(e){if(C.current){var t=Math.max(P(e.next)-b.limit,R.results.length),r=Math.ceil(t/b.limit+1),n=e.next?r+1:null,o=e.count||(0===R.count&&0===e.results.length?0:R.count+e.results.length+1);A({type:y.DATA_NEXT_LOADED,payload:h({currentPage:r,nextPage:n,currentOffset:t,count:o,results:e.results,next:e.next,componentLoaded:!0},b.offset&&0===R.results.length?{previous:e.previous,previousPage:e.previous?r-1:null}:{})}),p&&p(r,t,o,e.results),S===u.CacheStrategies.STALE_WHILE_REVALIDATE&&L(R.next,!0)}})).catch((function(e){u.Logger.error(i.SCOPE_SC_CORE,e)})))}function j(){A({type:y.RESET,payload:m({id:r,endpoint:n,queryParams:b,next:T(),cacheStrategy:S,prefetchedData:O})})}return(0,o.useEffect)((function(){R.componentLoaded&&R.reload&&!R.isLoadingNext&&!R.isLoadingPrevious&&(A({type:y.DATA_RELOADED}),N())}),[R.reload]),(0,o.useEffect)((function(){return function(){j()}}),[]),h(h({},R),{},{updateState:function(e){A({type:y.UPDATE_DATA,payload:e})},getNextPage:N,getPreviousPage:function(){n&&R.previous&&!R.isLoadingPrevious&&(A({type:y.LOADING_PREVIOUS}),I(R.previous).then((function(e){if(C.current){var t=Math.max(P(R.previous),0),r=Math.ceil(t/b.limit+1),n=e.previous?r-1:null,o=e.count||R.count+e.results.length+1;A({type:y.DATA_PREVIOUS_LOADED,payload:{currentPage:r,previousPage:n,currentOffset:t,count:o,initialOffset:t,results:e.results,previous:e.previous}}),_&&_(r,t,o,e.results),S===u.CacheStrategies.STALE_WHILE_REVALIDATE&&L(R.next,!0)}})).catch((function(e){u.Logger.error(i.SCOPE_SC_CORE,e)})))},reload:function(){A({type:y.DATA_RELOAD,payload:{next:T()}})},reset:j})},t.feedDataActionTypes=void 0;var n,o=r(8156),i=r(3240),a=r(7475),u=r(2137),c=r(7748),s=(n=r(5189))&&n.__esModule?n:{default:n};function l(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y={LOADING_NEXT:"_loading_next",LOADING_PREVIOUS:"_loading_previous",DATA_NEXT_LOADED:"_data_next_loaded",DATA_PREVIOUS_LOADED:"_data_previous_loaded",DATA_REVALIDATE:"_data_revalidate",DATA_RELOAD:"_data_reload",DATA_RELOADED:"_data_reloaded",UPDATE_DATA:"_data_update",RESET:"_reset"};function g(e,t){var r=h({},e);switch(t.type){case y.LOADING_NEXT:r=h(h({},e),{},{isLoadingNext:!0,isLoadingPrevious:!1});break;case y.LOADING_PREVIOUS:r=h(h({},e),{},{isLoadingNext:!1,isLoadingPrevious:!0});break;case y.DATA_NEXT_LOADED:r=h(h(h(h({},e),{},{currentPage:t.payload.currentPage,currentOffset:t.payload.currentOffset,results:[].concat(l(e.results),l(t.payload.results)),isLoadingNext:!1,componentLoaded:!0,next:t.payload.next,nextPage:t.payload.nextPage},t.payload.previous?{previous:t.payload.previous}:{}),t.payload.count?{count:t.payload.count}:{}),t.payload.previousPage?{previousPage:t.payload.previousPage}:{});break;case y.DATA_PREVIOUS_LOADED:r=h(h({},e),{},{currentPage:t.payload.currentPage,currentOffset:t.payload.currentOffset,initialOffset:t.payload.initialOffset,results:[].concat(l(t.payload.results),l(e.results)),isLoadingPrevious:!1,componentLoaded:!0,previous:t.payload.previous,previousPage:t.payload.previousPage});break;case y.DATA_REVALIDATE:r=h(h({},e),{},{results:t.payload.results});break;case y.DATA_RELOAD:r=h(h({},e),{},{next:t.payload.next,currentPage:1,previousPage:null,nextPage:null,currentOffset:0,initialOffset:0,results:[],count:0,previous:null,reload:!0});break;case y.DATA_RELOADED:r=h(h({},e),{},{componentLoaded:!1,reload:!1});break;case y.UPDATE_DATA:r=h(h({},e),t.payload);break;case y.RESET:r=h({},t.payload)}return u.LRUCache.set((0,c.getStateFeedCacheKey)(e.id),r),r}function m(e){var t=h({id:e.id,results:[],count:0,next:e.next,previous:null,isLoadingNext:!1,isLoadingPrevious:!1,limit:e.queryParams.limit,currentPage:Math.ceil(e.queryParams.offset/e.queryParams.limit+1),currentOffset:e.queryParams.offset,initialOffset:e.queryParams.offset,reload:!1,componentLoaded:Boolean(e.prefetchedData)},e.prefetchedData&&e.prefetchedData);t.nextPage=t.next?t.currentPage+1:null,t.previousPage=t.previous?t.currentPage-1:null;var r=(0,c.getStateFeedCacheKey)(e.id);if(r&&u.LRUCache.hasKey(r)&&e.cacheStrategy!==u.CacheStrategies.NETWORK_ONLY){var n=u.LRUCache.get(r);return h(h({},t),n)}return e.prefetchedData&&u.LRUCache.set(r,t),t}t.feedDataActionTypes=y},6594:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.feedObject,d=void 0===f?null:f,p=e.feedObjectType,h=void 0===p?u.SCContributionType.POST||u.SCContributionType.DISCUSSION||u.SCContributionType.STATUS:p,v=e.cacheStrategy,y=void 0===v?i.CacheStrategies.CACHE_FIRST:v,g=d?d.id:r,m=d?d.type:h,_=(0,s.getFeedObjectCacheKey)(g,m),E=l((0,n.useState)(y!==i.CacheStrategies.NETWORK_ONLY?i.LRUCache.get(_,d):d),2),S=E[0],O=E[1],b=l((0,n.useState)(null),2),C=b[0],T=b[1],w=(0,n.useMemo)((function(){return function(){return o.http.request({url:o.Endpoints.FeedObject.url({type:m,id:g}),method:o.Endpoints.FeedObject.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[g,m]);return(0,n.useEffect)((function(){g&&m&&!d&&w().then((function(e){O(e),i.LRUCache.set(_,e)})).catch((function(e){i.LRUCache.delete(_),T("FeedObject with id ".concat(r," not found")),i.Logger.error(a.SCOPE_SC_CORE,"FeedObject with id ".concat(r," not found")),i.Logger.error(a.SCOPE_SC_CORE,e.message)}))}),[g,m]),(0,c.useDeepCompareEffectNoCheck)((function(){d&&(y===i.CacheStrategies.NETWORK_ONLY?(O(d),i.LRUCache.set(_,d)):O(i.LRUCache.get(_,d)))}),[d]),{obj:S,setObj:function(e){i.LRUCache.set(_,e),O(Object.assign({},e))},error:C}};var n=r(8156),o=r(7475),i=r(2137),a=r(3240),u=r(9954),c=r(4537),s=r(7748);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},2994:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.group,d=void 0===f?null:f,p=e.cacheStrategy,h=void 0===p?a.CacheStrategies.CACHE_FIRST:p,v=d?d.id:r,y=(0,s.useSCUser)(),g=y.user?y.user.id:null,m=(0,u.getGroupObjectCacheKey)(v),_=g?d:(0,a.objectWithoutProperties)(d,["subscription_status"]),E=l((0,n.useState)(h!==a.CacheStrategies.NETWORK_ONLY?a.LRUCache.get(m,_):null),2),S=E[0],O=E[1],b=l((0,n.useState)(null),2),C=b[0],T=b[1],w=function(e){var t=g?e:(0,a.objectWithoutProperties)(e,["subscription_status"]);O(t),a.LRUCache.set(m,t)},R=(0,n.useMemo)((function(){return function(){return i.http.request({url:i.Endpoints.GetGroupInfo.url({id:v}),method:i.Endpoints.GetGroupInfo.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[v]),A=(0,n.useMemo)((function(){return function(){R().then((function(e){w(e)})).catch((function(e){a.LRUCache.delete(m),T("Error on refresh group with id ".concat(r)),a.Logger.error(o.SCOPE_SC_CORE,"Error on refresh group with id ".concat(r)),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}}),[m,w]);return(0,n.useEffect)((function(){v&&(!S||S&&v!==S.id)&&R().then((function(e){w(e)})).catch((function(e){a.LRUCache.delete(m),T("Group with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,"Group with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}),[v,g]),(0,c.useDeepCompareEffectNoCheck)((function(){d&&w(d)}),[d,g]),{scGroup:S,setSCGroup:w,error:C,refreshGroup:A}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137),u=r(7748),c=r(4537),s=r(4702);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},6151:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=void 0;var o=r(8156),i=r(3240),a=r(7475),u=r(2137),c=r(7748);function s(){s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,i)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,c(_,"constructor",v),c(v,"constructor",h),h.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function l(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d={groups:[],isLoading:!0};t.default=function(e){var t,r,n=(e||{}).cacheStrategy,p=void 0===n?u.CacheStrategies.CACHE_FIRST:n,h=(0,c.getGroupsObjectCacheKey)(),v=p!==u.CacheStrategies.NETWORK_ONLY?function(e){if(!e)return null;var t=e.map((function(e){var t=(0,c.getGroupObjectCacheKey)(e);return u.LRUCache.get(t)}));return t.filter((function(e){return!e})).length>0?null:t}(u.LRUCache.get(h,null)):null,y=(t=(0,o.useState)(null!==v?{groups:v,isLoading:!1}:d),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=y[0],m=y[1],_=function(){var e,t=(e=s().mark((function e(){var t,r,n,o=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:a.Endpoints.GetUserGroups.url(),e.next=3,a.http.request({url:t,method:a.Endpoints.GetUserGroups.method});case 3:if(r=e.sent,!(n=r.data).next){e.next=11;break}return e.t0=n.results,e.next=9,_(n.next);case 9:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 11:return e.abrupt("return",n.results);case 12:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){l(i,n,o,a,u,"next",e)}function u(e){l(i,n,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){p===u.CacheStrategies.CACHE_FIRST&&v||_().then((function(e){m({groups:e,isLoading:!1}),u.LRUCache.set(h,e.map((function(e){var t=(0,c.getGroupObjectCacheKey)(e.id);return u.LRUCache.set(t,e),e.id})))})).catch((function(e){console.log(e),u.Logger.error(i.SCOPE_SC_CORE,"Unable to retrieve groups")}))}),[]),g}},2243:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.incubator,d=void 0===f?null:f,p=e.cacheStrategy,h=void 0===p?a.CacheStrategies.CACHE_FIRST:p,v=d?d.id:r,y=(0,s.useSCUser)(),g=y.user?y.user.id:null,m=(0,u.getIncubatorObjectCacheKey)(v),_=g?d:(0,a.objectWithoutProperties)(d,["subscribed"]),E=l((0,n.useState)(h!==a.CacheStrategies.NETWORK_ONLY?a.LRUCache.get(m,_):null),2),S=E[0],O=E[1],b=l((0,n.useState)(null),2),C=b[0],T=b[1],w=(0,n.useMemo)((function(){return function(){return i.http.request({url:i.Endpoints.GetASpecificIncubator.url({id:v}),method:i.Endpoints.GetASpecificIncubator.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[v]);return(0,n.useEffect)((function(){v&&(!S||S&&v!==S.id)&&w().then((function(e){var t=g?e:(0,a.objectWithoutProperties)(e,["subscribed"]);O(t),a.LRUCache.set(m,t)})).catch((function(e){a.LRUCache.delete(m),T("Incubator with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,"Incubator with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}),[v]),(0,c.useDeepCompareEffectNoCheck)((function(){if(d){var e=g?d:(0,a.objectWithoutProperties)(d,["subscribed"]);O(e),a.LRUCache.set(m,e)}}),[d]),{scIncubator:S,setSCIncubator:O,error:C}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137),u=r(7748),c=r(4537),s=r(4702);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},7416:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.lesson,d=void 0===f?null:f,p=e.courseId,h=void 0===p?null:p,v=e.sectionId,y=void 0===v?null:v,g=e.cacheStrategy,m=void 0===g?o.CacheStrategies.CACHE_FIRST:g,_=(0,i.useMemo)((function(){return(null==d?void 0:d.id)||r}),[d,r]),E=(0,u.useSCUser)(),S=(0,i.useMemo)((function(){var e;return(null===(e=E.user)||void 0===e?void 0:e.id)||null}),[E.user]),O=(0,i.useMemo)((function(){return(0,c.getLessonObjectCacheKey)(_)}),[_]),b=l((0,i.useState)(m!==o.CacheStrategies.NETWORK_ONLY?o.LRUCache.get(O,d):null),2),C=b[0],T=b[1],w=l((0,i.useState)(null),2),R=w[0],A=w[1],P=function(e){T(e),o.LRUCache.set(O,e)},L=(0,i.useMemo)((function(){return function(e){return n.http.request({url:n.Endpoints.GetCourseLesson.url({id:h,section_id:y,lesson_id:e}),method:n.Endpoints.GetCourseLesson.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[h,y,r]);return(0,i.useEffect)((function(){_&&h&&y&&L(_).then((function(e){P(e)})).catch((function(e){o.LRUCache.delete(O),A("Lesson with id ".concat(_," not found")),o.Logger.error(s.SCOPE_SC_CORE,"Lesson with id ".concat(_," not found")),o.Logger.error(s.SCOPE_SC_CORE,e.message)}))}),[_,h,y]),(0,a.useDeepCompareEffectNoCheck)((function(){d&&P(d)}),[d,S]),{scLesson:C,setSCLesson:P,error:R}};var n=r(7475),o=r(2137),i=r(8156),a=r(4537),u=r(4702),c=r(7748),s=r(3240);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},1560:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,l=e.commentObject,f=void 0===l?null:l,d=e.lesson,p=void 0===d?null:d,h=e.cacheStrategy,v=void 0===h?a.CacheStrategies.CACHE_FIRST:h,y=f?f.id:r,g=(0,u.getLessonCommentCacheKey)(y),m=s((0,n.useState)(v!==a.CacheStrategies.NETWORK_ONLY?a.LRUCache.get(g,f):f),2),_=m[0],E=m[1],S=s((0,n.useState)(null),2),O=S[0],b=S[1],C=(0,n.useMemo)((function(){return function(){return i.http.request({url:i.Endpoints.GetCourseLessonComment.url({id:p.course_id,section_id:p.section_id,lesson_id:p.id,comment_id:y}),method:i.Endpoints.GetCourseLessonComment.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[y,p]);return(0,n.useEffect)((function(){!y||!p||_&&v!==a.CacheStrategies.STALE_WHILE_REVALIDATE||C().then((function(e){E(e),a.LRUCache.set(g,e)})).catch((function(e){a.LRUCache.delete(g),b("Course Lesson comment Object with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,"Course Lesson comment Object with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}),[y,p]),(0,c.useDeepCompareEffectNoCheck)((function(){f&&(E(f),a.LRUCache.set(g,_))}),[f]),{obj:_,setObj:E,error:O}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137),u=r(7748),c=r(4537);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},2779:(e,t,r)=>{t.__esModule=!0,t.commentsObjectActionTypes=void 0,t.default=function(e){var t,r=e.id,n=e.lessonObject,v=e.offset,y=void 0===v?0:v,m=e.pageSize,O=void 0===m?15:m,b=e.orderBy,C=void 0===b?a.SCCommentsOrderBy.ADDED_AT_DESC:b,T=e.parent,w=e.onChangePage,R=e.cacheStrategy,A=void 0===R?c.CacheStrategies.NETWORK_ONLY:R,P=(0,d.default)({id:r,lesson:n,courseId:n.course_id,sectionId:n.section_id,cacheStrategy:A}),L=P.scLesson,I=P.setSCLesson,N=function(){var e=y?"&offset=".concat(y):"",t=T?"&parent=".concat(T):"",o=L?L.id:r,i=L?L.course_id:n.course_id,a=L?L.section_id:n.section_id;return"".concat(u.Endpoints.GetCourseLessonComments.url({id:i,section_id:a,lesson_id:o}),"?limit=").concat(O,"&ordering=").concat(C).concat(e).concat(t)},j=(2,function(e){if(Array.isArray(e))return e}(t=(0,o.useReducer)(E,{scLesson:L,offset:y,pageSize:O,next:N(),cacheStrategy:A},S))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t)||h(t,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),k=j[0],U=j[1],x=(0,l.useIsComponentMountedRef)(),G=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=(0,s.getLessonCommentsCacheKey)(L.id,e);return t&&c.LRUCache.hasKey(r)&&A!==c.CacheStrategies.NETWORK_ONLY?Promise.resolve(c.LRUCache.get(r)):u.http.request({url:e,method:u.Endpoints.GetCourseLessonComments.method}).then((function(e){return e.status>=300?Promise.reject(e):(c.LRUCache.set(r,e.data),e.data.results.forEach((function(e){return c.LRUCache.set((0,s.getLessonCommentCacheKey)(e.id),e)})),Promise.resolve(e.data))}))};function D(){if(L&&k.next&&!k.isLoadingNext){var e=k.next;U({type:_.LOADING_NEXT}),G(e).then((function(t){if(x.current){var r=(0,f.getCurrentPage)(e,O),n=t.next?r+1:null;U({type:_.DATA_NEXT_LOADED,payload:g({page:r,nextPage:n,comments:[].concat(p(k.comments),p(t.results)),next:t.next,total:t.count,componentLoaded:!0},y&&0===k.comments.length?{previous:t.previous,previousPage:t.previous?r-1:null}:{})}),w&&w(r)}})).catch((function(e){c.Logger.error(i.SCOPE_SC_CORE,e)})).then((function(){x.current&&A===c.CacheStrategies.STALE_WHILE_REVALIDATE&&U({type:_.DATA_REVALIDATE,payload:{revalidateNext:e}})}))}}return(0,o.useEffect)((function(){x.current&&k.componentLoaded&&k.reload&&!k.isLoadingNext&&!k.isLoadingPrevious&&(U({type:_.DATA_RELOADED}),D())}),[k.reload,x]),(0,o.useEffect)((function(){var e,t;x.current&&k.componentLoaded&&Boolean(L)&&!k.reload&&k.revalidate&&(e=k.revalidateNext,t=Boolean(k.revalidateNext),G(e,!1).then((function(e){var r,n=(0,f.getCurrentPage)(t?e.next:e.previous,O);if(t)r=k.comments.slice(0,k.comments.length-e.results.length).concat(e.results);else{var o=k.comments.slice(e.results.length,k.comments.length);r=e.results.concat(o)}x.current&&U({type:t?_.DATA_NEXT_LOADED:_.DATA_PREVIOUS_LOADED,payload:g(g({page:n,comments:r},t?{next:e.next}:{previous:e.previous}),{},{total:e.count})})})))}),[k.revalidate,x]),g(g({lessonObject:L,setLessonObject:I},k),{},{pageSize:O,getNextPage:D,getPreviousPage:function(){if(L&&k.previous&&!k.isLoadingPrevious){var e=k.previous;U({type:_.LOADING_PREVIOUS}),G(e).then((function(t){if(x.current){var r=(0,f.getCurrentPage)(e,O),n=t.previous?r-1:null;U({type:_.DATA_PREVIOUS_LOADED,payload:{page:r,previousPage:n,comments:[].concat(p(t.results),p(k.comments)),previous:t.previous}}),w&&w(r)}})).catch((function(e){c.Logger.error(i.SCOPE_SC_CORE,e)})).then((function(){x.current&&A===c.CacheStrategies.STALE_WHILE_REVALIDATE&&U({type:_.DATA_REVALIDATE,payload:{revalidatePrevious:e}})}))}},orderBy:C,reload:function(){x.current&&k.componentLoaded&&Boolean(L)&&!k.isLoadingNext&&!k.reload&&U({type:_.DATA_RELOAD,payload:{next:N()}})},updateLessonComments:function(e){if(e){U({type:_.DATA_NEXT_LOADED,payload:{comments:e,next:k.next,total:e.length}});var t=(0,s.getLessonCommentsCacheKey)(L.id,k.next);c.LRUCache.set(t,e.map((function(e){var t=(0,s.getLessonCommentCacheKey)(e.id);return c.LRUCache.set(t,e),e.id})))}}})};var n,o=r(8156),i=r(3240),a=r(9954),u=r(7475),c=r(2137),s=r(7748),l=r(357),f=r(2584),d=(n=r(7416))&&n.__esModule?n:{default:n};function p(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _={LOADING_NEXT:"_loading_next",LOADING_PREVIOUS:"_loading_previous",DATA_NEXT_LOADED:"_data_next_loaded",DATA_PREVIOUS_LOADED:"_data_previous_loaded",DATA_RELOAD:"_data_reload",DATA_RELOADED:"_data_reloaded",DATA_REVALIDATE:"_data_revalidate"};function E(e,t){switch(t.type){case _.LOADING_NEXT:return g(g({},e),{},{isLoadingNext:!0,isLoadingPrevious:!1});case _.LOADING_PREVIOUS:return g(g({},e),{},{isLoadingNext:!1,isLoadingPrevious:!0});case _.DATA_NEXT_LOADED:return g(g(g(g(g(g({},e),{},{comments:t.payload.comments,isLoadingNext:!1,componentLoaded:!0,revalidate:!1,revalidateNext:null,revalidatePrevious:null,next:t.payload.next},t.payload.page?{page:t.payload.page}:{}),t.payload.nextPage?{nextPage:t.payload.nextPage}:{}),t.payload.previous?{previous:t.payload.previous}:{}),t.payload.previousPage?{previousPage:t.payload.previousPage}:{}),t.payload.total?{total:t.payload.total}:{});case _.DATA_PREVIOUS_LOADED:return g(g(g({},e),{},{comments:t.payload.comments,isLoadingPrevious:!1,revalidate:!1,revalidateNext:null,revalidatePrevious:null,previous:t.payload.previous},t.payload.page?{page:t.payload.page}:{}),t.payload.previousPage?{previousPage:t.payload.previousPage}:{});case _.DATA_RELOAD:return g(g({},e),{},{next:t.payload.next,previousPage:null,nextPage:null,comments:[],total:0,previous:null,isLoadingNext:!0,reload:!0});case _.DATA_RELOADED:return g(g({},e),{},{componentLoaded:!0,reload:!1});case _.DATA_REVALIDATE:return g(g(g(g({},e),{},{componentLoaded:!0,revalidate:!0},t.payload.revalidateNext?{revalidateNext:t.payload.revalidateNext}:{}),t.payload.revalidatePrevious?{revalidatePrevious:t.payload.revalidatePrevious}:{}),{},{reload:!1});default:throw new Error("Unhandled type: ".concat(t.type))}}function S(e){var t=e.scLesson?(0,s.getLessonCommentsCacheKey)(e.scLesson.id,e.next):null,r={componentLoaded:!1,comments:[],total:0,next:e.next,previous:null,isLoadingNext:!1,isLoadingPrevious:!1,page:Math.ceil(e.offset/e.pageSize+1),reload:!1,revalidate:!1,revalidateNext:null,revalidatePrevious:null};if(r.nextPage=r.next?r.page+1:null,r.previousPage=r.previous?r.page-1:null,t&&c.LRUCache.hasKey(t)&&e.cacheStrategy!==c.CacheStrategies.NETWORK_ONLY){var n=c.LRUCache.get(t),o=Math.max((0,f.getCurrentPage)(n.next,e.pageSize),1),i=n.next?(0,f.getCurrentPage)(n.next,e.pageSize):null,a=n.previous?Math.max((0,f.getCurrentPage)(n.previous,e.pageSize)-1,1):null;return g(g({},r),{total:n.count,next:n.next,previous:n.previous,comments:n.results,page:o,nextPage:i,previousPage:a,componentLoaded:!0})}return r}t.commentsObjectActionTypes=_},4706:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.liveStream,d=void 0===f?null:f,p=e.cacheStrategy,h=void 0===p?o.CacheStrategies.CACHE_FIRST:p,v=d?d.id:r,y=(0,u.useSCUser)(),g=y.user?y.user.id:null,m=(0,c.getLiveStreamObjectCacheKey)(v),_=g?d:(0,o.objectWithoutProperties)(d,["subscription_status"]),E=l((0,i.useState)(h!==o.CacheStrategies.NETWORK_ONLY?o.LRUCache.get(m,_):null),2),S=E[0],O=E[1],b=l((0,i.useState)(null),2),C=b[0],T=b[1],w=(0,i.useMemo)((function(){return function(e){O(e),o.LRUCache.set(m,e)}}),[g,O]),R=(0,i.useMemo)((function(){return function(e){return n.http.request({url:n.Endpoints.GetLiveStreamInfo.url({id:e}),method:n.Endpoints.GetLiveStreamInfo.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[]);return(0,i.useEffect)((function(){null==r||d||R(r).then((function(e){w(e)})).catch((function(e){o.LRUCache.delete(m),T("LiveStream with id ".concat(r," not found")),o.Logger.error(s.SCOPE_SC_CORE,"LiveStream with id ".concat(r," not found")),o.Logger.error(s.SCOPE_SC_CORE,e.message)}))}),[r,d,g]),(0,a.useDeepCompareEffectNoCheck)((function(){d&&w(d)}),[d,g]),{scLiveStream:S,setSCLiveStream:w,error:C}};var n=r(7475),o=r(2137),i=r(8156),a=r(4537),u=r(4702),c=r(7748),s=r(3240);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},133:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.paymentOrder,d=void 0===f?null:f,p=e.cacheStrategy,h=void 0===p?o.CacheStrategies.NETWORK_ONLY:p,v=(0,i.useMemo)((function(){return(null==d?void 0:d.id)||r}),[d,r]),y=(0,u.useSCUser)(),g=(0,i.useMemo)((function(){var e;return(null===(e=y.user)||void 0===e?void 0:e.id)||null}),[y.user]),m=(0,i.useMemo)((function(){return(0,c.getPaymentOrderObjectCacheKey)(v)}),[v]),_=l((0,i.useState)(h!==o.CacheStrategies.NETWORK_ONLY?o.LRUCache.get(m,d):null),2),E=_[0],S=_[1],O=l((0,i.useState)(null),2),b=O[0],C=(O[1],(0,i.useCallback)((function(e){S(e),o.LRUCache.set(m,e)}),[S,m])),T=(0,i.useMemo)((function(){return function(e){return n.http.request({url:n.Endpoints.GetPaymentOrder.url({id:e}),method:n.Endpoints.GetPaymentOrder.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[]);return(0,i.useEffect)((function(){null==r||d||T(r).then((function(e){C(e)})).catch((function(e){o.LRUCache.delete(m),o.Logger.error(s.SCOPE_SC_CORE,e.message)}))}),[r,d,g]),(0,a.useDeepCompareEffectNoCheck)((function(){d&&C(d)}),[d,g]),{scPaymentOrder:E,setSCPaymentOrder:C,error:b}};var n=r(7475),o=r(2137),i=r(8156),a=r(4537),u=r(4702),c=r(7748),s=r(3240);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},1513:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.paymentProduct,d=void 0===f?null:f,p=e.cacheStrategy,h=void 0===p?o.CacheStrategies.NETWORK_ONLY:p,v=(0,i.useMemo)((function(){return(null==d?void 0:d.id)||r}),[d,r]),y=(0,u.useSCUser)(),g=(0,i.useMemo)((function(){var e;return(null===(e=y.user)||void 0===e?void 0:e.id)||null}),[y.user]),m=(0,i.useMemo)((function(){return(0,c.getPaymentProductObjectCacheKey)(v)}),[v]),_=l((0,i.useState)(h!==o.CacheStrategies.NETWORK_ONLY?o.LRUCache.get(m,d):null),2),E=_[0],S=_[1],O=l((0,i.useState)(null),2),b=O[0],C=(O[1],(0,i.useCallback)((function(e){S(e),o.LRUCache.set(m,e)}),[S,m])),T=(0,i.useMemo)((function(){return function(e){return n.http.request({url:n.Endpoints.GetPaymentProduct.url({id:e}),method:n.Endpoints.GetPaymentProduct.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[]);return(0,i.useEffect)((function(){null==r||d||T(r).then((function(e){C(e)})).catch((function(e){o.LRUCache.delete(m),o.Logger.error(s.SCOPE_SC_CORE,e.message)}))}),[r,d,g]),(0,a.useDeepCompareEffectNoCheck)((function(){d&&C(d)}),[d,g]),{scPaymentProduct:E,setSCPaymentProduct:C,error:b}};var n=r(7475),o=r(2137),i=r(8156),a=r(4537),u=r(4702),c=r(7748),s=r(3240);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},6515:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=void 0;var o=r(8156),i=r(3240),a=r(7475),u=r(2137),c=r(7748),s=r(4702);function l(){l=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,i)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=v,c(_,"constructor",v),c(v,"constructor",h),h.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function f(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var p={snippets:[],isLoading:!0};t.default=function(e){var t,r,n=(e||{}).cacheStrategy,h=void 0===n?u.CacheStrategies.CACHE_FIRST:n,v=(0,c.getPmSnippetsObjectCacheKey)(),y=h!==u.CacheStrategies.NETWORK_ONLY?function(e){if(!e)return null;var t=e.map((function(e){var t=(0,c.getPmSnippetObjectCacheKey)(e);return u.LRUCache.get(t)}));return t.filter((function(e){return!e})).length>0?null:t}(u.LRUCache.get(v,null)):null,g=(t=(0,o.useState)(null!==y?{snippets:y,isLoading:!1}:p),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=g[0],_=g[1],E=((0,s.useSCUser)(),function(){var e,t=(e=l().mark((function e(){var t,r,n,o=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:a.Endpoints.GetSnippets.url(),e.next=3,a.http.request({url:t,method:a.Endpoints.GetSnippets.method});case 3:if(r=e.sent,!(n=r.data).next){e.next=11;break}return e.t0=n.results,e.next=9,E(n.next);case 9:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 11:return e.abrupt("return",n.results);case 12:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){f(i,n,o,a,u,"next",e)}function u(e){f(i,n,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}());return(0,o.useEffect)((function(){h===u.CacheStrategies.CACHE_FIRST&&y||E().then((function(e){_({snippets:e,isLoading:!1}),u.LRUCache.set(v,e.map((function(e){var t=(0,c.getPmSnippetObjectCacheKey)(e.id);return u.LRUCache.set(t,e),e.id})))})).catch((function(e){console.log(e),u.Logger.error(i.SCOPE_SC_CORE,"Unable to retrieve snippets")}))}),[]),{data:m,updateSnippets:function(e){e&&(_({snippets:e,isLoading:!1}),u.LRUCache.set(v,e.map((function(e){var t=(0,c.getPmSnippetObjectCacheKey)(e.id);return u.LRUCache.set(t,e),e.id}))))}}}},576:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,c=e.tag,s=void 0===c?null:c,l=u((0,n.useState)(s),2),f=l[0],d=l[1],p=u((0,n.useState)(null),2),h=p[0],v=p[1],y=(0,n.useMemo)((function(){return function(){return i.http.request({url:i.Endpoints.Tag.url({id:r}),method:i.Endpoints.Tag.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[r]);return(0,n.useEffect)((function(){r&&y().then((function(e){d(e)})).catch((function(e){v("Tag with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,"Tag with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}),[r]),{scTag:f,setSCTag:d,error:h}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},7014:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,s=e.user,l=void 0===s?null:s,f=(0,u.useSCUser)(),d=f.user?f.user.id:null,p=(0,n.useMemo)((function(){return d?l:(0,a.objectWithoutProperties)(l,["connection_status"])}),[l]),h=c((0,n.useState)(p),2),v=h[0],y=h[1],g=c((0,n.useState)(null),2),m=g[0],_=g[1],E=c((0,n.useState)(!1),2),S=E[0],O=E[1],b=(0,n.useMemo)((function(){return function(){return i.http.request({url:i.Endpoints.User.url({id:l?l.id:r}),method:i.Endpoints.User.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[r,l]),C=(0,n.useMemo)((function(){return function(){return S?Promise.reject():(O(!0),b().then((function(e){O(!1),y(d?e:(0,a.objectWithoutProperties)(e,["connection_status"]))})).catch((function(e){O(!1),_("Unable to refresh user with id ".concat(r)),a.Logger.error(o.SCOPE_SC_CORE,"Unable to refresh user with id ".concat(r)),a.Logger.error(o.SCOPE_SC_CORE,e.message)})))}}),[b,S]);return(0,n.useEffect)((function(){r?b().then((function(e){y(d?e:(0,a.objectWithoutProperties)(e,["connection_status"]))})).catch((function(e){_("User with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,"User with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,e.message)})):y(p)}),[r,p]),{scUser:v,setSCUser:y,refresh:C,refreshing:S,error:m}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137),u=r(4702);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},494:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.user,r=void 0===t?null:t,s=e.blockedByUser,l=void 0===s?null:s,f=e.sync,d=void 0===f||f,p=c((0,n.useState)(null),2),h=p[0],v=p[1],y=c((0,n.useState)(!0),2),g=y[0],m=y[1],_=c((0,n.useState)(null),2),E=_[0],S=_[1],O=(0,u.useSCUser)(),b=(0,n.useMemo)((function(){return function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t&&m(!0),i.UserService.checkUserHiddenBy(e.id).then((function(e){return t&&m(!1),v(e.is_hidden_by),Promise.resolve(e.is_hidden_by)})).catch((function(e){t&&m(!1),a.Logger.error(o.SCOPE_SC_CORE,"Unable to load user blocked by."),a.Logger.error(o.SCOPE_SC_CORE,e),S(e)}))}}),[g,v]);return(0,n.useEffect)((function(){r&&null===h&&(O.user?O.user.id!==r.id?b(r):(v(!1),m(!1)):null===O.user&&(v(l),m(!1)))}),[O.user,r,b,h,g]),(0,n.useEffect)((function(){O.user||null===h||v(l)}),[O.user,h,l]),(0,n.useEffect)((function(){var e;if(O.user&&O.user.id!==(null==r?void 0:r.id)&&null!==h&&d)return e=setInterval((function(){b(r,!1)}),5e3),function(){e&&clearInterval(e)}}),[O.user,r,b,h]),{blockedBy:h,loading:g,error:E}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137),u=r(4702);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},8081:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=e.providers,c=void 0===r?null:r,s=u((0,n.useState)(c||[]),2),l=s[0],f=s[1],d=u((0,n.useState)(null),2),p=d[0],h=d[1];return(0,n.useEffect)((function(){null===c&&i.UserService.getProviderAssociations(t).then((function(e){f(e)})).catch((function(e){h("User with id ".concat(t," not found")),a.Logger.error(o.SCOPE_SC_CORE,"User with id ".concat(t," not found")),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}),[t,c]),{scUserProviders:l,setSCUserProviders:f,error:p}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},7775:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=e.contribution,d=void 0===r?null:r,h=e.contributionType,g=e.onVote,m=void 0===g?null:g,_=e.cacheStrategy,E=void 0===_?i.CacheStrategies.CACHE_FIRST:_,S=(0,n.useMemo)((function(){return h===u.SCContributionType.COMMENT?(0,c.getCommentObjectCacheKey)(t):(0,c.getFeedObjectCacheKey)(t,h)}),[t,h]),O=(0,n.useMemo)((function(){return h===u.SCContributionType.COMMENT?o.Endpoints.Comment:o.Endpoints.FeedObject}),[t,h]),b=y((0,n.useState)(!1),2),C=b[0],T=b[1],w=y((0,n.useState)(E!==i.CacheStrategies.NETWORK_ONLY?i.LRUCache.get(S,d):d),2),R=w[0],A=w[1],P=y((0,n.useState)(!1),2),L=P[0],I=P[1],N=y((0,n.useState)(o.Endpoints.VotesList.url({type:h,id:t})),2),j=N[0],k=N[1],U=y((0,n.useState)([]),2),x=U[0],G=U[1],D=y((0,n.useState)(!1),2),M=D[0],F=D[1],B=y((0,n.useState)(null),2),V=B[0],Y=B[1],q=(0,s.useSCContext)(),K=(0,l.useSCUser)(),W=(0,f.useSCVote)(),H=(0,n.useMemo)((function(){var e;return{default:null===(e=W.reactions)||void 0===e?void 0:e.find((function(e){return 1===e.id})),reactions:W.reactions,isLoading:W.isLoading}}),[W.reactions,W.isLoading]),$=(0,n.useMemo)((function(){return function(){return T(!0),o.http.request({url:O.url({type:h,id:t}),method:O.method}).then((function(e){return T(!1),e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[t,h]),X=(0,n.useMemo)((function(){return function(e){var t={};return e&&H.reactions&&(t.reaction=e.id),o.http.request({url:o.Endpoints.Vote.url({type:R.type,id:R.id}),method:o.Endpoints.Vote.method,params:t}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[R,q]);return(0,n.useEffect)((function(){(E!==i.CacheStrategies.CACHE_FIRST||!R||K.user&&!Object.prototype.hasOwnProperty.call(R,"voted"))&&$().then((function(e){A(e),i.LRUCache.set(S,e)})).catch((function(e){i.LRUCache.delete(S),Y("FeedObject with id ".concat(t," not found")),i.Logger.error(a.SCOPE_SC_CORE,"FeedObject with id ".concat(t," not found")),i.Logger.error(a.SCOPE_SC_CORE,e.message)}))}),[t,h,K.user]),(0,n.useEffect)((function(){d&&A(d)}),[d]),p(p({},(0,n.useMemo)((function(){return{contributionVoted:!!R&&R.voted,contributionVoteCount:R?R.vote_count:0,contributionReaction:R?R.reaction:null,contributionReactionsCount:R?R.reactions_count:null}}),[R])),{},{isLoading:C,isVoting:L,handleVote:function(e){K.user&&R&&!L&&(I(!0),X(e).then((function(){var t,r,n={voted:!R.voted,vote_count:R.voted?R.vote_count-1:R.vote_count+1};if(e&&(null==R||null===(t=R.reaction)||void 0===t?void 0:t.id)!==e.id){var o=!(null!=R&&R.reaction),i=-1===R.reactions_count.findIndex((function(t){return t.reaction.id===e.id}));n={voted:!!o||R.voted,vote_count:o?R.vote_count+1:R.vote_count,reaction:e,reactions_count:[].concat(v(R.reactions_count.map((function(t){var r,n;return t.reaction.id===(null==R||null===(r=R.reaction)||void 0===r?void 0:r.id)&&t.count-1==0?null:t.reaction.id===(null==R||null===(n=R.reaction)||void 0===n?void 0:n.id)&&t.count-1>0?{count:t.count-1,reaction:t.reaction}:t.reaction.id===e.id?{count:t.count+1,reaction:t.reaction}:t}))),[i?{count:1,reaction:e}:null]).filter((function(e){return Boolean(e)}))}}else e&&null!=R&&R.reaction&&(null==R||null===(r=R.reaction)||void 0===r?void 0:r.id)===e.id&&(n=Object.assign({},n,{reaction:null,reactions_count:R.reactions_count.map((function(e){var t,r;return e.reaction.id===(null==R||null===(t=R.reaction)||void 0===t?void 0:t.id)&&e.count-1==0?null:e.reaction.id===(null==R||null===(r=R.reaction)||void 0===r?void 0:r.id)&&e.count-1>0?{count:e.count-1,reaction:e.reaction}:e})).filter((function(e){return Boolean(e)}))}));var a=Object.assign({},R,n);A(a),I(!1),m&&m(a,null)})).catch((function(e){i.Logger.error(a.SCOPE_SC_CORE,e),I(!1),m&&m(R,e)})))},reactions:H,error:V,handleFetchVoteList:function(e){var r=e.reaction,n=void 0===r?null:r,i=e.reset,a=void 0!==i&&i,u=a?"".concat(o.Endpoints.VotesList.url({type:h,id:t})).concat(n?"?reaction=".concat(n.id):""):j;F(!0),o.http.request({url:u,method:o.Endpoints.VotesList.method}).then((function(e){G(a?e.data.results:[].concat(v(x),v(e.data.results))),k(e.data.next)})).catch((function(e){return Y(e)})).then((function(){return F(!1)}))},voteList:x,isLoadingVoteList:M,voteListHasNext:Boolean(j)})};var n=r(8156),o=r(7475),i=r(2137),a=r(3240),u=r(9954),c=r(7748),s=r(9082),l=r(4702),f=r(8719);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},9467:(e,t,r)=>{t.__esModule=!0,t.default=function(e,t){var r=(0,a.default)(),n=r.cache,l=r.updateCache,f=r.emptyCache,d=r.data,p=r.setData,h=r.loading,v=r.setLoading,y=r.setUnLoading,g=r.isLoading,m=e?e.id:null,_=(0,o.useMemo)((function(){return function(){f(),e&&i.http.request({url:i.Endpoints.FollowedCategories.url({id:e.id}),method:i.Endpoints.FollowedCategories.method}).then((function(e){if(e.status>=300)return Promise.reject(e);var t=e.data.map((function(e){return e.id}));return l(t),p(t),Promise.resolve(e.data)})).catch((function(e){c.Logger.error(u.SCOPE_SC_CORE,"Unable to refresh categories followed by the authenticated user."),c.Logger.error(u.SCOPE_SC_CORE,e)}))}}),[d,e,n]),E=(0,o.useMemo)((function(){return function(e){return v(e.id),i.http.request({url:i.Endpoints.FollowCategory.url({id:e.id}),method:i.Endpoints.FollowCategory.method}).then((function(r){if(r.status>=300)return Promise.reject(r);l([e.id]);var n=d.includes(e.id);return p((function(t){return n?t.filter((function(t){return t!==e.id})):[e.id].concat(s(t))})),y(e.id),t({categories_counter:n?d.length-1:d.length+1}),Promise.resolve(r.data)}))}}),[d,h,n]),S=(0,o.useMemo)((function(){return function(e){var t=e.followed||!1;return l([e.id]),p((function(r){return t?[].concat(s(r),[e.id]):r})),t}}),[d,n]),O=(0,o.useMemo)((function(){return function(e){if(n.includes(e.id))return Boolean(d.includes(e.id));if(m){if("followed"in e)return S(e);g(e)||function(e){v(e.id),i.http.request({url:i.Endpoints.CheckCategoryIsFollowed.url({id:e.id}),method:i.Endpoints.CheckCategoryIsFollowed.method}).then((function(t){return t.status>=300?Promise.reject(t):(l([e.id]),p((function(r){return t.data.is_followed?[e.id].concat(s(r)):r.filter((function(t){return t!==e.id}))})),y(e.id),Promise.resolve(t.data))}))}(e)}return!1}}),[d,h,n,m]);return(0,o.useEffect)((function(){m||f()}),[m]),e?{categories:d,loading:h,isLoading:g,follow:E,isFollowed:O,refresh:_,emptyCache:f}:{categories:d,loading:h,isLoading:g}};var n,o=r(8156),i=r(7475),a=(n=r(4486))&&n.__esModule?n:{default:n},u=r(3240),c=r(2137);function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},7309:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=(0,l.default)(),r=t.cache,n=t.updateCache,p=t.emptyCache,h=t.data,y=t.setData,g=t.loading,m=t.setLoading,_=t.setUnLoading,E=t.isLoading,S=(0,c.useSCPreferences)(),O=e?e.id:null,b=s.CONFIGURATIONS_FOLLOW_ENABLED in S.preferences&&S.preferences[s.CONFIGURATIONS_FOLLOW_ENABLED].value,C=(0,o.useMemo)((function(){return function(){p(),e&&r.length>0&&i.http.request({url:i.Endpoints.UserConnectionStatuses.url({}),method:i.Endpoints.UserConnectionStatuses.method,data:{users:r}}).then((function(e){return e.status>=300?Promise.reject(e):(n(Object.keys(e.data.connection_statuses).map((function(e){return parseInt(e)}))),y(Object.entries(e.data.connection_statuses).filter((function(e){return d(e,2)[1]===v})).map((function(e){var t=d(e,1)[0];return parseInt(t)}))),Promise.resolve(e.data))})).catch((function(e){a.Logger.error(u.SCOPE_SC_CORE,"Unable to refresh users followed by the authenticated user."),a.Logger.error(u.SCOPE_SC_CORE,e)}))}}),[h,e,r]),T=(0,o.useMemo)((function(){return function(e){return m(e.id),i.http.request({url:i.Endpoints.FollowUser.url({id:e.id}),method:i.Endpoints.FollowUser.method}).then((function(t){if(t.status>=300)return Promise.reject(t);n([e.id]);var r=h.includes(e.id);return y((function(t){return r?t.filter((function(t){return t!==e.id})):[e.id].concat(f(t))})),_(e.id),Promise.resolve(t)})).catch((function(t){return _(e.id),Promise.reject(t)}))}}),[h,g,r]),w=(0,o.useMemo)((function(){return function(e){var t=e.connection_status===v;return n([e.id]),y((function(r){return t?[].concat(f(r),[e.id]):r})),t}}),[h,r]),R=(0,o.useMemo)((function(){return function(e){if(r.includes(e.id))return Boolean(h.includes(e.id));if(O){if("connection_status"in e)return w(e);E(e)||function(e){m(e.id),i.http.request({url:i.Endpoints.CheckUserFollowed.url({id:e.id}),method:i.Endpoints.CheckUserFollowed.method}).then((function(t){return t.status>=300?Promise.reject(t):(n([e.id]),y((function(r){return t.data.is_followed?[].concat(f(r),[e.id]):r.filter((function(t){return t!==e.id}))})),_(e.id),Promise.resolve(t.data))}))}(e)}return!1}}),[h,g,r,O]);return(0,o.useEffect)((function(){O||p()}),[O]),b&&e?{followed:h,loading:g,isLoading:E,follow:T,isFollowed:R,refresh:C,emptyCache:p}:{followed:h,loading:g,isLoading:E}};var n,o=r(8156),i=r(7475),a=r(2137),u=r(3240),c=r(9723),s=r(4592),l=(n=r(4486))&&n.__esModule?n:{default:n};function f(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var v="followed"},5421:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=(0,c.default)(),r=t.cache,f=t.updateCache,p=t.emptyCache,h=t.data,v=t.setData,y=t.loading,g=t.setLoading,m=t.setUnLoading,_=t.isLoading,E=(0,a.useSCPreferences)(),S=u.CONFIGURATIONS_FOLLOW_ENABLED in E.preferences&&E.preferences[u.CONFIGURATIONS_FOLLOW_ENABLED].value,O=(0,n.useRef)(null),b=(0,n.useRef)(null),C=function(e,t){l.SCNotificationMapping[t.data.activity_type]===i.SCNotificationTypologyType.USER_FOLLOW?(f([t.data.follower.id]),h.includes(t.data.follower.id)||v((function(e){return[t.data.follower.id].concat(d(e))}))):l.SCNotificationMapping[t.data.activity_type]===i.SCNotificationTypologyType.USER_UNFOLLOW&&(f([t.data.unfollower.id]),h.includes(t.data.unfollower.id)&&v((function(e){return e.filter((function(e){return e!==t.data.unfollower.id}))})))};(0,n.useEffect)((function(){return O.current=s.default.subscribe("".concat(i.SCNotificationTopicType.INTERACTION,".").concat(i.SCNotificationTypologyType.USER_FOLLOW),C),b.current=s.default.subscribe("".concat(i.SCNotificationTopicType.INTERACTION,".").concat(i.SCNotificationTypologyType.USER_UNFOLLOW),C),function(){s.default.unsubscribe(O.current),s.default.unsubscribe(b.current)}}),[h.length,r.length]);var T=(0,n.useMemo)((function(){return function(e){return r.includes(e.id)?Boolean(h.includes(e.id)):(_(e)||function(e){g(e.id),o.http.request({url:o.Endpoints.CheckUserFollower.url({id:e.id}),method:o.Endpoints.CheckUserFollower.method}).then((function(t){return t.status>=300?Promise.reject(t):(f([e.id]),v((function(r){return t.data.is_follower?[].concat(d(r),[e.id]):r.filter((function(t){return t!==e.id}))})),m(e.id),Promise.resolve(t.data))}))}(e),!1)}}),[h,y,r]);return S&&e?{followers:h,loading:y,isLoading:_,isFollower:T,emptyCache:p}:{followers:h,loading:y,isLoading:_}};var n=r(8156),o=r(7475),i=r(9954),a=r(9723),u=r(4592),c=f(r(4486)),s=f(r(8641)),l=r(3973);function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},3897:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=void 0;var o=r(8156),i=r(7871),a=r(9723),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(4592));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var s=["places","geocoding","maps"];t.default=function(){var e=(0,a.useSCPreferences)().preferences,t=(0,o.useMemo)((function(){return e&&u.PROVIDERS_GOOGLE_GEOCODING_API_KEY in e?e[u.PROVIDERS_GOOGLE_GEOCODING_API_KEY].value:null}),[e]),r=(0,i.useLoadScript)({googleMapsApiKey:t,libraries:s});return{isLoaded:r.isLoaded,loadError:r.loadError,geocodingApiKey:t}}},145:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=function(e){var t=(0,u.default)(),r=t.cache,n=t.updateCache,v=t.emptyCache,m=t.data,S=t.setData,O=t.loading,b=t.setLoading,C=t.setUnLoading,T=t.isLoading,w=(0,l.useSCPreferences)(),R=w.preferences,A=w.features,P=e?e.id:null,L=(0,o.useMemo)((function(){return R&&A&&A.includes(a.SCFeatureName.COURSE)&&d.CONFIGURATIONS_COURSES_ENABLED in R&&R[d.CONFIGURATIONS_COURSES_ENABLED].value}),[R,A]),I=(0,o.useRef)(null),N=(0,o.useRef)(null);(0,p.useDeepCompareEffectNoCheck)((function(){return I.current=h.default.subscribe("".concat(a.SCNotificationTopicType.INTERACTION,".").concat(a.SCNotificationTypologyType.USER_INVITED_TO_JOIN_COURSE),j),N.current=h.default.subscribe("".concat(a.SCNotificationTopicType.INTERACTION,".").concat(a.SCNotificationTypologyType.USER_ADDED_TO_COURSE),j),function(){h.default.unsubscribe(I.current),h.default.unsubscribe(N.current)}}),[m]);var j=function(e,t){var r;if(void 0!==t.data.course){var o;switch(f.SCNotificationMapping[t.data.activity_type]){case a.SCNotificationTypologyType.USER_INVITED_TO_JOIN_COURSE:o=a.SCCourseJoinStatusType.INVITED;break;case a.SCNotificationTypologyType.USER_ADDED_TO_COURSE:o=t.data.notification_obj.course&&null!==(r=t.data.notification_obj.course.paywalls)&&void 0!==r&&r.length?a.SCCourseJoinStatusType.PAYMENT_WAITING:a.SCCourseJoinStatusType.JOINED}n([t.data.course]),S((function(e){return G(e,t.data.course,o)}))}},k=(0,o.useMemo)((function(){return function(){v(),e&&i.http.request({url:i.Endpoints.GetUserJoinedCourses.url({id:e.id}),method:i.Endpoints.GetUserJoinedCourses.method}).then((function(e){if(e.status>=300)return Promise.reject(e);var t=e.data.results.map((function(e){return e.id}));return n(t),S(e.data.results.map((function(e){return E({},e.id,e.join_status)}))),Promise.resolve(e.data)})).catch((function(e){s.Logger.error(c.SCOPE_SC_CORE,"Unable to refresh the authenticated user courses."),s.Logger.error(c.SCOPE_SC_CORE,e)}))}}),[m,e,r]),U=(0,o.useMemo)((function(){return function(){var e=_(g().mark((function e(t){var r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(t.id),e.next=3,i.http.request({url:i.Endpoints.JoinOrAcceptInviteToCourse.url({id:t.id}),method:i.Endpoints.JoinOrAcceptInviteToCourse.method});case 3:if(!((r=e.sent).status>=300)){e.next=6;break}return e.abrupt("return",Promise.reject(r));case 6:return n([t.id]),S((function(e){return G(e,t.id,t.privacy===a.SCCoursePrivacyType.PRIVATE&&t.join_status!==a.SCCourseJoinStatusType.INVITED?a.SCCourseJoinStatusType.REQUESTED:a.SCCourseJoinStatusType.JOINED)})),C(t.id),e.next=11,Promise.resolve(r.data);case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),[m,O,r]),x=(0,o.useMemo)((function(){return function(){var e=_(g().mark((function e(t){var r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m[t.id]===a.SCCourseJoinStatusType.REQUESTED){e.next=13;break}return b(t.id),e.next=4,i.http.request({url:i.Endpoints.LeaveOrRemoveCourseRequest.url({id:t.id}),method:i.Endpoints.LeaveOrRemoveCourseRequest.method});case 4:if(!((r=e.sent).status>=300)){e.next=7;break}return e.abrupt("return",Promise.reject(r));case 7:return n([t.id]),S((function(e){return G(e,t.id,null)})),C(t.id),e.next=12,Promise.resolve(r.data);case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),[m,O,r]),G=function(e,t,r){var n;return e.findIndex((function(e){return parseInt(Object.keys(e)[0])===t}))<0?[].concat(function(e){if(Array.isArray(e))return y(e)}(n=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[E({},t,r)]):e.map((function(n,o){return parseInt(Object.keys(n)[0])===t?E({},Object.keys(n)[0],r):E({},Object.keys(n)[0],e[o][Object.keys(n)[0]])}))},D=(0,o.useMemo)((function(){return function(e){var t=m.filter((function(t){return parseInt(Object.keys(t)[0])===e.id}));return t.length?t[0][e.id]:m.length?null:e.join_status}}),[m]),M=(0,o.useMemo)((function(){return function(e){return n([e.id]),S((function(t){return G(t,e.id,e.join_status)})),e.join_status}}),[m,r]),F=(0,o.useMemo)((function(){return function(e){if(r.includes(e.id))return D(e);if(P&&e){if("join_status"in e)return M(e);T(e)||function(e){b(e.id),i.http.request({url:i.Endpoints.GetCourseStatus.url({id:e.id}),method:i.Endpoints.GetCourseStatus.method}).then((function(t){return t.status>=300?Promise.reject(t):(S((function(r){return G(r,e.id,t.data.status)})),n([e.id]),C(e.id),Promise.resolve(t.data))})).catch((function(t){return C(e.id),Promise.reject(t)}))}(e)}return null}}),[O,r,P,M,D]);return(0,o.useEffect)((function(){P||v()}),[P]),L&&e?{courses:m,loading:O,isLoading:T,join:U,leave:x,joinStatus:F,refresh:k,emptyCache:v}:{courses:m,loading:O,isLoading:T}};var o=r(8156),i=r(7475),a=r(9954),u=v(r(4486)),c=r(3240),s=r(2137),l=r(9723),f=r(3973),d=r(4592),p=r(4537),h=v(r(8641));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function g(){g=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(w([])));m&&m!==t&&r.call(m,i)&&(v=m);var _=h.prototype=d.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=l(e[i],e,a);if("throw"!==s.type){var f=s.arg,d=f.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){f.value=e,u(f)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return p.prototype=h,c(_,"constructor",h),c(h,"constructor",p),p.displayName=c(h,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function m(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){m(i,n,o,a,u,"next",e)}function u(e){m(i,n,o,a,u,"throw",e)}a(void 0)}))}}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},8223:(e,t,r)=>{t.__esModule=!0,t.default=function(){return{handleMediaClick:function(e){n.http.request({url:n.Endpoints.MediaClickTracker.url({id:e.id}),method:n.Endpoints.MediaClickTracker.method}).catch((function(e){o.Logger.error(i.SCOPE_SC_CORE,e)}))}}};var n=r(7475),o=r(2137),i=r(3240)},5126:(e,t,r)=>{t.__esModule=!0,t.default=function(){var e=(0,o.useSCContext)(),t=(0,i.useSCUser)(),r=h((0,n.useState)(null),2),f=r[0],p=r[1],v=h((0,n.useState)(!1),2),y=v[0],g=v[1],m=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t?c.Endpoints.DeleteDevice.url({type:e.notification_service,id:e.registration_id}):c.Endpoints.NewDevice.url({type:e.notification_service}),n=t?c.Endpoints.DeleteDevice.method:c.Endpoints.NewDevice.method;return g(!0),c.http.request(d({url:r,method:n},t?{}:{data:d({registration_id:e.registration_id,cloud_message_type:e.notification_service.toUpperCase(),name:"".concat(e.platform," device")},e.device_id?{device_id:e.device_id}:{})})).then((function(e){return e.status>=300?Promise.reject(e):(g(!1),Promise.resolve(e.data))})).catch((function(e){return g(!1),Promise.reject(e)}))},_=function(){f&&!y&&(a.Logger.info(u.SCOPE_SC_CORE,"Mobile native notification is disabled. Unregister the device."),m(f,!0).then((function(e){p(null),a.Logger.info(u.SCOPE_SC_CORE,"Device unregistration successful. Your device will not be able to receive mobile push notifications.")})).catch((function(){p(null)})))};return(0,n.useEffect)((function(){if(t.user&&(0,l.isMobileNativeNotificationEnabled)()&&!e.settings.notifications.mobileNativePushMessaging.disable){var r=window&&window[s.PLATFORM_KEY]&&s.PLATFORMS.includes(window[s.PLATFORM_KEY])&&window[s.REGISTRATION_ID_KEY]&&window[s.NOTIFICATION_SERVICE_KEY]&&s.NOTIFICATIONS_SERVICES.includes(window[s.NOTIFICATION_SERVICE_KEY])?d({platform:window[s.PLATFORM_KEY],registration_id:window[s.REGISTRATION_ID_KEY],notification_service:window[s.NOTIFICATION_SERVICE_KEY]},window[s.DEVICE_ID_KEY]?{device_id:window[s.DEVICE_ID_KEY]}:{}):a.LocalStorageDB.checkifSupport()&&a.LocalStorageDB.get(s.PLATFORM_KEY)&&s.PLATFORMS.includes(a.LocalStorageDB.get(s.PLATFORM_KEY))&&a.LocalStorageDB.get(s.REGISTRATION_ID_KEY)&&a.LocalStorageDB.get(s.NOTIFICATION_SERVICE_KEY)&&s.NOTIFICATIONS_SERVICES.includes(a.LocalStorageDB.get(s.NOTIFICATION_SERVICE_KEY))?d({platform:a.LocalStorageDB.get(s.PLATFORM_KEY),registration_id:a.LocalStorageDB.get(s.REGISTRATION_ID_KEY),notification_service:a.LocalStorageDB.get(s.NOTIFICATION_SERVICE_KEY)},window[s.DEVICE_ID_KEY]?{device_id:window[s.DEVICE_ID_KEY]}:{}):null;(n=r)&&n.registration_id&&(n.platform===s.PLATFORM.ANDROID&&(n.notification_service===s.ANDROID_PUSH_NOTIFICATION_GCM_DEVICE_TYPE||n.notification_service===s.ANDROID_PUSH_NOTIFICATION_FCM_DEVICE_TYPE)||n.platform===s.PLATFORM.IOS&&(n.notification_service===s.IOS_PUSH_NOTIFICATION_IOS_DEVICE_TYPE||n.notification_service===s.ANDROID_PUSH_NOTIFICATION_FCM_DEVICE_TYPE))?f&&(!f||f.registration_id===r.registration_id)||y||(a.Logger.info(u.SCOPE_SC_CORE,"Mobile native notification is enabled. Checking and validate data..."),a.Logger.info(u.SCOPE_SC_CORE,"Data is valid to register the device for receive mobile push notification."),m(r).then((function(e){p(d(d({},r),{},{id:e.id})),a.Logger.info(u.SCOPE_SC_CORE,"Device registration successful. Your device will now be able to receive mobile push notifications.")}))):(a.Logger.warn(u.SCOPE_SC_CORE,"Invalid data. Unable to register the device for native push notification."),_())}else _();var n})),{mnpmInstance:f,setMnpmInstance:p}};var n=r(8156),o=r(9082),i=r(4702),a=r(2137),u=r(3240),c=r(7475),s=r(4357),l=r(149);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},7286:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=function(){var e=(0,a.useSCPreferences)(),t=e.preferences,r=e.features;return{isPaymentsEnabled:(0,o.useMemo)((function(){return t&&r&&r.includes(i.SCFeatureName.PAYMENTS)&&u.CONFIGURATIONS_PAYMENTS_ENABLED in t&&t[u.CONFIGURATIONS_PAYMENTS_ENABLED].value}),[t]),stripePublicKey:(0,o.useMemo)((function(){return t&&u.STATIC_STRIPE_PUBLIC_KEY in t&&t[u.STATIC_STRIPE_PUBLIC_KEY].value}),[t]),stripeConnectedAccountId:(0,o.useMemo)((function(){return t&&u.CONFIGURATIONS_STRIPE_CONNECTED_ACCOUNT_ID in t&&t[u.CONFIGURATIONS_STRIPE_CONNECTED_ACCOUNT_ID].value}),[t])}};var o=r(8156),i=r(9954),a=r(9723),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(4592));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}},2985:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=c((0,n.useState)(null),2),r=t[0],s=t[1],l=c((0,n.useState)(!1),2),f=l[0],d=l[1],p=(0,n.useMemo)((function(){return function(){e&&(d(!0),o.http.request({url:o.Endpoints.UserSettings.url({id:e.id}),method:o.Endpoints.UserSettings.method}).then((function(e){s(e.data),d(!1)})).catch((function(e){i.Logger.error(a.SCOPE_SC_CORE,"Unable to load user settings."),i.Logger.error(a.SCOPE_SC_CORE,e)})))}}),[e,r]),h=(0,n.useMemo)((function(){return function(){return f}}),[f]),v=(0,n.useMemo)((function(){return function(e){return r&&e in r?r[e]:null}}),[r]),y=(0,n.useMemo)((function(){return function(){return r}}),[r]),g=(0,n.useMemo)((function(){return function(t,n){return r&&t in r?o.http.request({url:o.Endpoints.UserSettingsPatch.url({id:e.id}),method:o.Endpoints.UserSettingsPatch.method,data:u({},t,n)}).then((function(e){var o=Object.assign({},r,u({},t,n));return s(o),Promise.resolve(o)})).catch((function(e){console.log(e)})):Promise.reject()}}),[r]);return(0,n.useEffect)((function(){p()}),[e]),{update:g,get:v,all:y,isLoading:h,refresh:p}};var n=r(8156),o=r(7475),i=r(2137),a=r(3240);function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},6336:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=(0,h.default)(),r=t.cache,v=t.updateCache,m=t.emptyCache,_=t.data,E=t.setData,S=t.loading,O=t.setLoading,b=t.setUnLoading,C=t.isLoading,T=(0,s.useSCPreferences)(),w=T.preferences,R=T.features,A=e?e.id:null,P=(0,u.useMemo)((function(){return w&&R&&R.includes(o.SCFeatureName.TAGGING)&&d.CONFIGURATIONS_EVENTS_ENABLED in w&&w[d.CONFIGURATIONS_EVENTS_ENABLED].value}),[w,R]),L=(0,u.useRef)(null),I=(0,u.useRef)(null);(0,c.useDeepCompareEffectNoCheck)((function(){return L.current=a.default.subscribe("".concat(o.SCNotificationTopicType.INTERACTION,".").concat(o.SCNotificationTypologyType.USER_INVITED_TO_JOIN_EVENT),N),I.current=a.default.subscribe("".concat(o.SCNotificationTopicType.INTERACTION,".").concat(o.SCNotificationTypologyType.USER_ADDED_TO_EVENT),N),function(){a.default.unsubscribe(L.current),a.default.unsubscribe(I.current)}}),[_]);var N=function(e,t){if(void 0!==t.data.event){var r;switch(f.SCNotificationMapping[t.data.activity_type]){case o.SCNotificationTypologyType.USER_INVITED_TO_JOIN_EVENT:r=o.SCEventSubscriptionStatusType.INVITED;break;case o.SCNotificationTypologyType.USER_ADDED_TO_EVENT:r=o.SCEventSubscriptionStatusType.SUBSCRIBED}v([t.data.event]),E((function(e){return x(e,t.data.event,r)}))}},j=(0,u.useMemo)((function(){return function(){m(),e&&n.http.request({url:n.Endpoints.GetUserSubscribedEvents.url({id:e.id}),method:n.Endpoints.GetUserSubscribedEvents.method}).then((function(e){if(e.status>=300)return Promise.reject(e);var t=e.data.results.map((function(e){return e.id}));return v(t),E(e.data.results.map((function(e){return g({},e.id,e.subscription_status)}))),Promise.resolve(e.data)})).catch((function(e){i.Logger.error(l.SCOPE_SC_CORE,"Unable to refresh the authenticated user events."),i.Logger.error(l.SCOPE_SC_CORE,e)}))}}),[_,e,r]),k=(0,u.useMemo)((function(){return function(e){O(e.id);var t=e.subscription_status&&e.subscription_status!==o.SCEventSubscriptionStatusType.INVITED?e.subscription_status===o.SCEventSubscriptionStatusType.GOING?{url:n.Endpoints.RemoveGoingToEvent.url({id:e.id}),method:n.Endpoints.RemoveGoingToEvent.method}:{url:n.Endpoints.GoToEvent.url({id:e.id}),method:n.Endpoints.GoToEvent.method}:{url:n.Endpoints.SubscribeToEvent.url({id:e.id}),method:n.Endpoints.SubscribeToEvent.method};return n.http.request(t).then((function(t){if(t.status>=300)return Promise.reject(t);var r=(0,p.getEventStatus)(e,!0);return e.subscription_status===o.SCEventSubscriptionStatusType.NOT_GOING&&(r=(0,p.getEventStatus)(Object.assign({},e,{subscription_status:o.SCEventSubscriptionStatusType.SUBSCRIBED}),!0)),E((function(t){return x(t,e.id,r)})),v([e.id]),b(e.id),Promise.resolve(Object.assign({},e,{subscription_status:r}))}))}}),[_,S,r]),U=(0,u.useMemo)((function(){return function(e){if(e.subscription_status!==o.SCEventSubscriptionStatusType.REQUESTED){O(e.id);var t=e.subscription_status===o.SCEventSubscriptionStatusType.NOT_GOING?{url:n.Endpoints.RemoveNotGoingToEvent.url({id:e.id}),method:n.Endpoints.RemoveNotGoingToEvent.method}:{url:n.Endpoints.NotGoingToEvent.url({id:e.id}),method:n.Endpoints.NotGoingToEvent.method};return n.http.request(t).then((function(t){if(t.status>=300)return Promise.reject(t);var r=(0,p.getEventStatus)(e,!1);return e.subscription_status===o.SCEventSubscriptionStatusType.GOING&&(r=(0,p.getEventStatus)(Object.assign({},e,{subscription_status:o.SCEventSubscriptionStatusType.SUBSCRIBED}),!1)),E((function(t){return x(t,e.id,r)})),v([e.id]),b(e.id),Promise.resolve(Object.assign({},e,{subscription_status:r}))}))}return O(e.id),n.http.request({url:n.Endpoints.UnsubscribeFromEvent.url({id:e.id}),method:n.Endpoints.UnsubscribeFromEvent.method}).then((function(t){return t.status>=300?Promise.reject(t):(v([e.id]),E((function(t){return x(t,e.id,null)})),b(e.id),Promise.resolve(Object.assign({},e,{subscription_status:null})))}))}}),[_,S,r]),x=function(e,t,r){var n;return e.findIndex((function(e){return parseInt(Object.keys(e)[0])===t}))<0?[].concat(function(e){if(Array.isArray(e))return y(e)}(n=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[g({},t,r)]):e.map((function(n,o){return parseInt(Object.keys(n)[0])===t?g({},Object.keys(n)[0],r):g({},Object.keys(n)[0],e[o][Object.keys(n)[0]])}))},G=(0,u.useMemo)((function(){return function(e){var t=_.filter((function(t){return parseInt(Object.keys(t)[0])===e.id}));return t.length?t[0][e.id]:_.length?null:e.subscription_status}}),[_]),D=(0,u.useMemo)((function(){return function(e){return v([e.id]),E((function(t){return x(t,e.id,e.subscription_status)})),e.subscription_status}}),[_,r]),M=(0,u.useMemo)((function(){return function(e){if(r.includes(null==e?void 0:e.id))return G(e);if(A&&e){if("subscription_status"in e)return D(e);C(e)||function(e){O(e.id),n.http.request({url:n.Endpoints.GetEventSubscriptionStatus.url({id:e.id}),method:n.Endpoints.GetEventSubscriptionStatus.method}).then((function(t){return t.status>=300?Promise.reject(t):(E((function(r){return x(r,e.id,t.data.status)})),v([e.id]),b(e.id),Promise.resolve(t.data))})).catch((function(t){return b(e.id),Promise.reject(t)}))}(e)}return null}}),[S,r,A,D,G]);return(0,u.useEffect)((function(){A||m()}),[A]),P&&e?{events:_,loading:S,isLoading:C,toggleEventAttendance:k,toggleEventNonattendance:U,subscriptionStatus:M,refresh:j,emptyCache:m}:{events:_,loading:S,isLoading:C}};var n=r(7475),o=r(9954),i=r(2137),a=v(r(8641)),u=r(8156),c=r(4537),s=r(9723),l=r(3240),f=r(3973),d=r(4592),p=r(3536),h=v(r(4486));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},8793:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=(0,a.default)(),r=t.cache,h=t.updateCache,g=t.emptyCache,m=t.data,_=t.setData,E=t.loading,S=t.setLoading,O=t.setUnLoading,b=t.isLoading,C=(0,s.useSCPreferences)(),T=C.preferences,w=C.features,R=e?e.id:null,A=(0,n.useMemo)((function(){return T&&w&&w.includes(i.SCFeatureName.TAGGING)&&w.includes(i.SCFeatureName.GROUPING)&&f.CONFIGURATIONS_GROUPS_ENABLED in T&&T[f.CONFIGURATIONS_GROUPS_ENABLED].value}),[T,w]),P=(0,n.useRef)(null),L=(0,n.useRef)(null);(0,d.useDeepCompareEffectNoCheck)((function(){return P.current=p.default.subscribe("".concat(i.SCNotificationTopicType.INTERACTION,".").concat(i.SCNotificationTypologyType.USER_INVITED_TO_JOIN_GROUP),I),L.current=p.default.subscribe("".concat(i.SCNotificationTopicType.INTERACTION,".").concat(i.SCNotificationTypologyType.USER_ADDED_TO_GROUP),I),function(){p.default.unsubscribe(P.current),p.default.unsubscribe(L.current)}}),[m]);var I=function(e,t){var r;if(void 0!==t.data.group){var n;switch(l.SCNotificationMapping[t.data.activity_type]){case i.SCNotificationTypologyType.USER_INVITED_TO_JOIN_GROUP:n=i.SCGroupSubscriptionStatusType.INVITED;break;case i.SCNotificationTypologyType.USER_ADDED_TO_GROUP:n=t.data.notification_obj.group&&null!==(r=t.data.notification_obj.group.paywalls)&&void 0!==r&&r.length?i.SCGroupSubscriptionStatusType.PAYMENT_WAITING:i.SCGroupSubscriptionStatusType.SUBSCRIBED}h([t.data.group]),_((function(e){return U(e,t.data.group,n)}))}},N=(0,n.useMemo)((function(){return function(){g(),e&&o.http.request({url:o.Endpoints.GetUserSubscribedGroups.url({id:e.id}),method:o.Endpoints.GetUserSubscribedGroups.method}).then((function(e){if(e.status>=300)return Promise.reject(e);var t=e.data.results.map((function(e){return e.id}));return h(t),_(e.data.results.map((function(e){return y({},e.id,e.subscription_status)}))),Promise.resolve(e.data)})).catch((function(e){c.Logger.error(u.SCOPE_SC_CORE,"Unable to refresh the authenticated user groups."),c.Logger.error(u.SCOPE_SC_CORE,e)}))}}),[m,e,r]),j=(0,n.useMemo)((function(){return function(e){return S(e.id),o.http.request({url:o.Endpoints.SubscribeToGroup.url({id:e.id}),method:o.Endpoints.SubscribeToGroup.method}).then((function(t){return t.status>=300?Promise.reject(t):(h([e.id]),_((function(t){return U(t,e.id,e.privacy===i.SCGroupPrivacyType.PRIVATE&&e.subscription_status!==i.SCGroupSubscriptionStatusType.INVITED?i.SCGroupSubscriptionStatusType.REQUESTED:i.SCGroupSubscriptionStatusType.SUBSCRIBED)})),O(e.id),Promise.resolve(t.data))}))}}),[m,E,r]),k=(0,n.useMemo)((function(){return function(e){if(m[e.id]!==i.SCGroupSubscriptionStatusType.REQUESTED)return S(e.id),o.http.request({url:o.Endpoints.UnsubscribeFromGroup.url({id:e.id}),method:o.Endpoints.UnsubscribeFromGroup.method}).then((function(t){return t.status>=300?Promise.reject(t):(h([e.id]),_((function(t){return U(t,e.id,null)})),O(e.id),Promise.resolve(t.data))}))}}),[m,E,r]),U=function(e,t,r){var n;return e.findIndex((function(e){return parseInt(Object.keys(e)[0])===t}))<0?[].concat(function(e){if(Array.isArray(e))return v(e)}(n=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[y({},t,r)]):e.map((function(n,o){return parseInt(Object.keys(n)[0])===t?y({},Object.keys(n)[0],r):y({},Object.keys(n)[0],e[o][Object.keys(n)[0]])}))},x=(0,n.useMemo)((function(){return function(e){var t=m.filter((function(t){return parseInt(Object.keys(t)[0])===e.id}));return t.length?t[0][e.id]:m.length?null:e.subscription_status}}),[m]),G=(0,n.useMemo)((function(){return function(e){return h([e.id]),_((function(t){return U(t,e.id,e.subscription_status)})),e.subscription_status}}),[m,r]),D=(0,n.useMemo)((function(){return function(e){if(r.includes(e.id))return x(e);if(R&&e){if("subscription_status"in e)return G(e);b(e)||function(e){S(e.id),o.http.request({url:o.Endpoints.GetGroupSubscriptionStatus.url({id:e.id}),method:o.Endpoints.GetGroupSubscriptionStatus.method}).then((function(t){return t.status>=300?Promise.reject(t):(_((function(r){return U(r,e.id,t.data.status)})),h([e.id]),O(e.id),Promise.resolve(t.data))})).catch((function(t){return O(e.id),Promise.reject(t)}))}(e)}return null}}),[E,r,R,G,x]);return(0,n.useEffect)((function(){R||g()}),[R]),A&&e?{groups:m,loading:E,isLoading:b,subscribe:j,unsubscribe:k,subscriptionStatus:D,refresh:N,emptyCache:g}:{groups:m,loading:E,isLoading:b}};var n=r(8156),o=r(7475),i=r(9954),a=h(r(4486)),u=r(3240),c=r(2137),s=r(9723),l=r(3973),f=r(4592),d=r(4537),p=h(r(8641));function h(e){return e&&e.__esModule?e:{default:e}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},1776:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=(0,c.default)(),r=t.cache,n=t.updateCache,l=t.emptyCache,f=t.data,d=t.setData,p=t.loading,h=t.setLoading,v=t.setUnLoading,y=t.isLoading,g=e?e.id:null,m=(0,o.useMemo)((function(){return function(){l(),e&&i.http.request({url:i.Endpoints.GetAllIncubators.url({}),method:i.Endpoints.GetAllIncubators.method}).then((function(e){if(e.status>=300)return Promise.reject(e);var t=e.data.results.map((function(e){return e.id}));return n(t),d(t),Promise.resolve(e.data)})).catch((function(e){a.Logger.error(u.SCOPE_SC_CORE,"Unable to refresh incubators subscribed by the authenticated user."),a.Logger.error(u.SCOPE_SC_CORE,e)}))}}),[f,e,r]),_=(0,o.useMemo)((function(){return function(e){return h(e.id),i.http.request({url:i.Endpoints.SubscribeToIncubator.url({id:e.id}),method:i.Endpoints.SubscribeToIncubator.method}).then((function(t){if(t.status>=300)return Promise.reject(t);n([e.id]);var r=f.includes(e.id);return d((function(t){return r?t.filter((function(t){return t!==e.id})):[e.id].concat(s(t))})),v(e.id),Promise.resolve(t.data)}))}}),[f,p,r]),E=(0,o.useMemo)((function(){return function(e){var t=e.subscribed||!1;return n([e.id]),d((function(r){return t?[].concat(s(r),[e.id]):r})),t}}),[f,r]),S=(0,o.useMemo)((function(){return function(e){if(r.includes(e.id))return Boolean(f.includes(e.id));if(g){if("subscribed"in e)return E(e);y(e)||function(e){h(e.id),i.http.request({url:i.Endpoints.CheckIncubatorSubscription.url({id:e.id}),method:i.Endpoints.CheckIncubatorSubscription.method}).then((function(t){return t.status>=300?Promise.reject(t):(n([e.id]),d((function(r){return t.data.subscribed?[].concat(s(r),[e.id]):r.filter((function(t){return t!==e.id}))})),v(e.id),Promise.resolve(t.data))}))}(e)}return!1}}),[f,p,r,g]);return(0,o.useEffect)((function(){g||l()}),[g]),e?{incubators:f,loading:p,isLoading:y,subscribe:_,isSubscribed:S,refresh:m,emptyCache:l}:{incubators:f,loading:p,isLoading:y}};var n,o=r(8156),i=r(7475),a=r(2137),u=r(3240),c=(n=r(4486))&&n.__esModule?n:{default:n};function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},6874:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=(0,a.useSCUser)(),r=(0,i.default)({user:e}),n=r.blockedBy,u=r.loading;return{blocked:!(0,o.useMemo)((function(){return t.user&&e.id===t.user.id}),[t.user,e])&&e&&Boolean(t.user&&t.managers.blockedUsers.isBlocked(e)||n),loading:t.user&&(t.managers.blockedUsers.isLoading()||u)}};var n,o=r(8156),i=(n=r(494))&&n.__esModule?n:{default:n},a=r(4702)},3926:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SUPPORTED_BROWSER_TYPES=t.OPERA_BROWSER_TYPE=t.FIREFOX_BROWSER_TYPE=t.EDGE_BROWSER_TYPE=t.DEFAULT_BROWSER_TYPE=t.CHROME_BROWSER_TYPE=void 0,t.default=function(){var e,t=(0,a.useSCContext)(),r=(0,u.useSCUser)(),n=(0,i.useContext)(p.SCPreferencesContext),o=(0,m.useIntl)(),E=(0,h.useSnackbar)(),S=E.enqueueSnackbar,T=E.closeSnackbar,w=(2,function(e){if(Array.isArray(e))return e}(e=(0,i.useState)(null))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e)||function(e,t){if(e){if("string"==typeof e)return C(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),R=w[0],A=w[1],I=(0,i.useRef)(0),N=void 0!==t.settings.notifications.webPushMessaging.applicationServerKey?t.settings.notifications.webPushMessaging.applicationServerKey:v.PROVIDERS_WEB_PUSH_PUBLIC_KEY in n.preferences?n.preferences[v.PROVIDERS_WEB_PUSH_PUBLIC_KEY].value:null,j=!(!(v.PROVIDERS_WEB_PUSH_ENABLED in n.preferences)||!n.preferences[v.PROVIDERS_WEB_PUSH_ENABLED].value)&&n.preferences[v.PROVIDERS_WEB_PUSH_ENABLED].value,k=function(e){e&&(T(e),g.default.set(y.NOTIFICATIONS_WEB_PUSH_MESSAGING_DIALOG_COOKIE,"1",{expires:1}))},U=function(e){return L.indexOf(e.name)<0?P:e.name},x=function(e,t){if(L.indexOf(e.name)<0)return t.endpoint;try{var r=t.endpoint.split("/");return r[r.length-1]}catch(e){return t.endpoint}},G=function(e,t){var n=(0,c.loadVersionBrowser)();return function(e,t){var r=t?f.Endpoints.DeleteDevice.url({type:d.WEB_PUSH_NOTIFICATION_DEVICE_TYPE,id:e.registration_id}):f.Endpoints.NewDevice.url({type:d.WEB_PUSH_NOTIFICATION_DEVICE_TYPE}),n=t?f.Endpoints.DeleteDevice.method:f.Endpoints.NewDevice.method;return f.http.request(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({url:r,method:n},t?{}:{data:e})).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}({browser:U(n).toUpperCase(),p256dh:btoa(String.fromCharCode.apply(null,new Uint8Array(e.getKey("p256dh")))),auth:btoa(String.fromCharCode.apply(null,new Uint8Array(e.getKey("auth")))),user:r.user?r.user.username:"",registration_id:x(n,e)},t).then((function(e){t?A(null):(c.Logger.info(l.SCOPE_SC_CORE,"Web Push Notifications subscription created successfully"),A(e))})).catch((function(e){c.Logger.error(l.SCOPE_SC_CORE,e)}))},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;navigator.serviceWorker.ready.then((function(t){t&&t.pushManager.getSubscription().then((function(t){t&&t.unsubscribe().then((function(){c.Logger.info(l.SCOPE_SC_CORE,"Unsubscription successfully"),G(t,!0).then((function(){e&&e()}))})).catch((function(e){c.Logger.info(l.SCOPE_SC_CORE,"Error on removing web push notification subscription."),console.log(e)}))})).catch((function(e){c.Logger.info(l.SCOPE_SC_CORE,"Error thrown while unsubscribing from push messaging. ".concat(e))}))}))},M=function(){navigator.serviceWorker.getRegistration().then((function(e){e?e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:(0,c.urlB64ToUint8Array)(N)}).then((function(e){e?G(e,!1):c.Logger.info(l.SCOPE_SC_CORE,"We aren’t subscribed to push.")})).catch((function(e){console.log(e),"denied"===Notification.permission?c.Logger.info(l.SCOPE_SC_CORE,"Permission for Web Push Notifications was denied"):(I.current+=1,c.Logger.info(l.SCOPE_SC_CORE,"Unable to subscribe(".concat(I.current,") to push. ").concat(e)),I.current<3?D((function(){return M()})):c.Logger.info(l.SCOPE_SC_CORE,"Unable to subscribe to Web Push Notification. ".concat(e)))})):c.Logger.info(l.SCOPE_SC_CORE,"To receive Web Push Notifications the service worker must be registered.")}))},F=function(e){"granted"!==Notification.permission&&Notification.requestPermission().then((function(e){"granted"===e?navigator.serviceWorker.ready.then((function(e){e.pushManager.getSubscription().then((function(e){e?G(e,!1):M()})).catch((function(e){c.Logger.info(l.SCOPE_SC_CORE,"Error during getSubscription()"),console.log(e)}))})):c.Logger.info(l.SCOPE_SC_CORE,"Permission for Notifications was denied")})).catch((function(e){console.log(e),c.Logger.info(l.SCOPE_SC_CORE,"Request web push permission by a user generated gesture")})),k(e)};return(0,i.useEffect)((function(){!R&&r.user&&((0,_.isWebPushMessagingEnabled)()?!j||t.settings.notifications.webPushMessaging.disableToastMessage?c.Logger.warn(l.SCOPE_SC_CORE,"This instance is not configured to support web push notifications or they have been disabled."):N?(c.Logger.info(l.SCOPE_SC_CORE,"Initialize web push notification."),"undefined"!=typeof ServiceWorkerRegistration?"PushManager"in window&&"serviceWorker"in navigator&&"Notification"in window?"denied"!==Notification.permission?"default"===Notification.permission?(c.Logger.info(l.SCOPE_SC_CORE,"Request permission"),navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")?g.default.get(y.NOTIFICATIONS_WEB_PUSH_MESSAGING_DIALOG_COOKIE)?c.Logger.info(l.SCOPE_SC_CORE,"Skip show the dialog to request Web Push Notifications grant permission"):S(o.formatMessage({id:"ui.webPushNotification.requestPermission",defaultMessage:"ui.webPushNotification.requestPermission"}),{action:function(e){return i.default.createElement(i.default.Fragment,null,i.default.createElement(s.Button,{size:"small",sx:{color:"#FFF"},onClick:function(){return F(e)}},o.formatMessage({id:"ui.webPushNotification.allow",defaultMessage:"ui.webPushNotification.allow"})),i.default.createElement(s.Button,{size:"small",sx:{color:"#FFF"},onClick:function(){return k(e)}},o.formatMessage({id:"ui.webPushNotification.block",defaultMessage:"ui.webPushNotification.block"})))},variant:"default",anchorOrigin:{horizontal:"center",vertical:"bottom"},preventDuplicate:!0}):F(null)):"granted"===Notification.permission&&M():c.Logger.info(l.SCOPE_SC_CORE,"The user has blocked Web Push Notifications."):c.Logger.info(l.SCOPE_SC_CORE,"Service Worker or Push messaging aren't supported."):c.Logger.info(l.SCOPE_SC_CORE,"Notifications aren't supported.")):c.Logger.warn(l.SCOPE_SC_CORE,"Invalid or missing applicationServerKey. Check the configuration that is passed to the SCContextProvider."):c.Logger.warn(l.SCOPE_SC_CORE,"Mobile native notifications replace web push messages with this settings.")),r.user&&(0,_.isWebPushMessagingEnabled)()||!R||D((function(){navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")&&g.default.remove(y.NOTIFICATIONS_WEB_PUSH_MESSAGING_DIALOG_COOKIE)}))}),[r.user,t.settings.notifications.webPushMessaging,R]),{wpSubscription:R,requestNotificationPermission:F}};var o,i=S(r(8156)),a=r(9082),u=r(4702),c=r(2137),s=r(901),l=r(3240),f=r(7475),d=r(4357),p=r(9723),h=r(4584),v=S(r(4592)),y=r(6506),g=(o=r(602))&&o.__esModule?o:{default:o},m=r(9767),_=r(149);function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(E=function(e){return e?r:t})(e)}function S(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=E(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var T="chrome";t.CHROME_BROWSER_TYPE=T;var w="firefox";t.FIREFOX_BROWSER_TYPE=w;var R="opera";t.OPERA_BROWSER_TYPE=R;var A="edge";t.EDGE_BROWSER_TYPE=A;var P=T;t.DEFAULT_BROWSER_TYPE=P;var L=[T,w,R,A];t.SUPPORTED_BROWSER_TYPES=L},3808:(e,t,r)=>{t.__esModule=!0,t.default=function(){var e,t=(0,a.useSCContext)(),r=(0,u.useSCUser)(),n=(2,function(e){if(Array.isArray(e))return e}(e=(0,o.useState)(null))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=n[0],h=n[1],v=t.settings.notifications.webSocket.secure||!("secure"in t.settings.notifications.webSocket)?l.WS_PROTOCOL_SECURE:l.WS_PROTOCOL_INSECURE,y=t.settings.notifications.webSocket.prefixPath||l.WS_PREFIX_PATH,g="".concat(v,"://").concat(new URL(t.settings.portal).hostname,"/").concat(y,"/").concat(l.WS_FACILITY_NOTIFY,"?subscribe-user"),m=t.settings.session.authToken&&t.settings.session.authToken.accessToken?"".concat(l.WS_SUB_PROTOCOL_PREFIX).concat(t.settings.session.authToken.accessToken):null,_=function(){p&&p.close()};(0,o.useEffect)((function(){r.user&&!p&&g&&m&&(h(c.WSClient.getInstance({uri:g,heartbeatMsg:l.WS_HEARTBEAT_MESSAGE,protocols:[m],receiveMessage:E})),window.addEventListener("beforeunload",_)),!r.user&&p&&(window.removeEventListener("beforeunload",_),p&&p.close())}),[r.user]);var E=function(e){var t=JSON.parse(e);t&&t.type&&s.SCNotificationTopics.includes(t.type)&&(t.type===i.SCNotificationTopicType.INTERACTION?(t.data.activity_type===i.SCNotificationTypologyType.NOTIFICATION_BANNER?f.default.publish("".concat(t.type,".").concat(i.SCNotificationTypologyType.NOTIFICATION_BANNER),t):s.SCNotificationMapping[t.data.activity_type]&&f.default.publish("".concat(t.type,".").concat(s.SCNotificationMapping[t.data.activity_type]),t),S(t.data)):f.default.publish("".concat(t.type),t))},S=function(e){var t=0;void 0!==e.count_interactions&&(t=e.count_interactions),void 0!==e.count_notification_banners&&(t=Math.max(t-e.count_notification_banners,0),r.setUnseenInteractionsCounter(e.count_notification_banners)),void 0!==e.count_interactions&&r.setUnseenInteractionsCounter(t)};return{wsInstance:p,setWsInstance:h}};var n,o=r(8156),i=r(9954),a=r(9082),u=r(4702),c=r(2137),s=r(3973),l=r(706),f=(n=r(8641))&&n.__esModule?n:{default:n};function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},7721:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.UserUtils=t.SCRoutes=t.SCPreferences=t.SCNotification=t.SCFeatures=t.SCCache=t.Preferences=t.Locale=void 0;var o=r(1111);t.SCUserContextType=o.SCUserContextType,t.SCFollowedCategoriesManagerType=o.SCFollowedCategoriesManagerType,t.SCContextProviderType=o.SCContextProviderType,t.SCContextType=o.SCContextType,t.SCSettingsType=o.SCSettingsType,t.SCSessionType=o.SCSessionType,t.SCFollowedManagerType=o.SCFollowedManagerType,t.SCFollowersManagerType=o.SCFollowersManagerType,t.SCSettingsManagerType=o.SCSettingsManagerType,t.SCConnectionsManagerType=o.SCConnectionsManagerType,t.SCSubscribedIncubatorsManagerType=o.SCSubscribedIncubatorsManagerType,t.SCLocaleType=o.SCLocaleType,t.SCNotificationContextType=o.SCNotificationContextType,t.SCPreferencesContextType=o.SCPreferencesContextType,t.SCThemeContextType=o.SCThemeContextType,t.SCRoutingContextType=o.SCRoutingContextType,t.SCLocaleContextType=o.SCLocaleContextType,t.SCAlertMessagesContextType=o.SCAlertMessagesContextType,t.SCThemeAvatarVariableType=o.SCThemeAvatarVariableType,t.SCThemeCategoryIconVariableType=o.SCThemeCategoryIconVariableType,t.SCThemeCategoryVariableType=o.SCThemeCategoryVariableType,t.SCThemeVariablesType=o.SCThemeVariablesType,t.SCThemeType=o.SCThemeType,t.SCSubscribedGroupsManagerType=o.SCSubscribedGroupsManagerType,t.SCSubscribedEventsManagerType=o.SCSubscribedEventsManagerType,t.SCJoinedCoursesManagerType=o.SCJoinedCoursesManagerType;var i=ie(r(9082));t.SCContextProvider=i.default,t.SCContext=i.SCContext,t.useSCContext=i.useSCContext;var a=ie(r(4702));t.SCUserProvider=a.default,t.SCUserContext=a.SCUserContext,t.useSCUser=a.useSCUser;var u=ie(r(5373));t.SCThemeProvider=u.default,t.SCThemeContext=u.SCThemeContext,t.useSCTheme=u.useSCTheme,t.withSCTheme=u.withSCTheme;var c=ie(r(2075));t.SCRoutingProvider=c.default,t.SCRoutingContext=c.SCRoutingContext,t.useSCRouting=c.useSCRouting;var s=ie(r(1249));t.SCLocaleProvider=s.default,t.SCLocaleContext=s.SCLocaleContext,t.useSCLocale=s.useSCLocale,t.withSCLocale=s.withSCLocale;var l=ie(r(823));t.SCNotificationProvider=l.default,t.SCNotificationContext=l.SCNotificationContext,t.useSCNotification=l.useSCNotification;var f=ie(r(7718));t.SCAlertMessagesProvider=f.default,t.SCAlertMessagesContext=f.SCAlertMessagesContext,t.useSCAlertMessages=f.useSCAlertMessages;var d=ie(r(9723));t.SCPreferencesProvider=d.default,t.SCPreferencesContext=d.SCPreferencesContext,t.useSCPreferences=d.useSCPreferences;var p=ie(r(4592));t.SCPreferences=p,t.Preferences=p;var h=ie(r(6115));t.SCFeatures=h;var v=ie(r(3973));t.SCNotification=v;var y=ie(r(7748));t.SCCache=y;var g=ne(r(7014));t.useSCFetchUser=g.default;var m=ne(r(8081));t.useSCFetchUserProviders=m.default;var _=ne(r(7775));t.useSCFetchVote=_.default;var E=ne(r(6594));t.useSCFetchFeedObject=E.default;var S=ne(r(634));t.useSCFetchCommentObject=S.default;var O=ne(r(393));t.useSCFetchCommentObjects=O.default;var b=ne(r(1560));t.useSCFetchLessonCommentObject=b.default;var C=ne(r(2779));t.useSCFetchLessonCommentObjects=C.default;var T=ne(r(1219));t.useSCFetchCustomAdv=T.default;var w=ne(r(576));t.useSCFetchTag=w.default;var R=ne(r(6167));t.useSCFetchAddressingTagList=R.default;var A=ne(r(8895));t.useSCFetchCategory=A.default;var P=ne(r(472));t.useSCFetchCategories=P.default;var L=ne(r(2243));t.useSCFetchIncubator=L.default;var I=ne(r(8223));t.useSCMediaClick=I.default;var N=ne(r(2118));t.useSCFetchContributors=N.default;var j=ne(r(6694));t.useSCFetchFeed=j.default;var k=ne(r(6515));t.useSCFetchPrivateMessageSnippets=k.default;var U=ne(r(7626));t.useSCFetchBroadcastMessages=U.default;var x=ne(r(494));t.useSCFetchUserBlockedBy=x.default;var G=ne(r(6874));t.useSCUserIsBlocked=G.default;var D=ne(r(2994));t.useSCFetchGroup=D.default;var M=ne(r(6151));t.useSCFetchGroups=M.default;var F=ne(r(458));t.useSCFetchEvent=F.default;var B=ne(r(519));t.useSCFetchEvents=B.default;var V=ne(r(4706));t.useSCFetchLiveStream=V.default;var Y=ne(r(3897));t.useSCGoogleApiLoader=Y.default;var q=ne(r(6552));t.useSCFetchCourse=q.default;var K=ne(r(2619));t.useSCFetchCourses=K.default;var W=ne(r(7416));t.useSCFetchLesson=W.default;var H=ne(r(7286));t.useSCPaymentsEnabled=H.default;var $=ne(r(1513));t.useSCFetchPaymentProduct=$.default;var X=ne(r(133));t.useSCFetchPaymentOrder=X.default;var J=ne(r(6358));t.Link=J.default;var z=ie(r(8461));t.SCRoutes=z;var Q=ie(r(2330));t.UserUtils=Q;var Z=ne(r(7746));t.getTheme=Z.default;var ee=r(357);t.useIsComponentMountedRef=ee.useIsComponentMountedRef,t.usePreviousValue=ee.usePreviousValue,t.useIsomorphicLayoutEffect=ee.useIsomorphicLayoutEffect,t.useEffectOnce=ee.useEffectOnce,t.useNoInitialEffect=ee.useNoInitialEffect,t.usePageVisibility=ee.usePageVisibility,t.useResizeObserver=ee.useResizeObserver;var te=r(3536);t.getEventStatus=te.getEventStatus;var re=ie(r(7523));function ne(e){return e&&e.__esModule?e:{default:e}}function oe(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(oe=function(e){return e?r:t})(e)}function ie(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=oe(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}t.Locale=re},7746:(e,t,r)=>{t.__esModule=!0,t.default=void 0;var n,o=r(901),i=r(2137),a=(n=r(7409))&&n.__esModule?n:{default:n},u=r(4592);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=function(e,t,r){return!(!e.hasOwnProperty(t)||!e[t].hasOwnProperty("value"))&&r(e[t].value)};t.default=function(e,t){var r=t?{palette:s(s(s({},f(t,u.COLORS_COLORBACK,a.default)&&{background:{default:t[u.COLORS_COLORBACK].value}}),{},{text:s(s({},f(t,u.COLORS_COLORFONT,a.default)&&{primary:t[u.COLORS_COLORFONT].value}),f(t,u.COLORS_COLORFONTSECONDARY,a.default)&&{secondary:t[u.COLORS_COLORFONTSECONDARY].value})},f(t,u.COLORS_COLORPRIMARY,a.default)&&{primary:{main:t[u.COLORS_COLORPRIMARY].value}}),f(t,u.COLORS_COLORSECONDARY,a.default)&&s({secondary:{main:t[u.COLORS_COLORSECONDARY].value}},f(t,u.COLORS_NAVBARBACK,a.default)&&{navbar:{main:t[u.COLORS_NAVBARBACK].value}})),typography:s({},f(t,u.STYLE_FONT_FAMILY,i.isString)&&{fontFamily:t[u.STYLE_FONT_FAMILY].value})}:{};return(0,o.createTheme)((0,i.mergeDeep)(s({selfcommunity:{user:{avatar:{sizeSmall:24,sizeMedium:40,sizeLarge:50,sizeXLarge:100}},category:{icon:{sizeSmall:24,sizeMedium:40,sizeLarge:50}},group:{avatar:{sizeSmall:40,sizeMedium:60,sizeLarge:90,sizeXLarge:120}},contentProduct:{icon:{sizeSmall:24,sizeMedium:40}},contentProductPrice:{icon:{sizeSmall:24,sizeMedium:40}}}},r),e))}},2361:(e,t)=>{t.__esModule=!0},1111:(e,t,r)=>{t.__esModule=!0;var n=r(2361);t.SCUserContextType=n.SCUserContextType,t.SCFollowedManagerType=n.SCFollowedManagerType,t.SCFollowersManagerType=n.SCFollowersManagerType,t.SCFollowedCategoriesManagerType=n.SCFollowedCategoriesManagerType,t.SCSettingsManagerType=n.SCSettingsManagerType,t.SCSubscribedIncubatorsManagerType=n.SCSubscribedIncubatorsManagerType,t.SCConnectionsManagerType=n.SCConnectionsManagerType,t.SCBlockedUsersManagerType=n.SCBlockedUsersManagerType,t.SCContextProviderType=n.SCContextProviderType,t.SCContextType=n.SCContextType,t.SCSettingsType=n.SCSettingsType,t.SCSessionType=n.SCSessionType,t.SCPreferencesContextType=n.SCPreferencesContextType,t.SCNotificationContextType=n.SCNotificationContextType,t.SCLocaleType=n.SCLocaleType,t.SCVoteType=n.SCVoteType,t.SCVoteContextType=n.SCVoteContextType,t.SCThemeContextType=n.SCThemeContextType,t.SCRoutingContextType=n.SCRoutingContextType,t.SCLocaleContextType=n.SCLocaleContextType,t.SCAlertMessagesContextType=n.SCAlertMessagesContextType,t.SCSubscribedGroupsManagerType=n.SCSubscribedGroupsManagerType,t.SCSubscribedEventsManagerType=n.SCSubscribedEventsManagerType,t.SCJoinedCoursesManagerType=n.SCJoinedCoursesManagerType;var o=r(3166);t.SCThemeAvatarVariableType=o.SCThemeAvatarVariableType,t.SCThemeUserVariableType=o.SCThemeUserVariableType,t.SCThemeCategoryIconVariableType=o.SCThemeCategoryIconVariableType,t.SCThemeCategoryVariableType=o.SCThemeCategoryVariableType,t.SCThemeVariablesType=o.SCThemeVariablesType,t.SCThemeType=o.SCThemeType},3166:(e,t)=>{t.__esModule=!0},4688:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.ValidationWarnings=t.ValidationResult=t.ValidationError=void 0;var o,i,a,u=r(7523),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(4191)),s=r(2137);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var v=p((function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.defaultErrorMessageMap[t];h(this,e),this.errorCode=null,this.errorData=null,this.errorMessage=null,this.errorCode=t,this.errorData=r,this.errorMessage=n}));t.ValidationError=v,o=v,v.ERROR_INVALID_CONF=3100,v.ERROR_INVALID_SESSION=4100,v.ERROR_INVALID_SESSION_TYPE=4101,v.ERROR_INVALID_SESSION_AUTH_TOKEN=4102,v.ERROR_INVALID_SESSION_CLIENT_ID=4103,v.ERROR_INVALID_SESSION_REFRESH_TOKEN_CALLBACK=4104,v.ERROR_INVALID_SESSION_LOGOUT_CALLBACK=4105,v.ERROR_INVALID_PORTAL=4200,v.ERROR_INVALID_LOCALE=4300,v.ERROR_INVALID_TRANSLATIONS=4400,v.ERROR_INVALID_THEME=4500,v.ERROR_INVALID_ROUTER=4600,v.ERROR_INVALID_PROVIDERS=4700,v.ERROR_INVALID_HANDLE_ANONYMOUS_ACTION=4800,v.ERROR_INVALID_NOTIFICATIONS=4900,v.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET=4901,v.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_DISABLE_TOAST_MESSAGE=4902,v.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_SECURE=4903,v.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_PREFIX_PATH=4904,v.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING=4921,v.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_DISABLE_TOAST_MESSAGE=4922,v.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_APPLICATION_SERVER_KEY=4923,v.ERROR_INVALID_NOTIFICATIONS_MOBILE_PUSH_MESSAGING_DISABLE=4924,v.ERROR_INVALID_NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING=4931,v.ERROR_INVALID_PREFERENCES=5e3,v.ERROR_INVALID_GLOBAL_PREFERENCES=5001,v.ERROR_INVALID_PREFERENCES_FEATURES=5002,v.ERROR_INVALID_VOTE=6e3,v.ERROR_INVALID_VOTE_REACTIONS=6001,v.ERROR_INVALID_VOTE_REACTIONS_STRUCTURE=6002,v.ERROR_INVALID_INTEGRATIONS=6100,v.ERROR_INVALID_INTEGRATIONS_OPENAI=6101,v.ERROR_INVALID_INTEGRATIONS_OPENAI_SECRETKEY=6102,v.ERROR_INVALID_INTEGRATIONS_GEOCODING=6103,v.ERROR_INVALID_INTEGRATIONS_GEOCODING_APIKEY=6104,v.defaultErrorMessageMap=(f(f(f(f(f(f(f(f(f(f(a={},o.ERROR_INVALID_CONF,"Invalid or missing library configuration. Check the configuration that is passed to the SCContextProvider."),o.ERROR_INVALID_SESSION,"Invalid session format."),o.ERROR_INVALID_SESSION_TYPE,"Invalid sessionType. Available options are ".concat(c.sessionTypes.join(", "),".")),o.ERROR_INVALID_SESSION_AUTH_TOKEN,"Invalid auth token format"),o.ERROR_INVALID_SESSION_CLIENT_ID,"Invalid clientId in the initial configuration."),o.ERROR_INVALID_SESSION_REFRESH_TOKEN_CALLBACK,"Invalid refresh token callback"),o.ERROR_INVALID_SESSION_LOGOUT_CALLBACK,"Invalid logout callback"),o.ERROR_INVALID_PORTAL,"Invalid portal. Check if the url format is valid."),o.ERROR_INVALID_LOCALE,"Invalid locale. Available options are ".concat(u.LOCALES.join(", "),".")),o.ERROR_INVALID_TRANSLATIONS,"Invalid locale messages(translations) options."),f(f(f(f(f(f(f(f(f(f(a,o.ERROR_INVALID_THEME,"Invalid theme options."),o.ERROR_INVALID_ROUTER,"Invalid router configuration"),o.ERROR_INVALID_PROVIDERS,"Invalid providers. Check if the list of providers is valid."),o.ERROR_INVALID_HANDLE_ANONYMOUS_ACTION,"Invalid handle anonymous action callback"),o.ERROR_INVALID_NOTIFICATIONS,"Invalid notifications conf."),o.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET,"Invalid notifications (websocket) option."),o.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_DISABLE_TOAST_MESSAGE,"Invalid notifications websocket conf: disableToastMessage must be a boolean value."),o.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_SECURE,"Invalid notifications websocket conf: secure must be a boolean value."),o.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_PREFIX_PATH,"Invalid notifications websocket conf: prefixPath must be a string value."),o.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING,"Invalid notifications (web push messaging) option."),f(f(f(f(f(f(f(f(f(f(a,o.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_DISABLE_TOAST_MESSAGE,"Invalid notifications web push messaging option. 'disableToastMessage' must be a boolean value."),o.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_APPLICATION_SERVER_KEY,"Invalid notifications web push messaging option. 'applicationServerKey' must be a string value."),o.ERROR_INVALID_NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING,"Invalid notifications (mobile native push messaging) option."),o.ERROR_INVALID_NOTIFICATIONS_MOBILE_PUSH_MESSAGING_DISABLE,"Invalid notifications mobile native push messaging option. 'disable' must be a boolean value."),o.ERROR_INVALID_PREFERENCES,"Invalid preferences option."),o.ERROR_INVALID_GLOBAL_PREFERENCES,"Invalid preferences option. 'preferences' inside preferences must be a valid array of global preferences."),o.ERROR_INVALID_PREFERENCES_FEATURES,"Invalid preferences option. 'features' must be a valid array of features."),o.ERROR_INVALID_VOTE,"Invalid vote option."),o.ERROR_INVALID_VOTE_REACTIONS,"Invalid vote option. 'reactions' must be a valid array of reaction objects."),o.ERROR_INVALID_VOTE_REACTIONS_STRUCTURE,"Invalid vote option. 'reactions' must be a valid array of reaction with attributes (id, label, sentiment, image, active)."),f(f(f(f(f(a,o.ERROR_INVALID_INTEGRATIONS,"Invalid integrations conf."),o.ERROR_INVALID_INTEGRATIONS_OPENAI,"Invalid integrations (openai) option."),o.ERROR_INVALID_INTEGRATIONS_OPENAI_SECRETKEY,"Invalid integrations openai conf: secretKey must be a string value."),o.ERROR_INVALID_INTEGRATIONS_GEOCODING,"Invalid integrations (geocoding) option."),o.ERROR_INVALID_INTEGRATIONS_GEOCODING_APIKEY,"Invalid integrations geocoding conf: apiKey must be a string value."));var y=p((function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.defaultErrorMessageMap[t];h(this,e),this.warningCode=null,this.warningData=null,this.warningMessage=null,this.warningCode=t,this.warningData=r,this.warningMessage=n}));t.ValidationWarnings=y,i=y,y.WARNING_SESSION_REFRESH_TOKEN_CALLBACK_NOT_FOUND=3100,y.WARNING_LOCALE_FALLBACK=3300,y.WARNING_ROUTER_FALLBACK=3500,y.WARNING_HANDLE_ANONYMOUS_ACTION_FALLBACK=3700,y.defaultErrorMessageMap=f(f(f(f({},i.WARNING_SESSION_REFRESH_TOKEN_CALLBACK_NOT_FOUND,"The 'handleRefreshToken' is not defined in initial conf. When the token expires it will not be renewed and the user session will be lost."),i.WARNING_LOCALE_FALLBACK,"The 'locale' is not defined in initial conf, fallback to the default ".concat(u.DEFAULT_LANGUAGE_UI,".")),i.WARNING_ROUTER_FALLBACK,"The 'router' is not defined in initial conf, fallback to the default configurations."),i.WARNING_HANDLE_ANONYMOUS_ACTION_FALLBACK,"The 'handleAnonymousAction' is not defined in initial conf, fallback to the default configurations.");var g=function(){return p((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"[Report Error]";h(this,e),this.errors=[],this.warnings=[],this.scope="",this.scope=t}),[{key:"addError",value:function(e,t){return this.errors.push(new v(e,t)),this.errors}},{key:"addWarnings",value:function(e,t){return this.warnings.push(new y(e,t)),this.errors}},{key:"hasErrors",value:function(){return this.errors.length>0}},{key:"hasWarnings",value:function(){return this.warnings.length>0}},{key:"emitErrors",value:function(){var e=this;this.hasErrors()&&this.errors.map((function(t){return s.Logger.error(e.scope,t.errorMessage)}))}},{key:"emitWarnings",value:function(){var e=this;this.hasWarnings()&&this.warnings.map((function(t){return s.Logger.warn(e.scope,t.warningMessage)}))}},{key:"emit",value:function(){this.emitErrors(),this.emitWarnings()}}])}();t.ValidationResult=g},3536:(e,t,r)=>{t.__esModule=!0,t.getEventStatus=function(e,t){var r=e.subscription_status,o=e.privacy;if(!r)return o===n.SCEventPrivacyType.PRIVATE?n.SCEventSubscriptionStatusType.REQUESTED:n.SCEventSubscriptionStatusType.SUBSCRIBED;switch(r){case n.SCEventSubscriptionStatusType.INVITED:case n.SCEventSubscriptionStatusType.GOING:case n.SCEventSubscriptionStatusType.NOT_GOING:return n.SCEventSubscriptionStatusType.SUBSCRIBED;case n.SCEventSubscriptionStatusType.SUBSCRIBED:return t?n.SCEventSubscriptionStatusType.GOING:n.SCEventSubscriptionStatusType.NOT_GOING;case n.SCEventSubscriptionStatusType.REQUESTED:return o===n.SCEventPrivacyType.PRIVATE?null:n.SCEventSubscriptionStatusType.SUBSCRIBED;default:return null}};var n=r(9954)},357:(e,t,r)=>{t.__esModule=!0;var n=l(r(5189));t.useIsComponentMountedRef=n.default;var o=l(r(3112));t.usePreviousValue=o.default;var i=l(r(8511));t.useIsomorphicLayoutEffect=i.default;var a=l(r(8444));t.useEffectOnce=a.default;var u=l(r(802));t.useNoInitialEffect=u.default;var c=l(r(773));t.usePageVisibility=c.default;var s=l(r(1728));function l(e){return e&&e.__esModule?e:{default:e}}t.useResizeObserver=s.default},8444:(e,t,r)=>{t.__esModule=!0,t.default=void 0;var n=r(8156);t.default=function(e,t){var r=(0,n.useRef)(!1);(0,n.useEffect)((function(){t&&!r.current&&(e(),r.current=!0)}),[t])}},5189:(e,t,r)=>{t.__esModule=!0,t.default=void 0;var n=r(8156);t.default=function(){var e=(0,n.useRef)(!1);return(0,n.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},8511:(e,t,r)=>{t.__esModule=!0,t.default=void 0;var n=r(8156),o=(0,r(2137).isClientSideRendering)()?n.useLayoutEffect:n.useEffect;t.default=o},802:(e,t,r)=>{t.__esModule=!0,t.default=void 0;var n=r(8156);t.default=function(e,t){var r=(0,n.useRef)(!0);(0,n.useEffect)((function(){var t=function(){};if(r.current?r.current=!1:t=e(),t&&"function"==typeof t)return t}),t)}},773:(e,t,r)=>{t.__esModule=!0,t.default=void 0;var n=r(8156);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.default=function(){var e,t,r=(e=(0,n.useState)(!0),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=r[0],a=r[1];return(0,n.useEffect)((function(){var e=function(){a(!document.hidden)};return document.addEventListener("visibilitychange",e),function(){document.removeEventListener("visibilitychange",e)}}),[]),i}},3112:(e,t,r)=>{t.__esModule=!0,t.default=void 0;var n=r(8156);t.default=function(e){var t=(0,n.useRef)();return(0,n.useEffect)((function(){t.current=e})),t.current}},1728:(e,t,r)=>{t.__esModule=!0,t.default=function(e,t,r){(0,n.useEffect)((function(){if(e&&"ResizeObserver"in window){var n=new ResizeObserver(r);return n.observe(e,t),function(){n.disconnect()}}}),[e,t,r])};var n=r(8156)},8483:(e,t,r)=>{t.__esModule=!0,t.default=void 0,t.loadLocaleData=function(e,t){var r=e,n=t.locale&&t.locale.messages?t.locale.messages:i.default;n[r]||(r=o.DEFAULT_LANGUAGE_UI,t.messages?u.Logger.warn(c.SCOPE_SC_CORE,"Locale ".concat(r," not found in messages configuration. Fallback to 'en'.")):u.Logger.warn(c.SCOPE_SC_CORE,"Locale ".concat(r," not found in sc-i18n package. Fallback to 'en'.")));try{return{messages:n[r],locale:r}}catch(e){return t.messages&&(n=i.default,u.Logger.error(c.SCOPE_SC_CORE,"Configuration Locale.messages doesn't contains ".concat(r,". Fallback to 'en' of 'sc-i18n'"))),{messages:n[o.LOCALE_EN],locale:o.DEFAULT_LANGUAGE_UI}}};var n,o=r(7523),i=(n=r(5698))&&n.__esModule?n:{default:n},a=r(9767),u=r(2137),c=r(3240),s=a.createIntl;t.default=s},149:(e,t,r)=>{t.__esModule=!0,t.isMobileNativeNotificationEnabled=i,t.isWebPushMessagingEnabled=function(){return!i()};var n=r(4357),o=r(2137);function i(){return(0,o.isClientSideRendering)()&&window[n.PLATFORM_KEY]&&window[n.PLATFORM_KEY]in n.PLATFORM||o.LocalStorageDB.checkifSupport()&&o.LocalStorageDB.get(n.PLATFORM_KEY)&&n.PLATFORMS.includes(o.LocalStorageDB.get(n.PLATFORM_KEY))}},2584:(e,t)=>{t.__esModule=!0,t.getCurrentPage=function(e,t){var r=new URLSearchParams(e),n=Object.fromEntries(r.entries());return(n.offset?parseInt(n.offset):0)/t+1}},2330:(e,t,r)=>{t.__esModule=!0,t.MODERATOR_ROLE=t.EDITOR_ROLE=t.COMMUNITY_CREATOR=t.ADMIN_ROLE=void 0,t.getUserRole=u,t.isAdmin=c,t.isBlocked=function(e){return e&&e.status&&e.status===n.SCUserStatus.BLOCKED},t.isCommunityCreator=function(e){return e&&1===e.id},t.isEditor=l,t.isModerator=s,t.isStaff=function(e){return c(e)||s(e)||l(e)};var n=r(9954),o="admin";t.ADMIN_ROLE=o;var i="moderator";t.MODERATOR_ROLE=i;var a="editor";function u(e){if(e&&e.role){var t=e.role;if(t===o)return o;if(t===i)return i;if(t===a)return a}return null}function c(e){return u(e)===o}function s(e){return u(e)===i}function l(e){return u(e)===a}t.EDITOR_ROLE=a,t.COMMUNITY_CREATOR=1},2517:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.validateHandleRefreshToken=t.validateHandleLogout=t.validateHandleAnonymousAction=t.validateGlobalPreferences=t.validateGeocodingApiKey=t.validateGeocoding=t.validateFeatures=t.validateContextProviders=t.validOptions=t.settingsOptions=t.sessionOptions=t.preferencesOptions=t.notificationsWebSocketOptions=t.notificationsWebPushMessagingOptions=t.notificationsOptions=t.notificationsMobileNativePushMessagingOptions=t.localeOptions=t.integrationsOptions=t.integrationsOpenAIOptions=t.integrationsGeocodingOptions=void 0,t.validateIntegrations=Z,t.validateMobileNativePushMessagingDisable=t.validateMobileNativePushMessaging=t.validateLocaleMessages=t.validateLocaleDefault=t.validateLocale=void 0,t.validateNotifications=L,t.validatePortal=t.validateOptions=t.validateOpenAISecretKey=t.validateOpenAI=void 0,t.validatePreferences=J,t.validateRouter=t.validateReactions=void 0,t.validateSession=C,t.validateTheme=t.validateSessionType=t.validateSessionClientId=t.validateSessionAuthTokenOption=void 0,t.validateVote=Q,t.voteOptions=t.validateWebSocketSecure=t.validateWebSocketPrefixPath=t.validateWebSocketDisableToastMessage=t.validateWebSocket=t.validateWebPushMessagingDisableToastMessage=t.validateWebPushMessagingApplicationServerKey=t.validateWebPushMessaging=void 0;var o,i=E(r(7523)),a=r(2137),u=E(r(4191)),c=r(3240),s=r(4688),l=r(2225),f=E(r(6506)),d=E(r(3232)),p=r(8461),h=E(r(1844)),v=E(r(4592)),y=E(r(6115)),g=E(r(3789)),m=E(r(7452));function _(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_=function(e){return e?r:t})(e)}function E(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=_(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e){var t=[],r=[];if(!e||!(0,a.isObject)(e))return t.push(s.ValidationError.ERROR_INVALID_SESSION),{errors:t,warnings:r,value:e};var n=Object.keys(Me),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=Me[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:o}}var T=function(e,t){var r=[];return t[u.SESSION_TYPE_OPTION]&&u.sessionTypes.includes(t[u.SESSION_TYPE_OPTION])||r.push(s.ValidationError.ERROR_INVALID_SESSION_TYPE),{errors:r,warnings:[],value:e}};t.validateSessionType=T;var w=function(e,t){var r=[];return!t[u.SESSION_TYPE_OPTION]||t[u.SESSION_TYPE_OPTION]!==u.OAUTH_SESSION&&t[u.SESSION_TYPE_OPTION]!==u.OAUTH_SESSION||t[u.SESSION_TYPE_OPTION]!==u.OAUTH_SESSION||t[u.SESSION_CLIENT_ID_OPTION]&&(0,a.isString)(t[u.SESSION_CLIENT_ID_OPTION])||r.push(s.ValidationError.ERROR_INVALID_SESSION_CLIENT_ID),{errors:r,warnings:[],value:e}};t.validateSessionClientId=w;var R=function(e,t){var r=[];return!t[u.SESSION_TYPE_OPTION]||t[u.SESSION_TYPE_OPTION]!==u.OAUTH_SESSION&&t[u.SESSION_TYPE_OPTION]!==u.JWT_SESSION||t[u.SESSION_AUTH_TOKEN_OPTION]&&!(0,a.isObject)(t[u.SESSION_AUTH_TOKEN_OPTION])&&r.push(s.ValidationError.ERROR_INVALID_SESSION_AUTH_TOKEN),{errors:r,warnings:[],value:e}};t.validateSessionAuthTokenOption=R;var A=function(e,t){var r=[],n=[];return!t[u.SESSION_TYPE_OPTION]||t[u.SESSION_TYPE_OPTION]!==u.OAUTH_SESSION&&t[u.SESSION_TYPE_OPTION]!==u.JWT_SESSION||(t.authToken&&!t.handleRefreshToken&&n.push(s.ValidationWarnings.WARNING_SESSION_REFRESH_TOKEN_CALLBACK_NOT_FOUND),t.handleRefreshToken&&!(0,a.isFunc)(t.handleRefreshToken)&&r.push(s.ValidationError.ERROR_INVALID_SESSION_REFRESH_TOKEN_CALLBACK)),{errors:r,warnings:n,value:e}};t.validateHandleRefreshToken=A;var P=function(e,t){var r=[];return t.handleLogout&&!(0,a.isFunc)(t.handleLogout)&&r.push(s.ValidationError.ERROR_INVALID_SESSION_LOGOUT_CALLBACK),{errors:r,warnings:[],value:e}};function L(e){var t=[],r=[];if(!e||!(0,a.isObject)(e))return{errors:t,warnings:r,value:f.DEFAULT_NOTIFICATIONS};var n=Object.keys(Be),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=Be[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:O(O({},f.DEFAULT_NOTIFICATIONS),o)}}t.validateHandleLogout=P;var I=function(e){var t=[],r=[];if(e&&!(0,a.isObject)(e))return t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET),{errors:t,warnings:r,v:e};var n=Object.keys(Ve),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=Ve[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:o}};t.validateWebSocket=I;var N=function(e){var t=[],r=[];return e?("boolean"!=typeof e&&t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_DISABLE_TOAST_MESSAGE),{errors:t,warnings:r,value:e}):{errors:t,warnings:r,value:f.DEFAULT_NOTIFICATIONS[f.NOTIFICATIONS_WEB_SOCKET_OPTION][f.NOTIFICATIONS_DISABLE_TOAST_MESSAGE_OPTION]}};t.validateWebSocketDisableToastMessage=N;var j=function(e){var t=[],r=[];return void 0===(null==e?void 0:e.toString())?{errors:t,warnings:r,value:f.DEFAULT_NOTIFICATIONS[f.NOTIFICATIONS_WEB_SOCKET_OPTION][f.NOTIFICATIONS_WEBSOCKET_SECURE_OPTION]}:("boolean"!=typeof e&&t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_SECURE),{errors:t,warnings:r,value:e})};t.validateWebSocketSecure=j;var k=function(e){var t=[];return e&&(0,a.isString)(e)||t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_PREFIX_PATH),{errors:t,warnings:[],value:e}};t.validateWebSocketPrefixPath=k;var U=function(e){var t=[],r=[];if(e&&!(0,a.isObject)(e))return t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING),{errors:t,warnings:r,v:e};var n=Object.keys(Ye),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=Ye[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:o}};t.validateWebPushMessaging=U;var x=function(e){var t=[],r=[];return void 0===e?{errors:t,warnings:r,value:f.DEFAULT_NOTIFICATIONS[f.NOTIFICATIONS_WEB_PUSH_MESSAGING_OPTION][f.NOTIFICATIONS_DISABLE_TOAST_MESSAGE_OPTION]}:("boolean"!=typeof e&&t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_DISABLE_TOAST_MESSAGE),{errors:t,warnings:r,value:e})};t.validateWebPushMessagingDisableToastMessage=x;var G=function(e){var t=[];return e&&((0,a.isString)(e)||t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_APPLICATION_SERVER_KEY)),{errors:t,warnings:[],value:e}};t.validateWebPushMessagingApplicationServerKey=G;var D=function(e){var t=[],r=[];if(e&&!(0,a.isObject)(e))return t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING),{errors:t,warnings:r,v:e};var n=Object.keys(qe),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=qe[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:o}};t.validateMobileNativePushMessaging=D;var M=function(e){var t=[],r=[];return void 0===e?{errors:t,warnings:r,value:f.DEFAULT_NOTIFICATIONS[f.NOTIFICATIONS_MOBILE_NATIVE_DISABLE_OPTION][f.NOTIFICATIONS_MOBILE_NATIVE_DISABLE_OPTION]}:("boolean"!=typeof e&&t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_MOBILE_PUSH_MESSAGING_DISABLE),{errors:t,warnings:r,value:e})};t.validateMobileNativePushMessagingDisable=M;var F=function(e){var t=[];return e&&(0,a.isString)(e)&&(0,a.isValidUrl)(e)||t.push(s.ValidationError.ERROR_INVALID_PORTAL),{errors:t,warnings:[],value:e}};t.validatePortal=F;var B=function(e,t){var r=[],n=[];return t.default?(0,a.isString)(e)&&(t[i.LOCALE_MESSAGES_OPTION]||i.LOCALES.includes(e))||r.push(s.ValidationError.ERROR_INVALID_LOCALE):n.push(s.ValidationWarnings.WARNING_LOCALE_FALLBACK),{errors:r,warnings:n,value:e}};t.validateLocaleDefault=B;var V=function(e){var t=[];return e.messages&&!(0,a.isObject)(e.messages)&&t.push(s.ValidationError.ERROR_INVALID_TRANSLATIONS),{errors:t,warnings:[],value:e}};t.validateLocaleMessages=V;var Y=function(e){var t=[],r=[];if(!e||!(0,a.isObject)(e)||(0,a.isObject)(e)&&!e.messages&&!e.default)return r.push(s.ValidationWarnings.WARNING_LOCALE_FALLBACK),{errors:t,warnings:r,v:e};var n=Object.keys(Fe),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=Fe[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:o}};t.validateLocale=Y;var q=function(e){var t=[],r=[];return e?(0,a.isObject)(e)?(e.routes&&!(0,a.isObject)(e.routes)||e.handleRoute&&!(0,a.isFunc)(e.handleRoute))&&t.push(s.ValidationError.ERROR_INVALID_ROUTER):t.push(s.ValidationError.ERROR_INVALID_ROUTER):r.push(s.ValidationWarnings.WARNING_ROUTER_FALLBACK),{errors:t,warnings:r,value:e}};t.validateRouter=q;var K=function(e){var t=[];return e&&!(0,a.isObject)(e)&&t.push(s.ValidationError.ERROR_INVALID_THEME),{errors:t,warnings:[],value:e}};t.validateTheme=K;var W=function(e){var t=[],r=[];return e?((0,a.isFunc)(e)||t.push(s.ValidationError.ERROR_INVALID_HANDLE_ANONYMOUS_ACTION),{errors:t,warnings:r,value:e}):(r.push(s.ValidationWarnings.WARNING_HANDLE_ANONYMOUS_ACTION_FALLBACK),{errors:t,warnings:r,value:function(){a.Logger.info(c.SCOPE_SC_CORE,"Attempting to perform an action that requires a logged user.")}})};t.validateHandleAnonymousAction=W;var H=function(e){var t=[],r=[];return e?(Array.isArray(e)?e.filter((function(e){return!l.DEFAULT_CONTEXT_PROVIDERS.includes(e)})).length>0&&t.push(s.ValidationError.ERROR_INVALID_PROVIDERS):t.push(s.ValidationError.ERROR_INVALID_PROVIDERS),{errors:t,warnings:r,value:e}):{errors:t,warnings:r,value:l.DEFAULT_CONTEXT_PROVIDERS}};t.validateContextProviders=H;var $=function(e,t){var r=[];return t[v.GLOBAL_PREFERENCES_OPTION]&&((0,a.isObject)(e)&&Object.keys(e).every((function(e){return/[a-zA-Z]+.[a-zA-Z]+/g.test(e)}))||r.push(s.ValidationError.ERROR_INVALID_GLOBAL_PREFERENCES)),{errors:r,warnings:[],value:e}};t.validateGlobalPreferences=$;var X=function(e,t){var r=[];return t[y.FEATURES_OPTION]&&(Array.isArray(e)||r.push(s.ValidationError.ERROR_INVALID_PREFERENCES_FEATURES)),{errors:r,warnings:[],value:e}};function J(e){var t=[],r=[],n=b(b({},v.GLOBAL_PREFERENCES_OPTION,v.DEFAULT_GLOBAL_PREFERENCES_OPTION),y.FEATURES_OPTION,y.DEFAULT_FEATURES_OPTION);if(e){if((0,a.isObject)(e)){var o=Object.keys(Ke),i=Object.keys(e).filter((function(e){return o.includes(e)})).reduce((function(n,o){var i=Ke[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:O(O({},n),i)}}return t.push(s.ValidationError.ERROR_INVALID_PREFERENCES),{errors:t,warnings:r,value:e}}return{errors:t,warnings:r,value:n}}t.validateFeatures=X;var z=function(e,t){var r=[];return t[g.VOTE_REACTIONS_OPTION]&&(Array.isArray(e)||r.push(s.ValidationError.ERROR_INVALID_VOTE_REACTIONS),Array.isArray(e)&&e.length>0&&e.filter((function(e){return null!==e.id&&null!==e.label&&null!==e.sentiment&&e.image&&null!==e.active})).length<e.length&&r.push(s.ValidationError.ERROR_INVALID_VOTE_REACTIONS_STRUCTURE)),{errors:r,warnings:[],value:e}};function Q(e){var t=[],r=[],n=b({},g.VOTE_REACTIONS_OPTION,g.DEFAULT_VOTE_REACTIONS_OPTION);if(e){if((0,a.isObject)(e)){var o=Object.keys(We),i=Object.keys(e).filter((function(e){return o.includes(e)})).reduce((function(n,o){var i=We[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:O(O({},n),i)}}return t.push(s.ValidationError.ERROR_INVALID_VOTE),{errors:t,warnings:r,value:e}}return{errors:t,warnings:r,value:n}}function Z(e){var t=[],r=[];if(!e||!(0,a.isObject)(e))return{errors:t,warnings:r,value:m.DEFAULT_INTEGRATIONS_OPTION};var n=Object.keys(He),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=He[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:O(O({},m.DEFAULT_INTEGRATIONS_OPTION),o)}}t.validateReactions=z;var ee=function(e){var t=[],r=[];if(e&&!(0,a.isObject)(e))return t.push(s.ValidationError.ERROR_INVALID_INTEGRATIONS_OPENAI),{errors:t,warnings:r,v:e};var n=Object.keys($e),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=$e[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:o}};t.validateOpenAI=ee;var te=function(e){var t=[],r=[];if(e&&!(0,a.isObject)(e))return t.push(s.ValidationError.ERROR_INVALID_INTEGRATIONS_GEOCODING),{errors:t,warnings:r,v:e};var n=Object.keys(Xe),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=Xe[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:o}};t.validateGeocoding=te;var re=function(e){var t=[];return e&&(0,a.isString)(e)||t.push(s.ValidationError.ERROR_INVALID_INTEGRATIONS_OPENAI_SECRETKEY),{errors:t,warnings:[],value:e}};t.validateOpenAISecretKey=re;var ne=function(e){var t=[];return e&&(0,a.isString)(e)||t.push(s.ValidationError.ERROR_INVALID_INTEGRATIONS_GEOCODING_APIKEY),{errors:t,warnings:[],value:e}};t.validateGeocodingApiKey=ne;var oe={name:p.PORTAL_OPTION,validator:F},ie={name:i.LOCALE_OPTION,validator:Y},ae={name:d.THEME_OPTION,validator:K},ue={name:p.ROUTER_OPTION,validator:q},ce={name:f.NOTIFICATIONS_OPTION,validator:L},se={name:u.SESSION_OPTION,validator:C},le={name:h.HANDLE_ANONYMOUS_ACTION_OPTION,validator:W},fe={name:l.CONTEXT_PROVIDERS_OPTION,validator:H},de={name:v.PREFERENCES_OPTION,validator:J},pe={name:g.VOTE_OPTION,validator:Q},he={name:m.INTEGRATIONS_OPTION,validator:Z},ve={name:u.SESSION_TYPE_OPTION,validator:T},ye={name:u.SESSION_CLIENT_ID_OPTION,validator:w},ge={name:u.SESSION_AUTH_TOKEN_OPTION,validator:R},me={name:u.SESSION_HANDLE_REFRESH_TOKEN_OPTION,validator:A},_e={name:u.SESSION_HANDLE_LOGOUT_OPTION,validator:P},Ee={name:i.LOCALE_DEFAULT_OPTION,validator:B},Se={name:i.LOCALE_MESSAGES_OPTION,validator:V},Oe={name:v.GLOBAL_PREFERENCES_OPTION,validator:$},be={name:y.FEATURES_OPTION,validator:X},Ce={name:f.NOTIFICATIONS_WEB_SOCKET_OPTION,validator:I},Te={name:f.NOTIFICATIONS_WEB_PUSH_MESSAGING_OPTION,validator:U},we={name:f.NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING_OPTION,validator:D},Re={name:f.NOTIFICATIONS_DISABLE_TOAST_MESSAGE_OPTION,validator:N},Ae={name:f.NOTIFICATIONS_WEBSOCKET_SECURE_OPTION,validator:j},Pe={name:f.NOTIFICATIONS_WEBSOCKET_PREFIX_PATH_OPTION,validator:k},Le={name:f.NOTIFICATIONS_DISABLE_TOAST_MESSAGE_OPTION,validator:x},Ie={name:f.NOTIFICATIONS_APPLICATION_SERVER_KEY_OPTION,validator:G},Ne={name:f.NOTIFICATIONS_MOBILE_NATIVE_DISABLE_OPTION,validator:M},je={name:g.VOTE_REACTIONS_OPTION,validator:z},ke={name:m.INTEGRATIONS_OPENAI_OPTION,validator:ee},Ue={name:m.INTEGRATIONS_OPENAI_SECRETKEY_OPTION,validator:re},xe={name:m.INTEGRATIONS_GEOCODING_OPTION,validator:te},Ge={name:m.INTEGRATIONS_GEOCODING_APIKEY_OPTION,validator:ne},De=(b(b(b(b(b(b(b(b(b(b(o={},oe.name,oe),ie.name,ie),ae.name,ae),ce.name,ce),ue.name,ue),se.name,se),le.name,le),fe.name,fe),de.name,de),pe.name,pe),b(o,he.name,he));t.settingsOptions=De;var Me=b(b(b(b(b({},ve.name,ve),ye.name,ye),ge.name,ge),me.name,me),_e.name,_e);t.sessionOptions=Me;var Fe=b(b({},Ee.name,Ee),Se.name,Se);t.localeOptions=Fe;var Be=b(b(b({},Ce.name,Ce),Te.name,Te),we.name,we);t.notificationsOptions=Be;var Ve=b(b(b({},Re.name,Re),Ae.name,Ae),Pe.name,Pe);t.notificationsWebSocketOptions=Ve;var Ye=b(b({},Le.name,Le),Ie.name,Ie);t.notificationsWebPushMessagingOptions=Ye;var qe=b({},Ne.name,Ne);t.notificationsMobileNativePushMessagingOptions=qe;var Ke=b(b({},Oe.name,Oe),be.name,be);t.preferencesOptions=Ke;var We=b({},je.name,je);t.voteOptions=We;var He=b(b({},ke.name,ke),xe.name,xe);t.integrationsOptions=He;var $e=b({},Ue.name,Ue);t.integrationsOpenAIOptions=$e;var Xe=b({},Ge.name,Ge);t.integrationsGeocodingOptions=Xe;var Je=O({},De);t.validOptions=Je,t.validateOptions=function(e,t){var r=new s.ValidationResult(c.SCOPE_SC_CORE);if(!e)return r.addError(s.ValidationError.ERROR_INVALID_CONF,e),{validationResult:r,values:e};var n=Object.keys(t),o=O(O({},e),Object.keys(t).reduce((function(e,t){return e[t]=null,e}),{})),i=Object.keys(o).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=t[o].validator(e[o]);return i.errors.map((function(e){return r.addError(e,i.value)})),i.warnings.map((function(e){return r.addWarnings(e,i.value)})),n[o]=i.value,n}),{});return{validationResult:r,settings:i}}},9954:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SCPaymentPriceCurrencyType=t.SCCommunityEnvironment=t.SCCommunitySubscriptionTier=t.SCLiveStreamViewType=t.SCLiveStreamConnectionDetailsErrorType=t.SCCourseLessonStatusType=t.SCCourseLessonCompletionStatusType=t.SCCourseTypologyType=t.SCCourseLessonTypologyType=t.SCCourseJoinStatusType=t.SCCoursePrivacyType=t.SCOnBoardingStepIdType=t.SCOnBoardingStepStatusType=t.SCOnBoardingStepType=t.SCEventDateFilterType=t.SCEventLocationFilterType=t.SCEventLocationType=t.SCEventRecurrenceType=t.SCEventSubscriptionStatusType=t.SCEventPrivacyType=t.SCPrivateMessageType=t.SCGroupSubscriptionStatusType=t.SCGroupPrivacyType=t.SCMetadataTypeFieldType=t.SCPrivateMessageStatusType=t.SuggestionType=t.SCUserStatus=t.SCPrizeUserStatusType=t.SCMessageFileType=t.SCPreferenceName=t.SCPreferenceSection=t.SCNotificationTopicType=t.SCNotificationTypologyType=t.SCLanguageType=t.SCLegalPagePoliciesType=t.SCIncubatorStatusType=t.SCConnectionStatus=t.SCFlagModerationStatusType=t.SCFlagTypeEnum=t.SCFeedUnitActivityTypologyType=t.SCFeedTypologyType=t.SCFeatureName=t.SCDeviceApnsTypeEnum=t.SCDeviceTypeEnum=t.SCCustomPageTypeEnum=t.SCCustomAdvPosition=t.SCCommentsOrderBy=t.SCCategoryAutoFollowType=t.SCBroadcastMessageBannerType=t.SCContributionType=void 0,t.SCCourseOrderingUsersType=t.SCCheckoutSessionUIMode=t.SCPaymentRecurringInterval=t.SCPaymentProductTemplateType=t.SCCheckoutSessionStatus=t.SCContentType=void 0;var n=r(2555);Object.defineProperty(t,"SCContributionType",{enumerable:!0,get:function(){return n.SCContributionType}}),Object.defineProperty(t,"SCBroadcastMessageBannerType",{enumerable:!0,get:function(){return n.SCBroadcastMessageBannerType}}),Object.defineProperty(t,"SCCategoryAutoFollowType",{enumerable:!0,get:function(){return n.SCCategoryAutoFollowType}}),Object.defineProperty(t,"SCCommentsOrderBy",{enumerable:!0,get:function(){return n.SCCommentsOrderBy}}),Object.defineProperty(t,"SCCustomAdvPosition",{enumerable:!0,get:function(){return n.SCCustomAdvPosition}}),Object.defineProperty(t,"SCCustomPageTypeEnum",{enumerable:!0,get:function(){return n.SCCustomPageTypeEnum}}),Object.defineProperty(t,"SCDeviceTypeEnum",{enumerable:!0,get:function(){return n.SCDeviceTypeEnum}}),Object.defineProperty(t,"SCDeviceApnsTypeEnum",{enumerable:!0,get:function(){return n.SCDeviceApnsTypeEnum}}),Object.defineProperty(t,"SCFeatureName",{enumerable:!0,get:function(){return n.SCFeatureName}}),Object.defineProperty(t,"SCFeedTypologyType",{enumerable:!0,get:function(){return n.SCFeedTypologyType}}),Object.defineProperty(t,"SCFeedUnitActivityTypologyType",{enumerable:!0,get:function(){return n.SCFeedUnitActivityTypologyType}}),Object.defineProperty(t,"SCFlagTypeEnum",{enumerable:!0,get:function(){return n.SCFlagTypeEnum}}),Object.defineProperty(t,"SCFlagModerationStatusType",{enumerable:!0,get:function(){return n.SCFlagModerationStatusType}}),Object.defineProperty(t,"SCConnectionStatus",{enumerable:!0,get:function(){return n.SCConnectionStatus}}),Object.defineProperty(t,"SCIncubatorStatusType",{enumerable:!0,get:function(){return n.SCIncubatorStatusType}}),Object.defineProperty(t,"SCLegalPagePoliciesType",{enumerable:!0,get:function(){return n.SCLegalPagePoliciesType}}),Object.defineProperty(t,"SCLanguageType",{enumerable:!0,get:function(){return n.SCLanguageType}}),Object.defineProperty(t,"SCNotificationTypologyType",{enumerable:!0,get:function(){return n.SCNotificationTypologyType}}),Object.defineProperty(t,"SCNotificationTopicType",{enumerable:!0,get:function(){return n.SCNotificationTopicType}}),Object.defineProperty(t,"SCPreferenceSection",{enumerable:!0,get:function(){return n.SCPreferenceSection}}),Object.defineProperty(t,"SCPreferenceName",{enumerable:!0,get:function(){return n.SCPreferenceName}}),Object.defineProperty(t,"SCMessageFileType",{enumerable:!0,get:function(){return n.SCMessageFileType}}),Object.defineProperty(t,"SCPrizeUserStatusType",{enumerable:!0,get:function(){return n.SCPrizeUserStatusType}}),Object.defineProperty(t,"SCUserStatus",{enumerable:!0,get:function(){return n.SCUserStatus}}),Object.defineProperty(t,"SuggestionType",{enumerable:!0,get:function(){return n.SuggestionType}}),Object.defineProperty(t,"SCPrivateMessageStatusType",{enumerable:!0,get:function(){return n.SCPrivateMessageStatusType}}),Object.defineProperty(t,"SCMetadataTypeFieldType",{enumerable:!0,get:function(){return n.SCMetadataTypeFieldType}}),Object.defineProperty(t,"SCGroupPrivacyType",{enumerable:!0,get:function(){return n.SCGroupPrivacyType}}),Object.defineProperty(t,"SCGroupSubscriptionStatusType",{enumerable:!0,get:function(){return n.SCGroupSubscriptionStatusType}}),Object.defineProperty(t,"SCPrivateMessageType",{enumerable:!0,get:function(){return n.SCPrivateMessageType}}),Object.defineProperty(t,"SCEventPrivacyType",{enumerable:!0,get:function(){return n.SCEventPrivacyType}}),Object.defineProperty(t,"SCEventSubscriptionStatusType",{enumerable:!0,get:function(){return n.SCEventSubscriptionStatusType}}),Object.defineProperty(t,"SCEventRecurrenceType",{enumerable:!0,get:function(){return n.SCEventRecurrenceType}}),Object.defineProperty(t,"SCEventLocationType",{enumerable:!0,get:function(){return n.SCEventLocationType}}),Object.defineProperty(t,"SCEventLocationFilterType",{enumerable:!0,get:function(){return n.SCEventLocationFilterType}}),Object.defineProperty(t,"SCEventDateFilterType",{enumerable:!0,get:function(){return n.SCEventDateFilterType}}),Object.defineProperty(t,"SCOnBoardingStepType",{enumerable:!0,get:function(){return n.SCOnBoardingStepType}}),Object.defineProperty(t,"SCOnBoardingStepStatusType",{enumerable:!0,get:function(){return n.SCOnBoardingStepStatusType}}),Object.defineProperty(t,"SCOnBoardingStepIdType",{enumerable:!0,get:function(){return n.SCOnBoardingStepIdType}}),Object.defineProperty(t,"SCCoursePrivacyType",{enumerable:!0,get:function(){return n.SCCoursePrivacyType}}),Object.defineProperty(t,"SCCourseJoinStatusType",{enumerable:!0,get:function(){return n.SCCourseJoinStatusType}}),Object.defineProperty(t,"SCCourseLessonTypologyType",{enumerable:!0,get:function(){return n.SCCourseLessonTypologyType}}),Object.defineProperty(t,"SCCourseTypologyType",{enumerable:!0,get:function(){return n.SCCourseTypologyType}}),Object.defineProperty(t,"SCCourseLessonStatusType",{enumerable:!0,get:function(){return n.SCCourseLessonStatusType}}),Object.defineProperty(t,"SCCourseLessonCompletionStatusType",{enumerable:!0,get:function(){return n.SCCourseLessonCompletionStatusType}}),Object.defineProperty(t,"SCLiveStreamConnectionDetailsErrorType",{enumerable:!0,get:function(){return n.SCLiveStreamConnectionDetailsErrorType}}),Object.defineProperty(t,"SCLiveStreamViewType",{enumerable:!0,get:function(){return n.SCLiveStreamViewType}}),Object.defineProperty(t,"SCCommunitySubscriptionTier",{enumerable:!0,get:function(){return n.SCCommunitySubscriptionTier}}),Object.defineProperty(t,"SCCommunityEnvironment",{enumerable:!0,get:function(){return n.SCCommunityEnvironment}}),Object.defineProperty(t,"SCPaymentPriceCurrencyType",{enumerable:!0,get:function(){return n.SCPaymentPriceCurrencyType}}),Object.defineProperty(t,"SCContentType",{enumerable:!0,get:function(){return n.SCContentType}}),Object.defineProperty(t,"SCCheckoutSessionStatus",{enumerable:!0,get:function(){return n.SCCheckoutSessionStatus}}),Object.defineProperty(t,"SCPaymentProductTemplateType",{enumerable:!0,get:function(){return n.SCPaymentProductTemplateType}}),Object.defineProperty(t,"SCPaymentRecurringInterval",{enumerable:!0,get:function(){return n.SCPaymentRecurringInterval}}),Object.defineProperty(t,"SCCheckoutSessionUIMode",{enumerable:!0,get:function(){return n.SCCheckoutSessionUIMode}}),Object.defineProperty(t,"SCCourseOrderingUsersType",{enumerable:!0,get:function(){return n.SCCourseOrderingUsersType}})},6746:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCBroadcastMessageBannerType=void 0,(r=t.SCBroadcastMessageBannerType||(t.SCBroadcastMessageBannerType={})).HTML="html_banner",r.NOTIFICATION="notification_banner"},9757:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCCategoryAutoFollowType=void 0,(r=t.SCCategoryAutoFollowType||(t.SCCategoryAutoFollowType={})).NONE="none",r.DEFAULT="default",r.FORCED="forced"},9786:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCCommentsOrderBy=void 0,(r=t.SCCommentsOrderBy||(t.SCCommentsOrderBy={})).ADDED_AT_DESC="-added_at",r.ADDED_AT_ASC="added_at",r.CONNECTION_DESC="-connection",r.CONNECTION_ASC="connection"},1609:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCContributeStatusType=t.SCContributionType=void 0,(n=t.SCContributionType||(t.SCContributionType={})).DISCUSSION="discussion",n.POST="post",n.STATUS="status",n.COMMENT="comment",(r=t.SCContributeStatusType||(t.SCContributeStatusType={})).OPEN="open",r.IGNORED="ignored",r.HIDDEN="hidden",r.DELETED="deleted"},1631:(e,t)=>{var r,n,o,i,a,u,c;Object.defineProperty(t,"__esModule",{value:!0}),t.SCCourseLessonCompletionStatusType=t.SCCourseLessonStatusType=t.SCCourseLessonTypologyType=t.SCCourseOrderingUsersType=t.SCCourseJoinStatusType=t.SCCourseTypologyType=t.SCCoursePrivacyType=void 0,(c=t.SCCoursePrivacyType||(t.SCCoursePrivacyType={})).OPEN="open",c.PRIVATE="private",c.SECRET="secret",c.DRAFT="",(u=t.SCCourseTypologyType||(t.SCCourseTypologyType={})).SELF="self-paced",u.STRUCTURED="structured",u.SCHEDULED="scheduled",(a=t.SCCourseJoinStatusType||(t.SCCourseJoinStatusType={})).JOINED="joined",a.REQUESTED="requested",a.INVITED="invited",a.MANAGER="manager",a.CREATOR="creator",a.PAYMENT_WAITING="payment_waiting",(i=t.SCCourseOrderingUsersType||(t.SCCourseOrderingUsersType={})).JOINED_AT="joined_at",i.LAST_ACTIVE_AT="last_active_at",(o=t.SCCourseLessonTypologyType||(t.SCCourseLessonTypologyType={})).LESSON="lesson",o.QUIZ="quiz",(n=t.SCCourseLessonStatusType||(t.SCCourseLessonStatusType={})).DRAFT="draft",n.PUBLISHED="published",(r=t.SCCourseLessonCompletionStatusType||(t.SCCourseLessonCompletionStatusType={})).UNCOMPLETED="uncompleted",r.COMPLETED="completed",r.FAILED="failed"},9137:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCCustomAdvPosition=void 0,(r=t.SCCustomAdvPosition||(t.SCCustomAdvPosition={})).POSITION_BELOW_TOPBAR="BELOW_TOPBAR",r.POSITION_BELOW_FEED_OBJECT="BELOW_THE_POST",r.POSITION_IN_COMMENTS="IN_POST_COMMENTS",r.POSITION_RELATED_POSTS_COLUMN="RELATED_POSTS_COLUMN",r.POSITION_FEED_SIDEBAR="TOOLS_COLUMN",r.POSITION_FEED="IN_STREAM"},6416:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCCustomPageTypeEnum=void 0,(r=t.SCCustomPageTypeEnum||(t.SCCustomPageTypeEnum={})).NORMAL="normal",r.LEGAL="legal"},6225:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCDeviceApnsTypeEnum=t.SCDeviceGcmTypeEnum=t.SCDeviceTypeEnum=void 0,(n=t.SCDeviceTypeEnum||(t.SCDeviceTypeEnum={})).ANDROID="Android",n.IOS="iOS",(r=t.SCDeviceGcmTypeEnum||(t.SCDeviceGcmTypeEnum={})).GCM="GCM",r.FCM="FCM",(t.SCDeviceApnsTypeEnum||(t.SCDeviceApnsTypeEnum={})).APNS="APNS"},1782:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCCommunityEnvironment=void 0,(r=t.SCCommunityEnvironment||(t.SCCommunityEnvironment={})).STAGE="stage",r.PRODUCTION="prod"},6905:(e,t)=>{var r,n,o,i,a,u;Object.defineProperty(t,"__esModule",{value:!0}),t.SCEventDateFilterType=t.SCEventRecurrenceType=t.SCEventLocationFilterType=t.SCEventLocationType=t.SCEventSubscriptionStatusType=t.SCEventPrivacyType=void 0,(u=t.SCEventPrivacyType||(t.SCEventPrivacyType={})).PUBLIC="public",u.PRIVATE="private",(a=t.SCEventSubscriptionStatusType||(t.SCEventSubscriptionStatusType={})).SUBSCRIBED="subscribed",a.REQUESTED="requested",a.INVITED="invited",a.GOING="going",a.NOT_GOING="not_going",(i=t.SCEventLocationType||(t.SCEventLocationType={})).PERSON="in person",i.ONLINE="virtual",i.LIVESTREAM="live_stream",(o=t.SCEventLocationFilterType||(t.SCEventLocationFilterType={})).ANY="any",o.PERSON="in person",o.ONLINE="virtual",(n=t.SCEventRecurrenceType||(t.SCEventRecurrenceType={})).NEVER="never",n.DAILY="daily",n.WEEKLY="weekly",n.MONTHLY="monthly",(r=t.SCEventDateFilterType||(t.SCEventDateFilterType={})).ALL="all",r.TODAY="today",r.TOMORROW="tomorrow",r.THIS_WEEK="this_week",r.NEXT_WEEK="next_week",r.THIS_MONTH="this_month",r.NOT_PAST="not_past",r.PAST="past"},4742:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCFeatureName=void 0,(r=t.SCFeatureName||(t.SCFeatureName={})).INTERESTS="interests",r.CUSTOMIZE="customize",r.ADDONS="addons",r.DOMAIN="domain",r.SOCIAL_PROVIDERS="social_providers",r.COMMUNITY_SUBSCRIPTION="community_subscription",r.SEO="seo",r.ADVERTISING="advertising",r.GOOGLE_CLOUD_API="google_cloud_api",r.HOTJAR="hotjar",r.SQREEN="sqreen",r.INCUBATORS="incubators",r.CMS="cms",r.LEGAL_PAGES="legal_pages",r.SCORING="scoring",r.USER_ROLES="user_roles",r.EMAIL_MANAGER="email_manager",r.LOYALTY="loyalty",r.BROADCAST="broadcast",r.INVITATION="invitation",r.APP_SETTINGS="app_settings",r.MODERATION_FLAGS="moderation_flags",r.MODERATION_CONTENTS="moderation_contents",r.MODERATION_USERS_BLOCKED="moderation_users_blocked",r.MODERATION_USERS="moderation_users",r.DATA_PROVISIONING_DASHBOARD="data_provisioning_dashboard",r.DATA_PROVISIONING_USERS="data_provisioning_users",r.DATA_PROVISIONING_CONTENTS="data_provisioning_contents",r.DATA_PROVISIONING_INTERESTS="data_provisioning_interests",r.DATA_PROVISIONING_POLLS="data_provisioning_polls",r.DATA_PROVISIONING_REPORTS="data_provisioning_reports",r.REGISTRATION_ALERTS="registration_alerts",r.SOCIAL_SHARE="social_share",r.FEED_SETTINGS="stream_settings",r.TAGGING="tagging",r.API_V2="api_v2",r.WEBHOOK="webhook",r.HEADLESS="headless",r.CUSTOMIZE_HEADLESS="customize_headless",r.SYSTEM_PAGES="system_pages",r.REACTION="reaction",r.GROUPING="grouping",r.EVENT="event",r.LIVE_STREAM="live_stream",r.PAYMENTS="payments",r.COURSE="course"},7787:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCFeedUnitActivityTypologyType=t.SCFeedTypologyType=void 0,(n=t.SCFeedTypologyType||(t.SCFeedTypologyType={})).HOME="home",n.EXPLORE="explore",n.CATEGORY="category",n.GROUP="group",n.EVENT="event",(r=t.SCFeedUnitActivityTypologyType||(t.SCFeedUnitActivityTypologyType={})).COMMENT="comment",r.VOTE="vote",r.POLLVOTE="pollvote",r.FOLLOW="follow"},5792:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCFlagModerationStatusType=t.SCFlagTypeEnum=void 0,(n=t.SCFlagTypeEnum||(t.SCFlagTypeEnum={}))[n.SPAM=0]="SPAM",n[n.AGGRESSIVE=1]="AGGRESSIVE",n[n.VULGAR=2]="VULGAR",n[n.POOR=3]="POOR",n[n.OFFTOPIC=4]="OFFTOPIC",(r=t.SCFlagModerationStatusType||(t.SCFlagModerationStatusType={})).IGNORED="ignored",r.DELETED="deleted",r.HIDDEN="hidden"},4812:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCConnectionStatus=void 0,(r=t.SCConnectionStatus||(t.SCConnectionStatus={})).CONNECTED="connected",r.CONNECTION_REQUEST_SENT="sent_connection_request",r.CONNECTION_REQUEST_RECEIVED="received_connection_request"},221:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCGroupSubscriptionStatusType=t.SCGroupPrivacyType=void 0,(n=t.SCGroupPrivacyType||(t.SCGroupPrivacyType={})).PUBLIC="public",n.PRIVATE="private",(r=t.SCGroupSubscriptionStatusType||(t.SCGroupSubscriptionStatusType={})).SUBSCRIBED="subscribed",r.REQUESTED="requested",r.INVITED="invited",r.PAYMENT_WAITING="payment_waiting"},4888:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCIncubatorStatusType=void 0,(r=t.SCIncubatorStatusType||(t.SCIncubatorStatusType={}))[r.PENDING=0]="PENDING",r[r.PROPOSAL=1]="PROPOSAL",r[r.APPROVED=2]="APPROVED",r[r.IGNORED=3]="IGNORED"},2555:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SCLiveStreamViewType=t.SCLiveStreamConnectionDetailsErrorType=t.SCCourseOrderingUsersType=t.SCCourseLessonCompletionStatusType=t.SCCourseTypologyType=t.SCCourseLessonStatusType=t.SCCourseLessonTypologyType=t.SCCourseJoinStatusType=t.SCCoursePrivacyType=t.SCOnBoardingStepIdType=t.SCOnBoardingStepStatusType=t.SCOnBoardingStepType=t.SCEventLocationFilterType=t.SCEventDateFilterType=t.SCEventLocationType=t.SCEventRecurrenceType=t.SCEventSubscriptionStatusType=t.SCEventPrivacyType=t.SCGroupSubscriptionStatusType=t.SCGroupPrivacyType=t.SCDeviceTypeEnum=t.SCDeviceApnsTypeEnum=t.SCConnectionStatus=t.SuggestionType=t.SCContributeStatusType=t.SCContributionType=t.SCLegalPagePoliciesType=t.SCFeatureName=t.SCPreferenceName=t.SCPreferenceSection=t.SCCustomPageTypeEnum=t.SCFlagModerationStatusType=t.SCFlagTypeEnum=t.SCPrizeUserStatusType=t.SCIncubatorStatusType=t.SCNotificationTopicType=t.SCNotificationTypologyType=t.SCPrivateMessageType=t.SCMessageFileType=t.SCPrivateMessageStatusType=t.SCCommentsOrderBy=t.SCFeedTypologyType=t.SCFeedUnitActivityTypologyType=t.SCCustomAdvPosition=t.SCCategoryAutoFollowType=t.SCMetadataTypeFieldType=t.SCUserReputationType=t.SCUserStatus=t.SCLanguageType=t.SCBroadcastMessageBannerType=void 0,t.SCPaymentRecurringInterval=t.SCCheckoutSessionUIMode=t.SCPaymentProductTemplateType=t.SCCheckoutSessionStatus=t.SCContentType=t.SCPaymentPriceCurrencyType=t.SCCommunityEnvironment=t.SCCommunitySubscriptionTier=void 0;var n=r(6746);Object.defineProperty(t,"SCBroadcastMessageBannerType",{enumerable:!0,get:function(){return n.SCBroadcastMessageBannerType}});var o=r(9137);Object.defineProperty(t,"SCCustomAdvPosition",{enumerable:!0,get:function(){return o.SCCustomAdvPosition}});var i=r(9742);Object.defineProperty(t,"SCLanguageType",{enumerable:!0,get:function(){return i.SCLanguageType}});var a=r(8099);Object.defineProperty(t,"SCUserReputationType",{enumerable:!0,get:function(){return a.SCUserReputationType}}),Object.defineProperty(t,"SCUserStatus",{enumerable:!0,get:function(){return a.SCUserStatus}});var u=r(9757);Object.defineProperty(t,"SCCategoryAutoFollowType",{enumerable:!0,get:function(){return u.SCCategoryAutoFollowType}});var c=r(3529);Object.defineProperty(t,"SCMetadataTypeFieldType",{enumerable:!0,get:function(){return c.SCMetadataTypeFieldType}});var s=r(9786);Object.defineProperty(t,"SCCommentsOrderBy",{enumerable:!0,get:function(){return s.SCCommentsOrderBy}});var l=r(9937);Object.defineProperty(t,"SCMessageFileType",{enumerable:!0,get:function(){return l.SCMessageFileType}}),Object.defineProperty(t,"SCPrivateMessageStatusType",{enumerable:!0,get:function(){return l.SCPrivateMessageStatusType}}),Object.defineProperty(t,"SCPrivateMessageType",{enumerable:!0,get:function(){return l.SCPrivateMessageType}});var f=r(4888);Object.defineProperty(t,"SCIncubatorStatusType",{enumerable:!0,get:function(){return f.SCIncubatorStatusType}});var d=r(689);Object.defineProperty(t,"SCPrizeUserStatusType",{enumerable:!0,get:function(){return d.SCPrizeUserStatusType}});var p=r(7787);Object.defineProperty(t,"SCFeedTypologyType",{enumerable:!0,get:function(){return p.SCFeedTypologyType}}),Object.defineProperty(t,"SCFeedUnitActivityTypologyType",{enumerable:!0,get:function(){return p.SCFeedUnitActivityTypologyType}});var h=r(3500);Object.defineProperty(t,"SCNotificationTopicType",{enumerable:!0,get:function(){return h.SCNotificationTopicType}}),Object.defineProperty(t,"SCNotificationTypologyType",{enumerable:!0,get:function(){return h.SCNotificationTypologyType}});var v=r(5792);Object.defineProperty(t,"SCFlagModerationStatusType",{enumerable:!0,get:function(){return v.SCFlagModerationStatusType}}),Object.defineProperty(t,"SCFlagTypeEnum",{enumerable:!0,get:function(){return v.SCFlagTypeEnum}});var y=r(6416);Object.defineProperty(t,"SCCustomPageTypeEnum",{enumerable:!0,get:function(){return y.SCCustomPageTypeEnum}});var g=r(4609);Object.defineProperty(t,"SCPreferenceSection",{enumerable:!0,get:function(){return g.SCPreferenceSection}}),Object.defineProperty(t,"SCPreferenceName",{enumerable:!0,get:function(){return g.SCPreferenceName}});var m=r(4742);Object.defineProperty(t,"SCFeatureName",{enumerable:!0,get:function(){return m.SCFeatureName}});var _=r(7208);Object.defineProperty(t,"SCLegalPagePoliciesType",{enumerable:!0,get:function(){return _.SCLegalPagePoliciesType}});var E=r(1609);Object.defineProperty(t,"SCContributeStatusType",{enumerable:!0,get:function(){return E.SCContributeStatusType}}),Object.defineProperty(t,"SCContributionType",{enumerable:!0,get:function(){return E.SCContributionType}});var S=r(6405);Object.defineProperty(t,"SuggestionType",{enumerable:!0,get:function(){return S.SuggestionType}});var O=r(4812);Object.defineProperty(t,"SCConnectionStatus",{enumerable:!0,get:function(){return O.SCConnectionStatus}});var b=r(6225);Object.defineProperty(t,"SCDeviceApnsTypeEnum",{enumerable:!0,get:function(){return b.SCDeviceApnsTypeEnum}}),Object.defineProperty(t,"SCDeviceTypeEnum",{enumerable:!0,get:function(){return b.SCDeviceTypeEnum}});var C=r(221);Object.defineProperty(t,"SCGroupPrivacyType",{enumerable:!0,get:function(){return C.SCGroupPrivacyType}}),Object.defineProperty(t,"SCGroupSubscriptionStatusType",{enumerable:!0,get:function(){return C.SCGroupSubscriptionStatusType}});var T=r(6905);Object.defineProperty(t,"SCEventPrivacyType",{enumerable:!0,get:function(){return T.SCEventPrivacyType}}),Object.defineProperty(t,"SCEventRecurrenceType",{enumerable:!0,get:function(){return T.SCEventRecurrenceType}}),Object.defineProperty(t,"SCEventLocationType",{enumerable:!0,get:function(){return T.SCEventLocationType}}),Object.defineProperty(t,"SCEventDateFilterType",{enumerable:!0,get:function(){return T.SCEventDateFilterType}}),Object.defineProperty(t,"SCEventLocationFilterType",{enumerable:!0,get:function(){return T.SCEventLocationFilterType}}),Object.defineProperty(t,"SCEventSubscriptionStatusType",{enumerable:!0,get:function(){return T.SCEventSubscriptionStatusType}});var w=r(1631);Object.defineProperty(t,"SCCoursePrivacyType",{enumerable:!0,get:function(){return w.SCCoursePrivacyType}}),Object.defineProperty(t,"SCCourseJoinStatusType",{enumerable:!0,get:function(){return w.SCCourseJoinStatusType}}),Object.defineProperty(t,"SCCourseLessonTypologyType",{enumerable:!0,get:function(){return w.SCCourseLessonTypologyType}}),Object.defineProperty(t,"SCCourseLessonStatusType",{enumerable:!0,get:function(){return w.SCCourseLessonStatusType}}),Object.defineProperty(t,"SCCourseTypologyType",{enumerable:!0,get:function(){return w.SCCourseTypologyType}}),Object.defineProperty(t,"SCCourseLessonCompletionStatusType",{enumerable:!0,get:function(){return w.SCCourseLessonCompletionStatusType}}),Object.defineProperty(t,"SCCourseOrderingUsersType",{enumerable:!0,get:function(){return w.SCCourseOrderingUsersType}});var R=r(6877);Object.defineProperty(t,"SCLiveStreamViewType",{enumerable:!0,get:function(){return R.SCLiveStreamViewType}}),Object.defineProperty(t,"SCLiveStreamConnectionDetailsErrorType",{enumerable:!0,get:function(){return R.SCLiveStreamConnectionDetailsErrorType}});var A=r(1447);Object.defineProperty(t,"SCOnBoardingStepType",{enumerable:!0,get:function(){return A.SCOnBoardingStepType}}),Object.defineProperty(t,"SCOnBoardingStepStatusType",{enumerable:!0,get:function(){return A.SCOnBoardingStepStatusType}}),Object.defineProperty(t,"SCOnBoardingStepIdType",{enumerable:!0,get:function(){return A.SCOnBoardingStepIdType}});var P=r(6140);Object.defineProperty(t,"SCCommunitySubscriptionTier",{enumerable:!0,get:function(){return P.SCCommunitySubscriptionTier}});var L=r(1782);Object.defineProperty(t,"SCCommunityEnvironment",{enumerable:!0,get:function(){return L.SCCommunityEnvironment}});var I=r(6217);Object.defineProperty(t,"SCPaymentPriceCurrencyType",{enumerable:!0,get:function(){return I.SCPaymentPriceCurrencyType}}),Object.defineProperty(t,"SCContentType",{enumerable:!0,get:function(){return I.SCContentType}}),Object.defineProperty(t,"SCCheckoutSessionStatus",{enumerable:!0,get:function(){return I.SCCheckoutSessionStatus}}),Object.defineProperty(t,"SCPaymentProductTemplateType",{enumerable:!0,get:function(){return I.SCPaymentProductTemplateType}}),Object.defineProperty(t,"SCCheckoutSessionUIMode",{enumerable:!0,get:function(){return I.SCCheckoutSessionUIMode}}),Object.defineProperty(t,"SCPaymentRecurringInterval",{enumerable:!0,get:function(){return I.SCPaymentRecurringInterval}})},7208:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCLegalPagePoliciesType=void 0,(r=t.SCLegalPagePoliciesType||(t.SCLegalPagePoliciesType={})).TERMS_AND_CONDITIONS="tec",r.PRIVACY="privacy"},6877:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCLiveStreamConnectionDetailsErrorType=t.SCLiveStreamViewType=void 0,(n=t.SCLiveStreamViewType||(t.SCLiveStreamViewType={})).GALLERY="gallery",n.SPEAKER="speaker",(r=t.SCLiveStreamConnectionDetailsErrorType||(t.SCLiveStreamConnectionDetailsErrorType={})).LIVE_STREAM_IS_CLOSED="LIVE_STREAM_IS_CLOSED",r.MONTHLY_MINUTE_LIMIT_REACHED="MONTHLY_MINUTE_LIMIT_REACHED",r.WAITING_HOST_TO_START_LIVE_STREAM="WAITING_HOST_TO_START_LIVE_STREAM",r.PARTICIPANTS_LIMIT_REACHED="PARTICIPANTS_LIMIT_REACHED",r.PARTICIPATE_THE_EVENT_TO_JOIN_LIVE_STREAM="PARTICIPATE_THE_EVENT_TO_JOIN_LIVE_STREAM",r.USER_BANNED_FOR_THIS_LIVE_STREAM="USER_BANNED_FOR_THIS_LIVE_STREAM"},9742:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCLanguageType=void 0,(r=t.SCLanguageType||(t.SCLanguageType={})).EN="en",r.IT="it"},3529:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCMetadataTypeFieldType=void 0,(r=t.SCMetadataTypeFieldType||(t.SCMetadataTypeFieldType={})).STRING="string",r.EMAIL="email",r.URL="url",r.ENUM="enum",r.PHONE_NUMBER="phone_number",r.CHECKBOX="checkbox"},3500:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCNotificationTopicType=t.SCNotificationTypologyType=void 0,(n=t.SCNotificationTypologyType||(t.SCNotificationTypologyType={})).COMMENT="comment",n.NESTED_COMMENT="nested_comment",n.CONNECTION_REQUEST="connection_request",n.CONNECTION_ACCEPT="connection_accept",n.CONNECTION_REMOVE="connection_remove",n.CONNECTION_REJECT="connection_reject",n.CONNECTION_CANCEL_REJECT="connection_cancel_reject",n.CONNECTION_CANCEL_REQUEST="connection_cancel_request",n.MENTION="mention",n.VOTE_UP="vote_up",n.FOLLOW="follow",n.PRIVATE_MESSAGE="private_message",n.DELETE_PRIVATE_MESSAGE="delete_private_message",n.DELETED_FOR_ADVERTISING="deleted_for_advertising",n.DELETED_FOR_AGGRESSIVE="deleted_for_aggressive",n.DELETED_FOR_VULGAR="deleted_for_vulgar",n.DELETED_FOR_POOR="deleted_for_poor",n.DELETED_FOR_OFFTOPIC="deleted_for_offtopic",n.UNDELETED_FOR="undeleted_for",n.COLLAPSED_FOR_ADVERTISING="collapsed_for_advertising",n.COLLAPSED_FOR_AGGRESSIVE="collapsed_for_aggressive",n.COLLAPSED_FOR_VULGAR="collapsed_for_vulgar",n.COLLAPSED_FOR_POOR="collapsed_for_poor",n.COLLAPSED_FOR_OFFTOPIC="collapsed_for_offtopic",n.USER_FOLLOW="user_follow",n.USER_UNFOLLOW="user_unfollow",n.KINDLY_NOTICE_ADVERTISING="kindly_notice_advertising",n.KINDLY_NOTICE_AGGRESSIVE="kindly_notice_aggressive",n.KINDLY_NOTICE_VULGAR="kindly_notice_vulgar",n.KINDLY_NOTICE_POOR="kindly_notice_poor",n.KINDLY_NOTICE_OFFTOPIC="kindly_notice_offtopic",n.KINDLY_NOTICE_FLAG="kindly_notice_flag",n.BLOCKED_USER="blocked_user",n.UNBLOCKED_USER="unblocked_user",n.INCUBATOR_APPROVED="incubator_approved",n.CUSTOM_NOTIFICATION="custom_notification",n.NOTIFICATION_BANNER="notification_banner",n.CONTRIBUTION="contribution",n.USER_INVITED_TO_JOIN_GROUP="user_invited_to_join_group",n.USER_REQUESTED_TO_JOIN_GROUP="user_requested_to_join_group",n.USER_ACCEPTED_TO_JOIN_GROUP="user_accepted_to_join_group",n.USER_ADDED_TO_GROUP="user_added_to_group",n.USER_INVITED_TO_JOIN_EVENT="user_invited_to_join_event",n.USER_REQUESTED_TO_JOIN_EVENT="user_requested_to_join_event",n.USER_ACCEPTED_TO_JOIN_EVENT="user_accepted_to_join_event",n.USER_ADDED_TO_EVENT="user_added_to_event",n.LIVE_STREAM_STARTED="live_stream_started",n.USER_INVITED_TO_JOIN_COURSE="user_invited_to_join_course",n.USER_REQUESTED_TO_JOIN_COURSE="user_requested_to_join_course",n.USER_ACCEPTED_TO_JOIN_COURSE="user_accepted_to_join_course",n.USER_COMMENTED_A_COURSE_LESSON="user_commented_a_course_lesson",n.USER_ADDED_TO_COURSE="user_added_to_course",n.MANAGER_ADDED_TO_COURSE="manager_added_to_course",(r=t.SCNotificationTopicType||(t.SCNotificationTopicType={})).INTERACTION="interaction",r.NEWS="news"},1447:(e,t)=>{var r,n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.SCOnBoardingStepStatusType=t.SCOnBoardingStepIdType=t.SCOnBoardingStepType=void 0,(o=t.SCOnBoardingStepType||(t.SCOnBoardingStepType={})).CONTENTS="contents",o.CATEGORIES="categories",o.APPEARANCE="appearance",o.PROFILE="profile",o.INVITE="invite",o.APP="app",(n=t.SCOnBoardingStepIdType||(t.SCOnBoardingStepIdType={}))[n.CONTENTS=1]="CONTENTS",n[n.CATEGORIES=2]="CATEGORIES",n[n.APPEARANCE=3]="APPEARANCE",n[n.PROFILE=4]="PROFILE",n[n.INVITE=5]="INVITE",n[n.APP=6]="APP",(r=t.SCOnBoardingStepStatusType||(t.SCOnBoardingStepStatusType={})).IN_PROGRESS="in_progress",r.COMPLETED="completed",r.NOT_STARTED="not_started",r.FAILED="failed"},6217:(e,t)=>{var r,n,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.SCCheckoutSessionUIMode=t.SCCheckoutSessionStatus=t.SCContentType=t.SCPaymentPriceCurrencyType=t.SCPaymentRecurringInterval=t.SCPaymentProductTemplateType=void 0,(t.SCPaymentProductTemplateType||(t.SCPaymentProductTemplateType={})).DETAIL="detail",(i=t.SCPaymentRecurringInterval||(t.SCPaymentRecurringInterval={})).WEEK="week",i.MONTH="month",i.YEAR="year",(t.SCPaymentPriceCurrencyType||(t.SCPaymentPriceCurrencyType={})).EUR="EUR",(o=t.SCContentType||(t.SCContentType={})).ALL="all",o.EVENT="event",o.COURSE="course",o.CATEGORY="category",o.GROUP="group",o.COMMUNITY="community",(n=t.SCCheckoutSessionStatus||(t.SCCheckoutSessionStatus={})).COMPLETE="complete",n.OPEN="open",(r=t.SCCheckoutSessionUIMode||(t.SCCheckoutSessionUIMode={})).HOSTED="hosted",r.EMBEDDED="embedded"},4609:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCPreferenceName=t.SCPreferenceSection=void 0,(n=t.SCPreferenceSection||(t.SCPreferenceSection={})).TEXT="text",n.STYLE="style",n.LOGO="logo",n.COLORS="colors",n.COVERS="covers",n.IMAGES="images",n.STAFF="staff",n.LOYALTY="loyalty",n.ADDONS="addons",n.ADVERTISING="advertising",n.CONFIGURATIONS="configurations",n.PROVIDERS="providers",n.WEBMASTER="webmaster",n.STATIC="static",(r=t.SCPreferenceName||(t.SCPreferenceName={})).APPLICATION_NAME="application_name",r.APPLICATION_SLOGAN1="application_slogan1",r.APPLICATION_SLOGAN2="application_slogan2",r.APPLICATION_COPYRIGHT="application_copyright",r.FONT_FAMILY="font_family",r.NAVBAR_LOGO="navbar_logo",r.NAVBAR_LOGO_MOBILE="navbar_logo_mobile",r.COLORBACK="colorback",r.COLORPRIMARY="colorprimary",r.COLORSECONDARY="colorsecondary",r.NAVBARBACK="navbarback",r.COLORFONT="font_color",r.COLORFONTSECONDARY="font_color_secondary",r.COVER_1_HP_M1920="cover_1_hp_m1920",r.COVER_2_HP_M1920="cover_2_hp_m1920",r.COVER_3_HP_M1920="cover_3_hp_m1920",r.COVER_4_HP_M1920="cover_4_hp_m1920",r.COVERS_VISIBILITY="covers_visibility",r.APP_ICON="app_icon",r.USER_DEFAULT_COVER="user_default_cover",r.ERROR_404="error_404",r.ERROR_503="error_503",r.ERRORPAGES_IMAGE="errorpages_image",r.ERRORPAGES_TITLE="errorpages_title",r.ERRORPAGES_SUBTITLE="errorpages_subtitle",r.STAFF_BADGE_ICON="staff_badge_icon",r.STAFF_BADGE_LABEL="staff_badge_label",r.PRIZE_A_IMAGE="prize_a_image",r.PRIZE_B_IMAGE="prize_b_image",r.PRIZE_C_IMAGE="prize_c_image",r.POINTS_MAKE_DISCUSSION="points_make_discussion",r.POINTS_MAKE_POST="points_make_post",r.POINTS_MAKE_COMMENT="points_make_comment",r.POINTS_RECEIVE_VOTE="points_receive_vote",r.POINTS_CONNECTION_OR_FOLLOWER="points_connection_or_follower",r.POINTS_SOCIAL_SHARE="points_social_share",r.POINTS_APP_USED="points_app_used",r.POINTS_DAILY_VISIT="points_daily_visit",r.AFFINITY_ENABLED="affinity_enabled",r.CLOSED_COMMUNITY="closed_community",r.INCUBATOR_ENABLED="incubator_enabled",r.INCUBATOR_SUBSCRIBERS="incubator_subscribers",r.LOYALTY_POINTS_COLLECTION="loyalty_points_collection",r.POLLS_ENABLED="polls_enabled",r.REGISTRATION_WIZARD="registration_wizard",r.POST_GEOLOCATION_ENABLED="post_geolocation_enabled",r.SHARE_POST_ON_FACEBOOK_ENABLED="share_post_on_facebook_enabled",r.SHARE_POST_ON_TWITTER_ENABLED="share_post_on_twitter_enabled",r.SHARE_POST_ON_LINKEDIN_ENABLED="share_post_on_linkedin_enabled",r.CUSTOM_ADV_ENABLED="custom_adv_enabled",r.CUSTOM_ADV_ONLY_FOR_ANONYMOUS_USERS_ENABLED="custom_adv_only_for_anonymous_users_enabled",r.CUSTOM_NAVBAR_ITEM_ENABLED="custom_navbar_item_enabled",r.CUSTOM_NAVBAR_ITEM_TEXT="custom_navbar_item_text",r.CUSTOM_NAVBAR_ITEM_URL="custom_navbar_item_url",r.CUSTOM_NAVBAR_ITEM_IMAGE="custom_navbar_item_image",r.CONNECTION_ENABLED="connection_enabled",r.FOLLOW_ENABLED="follow_enabled",r.EXPLORE_STREAM_ENABLED="explore_stream_enabled",r.EXPLORE_STREAM_ORDER_BY="explore_stream_order_by",r.HOME_STREAM_ORDER_BY="home_stream_order_by",r.MANUAL_CATEGORIES_ORDER_ENABLED="manual_categories_order_enabled",r.PEOPLE_SEARCH_ENABLED="people_search_enabled",r.POST_ONLY_STAFF_ENABLED="post_only_staff_enabled",r.STREAM_QUALITY="stream_quality",r.CONTENT_AVAILABILITY="content_availability",r.USERS_APPROVAL_ENABLED="users_approval_enabled",r.POST_TYPE_ENABLED="post_type_enabled",r.DISCUSSION_TYPE_ENABLED="discussion_type_enabled",r.STATUS_TYPE_ENABLED="status_type_enabled",r.URL_TEMPLATE_EMAIL_SETTINGS="url_template_email_settings",r.URL_TEMPLATE_EMAIL_UNSUBSCRIBE="url_template_email_unsubscribe",r.URL_TEMPLATE_PASSWORD_RECOVER="url_template_password_recover",r.URL_TEMPLATE_VERIFY_EMAIL="url_template_verify_email",r.URL_TEMPLATE_POST="url_template_post",r.URL_TEMPLATE_DISCUSSION="url_template_discussion",r.URL_TEMPLATE_STATUS="url_template_status",r.URL_TEMPLATE_COMMENT="url_template_comment",r.URL_TEMPLATE_CATEGORY="url_template_category",r.URL_TEMPLATE_CATEGORIES_LIST="url_template_categories_list",r.URL_TEMPLATE_USER_PROFILE="url_template_profile",r.URL_TEMPLATE_USER_PROFILE_SETTINGS="url_template_profile_settings",r.URL_TEMPLATE_NOTIFICATIONS="url_template_notifications",r.URL_TEMPLATE_USER_PRIVATE_MESSAGES="url_template_private_message",r.URL_TEMPLATE_INCUBATOR="url_template_incubator",r.URL_TEMPLATE_LIVE_STREAM="url_template_live_stream",r.APP_URL="app_url",r.USER_METADATA_DEFINITIONS="user_metadata_definition",r.TAG_MANAGER_CONTAINER_ID="tag_manager_container_id",r.GDPR_COOKIE_CONSENT_EXTERNAL_HTML="gdpr_cookie_consent_external_html",r.GDPR_SIGNUP_ACCEPT_HTML="gdpr_signup_accept_html",r.APP_URL_ON_APP_STORE="app_url_on_app_store",r.APP_URL_ON_GOOGLE_PLAY="app_url_on_google_play",r.FACEBOOK_SIGNIN_ENABLED="facebook_signin_enabled",r.FACEBOOK_APP_KEY="facebook_app_key",r.FACEBOOK_APP_SECRET="facebook_app_secret",r.LINKEDIN_SIGNIN_ENABLED="linkedin_signin_enabled",r.LINKEDIN_APP_KEY="linkedin_app_key",r.LINKEDIN_APP_SECRET="linkedin_app_secret",r.TWITTER_SIGNIN_ENABLED="twitter_signin_enabled",r.TWITTER_APP_KEY="twitter_app_key",r.TWITTER_APP_SECRET="twitter_app_secret",r.GOOGLE_GEOCODING_API_KEY="google_geocoding_api_key",r.GOOGLE_SIGNIN_ENABLED="google_signin_enabled",r.GOOGLE_APP_KEY="google_app_key",r.GOOGLE_APP_SECRET="google_app_secret",r.WEB_PUSH_PUBLIC_KEY="web_push_public_key",r.WEB_PUSH_ENABLED="web_push_enabled",r.META_ROBOTS="meta_robots",r.META_TITLE_HOME_NOT_LOGGED="meta_title_home_not_logged",r.META_DESCRIPTION="meta_description",r.GROUPS_ENABLED="groups_enabled",r.GROUPS_VISIBILITY_ENABLED="groups_visibility_enabled",r.GROUPS_PRIVATE_ENABLED="groups_private_enabled",r.GROUPS_ONLY_STAFF_ENABLED="groups_only_staff_enabled",r.EVENTS_ENABLED="events_enabled",r.EVENTS_VISIBILITY_ENABLED="events_visibility_enabled",r.EVENTS_PRIVATE_ENABLED="events_private_enabled",r.EVENTS_ONLY_STAFF_ENABLED="events_only_staff_enabled",r.COURSES_ENABLED="courses_enabled",r.COURSES_VISIBILITY_ENABLED="courses_visibility_enabled",r.COURSES_PRIVATE_ENABLED="courses_private_enabled",r.COURSES_ONLY_STAFF_ENABLED="courses_only_staff_enabled",r.COURSES_ADVANCED_ENABLED="courses_advanced_enabled",r.LIVE_STREAM_ENABLED="live_stream_enabled",r.LIVE_STREAM_ONLY_STAFF_ENABLED="live_stream_only_staff_enabled",r.LIVE_STREAM_VIDEO_CONFERENCE_ENABLED="live_stream_video_conference_enabled",r.ONBOARDING_ENABLED="onboarding_enabled",r.ONBOARDING_HIDDEN="onboarding_hidden",r.SUBSCRIPTION_TIER="subscription_tier",r.PAYMENTS_ENABLED="payments_enabled",r.STRIPE_CONNECTED_ACCOUNT_ID="stripe_connected_account_id",r.ENVIRONMENT="env",r.STACK_ID="stackid",r.STRIPE_PUBLIC_KEY="stripe_public_key",r.PRIVATE_MESSAGES_ENABLED="private_messages_enabled"},9937:(e,t)=>{var r,n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.SCMessageFileType=t.SCPrivateMessageType=t.SCPrivateMessageStatusType=void 0,(o=t.SCPrivateMessageStatusType||(t.SCPrivateMessageStatusType={})).CREATED="created",o.DELETED="deleted",o.HIDDEN="hidden",o.NEW="new",(n=t.SCPrivateMessageType||(t.SCPrivateMessageType={})).GROUP="group",n.USER="user",n.NEW="new",(r=t.SCMessageFileType||(t.SCMessageFileType={})).DOCUMENT="application/",r.IMAGE="image/",r.VIDEO="video/",r.PDF="application/pdf",r.AUDIO="audio/"},689:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCPrizeUserStatusType=void 0,(r=t.SCPrizeUserStatusType||(t.SCPrizeUserStatusType={}))[r.PENDING=0]="PENDING",r[r.REFUSED=1]="REFUSED",r[r.SENT=2]="SENT"},6405:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SuggestionType=void 0,(r=t.SuggestionType||(t.SuggestionType={})).USER="user",r.CATEGORY="category",r.GROUP="group"},6140:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCCommunitySubscriptionTier=void 0,(r=t.SCCommunitySubscriptionTier||(t.SCCommunitySubscriptionTier={})).FREE_TRIAL="FREE_TRIAL",r.GO="GO",r.PROFESSIONAL="PROFESSIONAL",r.ENTERPRISE="ENTERPRISE"},8099:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCUserReputationType=t.SCUserStatus=void 0,(n=t.SCUserStatus||(t.SCUserStatus={})).APPROVED="a",n.BLOCKED="b",n.DELETED="d",n.UNREGISTERED="u",(r=t.SCUserReputationType||(t.SCUserReputationType={}))[r.GAIN_BY_UPVOTED=1]="GAIN_BY_UPVOTED",r[r.ASSIGNED_BY_MODERATOR=10]="ASSIGNED_BY_MODERATOR",r[r.GAIN_BY_CANCELLING_CONTRIBUTE_MODERATION=11]="GAIN_BY_CANCELLING_CONTRIBUTE_MODERATION",r[r.GAIN_BY_MAKE_POST=12]="GAIN_BY_MAKE_POST",r[r.GAIN_BY_MAKE_FIRST_LEVEL_COMMENT=13]="GAIN_BY_MAKE_FIRST_LEVEL_COMMENT",r[r.GAIN_BY_MAKE_SECOND_LEVEL_COMMENT=14]="GAIN_BY_MAKE_SECOND_LEVEL_COMMENT",r[r.GAIN_BY_CONNECTION=15]="GAIN_BY_CONNECTION",r[r.GAIN_BY_APP_USED=17]="GAIN_BY_APP_USED",r[r.GAIN_BY_DAILY_VISIT=18]="GAIN_BY_DAILY_VISIT",r[r.GAIN_BY_FOLLOWER=19]="GAIN_BY_FOLLOWER",r[r.GAIN_BY_UNBLOCK_ACCOUNT=20]="GAIN_BY_UNBLOCK_ACCOUNT",r[r.LOSE_BY_UPVOTE_CANCELED=-1]="LOSE_BY_UPVOTE_CANCELED",r[r.LOSE_BY_CONTRIBUTE_MODERATION=-11]="LOSE_BY_CONTRIBUTE_MODERATION",r[r.LOSE_BY_DELETE_POST=-12]="LOSE_BY_DELETE_POST",r[r.LOSE_BY_DELETE_FIRST_LEVEL_COMMENT=-13]="LOSE_BY_DELETE_FIRST_LEVEL_COMMENT",r[r.LOSE_BY_DELETE_SECOND_LEVEL_COMMENT=-14]="LOSE_BY_DELETE_SECOND_LEVEL_COMMENT",r[r.LOSE_BY_CONNECTION=-15]="LOSE_BY_CONNECTION",r[r.LOSE_BY_FOLLOWER=-19]="LOSE_BY_FOLLOWER",r[r.LOSE_BY_BLOCK_ACCOUNT=-20]="LOSE_BY_BLOCK_ACCOUNT"},2137:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resizeImage=t.CacheStrategies=t.LruCache=t.LRUCache=t.LocalStorageDB=t.iOS=t.loadVersionBrowser=t.WSClient=t.sortByAttr=t.groupBy=t.arraysEqual=t.isInteger=t.isFunc=t.objectWithoutProperties=t.isObject=t.mergeDeep=t.Logger=t.handleOpenWindow=t.isClientSideRendering=t.getWindowHeight=t.getWindowWidth=t.getHighestSafeWindowContext=t.updateQueryStringParameter=t.getQueryStringParameter=t.urlB64ToUint8Array=t.appendURLSearchParams=t.getDomain=t.urlReplacer=t.isValidUrls=t.isValidUrl=t.slugify=t.random=t.fallbackCopyTextToClipboard=t.copyTextToClipboard=t.camelCase=t.stripHtml=t.isString=t.capitalize=void 0;var n=r(2970),o=r(5025);Object.defineProperty(t,"capitalize",{enumerable:!0,get:function(){return o.capitalize}}),Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return o.isString}}),Object.defineProperty(t,"stripHtml",{enumerable:!0,get:function(){return o.stripHtml}}),Object.defineProperty(t,"camelCase",{enumerable:!0,get:function(){return o.camelCase}}),Object.defineProperty(t,"copyTextToClipboard",{enumerable:!0,get:function(){return o.copyTextToClipboard}}),Object.defineProperty(t,"fallbackCopyTextToClipboard",{enumerable:!0,get:function(){return o.fallbackCopyTextToClipboard}}),Object.defineProperty(t,"random",{enumerable:!0,get:function(){return o.random}}),Object.defineProperty(t,"slugify",{enumerable:!0,get:function(){return o.slugify}});var i=r(7016);Object.defineProperty(t,"isValidUrl",{enumerable:!0,get:function(){return i.isValidUrl}}),Object.defineProperty(t,"isValidUrls",{enumerable:!0,get:function(){return i.isValidUrls}}),Object.defineProperty(t,"urlReplacer",{enumerable:!0,get:function(){return i.urlReplacer}}),Object.defineProperty(t,"getDomain",{enumerable:!0,get:function(){return i.getDomain}}),Object.defineProperty(t,"appendURLSearchParams",{enumerable:!0,get:function(){return i.appendURLSearchParams}}),Object.defineProperty(t,"urlB64ToUint8Array",{enumerable:!0,get:function(){return i.urlB64ToUint8Array}}),Object.defineProperty(t,"getQueryStringParameter",{enumerable:!0,get:function(){return i.getQueryStringParameter}}),Object.defineProperty(t,"updateQueryStringParameter",{enumerable:!0,get:function(){return i.updateQueryStringParameter}});var a=r(5558);Object.defineProperty(t,"getHighestSafeWindowContext",{enumerable:!0,get:function(){return a.getHighestSafeWindowContext}}),Object.defineProperty(t,"getWindowWidth",{enumerable:!0,get:function(){return a.getWindowWidth}}),Object.defineProperty(t,"getWindowHeight",{enumerable:!0,get:function(){return a.getWindowHeight}}),Object.defineProperty(t,"isClientSideRendering",{enumerable:!0,get:function(){return a.isClientSideRendering}}),Object.defineProperty(t,"handleOpenWindow",{enumerable:!0,get:function(){return a.handleOpenWindow}});var u=r(1196);Object.defineProperty(t,"mergeDeep",{enumerable:!0,get:function(){return u.mergeDeep}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return u.isObject}}),Object.defineProperty(t,"objectWithoutProperties",{enumerable:!0,get:function(){return u.objectWithoutProperties}}),Object.defineProperty(t,"isFunc",{enumerable:!0,get:function(){return u.isFunc}});var c=r(9622);Object.defineProperty(t,"isInteger",{enumerable:!0,get:function(){return c.isInteger}});var s=r(7091);Object.defineProperty(t,"arraysEqual",{enumerable:!0,get:function(){return s.arraysEqual}}),Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return s.groupBy}}),Object.defineProperty(t,"sortByAttr",{enumerable:!0,get:function(){return s.sortByAttr}});var l=r(173);Object.defineProperty(t,"loadVersionBrowser",{enumerable:!0,get:function(){return l.loadVersionBrowser}}),Object.defineProperty(t,"iOS",{enumerable:!0,get:function(){return l.iOS}});var f=r(7125);Object.defineProperty(t,"LocalStorageDB",{enumerable:!0,get:function(){return f.LocalStorageDB}});var d=n.__importStar(r(4769));t.LRUCache=d.default,Object.defineProperty(t,"LruCache",{enumerable:!0,get:function(){return d.LruCache}}),Object.defineProperty(t,"CacheStrategies",{enumerable:!0,get:function(){return d.CacheStrategies}});var p=r(4750);Object.defineProperty(t,"Logger",{enumerable:!0,get:function(){return p.Logger}});var h=n.__importDefault(r(2934));t.WSClient=h.default;var v=r(5978);Object.defineProperty(t,"resizeImage",{enumerable:!0,get:function(){return v.resizeImage}})},7091:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sortByAttr=t.groupBy=t.arraysEqual=void 0,t.arraysEqual=function(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0},t.groupBy=function(e,t){return e.reduce((function(e,r){var n="function"==typeof t?t(r):r[t];return e.hasOwnProperty(n)||(e[n]=[]),e[n].push(r),e}),{})},t.sortByAttr=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!Array.isArray(e))return e;var n=r?function(e,r){return e[t]-r[t]}:function(e,r){return r[t]-e[t]};return e.sort(n)}},173:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.iOS=t.loadVersionBrowser=void 0,t.loadVersionBrowser=function(){if("userAgentData"in navigator){for(var e,t=navigator.userAgentData,r=null,n=0;n<t.brands.length;n++){var o=t.brands[n].brand;if(e=t.brands[n].version,null!==o.match(/opera|chrome|edge|safari|firefox|msie|trident/i)){if(null===o.match(/chrome/i))return{name:o.substr(o.indexOf(" ")+1),version:e};r=e}}if(null!==r)return{name:"chrome",version:r}}var i,a=navigator.userAgent,u=a.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(u[1])?{name:"IE",version:(i=/\brv[ :]+(\d+)/g.exec(a)||[])[1]||""}:"Chrome"===u[1]&&null!=(i=a.match(/\bOPR\/(\d+)/))?{name:"Opera",version:i[1]}:(u=u[2]?[u[1],u[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(i=a.match(/version\/(\d+)/i))&&u.splice(1,1,i[1]),{name:u[0],version:u[1]})},t.iOS=function(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}},4769:(e,t)=>{function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.CacheStrategies=t.LruCache=void 0;var o,i=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;r(this,e),this.values=new Map,this.maxEntries=t,this.ssr="undefined"==typeof window,this.ssr||(window.__viewSCCache=this.values)},t=[{key:"get",value:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{noSsr:!0},o=this.values.has(e);return o?(r=this.values.get(e),this.values.delete(e),this.values.set(e,r)):t&&(r=t,(!this.ssr||!n.noSsr)&&this.values.set(e,r)),r}},{key:"set",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{noSsr:!0};if(!this.ssr||!r.noSsr){if(this.values.size>=this.maxEntries){var n=this.values.keys().next().value;this.values.delete(n)}this.values.set(e,t)}}},{key:"hasKey",value:function(e){return this.values.has(e)}},{key:"delete",value:function(e){this.values.has(e)&&this.values.delete(e)}},{key:"deleteKeys",value:function(e){var t=this;e.forEach((function(e){t.values.has(e)&&t.values.delete(e)}))}},{key:"deleteKeysWithPrefix",value:function(e){var t=this;this.values.forEach((function(r,n){n.startsWith(e)&&t.values.delete(n)}))}},{key:"clean",value:function(){this.values=new Map}},{key:"evaluate",value:function(){console.log(this.values)}}],t&&n(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.LruCache=i,(o=t.CacheStrategies||(t.CacheStrategies={})).CACHE_FIRST="Cache-first",o.NETWORK_ONLY="Network-only",o.STALE_WHILE_REVALIDATE="Stale-While-Revalidate";var a=new i;t.default=a},5978:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resizeImage=void 0,t.resizeImage=function(e){return new Promise((function(t,r){var n=new FileReader;n.onload=function(e){var r=new Image;r.onload=function(e){var n=document.createElement("canvas"),o=1920,i=r.width,a=r.height;i>a?i>o&&(a*=o/i,i=o):a>o&&(i*=o/a,a=o),n.width=i,n.height=a,n.getContext("2d").drawImage(r,0,0,i,a),t(function(e){var t;t=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):unescape(e.split(",")[1]);for(var r=e.split(",")[0].split(":")[1].split(";")[0],n=new Uint8Array(t.length),o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return new Blob([n],{type:r})}(n.toDataURL("image/jpeg")))},r.src=e.target.result},n.onerror=r,n.readAsDataURL(e)}))}},7125:(e,t)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStorageDB=void 0;var o=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"set",value:function(e,t){if(this.checkifSupport())try{window.localStorage.setItem(e,t)}catch(e){console.error(e)}else console.error("No support. Use a fallback such as browser cookies or store on the server.")}},{key:"get",value:function(e){try{var t=window.localStorage.getItem(e);return t&&"object"===r(t)?JSON.parse(t):t}catch(e){return null}}},{key:"getAll",value:function(){for(var e=[],t=0;t<window.localStorage.length;t++){var r=localStorage.key(t);e.push(this.get(r))}return e}},{key:"remove",value:function(e){try{window.localStorage.removeItem(e),0==window.localStorage.length&&this.clearAll()}catch(e){console.error(e)}finally{this.get(e)&&(delete window.localStorage[e],0==window.localStorage.length&&this.clearAll())}}},{key:"clearAll",value:function(){try{window.localStorage.clear()}catch(e){console.error(e)}}},{key:"checkifSupport",value:function(){try{return"localStorage"in window&&null!==window.localStorage}catch(e){return!1}}}],null&&n(e.prototype,null),t&&n(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.LocalStorageDB=o},4750:(e,t)=>{function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;var n=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"info",value:function(e,t){console.info("%c[".concat(e,"]"),"color:#008080"," ".concat(t))}},{key:"warn",value:function(e,t){console.warn("%c[".concat(e,"]"),"color:#008080"," ".concat(t))}},{key:"error",value:function(e,t){console.error("%c[".concat(e,"]"),"color:#008080"," ".concat(t))}},{key:"log",value:function(e,t){console.log("%c[".concat(e,"]"),"color:#008080"," ".concat(t))}},{key:"debug",value:function(e,t){console.debug("%c[".concat(e,"]"),"color:#008080"," ".concat(t))}}],null&&r(e.prototype,null),t&&r(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.Logger=n},9622:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isInteger=void 0,t.isInteger=function(e){return!isNaN(e)&&parseInt(String(Number(e)))==e&&!isNaN(parseInt(String(e),10))}},1196:(e,t)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e){return"object"===r(e)&&!Array.isArray(e)&&null!==e}Object.defineProperty(t,"__esModule",{value:!0}),t.isFunc=t.objectWithoutProperties=t.mergeDeep=t.isObject=void 0,t.isObject=n,t.mergeDeep=function e(t,r){var o=Object.assign({},t);return n(t)&&n(r)&&Object.keys(r).forEach((function(i){n(r[i])&&i in t?o[i]=e(t[i],r[i]):Object.assign(o,function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},i,r[i]))})),o},t.objectWithoutProperties=function(e,t){var r=e?Object.assign({},e):null;return t.forEach((function(e){r&&e in r&&delete r[e]})),r},t.isFunc=function(e){return"function"==typeof e}},5025:(e,t)=>{function r(e){var t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{return document.execCommand("copy"),document.body.removeChild(t),Promise.resolve()}catch(e){return document.body.removeChild(t),Promise.reject(e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.slugify=t.copyTextToClipboard=t.fallbackCopyTextToClipboard=t.random=t.stripHtml=t.camelCase=t.capitalize=t.isString=void 0,t.isString=function(e){return"string"==typeof e||e instanceof String},t.capitalize=function(e){for(var t="",r=e.split(" "),n=0;n<r.length;n++)t+=r[n].substring(0,1).toUpperCase()+r[n].substring(1,r[n].length);return t},t.camelCase=function(e){return e.toLowerCase().replace(/[-_]+/g," ").replace(/[^\w\s]/g,"").replace(/ (.)/g,(function(e){return e.toUpperCase()})).replace(/ /g,"")},t.stripHtml=function(e){return e.replace(/<[^>]*>?/gm,"").trim()},t.random=function(){return(Math.random()+1).toString(36).substring(7)},t.fallbackCopyTextToClipboard=r,t.copyTextToClipboard=function(e){return navigator.clipboard?navigator.clipboard.writeText(e):r(e)},t.slugify=function(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}},7016:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateQueryStringParameter=t.getQueryStringParameter=t.urlB64ToUint8Array=t.appendURLSearchParams=t.isValidUrls=t.isValidUrl=t.getDomain=t.urlReplacer=void 0,t.urlReplacer=function(e){return function(t){return function(e,t){for(var r=/\$\(([^)]+)?\)/g,n=r.exec(e);n;)e=e.replace(n[0],t[n[1]]),r.lastIndex=0,n=r.exec(e);return e}(e,t)}},t.getDomain=function(e){var t=e.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);return t&&t[1]?t[1]:""},t.isValidUrl=function(e){return/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-/]))?/.test(e)},t.isValidUrls=function(e,r){return e.trim().split(r).every(t.isValidUrl)},t.appendURLSearchParams=function(e,t){var r=e;if(t.length&&r){var n=Object.keys(t[0])[0];r+=(r.split("?")[1]?"&":"?")+"".concat(n,"=").concat(t[0][n]),t.slice(1).map((function(e){var t=Object.keys(e)[0];r+="&".concat(t,"=").concat(e[t])}))}return r},t.urlB64ToUint8Array=function(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(t),n=new Uint8Array(r.length),o=0;o<r.length;++o)n[o]=r.charCodeAt(o);return n},t.getQueryStringParameter=function(e,t){return e&&t?new URL(e).searchParams.get(t):null},t.updateQueryStringParameter=function(e,t,r){if(e&&t&&r){var n=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?";return e.match(n)?e.replace(n,"$1"+t+"="+r+"$2"):e+o+t+"="+r}return e}},2934:(e,t)=>{function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._attempts=1,this._heartbeatInterval=null,this._missedHeartbeats=0,this.isValidOptions(t)&&(this._cfg=Object.assign({},{heartbeatMsg:null,debug:!1,mustReconnect:!0},t),this.connect())}return t=e,o=[{key:"getInstance",value:function(t){return this._instance=this._instance||new e(t),this._instance}}],(n=[{key:"connect",value:function(){try{if(this._ws&&(this.isConnecting()||this.isConnected()))return void(this._cfg.debug&&console.info("Websocket is connecting or already connected."));"function"==typeof this._cfg.connecting&&this._cfg.connecting(),this._cfg.debug&&console.info("Connecting to ".concat(this._cfg.uri," ...")),this._ws=new WebSocket(this._cfg.uri,this._cfg.protocols),this._ws.onopen=this.onOpen.bind(this),this._ws.onmessage=this.onMessage.bind(this),this._ws.onerror=this.onError.bind(this),this._ws.onclose=this.onClose.bind(this),this._timer=null}catch(e){console.error(e),this.tryToReconnect()}}},{key:"isValidOptions",value:function(e){var t=!1;return e?(e.uri||(console.error("Invalid WSClient Uri options."),t=!0),e&&e.connecting&&"function"!=typeof e.connecting&&(console.error("Invalid WSClient connecting options."),t=!0),e&&e.connected&&"function"!=typeof e.connected&&(console.error("Invalid WSClient connected options."),t=!0),e&&e.receiveMessage&&"function"!=typeof e.receiveMessage&&(console.error("Invalid WSClient receiveMessage options."),t=!0),e&&e.disconnected&&"function"!=typeof e.disconnected&&(console.error("Invalid WSClient connecting options."),t=!0),e&&e.heartbeatMsg&&"string"!=typeof e.heartbeatMsg&&(console.error("Invalid WSClient heartbeatMsg options."),t=!0),e&&e.debug&&"boolean"!=typeof e.debug&&(console.error("Invalid WSClient debug options."),t=!0),!t):(console.error("Invalid WSClient options."),t)}},{key:"tryToReconnect",value:function(){if(this._cfg.mustReconnect&&!this._timer){this._cfg.debug&&console.info("Reconnecting...");var e=this.generateInterval(this._attempts);this._timer=setTimeout(this.reconnect.bind(this),e)}}},{key:"reconnect",value:function(){this._attempts++,this.connect()}},{key:"sendHeartbeat",value:function(){try{if(this._missedHeartbeats++,this._missedHeartbeats>3)throw new Error("Too many missed heartbeats.");this._ws.send(this._cfg.heartbeatMsg)}catch(e){clearInterval(this._heartbeatInterval),this._heartbeatInterval=null,this._cfg.debug&&console.warn("Closing connection. Reason: ".concat(e.message)),this.isClosing()||this.isClosed()||this.close()}}},{key:"onOpen",value:function(){this._cfg.debug&&console.info("Connected!"),this._attempts=1,this._cfg.heartbeatMsg&&null===this._heartbeatInterval&&(this._missedHeartbeats=0,this._heartbeatInterval=setInterval(this.sendHeartbeat.bind(this),5e3)),"function"==typeof this._cfg.connected&&this._cfg.connected()}},{key:"onClose",value:function(e){this._cfg.debug&&console.info("Connection closed!"),"function"==typeof this._cfg.disconnected&&this._cfg.disconnected(e),this.tryToReconnect()}},{key:"onError",value:function(e){this._cfg.debug&&console.error("Websocket connection is broken!"),this._cfg.debug&&console.error(e)}},{key:"onMessage",value:function(e){if(this._cfg.heartbeatMsg&&e.data===this._cfg.heartbeatMsg)this._missedHeartbeats=0;else if("function"==typeof this._cfg.receiveMessage)return this._cfg.receiveMessage(e.data)}},{key:"generateInterval",value:function(e){var t=1e3*(Math.pow(2,e)-1);return t>3e4&&(t=3e4),Math.random()*t}},{key:"sendMessage",value:function(e){this._ws&&this._ws.send(e)}},{key:"getState",value:function(){return this._ws&&this._ws.readyState}},{key:"isConnecting",value:function(){return this._ws&&0===this._ws.readyState}},{key:"isConnected",value:function(){return this._ws&&1===this._ws.readyState}},{key:"isClosing",value:function(){return this._ws&&2===this._ws.readyState}},{key:"isClosed",value:function(){return this._ws&&3===this._ws.readyState}},{key:"close",value:function(){clearInterval(this._heartbeatInterval),this._cfg.mustReconnect=!1,this.isClosing()&&this.isClosed()||(this._ws.close(),this._cfg.debug&&console.error("Websocket closed."))}}])&&r(t.prototype,n),o&&r(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o}();t.default=n},5558:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.handleOpenWindow=t.isClientSideRendering=t.getHighestSafeWindowContext=t.getWindowHeight=t.getWindowWidth=void 0,t.getWindowWidth=function(){return void 0!==r.g.window?r.g.window.innerWidth:0},t.getWindowHeight=function(){return void 0!==r.g.window?r.g.window.innerHeight:0};var n=function(){try{return r.g.window.location.hostname!==r.g.window.parent.location.hostname}catch(e){return!0}};t.getHighestSafeWindowContext=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.g.window.self;return t===r.g.window.top||n()?t:e(t.parent)},t.isClientSideRendering=function(){return"undefined"!=typeof window},t.handleOpenWindow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank";if(e){var r=window.open(e,t);return r&&r.focus(),r}return null}},901:e=>{e.exports=t},4584:e=>{e.exports=r},8156:t=>{t.exports=e},7111:e=>{e.exports=i},9767:e=>{e.exports=n},5276:e=>{e.exports=o}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={id:e,loaded:!1,exports:{}};return u[e].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}s.m=u,a=[],s.O=(e,t,r,n)=>{if(!t){var o=1/0;for(l=0;l<a.length;l++){for(var[t,r,n]=a[l],i=!0,u=0;u<t.length;u++)(!1&n||o>=n)&&Object.keys(s.O).every((e=>s.O[e](t[u])))?t.splice(u--,1):(i=!1,n<o&&(o=n));if(i){a.splice(l--,1);var c=r();void 0!==c&&(e=c)}}return e}n=n||0;for(var l=a.length;l>0&&a[l-1][2]>n;l--)a[l]=a[l-1];a[l]=[t,r,n]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={984:0};s.O.j=t=>0===e[t];var t=(t,r)=>{var n,o,[i,a,u]=r,c=0;if(i.some((t=>0!==e[t]))){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);if(u)var l=u(s)}for(t&&t(r);c<i.length;c++)o=i[c],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return s.O(l)},r=self.webpackChunkSelfCommunityReactCore=self.webpackChunkSelfCommunityReactCore||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var l=s.O(void 0,[595],(()=>s(7721)));return s.O(l)})()));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@mui/material"),require("notistack"),require("react-intl"),require("react/jsx-runtime"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","@mui/material","notistack","react-intl","react/jsx-runtime","react-dom"],t):"object"==typeof exports?exports.SelfCommunityReactCore=t(require("react"),require("@mui/material"),require("notistack"),require("react-intl"),require("react/jsx-runtime"),require("react-dom")):e.SelfCommunityReactCore=t(e.react,e["@mui/material"],e.notistack,e["react-intl"],e["react/jsx-runtime"],e["react-dom"])}(self,((e,t,r,n,o,i)=>(()=>{"use strict";var a,u={8011:(e,t,r)=>{function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.ApiClient=void 0;var o=r(2970).__importDefault(r(14)),i=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setDefaultHeader=function(e){var t=e.name,n=e.value,o=e.methods,i=r.client.defaults.headers;Array.isArray(o)?o.forEach((function(e){i[e]&&(i[e][t]=n)})):i.common[t]=n},this.deleteDefaultHeader=function(e){var t=e.name,n=e.methods,o=r.client.defaults.headers;Array.isArray(n)?n.forEach((function(e){o[e]&&delete o[e][t]})):delete o.common[t]},this.client=this.createClient(t),this.setDefaultHeader({name:"Content-Type",value:"application/json",methods:["post"]})}return t=e,(r=[{key:"createClient",value:function(t){return o.default.create(Object.assign(Object.assign(Object.assign({},t&&t.baseURL&&{baseURL:t.baseURL}),t&&t.responseType?{responseType:t.responseType}:{responseType:"json"}),{headers:Object.assign({},t&&t.accessToken&&{Authorization:"Token ".concat(t.accessToken)}),timeout:e.DEFAULT_TIMEOUT}))}},{key:"getClientInstance",value:function(){return this.client}},{key:"config",value:function(e){this.client(e)}},{key:"setSupportWithCredentials",value:function(e){this.client.defaults.withCredentials=e}},{key:"setBasePortal",value:function(e){this.client.defaults.baseURL=e}},{key:"setAuthorizeToken",value:function(e){e?this.setDefaultHeader({name:"Authorization",value:"Bearer ".concat(e)}):this.deleteDefaultHeader({name:"Authorization"})}},{key:"request",value:function(e){return this.client.request(e)}},{key:"get",value:function(e,t){return this.client.get(e,t)}},{key:"post",value:function(e,t,r){return r?this.client.post(e,t,r):this.client.post(e,t)}},{key:"patch",value:function(e,t){return this.client.patch(e,t)}},{key:"put",value:function(e,t){return this.client.put(e,t)}}])&&n(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();t.ApiClient=i,i.DEFAULT_TIMEOUT=1e4;var a=new i;t.default=a},5713:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=r(2137),o={AccountCreate:{url:(0,n.urlReplacer)("/api/v2/account/create/"),method:"POST"},AccountVerify:{url:(0,n.urlReplacer)("/api/v2/account/verify/"),method:"POST"},AccountVerifyValidationCode:{url:(0,n.urlReplacer)("/api/v2/account/verify/validation_code/"),method:"POST"},AccountRecover:{url:(0,n.urlReplacer)("/api/v2/account/recover/"),method:"POST"},AccountReset:{url:(0,n.urlReplacer)("/api/v2/account/reset/"),method:"POST"},AccountSearch:{url:(0,n.urlReplacer)("/api/v2/account/search/"),method:"GET"},InviteCode:{url:(0,n.urlReplacer)("/api/v2/invite_code/$(code)/"),method:"GET"},PromoCode:{url:(0,n.urlReplacer)("/api/v2/promo_code/$(code)/"),method:"GET"},OAuthToken:{url:(0,n.urlReplacer)("/oauth/token/"),method:"POST"},Preferences:{url:(0,n.urlReplacer)("/api/v2/dynamic_preference/"),method:"GET"},GetPreference:{url:(0,n.urlReplacer)("/api/v2/dynamic_preference/$(id)/"),method:"GET"},UpdatePreferences:{url:(0,n.urlReplacer)("/api/v2/dynamic_preference/"),method:"PATCH"},SignIn:{url:(0,n.urlReplacer)("/api/v2/sso/signin/"),method:"POST"},SignUp:{url:(0,n.urlReplacer)("/api/v2/sso/signup/"),method:"POST"},Feature:{url:(0,n.urlReplacer)("/api/v2/feature/"),method:"GET"},FeedObjectList:{url:(0,n.urlReplacer)("/api/v2/$(type)/"),method:"GET"},FeedObjectsUncommented:{url:(0,n.urlReplacer)("/api/v2/$(type)/uncommented/"),method:"GET"},SearchFeedObject:{url:(0,n.urlReplacer)("/api/v2/$(type)/search/"),method:"GET"},CreateFeedObject:{url:(0,n.urlReplacer)("/api/v2/$(type)/"),method:"POST"},FeedObject:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/"),method:"GET"},UpdateFeedObject:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/"),method:"PUT"},DeleteFeedObject:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/"),method:"DELETE"},FeedObjectContributorsList:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/contributors/"),method:"GET"},FeedObjectSharesList:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/shares/"),method:"GET"},FeedObjectUserSharesList:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/shares_users/"),method:"GET"},RestoreFeedObject:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/restore/"),method:"POST"},RelatedFeedObjects:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/related/"),method:"GET"},HideFeedObject:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/hide/"),method:"POST"},FeedObjectHideStatus:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/hide/status/"),method:"GET"},CheckIfFollowingFeedObject:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/following/"),method:"GET"},FeedObjectFollowingList:{url:(0,n.urlReplacer)("/api/v2/$(type)/following/"),method:"GET"},FeedObjectFlagList:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/flag/"),method:"POST"},Comment:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/"),method:"GET"},NewComment:{url:(0,n.urlReplacer)("/api/v2/comment/"),method:"POST"},UpdateComment:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/"),method:"PUT"},DeleteComment:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/"),method:"DELETE"},RestoreComment:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/restore/"),method:"POST"},Comments:{url:(0,n.urlReplacer)("/api/v2/comment/"),method:"GET"},CommentVote:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/vote/"),method:"POST"},CommentVotesList:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/vote/"),method:"GET"},CommentRestore:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/restore"),method:"POST"},CommentFlagList:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/flag/"),method:"GET"},FlagComment:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/flag/"),method:"POST"},CommentFlagStatus:{url:(0,n.urlReplacer)("/api/v2/comment/$(id)/flag/status/"),method:"GET"},FlagStatus:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/flag/status/"),method:"GET"},Flag:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/flag/"),method:"POST"},CategoryList:{url:(0,n.urlReplacer)("/api/v2/category/"),method:"GET"},SearchCategory:{url:(0,n.urlReplacer)("/api/v2/category/search/"),method:"GET"},CreateCategory:{url:(0,n.urlReplacer)("/api/v2/category/"),method:"POST"},UpdateCategory:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/"),method:"PUT"},PatchCategory:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/"),method:"PATCH"},DeleteCategory:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/"),method:"DELETE"},CategoryAudience:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/audience/"),method:"GET"},Category:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/"),method:"GET"},CategoriesFollowed:{url:(0,n.urlReplacer)("/api/v2/category/followed/"),method:"GET"},CategoryFollowers:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/followers/"),method:"GET"},CategoryTrendingFeed:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/feed/trending/"),method:"GET"},CategoryTrendingPeople:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/followers/trending/"),method:"GET"},FollowCategory:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/follow/"),method:"POST"},CheckCategoryIsFollowed:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/is_followed/"),method:"GET"},PopularCategories:{url:(0,n.urlReplacer)("/api/v2/category/popular/"),method:"GET"},TagsList:{url:(0,n.urlReplacer)("/api/v2/tag/"),method:"GET"},CreateTag:{url:(0,n.urlReplacer)("/api/v2/tag/"),method:"POST"},SearchTag:{url:(0,n.urlReplacer)("/api/v2/tag/"),method:"GET"},Tag:{url:(0,n.urlReplacer)("/api/v2/tag/$(id)/"),method:"GET"},UpdateTag:{url:(0,n.urlReplacer)("/api/v2/tag/$(id)/"),method:"PUT"},PatchTag:{url:(0,n.urlReplacer)("/api/v2/tag/$(id)/"),method:"PATCH"},AssignTag:{url:(0,n.urlReplacer)("/api/v2/tag/$(id)/assign/"),method:"POST"},UserList:{url:(0,n.urlReplacer)("/api/v2/user/"),method:"GET"},ListHiddenUsers:{url:(0,n.urlReplacer)("/api/v2/user/hidden_users/"),method:"GET"},ListHiddenUsersId:{url:(0,n.urlReplacer)("/api/v2/user/hidden_users_id/"),method:"GET"},UserAutocomplete:{url:(0,n.urlReplacer)("/api/v2/user/autocomplete/"),method:"GET"},UserSearch:{url:(0,n.urlReplacer)("/api/v2/user/search/"),method:"GET"},User:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/"),method:"GET"},UserCounters:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/counters/"),method:"GET"},UserUpdate:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/"),method:"PUT"},UserPatch:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/"),method:"PATCH"},UserDelete:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/"),method:"DELETE"},ChangeUserMail:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/change_email/"),method:"PATCH"},ConfirmUserChangeMail:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/confirm_email/"),method:"POST"},ChangeUserPassword:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/change_password/"),method:"PATCH"},UserSettings:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/settings/"),method:"GET"},UserSettingsPatch:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/settings/"),method:"PATCH"},Me:{url:(0,n.urlReplacer)("/api/v2/user/me/"),method:"GET"},MyAvatar:{url:(0,n.urlReplacer)("/api/v2/user/me/avatar/"),method:"GET"},Permission:{url:(0,n.urlReplacer)("/api/v2/user/me/permission/"),method:"GET"},Platform:{url:(0,n.urlReplacer)("/api/v2/user/me/platform_url/"),method:"GET"},FollowedCategories:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/categories/"),method:"GET"},UserFollowers:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/followers/"),method:"GET"},UserFollowings:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/followings/"),method:"GET"},FollowUser:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/follow/"),method:"POST"},CheckUserFollowed:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/is_followed/"),method:"GET"},CheckUserFollower:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/is_follower/"),method:"GET"},UserConnections:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connections/"),method:"GET"},UserCheckConnection:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/is_connection/"),method:"GET"},UserCheckConnectionStatus:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connection_status/"),method:"GET"},UserConnectionRequests:{url:(0,n.urlReplacer)("/api/v2/user/connection/requests/"),method:"GET"},UserRequestConnectionsSent:{url:(0,n.urlReplacer)("/api/v2/user/connection/requests_sent/"),method:"GET"},UserAcceptRequestConnection:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connection/accept/"),method:"POST"},UserRequestConnection:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connection/request/"),method:"POST"},UserRemoveConnection:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connection/remove/"),method:"POST"},UserCancelRejectConnectionRequest:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connection/cancel_reject/"),method:"POST"},UserCancelRequestConnection:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connection/cancel_request/"),method:"POST"},UserRejectConnectionRequest:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connection/reject/"),method:"POST"},UserMarkSeenConnectionRequest:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/connection_requests/mark_seen/"),method:"POST"},UserShowHide:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/hide/"),method:"POST"},CheckUserHidden:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/is_hidden/"),method:"GET"},CheckUserHiddenBy:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/is_hidden_by/"),method:"GET"},GetUserLoyaltyPoints:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/loyalty/points/"),method:"GET"},UserConnectionStatuses:{url:(0,n.urlReplacer)("/api/v2/user/connection/statuses/"),method:"POST"},UserTagToAddressContribution:{url:(0,n.urlReplacer)("/api/v2/user/tag/tags_to_address_a_contribution/"),method:"GET"},CheckEmailToken:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/check_email_token/"),method:"GET"},AddAvatar:{url:(0,n.urlReplacer)("/api/v2/user/avatar/"),method:"POST"},GetAvatars:{url:(0,n.urlReplacer)("/api/v2/user/avatar/"),method:"GET"},RemoveAvatar:{url:(0,n.urlReplacer)("/api/v2/user/avatar/"),method:"DELETE"},SetPrimaryAvatar:{url:(0,n.urlReplacer)("/api/v2/user/avatar/"),method:"PATCH"},ProviderAssociations:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/provider/"),method:"GET"},CreateProviderAssociation:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/provider/"),method:"POST"},DeleteProviderAssociation:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/provider/"),method:"DELETE"},GetLiveStream:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/live_stream/"),method:"GET"},GetOrderHistory:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/order/"),method:"GET"},GetOrderDetail:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/order/$(order)/"),method:"GET"},BroadcastMessagesList:{url:(0,n.urlReplacer)("/api/v2/notification/banner/"),method:"GET"},BroadcastMessagesMarkRead:{url:(0,n.urlReplacer)("/api/v2/notification/banner/read/"),method:"POST"},BroadcastMessagesDispose:{url:(0,n.urlReplacer)("/api/v2/notification/banner/dispose/"),method:"POST"},BroadcastMessagesUnseenCount:{url:(0,n.urlReplacer)("/api/v2/notification/banner/unseen/count/"),method:"GET"},BroadcastMessagesUndisposedCount:{url:(0,n.urlReplacer)("/api/v2/notification/banner/undisposed/count/"),method:"GET"},UserNotificationList:{url:(0,n.urlReplacer)("/api/v2/notification/"),method:"GET"},UserMarkReadNotification:{url:(0,n.urlReplacer)("/api/v2/notification/read/"),method:"POST"},UserUnseenNotificationCount:{url:(0,n.urlReplacer)("/api/v2/notification/unseen/count/"),method:"GET"},CreateCustomNotification:{url:(0,n.urlReplacer)("/api/v2/notification/notify/"),method:"POST"},UserSuspendContributionNotification:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/suspend/"),method:"POST"},UserCheckContributionNotificationSuspended:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/suspended/"),method:"GET"},UserListContributionNotificationSuspended:{url:(0,n.urlReplacer)("/api/v2/$(type)/suspended/"),method:"GET"},CategoriesSuggestion:{url:(0,n.urlReplacer)("/api/v2/suggestion/category/"),method:"GET"},CourseSuggestion:{url:(0,n.urlReplacer)("/api/v2/suggestion/course/"),method:"GET"},GetIncubatorSuggestion:{url:(0,n.urlReplacer)("/api/v2/suggestion/incubator/"),method:"GET"},PollSuggestion:{url:(0,n.urlReplacer)("/api/v2/suggestion/poll/"),method:"GET"},UserSuggestion:{url:(0,n.urlReplacer)("/api/v2/suggestion/user/"),method:"GET"},EventSuggestion:{url:(0,n.urlReplacer)("/api/v2/suggestion/event/"),method:"GET"},SearchSuggestion:{url:(0,n.urlReplacer)("/api/v2/suggestion/"),method:"GET"},FollowContribution:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/follow/"),method:"POST"},Vote:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/vote/"),method:"POST"},VotesList:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/vote/"),method:"GET"},ShareUsersList:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/shares_users/"),method:"GET"},PollVote:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/poll/vote/"),method:"POST"},PollVotesList:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/poll/vote/"),method:"GET"},Contributors:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/contributors/"),method:"GET"},GetPrizes:{url:(0,n.urlReplacer)("/api/v2/loyalty/prize/"),method:"GET"},CreatePrize:{url:(0,n.urlReplacer)("/api/v2/loyalty/prize/"),method:"POST"},GetSpecificPrize:{url:(0,n.urlReplacer)("/api/v2/loyalty/prize/$(id)/"),method:"GET"},UpdatePrize:{url:(0,n.urlReplacer)("/api/v2/loyalty/prize/$(id)/"),method:"PUT"},PatchPrize:{url:(0,n.urlReplacer)("/api/v2/loyalty/prize/$(id)/"),method:"PATCH"},GetPrizeRequests:{url:(0,n.urlReplacer)("/api/v2/loyalty/request/"),method:"GET"},CreatePrizeRequest:{url:(0,n.urlReplacer)("/api/v2/loyalty/request/"),method:"POST"},GetSpecificPrizeRequest:{url:(0,n.urlReplacer)("/api/v2/loyalty/request/$(id)/"),method:"GET"},PatchPrizeRequest:{url:(0,n.urlReplacer)("/api/v2/loyalty/request/$(id)/"),method:"PATCH"},Composer:{url:(0,n.urlReplacer)("/api/v2/$(type)/"),method:"POST"},ComposerEdit:{url:(0,n.urlReplacer)("/api/v2/$(type)/$(id)/"),method:"PUT"},ComposerChunkUploadMedia:{url:(0,n.urlReplacer)("/api/v2/media/upload/chunk/"),method:"POST"},ComposerChunkUploadMediaComplete:{url:(0,n.urlReplacer)("/api/v2/media/upload/complete/"),method:"POST"},ComposerMediaCreate:{url:(0,n.urlReplacer)("/api/v2/media/"),method:"POST"},ComposerCategoryList:{url:(0,n.urlReplacer)("/api/v2/category/"),method:"GET"},ComposerAddressingTagList:{url:(0,n.urlReplacer)("/api/v2/user/tag/tags_to_address_a_contribution/"),method:"GET"},ComposerLocalitySearch:{url:(0,n.urlReplacer)("/api/v2/locality/search/"),method:"GET"},GetMedia:{url:(0,n.urlReplacer)("/api/v2/media/$(id)/"),method:"GET"},UpdateMedia:{url:(0,n.urlReplacer)("/api/v2/media/$(id)/"),method:"PUT"},DeleteMedia:{url:(0,n.urlReplacer)("/api/v2/media/$(id)/"),method:"DELETE"},MediaClickTracker:{url:(0,n.urlReplacer)("/api/v2/media/$(id)/click/"),method:"POST"},GetLocalities:{url:(0,n.urlReplacer)("/api/v2/locality/"),method:"GET"},CustomAdvList:{url:(0,n.urlReplacer)("/api/v2/custom_adv/"),method:"GET"},CustomAdv:{url:(0,n.urlReplacer)("/api/v2/custom_adv/$(id)/"),method:"GET"},CustomAdvSearch:{url:(0,n.urlReplacer)("/api/v2/custom_adv/search/"),method:"GET"},MainFeed:{url:(0,n.urlReplacer)("/api/v2/feed/"),method:"GET"},MainFeedUnseenCount:{url:(0,n.urlReplacer)("/api/v2/feed/unseen/count/"),method:"GET"},FeedObjectMarkRead:{url:(0,n.urlReplacer)("/api/v2/feed/read/"),method:"POST"},ExploreFeed:{url:(0,n.urlReplacer)("/api/v2/feed/explore/"),method:"GET"},FeedLikeThese:{url:(0,n.urlReplacer)("/api/v2/feed/likethis/"),method:"POST"},CategoryFeed:{url:(0,n.urlReplacer)("/api/v2/category/$(id)/feed/"),method:"GET"},UserFeed:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/feed/"),method:"GET"},EmbedFeed:{url:(0,n.urlReplacer)("/api/v2/embed/feed/"),method:"GET"},EmbedList:{url:(0,n.urlReplacer)("/api/v2/embed/"),method:"GET"},EmbedCreate:{url:(0,n.urlReplacer)("/api/v2/embed/"),method:"POST"},EmbedSearch:{url:(0,n.urlReplacer)("/api/v2/embed/search/"),method:"GET"},Embed:{url:(0,n.urlReplacer)("/api/v2/embed/$(id)/"),method:"GET"},UpdateEmbed:{url:(0,n.urlReplacer)("/api/v2/embed/$(id)/"),method:"PUT"},PatchEmbed:{url:(0,n.urlReplacer)("/api/v2/embed/$(id)/"),method:"PATCH"},SpecificEmbedFeed:{url:(0,n.urlReplacer)("/api/v2/embed/$(id)/feed/"),method:"GET"},GetSnippets:{url:(0,n.urlReplacer)("/api/v2/pm/"),method:"GET"},GetASingleMessage:{url:(0,n.urlReplacer)("/api/v2/pm/$(id)/"),method:"GET"},SendMessage:{url:(0,n.urlReplacer)("/api/v2/pm/"),method:"POST"},GetAThread:{url:(0,n.urlReplacer)("/api/v2/pm/"),method:"GET"},PrivateMessageUploadMedia:{url:(0,n.urlReplacer)("/api/v2/pm/upload/"),method:"POST"},PrivateMessageUploadThumbnail:{url:(0,n.urlReplacer)("/api/v2/pm/upload/"),method:"POST"},PrivateMessageUploadMediaInChunks:{url:(0,n.urlReplacer)("/api/v2/pm/upload/"),method:"POST"},PrivateMessageChunkUploadDone:{url:(0,n.urlReplacer)("/api/v2/pm/upload/?done"),method:"POST"},DeleteASingleMessage:{url:(0,n.urlReplacer)("/api/v2/pm/$(id)/"),method:"DELETE"},DeleteAThread:{url:(0,n.urlReplacer)("/api/v2/pm/"),method:"DELETE"},PrivateMessageSearchUser:{url:(0,n.urlReplacer)("/api/v2/pm/search/?user=$(search)"),method:"GET"},Device:{url:(0,n.urlReplacer)("/api/v2/device/$(type)/$(id)/"),method:"GET"},NewDevice:{url:(0,n.urlReplacer)("/api/v2/device/$(type)/"),method:"POST"},DeleteDevice:{url:(0,n.urlReplacer)("/api/v2/device/$(type)/$(id)/"),method:"DELETE"},UsersForModeration:{url:(0,n.urlReplacer)("/api/v2/moderation/user/"),method:"GET"},ModerateUser:{url:(0,n.urlReplacer)("/api/v2/moderation/user/$(id)/"),method:"PATCH"},FlaggedContributions:{url:(0,n.urlReplacer)("/api/v2/moderation/contribution/"),method:"GET"},FlagsForSpecificContribution:{url:(0,n.urlReplacer)("/api/v2/moderation/contribution/$(id)/flag/?contribution_type=$(contribution_type)"),method:"GET"},ModerateContribution:{url:(0,n.urlReplacer)("/api/v2/moderation/contribution/$(id)/"),method:"PATCH"},ModerateContributionStatus:{url:(0,n.urlReplacer)("/api/v2/moderation/contribution/$(id)/status/?contribution_type=$(contribution_type)"),method:"GET"},InsightBestContribution:{url:(0,n.urlReplacer)("/api/v2/insight/contribution/"),method:"GET"},InsightBestEmbed:{url:(0,n.urlReplacer)("/api/v2/insight/embed/"),method:"GET"},InsightBestUser:{url:(0,n.urlReplacer)("/api/v2/insight/user/"),method:"GET"},InsightContributionCounter:{url:(0,n.urlReplacer)("/api/v2/insight/contribution/counters/?contribution_id=$(id)"),method:"GET"},InsightEmbedCounter:{url:(0,n.urlReplacer)("/api/v2/insight/embed/counters/?embed_type=$(type)&embed_id=$(id)"),method:"GET"},InsightUserCounter:{url:(0,n.urlReplacer)("/api/v2/insight/user/counters/?user_id=$(id)"),method:"GET"},GetAllIncubators:{url:(0,n.urlReplacer)("/api/v2/incubator/"),method:"GET"},SearchIncubators:{url:(0,n.urlReplacer)("/api/v2/incubator/search/"),method:"GET"},GetASpecificIncubator:{url:(0,n.urlReplacer)("/api/v2/incubator/$(id)/"),method:"GET"},CheckIncubatorSubscription:{url:(0,n.urlReplacer)("/api/v2/incubator/$(id)/subscribed/"),method:"GET"},SubscribeToIncubator:{url:(0,n.urlReplacer)("/api/v2/incubator/$(id)/subscribe/"),method:"POST"},CreateAnIncubator:{url:(0,n.urlReplacer)("/api/v2/incubator/"),method:"POST"},GetIncubatorSubscribers:{url:(0,n.urlReplacer)("/api/v2/incubator/$(id)/subscribers/"),method:"GET"},GetCustomMenus:{url:(0,n.urlReplacer)("/api/v2/custom_menu/"),method:"GET"},CustomMenu:{url:(0,n.urlReplacer)("/api/v2/custom_menu/$(id)/"),method:"GET"},CustomMenuSearch:{url:(0,n.urlReplacer)("/api/v2/custom_menu/search/"),method:"GET"},GetCustomPages:{url:(0,n.urlReplacer)("/api/v2/custom_page/"),method:"GET"},CustomPage:{url:(0,n.urlReplacer)("/api/v2/custom_page/$(id)/"),method:"GET"},CustomPageSearch:{url:(0,n.urlReplacer)("/api/v2/custom_page/search/"),method:"GET"},LegalPage:{url:(0,n.urlReplacer)("/api/v2/legal_page/$(id)/"),method:"GET"},GetLegalPages:{url:(0,n.urlReplacer)("/api/v2/legal_page/"),method:"GET"},SearchLegalPages:{url:(0,n.urlReplacer)("/api/v2/legal_page/search/"),method:"GET"},LegalPagesLastRevision:{url:(0,n.urlReplacer)("/api/v2/legal_page/last_revisions/"),method:"GET"},LegalPageLastRevision:{url:(0,n.urlReplacer)("/api/v2/legal_page/$(policy)/"),method:"GET"},LegalPageRevisions:{url:(0,n.urlReplacer)("/api/v2/legal_page/$(policy)/revisions/"),method:"GET"},AckLegalPage:{url:(0,n.urlReplacer)("/api/v2/legal_page/$(id)/ack/"),method:"POST"},SpecificUserAck:{url:(0,n.urlReplacer)("/api/v2/legal_page/$(id)/user_ack/"),method:"GET"},UserAckList:{url:(0,n.urlReplacer)("/api/v2/legal_page/user_acks/"),method:"GET"},WebhookEndpointsList:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/"),method:"GET"},WebhookEventsList:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/event/"),method:"GET"},WebhookCreate:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/"),method:"POST"},GetSpecificWebhook:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/"),method:"GET"},WebhookUpdate:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/"),method:"PUT"},WebhookPatch:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/"),method:"PATCH"},WebhookDelete:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/"),method:"DELETE"},WebhookEndpointAttempts:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/attempt/"),method:"GET"},WebhookExpireSigningSecret:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/secret/expire/"),method:"POST"},WebhookRevealSigningSecret:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/secret/reveal/"),method:"POST"},WebhookResendEndpointEvent:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/event/resend/"),method:"POST"},WebhookResendMultipleEndpointEvent:{url:(0,n.urlReplacer)("/api/v2/webhook/endpoint/$(id)/event/resend/bulk/"),method:"POST"},GenerateDataPortability:{url:(0,n.urlReplacer)("/api/v2/udp/"),method:"POST"},DataPortabilityStatus:{url:(0,n.urlReplacer)("/api/v2/udp/"),method:"GET"},DataPortabilityDownload:{url:(0,n.urlReplacer)("/api/v2/udp/download/"),method:"GET"},ScoresList:{url:(0,n.urlReplacer)("/api/v2/score/"),method:"GET"},SearchScore:{url:(0,n.urlReplacer)("/api/v2/score/search/"),method:"GET"},AddScore:{url:(0,n.urlReplacer)("/api/v2/score/"),method:"POST"},GetReactions:{url:(0,n.urlReplacer)("/api/v2/reaction/"),method:"GET"},GetSpecificReaction:{url:(0,n.urlReplacer)("/api/v2/reaction/$(id)/"),method:"GET"},GetUserGroups:{url:(0,n.urlReplacer)("/api/v2/group/"),method:"GET"},GetGroupInfo:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/"),method:"GET"},GetGroupFeed:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/feed/"),method:"GET"},SearchGroups:{url:(0,n.urlReplacer)("/api/v2/group/search/"),method:"GET"},CreateGroup:{url:(0,n.urlReplacer)("/api/v2/group/"),method:"POST"},UpdateGroup:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/"),method:"PUT"},PatchGroup:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/"),method:"PATCH"},DeleteGroup:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/"),method:"DELETE"},GetGroupSuggestedUsers:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/user/?search=$(search)"),method:"GET"},GetGroupsSuggestedUsers:{url:(0,n.urlReplacer)("/api/v2/group/user/?search=$(search)"),method:"GET"},InviteOrAcceptGroupRequest:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/invite/"),method:"POST"},GetGroupInvitedUsers:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/invite/"),method:"GET"},GetGroupSubscriptionStatus:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/status/"),method:"GET"},SubscribeToGroup:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/subscribe/"),method:"POST"},GetGroupSubscribers:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/subscribe/"),method:"GET"},GetGroupWaitingApprovalSubscribers:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/request_subscribe/"),method:"GET"},UnsubscribeFromGroup:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/subscribe/"),method:"DELETE"},RemoveUserFromGroup:{url:(0,n.urlReplacer)("/api/v2/group/$(id)/subscribe/?user=$(user)"),method:"DELETE"},GetUserSubscribedGroups:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/groups/"),method:"GET"},GetUserEvents:{url:(0,n.urlReplacer)("/api/v2/event/"),method:"GET"},GetEventInfo:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/"),method:"GET"},GetEventFeed:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/feed/"),method:"GET"},SearchEvents:{url:(0,n.urlReplacer)("/api/v2/event/search/"),method:"GET"},CreateEvent:{url:(0,n.urlReplacer)("/api/v2/event/"),method:"POST"},UpdateEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/"),method:"PUT"},DeleteEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/"),method:"DELETE"},PatchEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/"),method:"PATCH"},GetEventSuggestedUsers:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/user/?search=$(search)"),method:"GET"},GetUsersGoingToEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/going/"),method:"GET"},GetUsersNotGoingToEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/not_going/"),method:"GET"},GoToEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/going/"),method:"POST"},RemoveGoingToEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/going/"),method:"DELETE"},NotGoingToEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/not_going/"),method:"POST"},RemoveNotGoingToEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/not_going/"),method:"DELETE"},GetEventsSuggestedUsers:{url:(0,n.urlReplacer)("/api/v2/event/user/?search=$(search)"),method:"GET"},InviteOrAcceptEventRequest:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/invite/"),method:"POST"},RemoveInviteEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/invite/"),method:"DELETE"},GetEventInvitedUsers:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/invite/"),method:"GET"},GetEventSubscriptionStatus:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/status/"),method:"GET"},SubscribeToEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/subscribe/"),method:"POST"},GetEventSubscribers:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/subscribe/"),method:"GET"},GetEventWaitingApprovalSubscribers:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/request_subscribe/"),method:"GET"},UnsubscribeFromEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/subscribe/"),method:"DELETE"},GetUserSubscribedEvents:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/events/"),method:"GET"},GetEventRelated:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/related/"),method:"GET"},GetUserCreatedEvents:{url:(0,n.urlReplacer)("/api/v2/event/created/"),method:"GET"},ShowEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/show/"),method:"POST"},HideEvent:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/hide/"),method:"POST"},GetEventPhotoGallery:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/gallery/"),method:"GET"},AddMediaToEventPhotoGallery:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/gallery/"),method:"POST"},RemoveMediasFromEventPhotoGallery:{url:(0,n.urlReplacer)("/api/v2/event/$(id)/gallery/"),method:"DELETE"},GetLiveStreamInfo:{url:(0,n.urlReplacer)("/api/v2/live_stream/$(id)/"),method:"GET"},SearchLiveStream:{url:(0,n.urlReplacer)("/api/v2/live_stream/search/"),method:"GET"},CreateLiveStream:{url:(0,n.urlReplacer)("/api/v2/live_stream/"),method:"POST"},UpdateLiveStream:{url:(0,n.urlReplacer)("/api/v2/live_stream/$(id)/"),method:"PUT"},DeleteLiveStream:{url:(0,n.urlReplacer)("/api/v2/live_stream/$(id)/"),method:"DELETE"},PatchLiveStream:{url:(0,n.urlReplacer)("/api/v2/live_stream/$(id)/"),method:"PATCH"},CloseLiveStream:{url:(0,n.urlReplacer)("/api/v2/live_stream/$(id)/close/"),method:"POST"},JoinLiveStream:{url:(0,n.urlReplacer)("/api/v2/live_stream/$(id)/join/"),method:"POST"},RemoveParticipant:{url:(0,n.urlReplacer)("/api/v2/live_stream/$(id)/remove_participant/"),method:"POST"},GetLiveStreamMonthlyDuration:{url:(0,n.urlReplacer)("/api/v2/live_stream/monthly_duration/"),method:"GET"},GetAllSteps:{url:(0,n.urlReplacer)("/api/v2/onboarding/"),method:"GET"},GetAStep:{url:(0,n.urlReplacer)("/api/v2/onboarding/$(step)/"),method:"GET"},StartAStep:{url:(0,n.urlReplacer)("/api/v2/onboarding/$(step)/start/"),method:"POST"},CompleteAStep:{url:(0,n.urlReplacer)("/api/v2/onboarding/$(step)/complete/"),method:"POST"},ChangeCourseUserRole:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/role/"),method:"POST"},CreateCourse:{url:(0,n.urlReplacer)("/api/v2/course/"),method:"POST"},CreateCourseComment:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/"),method:"POST"},CreateCourseLesson:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/"),method:"POST"},CreateCourseSection:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/"),method:"POST"},DeleteCourse:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/"),method:"DELETE"},DeleteCourseComment:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/$(comment_id)/"),method:"DELETE"},DeleteCourseLesson:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/"),method:"DELETE"},DeleteCourseSection:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/"),method:"DELETE"},GetCourseComments:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/comment/"),method:"GET"},GetCourseDashboardUsers:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/users/"),method:"GET"},GetCourseInfo:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/"),method:"GET"},GetCourseInvitedUsers:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/invite/"),method:"GET"},GetCourseJoinedUsers:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/join/"),method:"GET"},GetCourseLesson:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/"),method:"GET"},GetCourseLessonComment:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/$(comment_id)/"),method:"GET"},GetCourseLessonComments:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/"),method:"GET"},GetCourseLessons:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/"),method:"GET"},GetCourseSection:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/"),method:"GET"},GetCourseSections:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/"),method:"GET"},GetCourseStatus:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/status/"),method:"GET"},GetCourseWaitingApproval:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/request_join/"),method:"GET"},GetJoinedCourses:{url:(0,n.urlReplacer)("/api/v2/course/"),method:"GET"},InviteOrAcceptUsersToCourse:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/invite/"),method:"POST"},JoinOrAcceptInviteToCourse:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/join/"),method:"POST"},LeaveOrRemoveCourseRequest:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/join/"),method:"DELETE"},MarkLessonComplete:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/complete/"),method:"POST"},MarkLessonIncomplete:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/incomplete/"),method:"POST"},PatchCourse:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/"),method:"PATCH"},PatchCourseComment:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/$(comment_id)/"),method:"PATCH"},PatchCourseLesson:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/"),method:"PATCH"},PatchCourseSection:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/"),method:"PATCH"},RemoveInvitationToCourse:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/invite/"),method:"DELETE"},SearchCourses:{url:(0,n.urlReplacer)("/api/v2/course/search/"),method:"GET"},GetCourseSuggestedUsers:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/user/"),method:"GET"},UpdateCourse:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/"),method:"PUT"},UpdateCourseComment:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/comment/$(comment_id)/"),method:"PUT"},UpdateCourseLesson:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/lesson/$(lesson_id)/"),method:"PUT"},UpdateCourseSection:{url:(0,n.urlReplacer)("/api/v2/course/$(id)/section/$(section_id)/"),method:"PUT"},GetUserJoinedCourses:{url:(0,n.urlReplacer)("/api/v2/user/$(id)/courses/"),method:"GET"},GetCommunities:{url:(0,n.urlReplacer)("/api/v2/community/"),method:"GET"},GetCommunity:{url:(0,n.urlReplacer)("/api/v2/community/$(id)/"),method:"GET"},GetPaymentContentStatus:{url:(0,n.urlReplacer)("/api/v2/payments/content_status/"),method:"GET"},GetPaywalls:{url:(0,n.urlReplacer)("/api/v2/payments/paywall/"),method:"GET"},GetPaywall:{url:(0,n.urlReplacer)("/api/v2/payments/paywall/$(id)/"),method:"GET"},GetPaymentProducts:{url:(0,n.urlReplacer)("/api/v2/payments/payment_product/"),method:"GET"},GetPaymentProduct:{url:(0,n.urlReplacer)("/api/v2/payments/payment_product/$(id)/"),method:"GET"},GetPaymentProductPrices:{url:(0,n.urlReplacer)("/api/v2/payments/payment_product/$(id)/"),method:"GET"},GetCheckoutSession:{url:(0,n.urlReplacer)("/api/v2/payments/checkout_session/"),method:"GET"},CheckoutCreateSession:{url:(0,n.urlReplacer)("/api/v2/payments/checkout_session/"),method:"POST"},CheckoutSessionComplete:{url:(0,n.urlReplacer)("/api/v2/payments/checkout_session/complete/"),method:"POST"},GetPaymentOrders:{url:(0,n.urlReplacer)("/api/v2/payments/payment_order/"),method:"GET"},GetPaymentOrder:{url:(0,n.urlReplacer)("/api/v2/payments/payment_order/$(id)/"),method:"GET"},GetPaymentOrderPdf:{url:(0,n.urlReplacer)("/api/v2/payments/payment_order/$(id)/pdf/"),method:"GET"},CreateCustomerPortalSession:{url:(0,n.urlReplacer)("/api/v2/payments/customer_portal_session/"),method:"POST"},CreatePaymentProduct:{url:(0,n.urlReplacer)("/api/v2/payments/payment_product/price/"),method:"POST"}};t.default=o},94:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SCOPE_API_SERVICES=void 0,t.SCOPE_API_SERVICES="@selfcommunity/api-services"},7475:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ModerationService=t.MediaApiClient=t.MediaService=t.LoyaltyApiClient=t.LoyaltyService=t.LocalityApiClient=t.LocalityService=t.LegalPageApiClient=t.LegalPageService=t.InviteApiClient=t.InviteService=t.InsightApiClient=t.InsightService=t.IncubatorApiClient=t.IncubatorService=t.FeedObjectApiClient=t.FeedObjectService=t.FeedApiClient=t.FeedService=t.EmbedApiClient=t.EmbedService=t.DataPortabilityApiClient=t.DataPortabilityService=t.CustomPageApiClient=t.CustomPageService=t.CustomMenuApiClient=t.CustomMenuService=t.CustomAdvApiClient=t.CustomAdvService=t.CommentApiClient=t.CommentService=t.CategoryApiClient=t.CategoryService=t.FeatureApiClient=t.FeatureService=t.UserApiClient=t.UserService=t.PreferenceApiClient=t.PreferenceService=t.AccountApiClient=t.AccountService=t.Endpoints=t.urlParams=t.parseJwt=t.generateJWTToken=t.getCancelTokenSourceRequest=t.formatHttpErrorCode=t.formatHttpError=t.apiRequest=t.http=void 0,t.CommunityApiClient=t.CommunityService=t.PaymentApiClient=t.PaymentService=t.CourseApiClient=t.CourseService=t.CourseInfoViewType=t.OnBoardingStep=t.OnBoardingApiClient=t.OnBoardingService=t.LiveStreamApiClient=t.LiveStreamService=t.EventApiClient=t.EventService=t.GroupApiClient=t.GroupService=t.ReactionApiClient=t.ReactionService=t.MediaTypes=t.WebhookApiClient=t.WebhookService=t.TagApiClient=t.TagService=t.SuggestionApiClient=t.SuggestionService=t.SSOApiClient=t.SSOService=t.ScoreApiClient=t.ScoreService=t.PromoApiClient=t.PromoService=t.PrivateMessageApiClient=t.PrivateMessageService=t.NotificationApiClient=t.NotificationService=t.ModerationApiClient=void 0;var n=r(2970),o=n.__importDefault(r(8011));t.http=o.default;var i=n.__importDefault(r(5713));t.Endpoints=i.default;var a=r(2722);Object.defineProperty(t,"formatHttpError",{enumerable:!0,get:function(){return a.formatHttpError}}),Object.defineProperty(t,"formatHttpErrorCode",{enumerable:!0,get:function(){return a.formatHttpErrorCode}}),Object.defineProperty(t,"getCancelTokenSourceRequest",{enumerable:!0,get:function(){return a.getCancelTokenSourceRequest}});var u=r(7013);Object.defineProperty(t,"generateJWTToken",{enumerable:!0,get:function(){return u.generateJWTToken}}),Object.defineProperty(t,"parseJwt",{enumerable:!0,get:function(){return u.parseJwt}});var c=r(9714);Object.defineProperty(t,"apiRequest",{enumerable:!0,get:function(){return c.apiRequest}});var s=r(9258);Object.defineProperty(t,"urlParams",{enumerable:!0,get:function(){return s.urlParams}});var l=n.__importStar(r(1216));t.AccountService=l.default,Object.defineProperty(t,"AccountApiClient",{enumerable:!0,get:function(){return l.AccountApiClient}});var f=n.__importStar(r(3523));t.CategoryService=f.default,Object.defineProperty(t,"CategoryApiClient",{enumerable:!0,get:function(){return f.CategoryApiClient}});var d=n.__importStar(r(1358));t.CommentService=d.default,Object.defineProperty(t,"CommentApiClient",{enumerable:!0,get:function(){return d.CommentApiClient}});var p=n.__importStar(r(6598));t.CustomAdvService=p.default,Object.defineProperty(t,"CustomAdvApiClient",{enumerable:!0,get:function(){return p.CustomAdvApiClient}});var h=n.__importStar(r(9053));t.CustomMenuService=h.default,Object.defineProperty(t,"CustomMenuApiClient",{enumerable:!0,get:function(){return h.CustomMenuApiClient}});var v=n.__importStar(r(2897));t.CustomPageService=v.default,Object.defineProperty(t,"CustomPageApiClient",{enumerable:!0,get:function(){return v.CustomPageApiClient}});var y=n.__importStar(r(2230));t.DataPortabilityService=y.default,Object.defineProperty(t,"DataPortabilityApiClient",{enumerable:!0,get:function(){return y.DataPortabilityApiClient}});var g=n.__importStar(r(3755));t.EmbedService=g.default,Object.defineProperty(t,"EmbedApiClient",{enumerable:!0,get:function(){return g.EmbedApiClient}});var m=n.__importStar(r(3537));t.FeatureService=m.default,Object.defineProperty(t,"FeatureApiClient",{enumerable:!0,get:function(){return m.FeatureApiClient}});var _=n.__importStar(r(3663));t.FeedService=_.default,Object.defineProperty(t,"FeedApiClient",{enumerable:!0,get:function(){return _.FeedApiClient}});var E=n.__importStar(r(1117));t.FeedObjectService=E.default,Object.defineProperty(t,"FeedObjectApiClient",{enumerable:!0,get:function(){return E.FeedObjectApiClient}});var S=n.__importStar(r(8473));t.IncubatorService=S.default,Object.defineProperty(t,"IncubatorApiClient",{enumerable:!0,get:function(){return S.IncubatorApiClient}});var O=n.__importStar(r(3912));t.InsightService=O.default,Object.defineProperty(t,"InsightApiClient",{enumerable:!0,get:function(){return O.InsightApiClient}});var b=n.__importStar(r(9001));t.InviteService=b.default,Object.defineProperty(t,"InviteApiClient",{enumerable:!0,get:function(){return b.InviteApiClient}});var C=n.__importStar(r(6433));t.LegalPageService=C.default,Object.defineProperty(t,"LegalPageApiClient",{enumerable:!0,get:function(){return C.LegalPageApiClient}});var T=n.__importStar(r(1748));t.LocalityService=T.default,Object.defineProperty(t,"LocalityApiClient",{enumerable:!0,get:function(){return T.LocalityApiClient}});var w=n.__importStar(r(9327));t.LoyaltyService=w.default,Object.defineProperty(t,"LoyaltyApiClient",{enumerable:!0,get:function(){return w.LoyaltyApiClient}});var A=n.__importStar(r(6539));t.MediaService=A.default,Object.defineProperty(t,"MediaApiClient",{enumerable:!0,get:function(){return A.MediaApiClient}});var R=n.__importStar(r(556));t.ModerationService=R.default,Object.defineProperty(t,"ModerationApiClient",{enumerable:!0,get:function(){return R.ModerationApiClient}});var P=n.__importStar(r(1617));t.NotificationService=P.default,Object.defineProperty(t,"NotificationApiClient",{enumerable:!0,get:function(){return P.NotificationApiClient}});var L=n.__importStar(r(600));t.PreferenceService=L.default,Object.defineProperty(t,"PreferenceApiClient",{enumerable:!0,get:function(){return L.PreferenceApiClient}});var I=n.__importStar(r(5425));t.PrivateMessageService=I.default,Object.defineProperty(t,"PrivateMessageApiClient",{enumerable:!0,get:function(){return I.PrivateMessageApiClient}});var N=n.__importStar(r(7889));t.PromoService=N.default,Object.defineProperty(t,"PromoApiClient",{enumerable:!0,get:function(){return N.PromoApiClient}});var j=n.__importStar(r(9215));t.ScoreService=j.default,Object.defineProperty(t,"ScoreApiClient",{enumerable:!0,get:function(){return j.ScoreApiClient}});var k=n.__importStar(r(5571));t.SSOService=k.default,Object.defineProperty(t,"SSOApiClient",{enumerable:!0,get:function(){return k.SSOApiClient}});var U=n.__importStar(r(9615));t.SuggestionService=U.default,Object.defineProperty(t,"SuggestionApiClient",{enumerable:!0,get:function(){return U.SuggestionApiClient}});var x=n.__importStar(r(3820));t.TagService=x.default,Object.defineProperty(t,"TagApiClient",{enumerable:!0,get:function(){return x.TagApiClient}});var G=n.__importStar(r(9607));t.UserService=G.default,Object.defineProperty(t,"UserApiClient",{enumerable:!0,get:function(){return G.UserApiClient}});var D=n.__importStar(r(2136));t.WebhookService=D.default,Object.defineProperty(t,"WebhookApiClient",{enumerable:!0,get:function(){return D.WebhookApiClient}});var M=n.__importStar(r(4));t.ReactionService=M.default,Object.defineProperty(t,"ReactionApiClient",{enumerable:!0,get:function(){return M.ReactionApiClient}});var F=n.__importStar(r(53));t.GroupService=F.default,Object.defineProperty(t,"GroupApiClient",{enumerable:!0,get:function(){return F.GroupApiClient}});var B=n.__importStar(r(2554));t.EventService=B.default,Object.defineProperty(t,"EventApiClient",{enumerable:!0,get:function(){return B.EventApiClient}});var V=n.__importStar(r(448));t.LiveStreamService=V.default,Object.defineProperty(t,"LiveStreamApiClient",{enumerable:!0,get:function(){return V.LiveStreamApiClient}});var Y=n.__importStar(r(2974));t.OnBoardingService=Y.default,Object.defineProperty(t,"OnBoardingApiClient",{enumerable:!0,get:function(){return Y.OnBoardingApiClient}});var q=n.__importStar(r(8008));t.CourseService=q.default,Object.defineProperty(t,"CourseApiClient",{enumerable:!0,get:function(){return q.CourseApiClient}});var K=n.__importStar(r(9627));t.PaymentService=K.default,Object.defineProperty(t,"PaymentApiClient",{enumerable:!0,get:function(){return K.PaymentApiClient}});var W=n.__importStar(r(6925));t.CommunityService=W.default,Object.defineProperty(t,"CommunityApiClient",{enumerable:!0,get:function(){return W.CommunityApiClient}});var H=r(708);Object.defineProperty(t,"MediaTypes",{enumerable:!0,get:function(){return H.MediaTypes}}),Object.defineProperty(t,"OnBoardingStep",{enumerable:!0,get:function(){return H.OnBoardingStep}}),Object.defineProperty(t,"CourseInfoViewType",{enumerable:!0,get:function(){return H.CourseInfoViewType}})},1216:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.AccountApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=function(){return u((function e(){i(this,e)}),null,[{key:"create",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:s.default.AccountCreate.url({}),method:s.default.AccountCreate.method}))}},{key:"verify",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:s.default.AccountVerify.url({}),method:s.default.AccountVerify.method}))}},{key:"verifyValidationCode",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:s.default.AccountVerifyValidationCode.url({}),method:s.default.AccountVerifyValidationCode.method}))}},{key:"recover",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:s.default.AccountRecover.url({}),method:s.default.AccountRecover.method}))}},{key:"reset",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:s.default.AccountReset.url({}),method:s.default.AccountReset.method}))}},{key:"search",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:s.default.AccountSearch.url({}),method:s.default.AccountSearch.method}))}}])}();t.AccountApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"create",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.create(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"verify",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.verify(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"verifyValidationCode",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.verifyValidationCode(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"recover",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.recover(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"reset",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.reset(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"search",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.search(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=d},3523:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.CategoryApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=function(){return u((function e(){i(this,e)}),null,[{key:"getAllCategories",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:s.default.CategoryList.url({}),method:s.default.CategoryList.method}))}},{key:"searchCategory",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:s.default.SearchCategory.url({}),method:s.default.SearchCategory.method}))}},{key:"createCategory",value:function(e,t){return(0,l.apiRequest)(Object.assign({url:s.default.CreateCategory.url({}),method:s.default.CreateCategory.method,data:e},t))}},{key:"getSpecificCategory",value:function(e,t){return(0,l.apiRequest)(Object.assign({url:s.default.Category.url({id:e}),method:s.default.Category.method},t))}},{key:"updateASpecificCategory",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.UpdateCategory.url({id:e}),method:s.default.UpdateCategory.method,data:t},r))}},{key:"patchASpecificCategory",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.PatchCategory.url({id:e}),method:s.default.PatchCategory.method,data:t},r))}},{key:"deleteASpecificCategory",value:function(e,t){return(0,l.apiRequest)(Object.assign({url:s.default.DeleteCategory.url({id:e}),method:s.default.DeleteCategory.method},t))}},{key:"getCategoryAudience",value:function(e,t){return(0,l.apiRequest)(Object.assign({url:s.default.CategoryAudience.url({id:e}),method:s.default.CategoryAudience.method},t))}},{key:"getCategoryFollowers",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.CategoryFollowers.url({id:e}),method:s.default.CategoryFollowers.method,params:t},r))}},{key:"getCategoryFeed",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.CategoryFeed.url({id:e}),method:s.default.CategoryFeed.method,params:t},r))}},{key:"getCategoryTrendingFeed",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{params:t,url:s.default.CategoryTrendingFeed.url({id:e}),method:s.default.CategoryTrendingFeed.method}))}},{key:"getCategoryTrendingFollowers",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.CategoryTrendingPeople.url({id:e}),method:s.default.CategoryTrendingPeople.method,params:t},r))}},{key:"followCategory",value:function(e,t){return(0,l.apiRequest)(Object.assign({url:s.default.FollowCategory.url({id:e}),method:s.default.FollowCategory.method},t))}},{key:"checkCategoryIsFollowed",value:function(e,t){return(0,l.apiRequest)(Object.assign({url:s.default.CheckCategoryIsFollowed.url({id:e}),method:s.default.CheckCategoryIsFollowed.method},t))}},{key:"getFollowedCategories",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:s.default.CategoriesFollowed.url({}),method:s.default.CategoriesFollowed.method}))}},{key:"getPopularCategories",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:s.default.PopularCategories.url({}),method:s.default.PopularCategories.method}))}}])}();t.CategoryApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllCategories",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getAllCategories(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchCategory",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.searchCategory(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createCategory",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.createCategory(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificCategory",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getSpecificCategory(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateASpecificCategory",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.updateASpecificCategory(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"patchASpecificCategory",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.patchASpecificCategory(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"deleteASpecificCategory",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.deleteASpecificCategory(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getCategoryAudience",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getCategoryAudience(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getCategoryFollowers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.getCategoryFollowers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCategoryFeed",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.getCategoryFeed(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCategoryTrendingFeed",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.getCategoryTrendingFeed(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCategoryTrendingFollowers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.getCategoryTrendingFollowers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"followCategory",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.followCategory(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"checkCategoryIsFollowed",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.checkCategoryIsFollowed(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getFollowedCategories",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getFollowedCategories(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getPopularCategories",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getPopularCategories(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=d},1358:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.CommentApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllComments",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.Comments.url({}),"?").concat(r.toString()),method:s.default.Comments.method}))}},{key:"createComment",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.NewComment.url({}),method:s.default.NewComment.method,data:e}))}},{key:"getASpecificComment",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.Comment.url({id:e}),method:s.default.Comment.method}))}},{key:"updateComment",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.UpdateComment.url({id:e}),method:s.default.UpdateComment.method,data:{text:t}}))}},{key:"deleteComment",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.DeleteComment.url({id:e}),method:s.default.DeleteComment.method}))}},{key:"restoreComment",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.RestoreComment.url({id:e}),method:s.default.RestoreComment.method}))}},{key:"getSpecificCommentVotesList",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CommentVotesList.url({id:e}),method:s.default.CommentVotesList.method}))}},{key:"upvoteComment",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CommentVote.url({id:e}),method:s.default.CommentVote.method}))}},{key:"getSpecificCommentFlags",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CommentFlagList.url({id:e}),method:s.default.CommentFlagList.method}))}},{key:"flagComment",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.FlagComment.url({id:e}),method:s.default.FlagComment.method,data:{flagType:t}}))}},{key:"getSpecificCommentFlagStatus",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CommentFlagStatus.url({id:e}),method:s.default.CommentFlagStatus.method}))}}])}();t.CommentApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllComments",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllComments(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createComment",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createComment(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getASpecificComment",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getASpecificComment(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateComment",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.updateComment(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"deleteComment",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.deleteComment(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"restoreComment",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.restoreComment(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificCommentVotesList",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificCommentVotesList(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"upvoteComment",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.upvoteComment(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificCommentFlags",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificCommentFlags(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"flagComment",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.flagComment(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getSpecificCommentFlagStatus",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificCommentFlagStatus(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},6925:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.CommunityApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getCommunities",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetCommunities.url({}),"?").concat(r.toString()),method:s.default.GetCommunities.method}))}},{key:"getCommunity",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetCommunity.url({id:e}),method:s.default.GetCommunity.method}))}}])}();t.CommunityApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getCommunities",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getCommunities(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getPaymentProduct",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getCommunity(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},8008:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.CourseApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"changeCourseUserRole",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.ChangeCourseUserRole.url({id:e}),method:s.default.ChangeCourseUserRole.method,data:t}))}},{key:"getJoinedCourses",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetJoinedCourses.url({}),"?").concat(r.toString()),method:s.default.GetJoinedCourses.method}))}},{key:"getUserJoinedCourses",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{params:t,url:s.default.GetUserJoinedCourses.url({id:e}),method:s.default.GetUserJoinedCourses.method}))}},{key:"searchCourses",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:s.default.SearchCourses.url({}),method:s.default.SearchCourses.method}))}},{key:"getSpecificCourseInfo",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{params:t,url:s.default.GetCourseInfo.url({id:e}),method:s.default.GetCourseInfo.method}))}},{key:"getCourseDashboardUsers",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{params:t,url:s.default.GetCourseDashboardUsers.url({id:e}),method:s.default.GetCourseDashboardUsers.method}))}},{key:"createCourse",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CreateCourse.url({}),method:s.default.CreateCourse.method,data:e}))}},{key:"updateCourse",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.UpdateCourse.url({id:e}),method:s.default.UpdateCourse.method,data:t}))}},{key:"patchCourse",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.PatchCourse.url({id:e}),method:s.default.PatchCourse.method,data:t}))}},{key:"deleteCourse",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.DeleteCourse.url({id:e}),method:s.default.DeleteCourse.method}))}},{key:"getCourseLessonComment",value:function(e,t,r,n,o){return(0,l.apiRequest)(Object.assign(Object.assign({},o),{url:s.default.GetCourseLessonComment.url({id:e,section_id:t,lesson_id:r,comment_id:n}),method:s.default.GetCourseLessonComment.method}))}},{key:"getCourseComments",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.GetCourseComments.url({id:e}),method:s.default.GetCourseComments.method,params:t}))}},{key:"createCourseComment",value:function(e,t,r,n,o){return(0,l.apiRequest)(Object.assign(Object.assign({},o),{url:s.default.CreateCourseComment.url({id:e,section_id:t,lesson_id:r}),method:s.default.CreateCourseComment.method,data:n}))}},{key:"updateCourseComment",value:function(e,t,r,n,o,i){return(0,l.apiRequest)(Object.assign(Object.assign({},i),{url:s.default.UpdateCourseComment.url({id:e,section_id:t,lesson_id:r,comment_id:n}),method:s.default.UpdateCourseComment.method,data:o}))}},{key:"patchCourseComment",value:function(e,t,r,n,o,i){return(0,l.apiRequest)(Object.assign(Object.assign({},i),{url:s.default.PatchCourseComment.url({id:e,section_id:t,lesson_id:r,comment_id:n}),method:s.default.PatchCourseComment.method,data:o}))}},{key:"deleteCourseComment",value:function(e,t,r,n,o){return(0,l.apiRequest)(Object.assign(Object.assign({},o),{url:s.default.DeleteCourseComment.url({id:e,section_id:t,lesson_id:r,comment_id:n}),method:s.default.DeleteCourseComment.method}))}},{key:"getCourseSection",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.GetCourseSection.url({id:e,section_id:t}),method:s.default.GetCourseSection.method}))}},{key:"getCourseSections",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetCourseSections.url({id:e}),method:s.default.GetCourseSections.method}))}},{key:"createCourseSection",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.CreateCourseSection.url({id:e}),method:s.default.CreateCourseSection.method,data:t}))}},{key:"updateCourseSection",value:function(e,t,r,n){return(0,l.apiRequest)(Object.assign(Object.assign({},n),{url:s.default.UpdateCourseSection.url({id:e,section_id:t}),method:s.default.UpdateCourseSection.method,data:r}))}},{key:"patchCourseSection",value:function(e,t,r,n){return(0,l.apiRequest)(Object.assign(Object.assign({},n),{url:s.default.PatchCourseSection.url({id:e,section_id:t}),method:s.default.PatchCourseSection.method,data:r}))}},{key:"deleteCourseSection",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.DeleteCourseSection.url({id:e,section_id:t}),method:s.default.DeleteCourseSection.method}))}},{key:"getCourseLesson",value:function(e,t,r,n){return(0,l.apiRequest)(Object.assign(Object.assign({},n),{url:s.default.GetCourseLesson.url({id:e,section_id:t,lesson_id:r}),method:s.default.GetCourseLesson.method}))}},{key:"getCourseLessonComments",value:function(e,t,r,n,o){return(0,l.apiRequest)(Object.assign(Object.assign({},o),{url:s.default.GetCourseLessonComments.url({id:e,section_id:t,lesson_id:r}),method:s.default.GetCourseLessonComments.method,params:n}))}},{key:"getCourseLessons",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.GetCourseLessons.url({id:e,section_id:t}),method:s.default.GetCourseLessons.method}))}},{key:"createCourseLesson",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CreateCourseLesson.url({}),method:s.default.CreateCourseLesson.method,data:e}))}},{key:"updateCourseLesson",value:function(e,t,r,n,o){return(0,l.apiRequest)(Object.assign(Object.assign({},o),{url:s.default.UpdateCourseLesson.url({id:e,section_id:t,lesson_id:r}),method:s.default.UpdateCourseLesson.method,data:n}))}},{key:"patchCourseLesson",value:function(e,t,r,n,o){return(0,l.apiRequest)(Object.assign(Object.assign({},o),{url:s.default.PatchCourseLesson.url({id:e,section_id:t,lesson_id:r}),method:s.default.PatchCourseLesson.method,data:n}))}},{key:"deleteCourseLesson",value:function(e,t,r,n){return(0,l.apiRequest)(Object.assign(Object.assign({},n),{url:s.default.DeleteCourseLesson.url({id:e,section_id:t,lesson_id:r}),method:s.default.DeleteCourseLesson.method}))}},{key:"markLessonComplete",value:function(e,t,r,n){return(0,l.apiRequest)(Object.assign(Object.assign({},n),{url:s.default.MarkLessonComplete.url({id:e,section_id:t,lesson_id:r}),method:s.default.MarkLessonComplete.method}))}},{key:"markLessonIncomplete",value:function(e,t,r,n){return(0,l.apiRequest)(Object.assign(Object.assign({},n),{url:s.default.MarkLessonIncomplete.url({id:e,section_id:t,lesson_id:r}),method:s.default.MarkLessonIncomplete.method}))}},{key:"changeCourseCover",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.PatchCourse.url({id:e}),method:s.default.PatchCourse.method,data:t},r))}},{key:"getCourseWaitingApproval",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetCourseWaitingApproval.url({id:e}),"?").concat(n.toString()),method:s.default.GetCourseWaitingApproval.method}))}},{key:"getCourseSuggestedUsers",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.GetCourseSuggestedUsers.url({id:e,search:t}),method:s.default.GetCourseSuggestedUsers.method}))}},{key:"getCourseInvitedUsers",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetCourseInvitedUsers.url({id:e}),"?").concat(n.toString()),method:s.default.GetCourseInvitedUsers.method}))}},{key:"getCourseJoinedUsers",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetCourseJoinedUsers.url({id:e}),"?").concat(n.toString()),method:s.default.GetCourseJoinedUsers.method}))}},{key:"joinOrAcceptInviteToCourse",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.JoinOrAcceptInviteToCourse.url({id:e}),method:s.default.JoinOrAcceptInviteToCourse.method}))}},{key:"leaveOrRemoveCourseRequest",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.LeaveOrRemoveCourseRequest.url({id:e}),method:s.default.LeaveOrRemoveCourseRequest.method,params:t}))}},{key:"inviteOrAcceptUsersToCourse",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.InviteOrAcceptUsersToCourse.url({id:e}),method:s.default.InviteOrAcceptUsersToCourse.method,data:t}))}},{key:"removeInvitationToCourse",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.RemoveInvitationToCourse.url({id:e}),method:s.default.RemoveInvitationToCourse.method,data:t}))}},{key:"getCourseStatus",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetCourseStatus.url({id:e}),method:s.default.GetCourseStatus.method}))}}])}();t.CourseApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"changeCourseUserRole",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.changeCourseUserRole(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getJoinedCourses",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getJoinedCourses(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserJoinedCourses",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserJoinedCourses(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"searchCourses",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchCourses(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificCourseInfo",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getSpecificCourseInfo(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCourseDashboardUsers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getCourseDashboardUsers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"createCourse",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createCourse(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateCourse",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.updateCourse(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"patchCourse",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.patchCourse(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"deleteCourse",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.deleteCourse(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getCourseLessonComment",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.getCourseLessonComment(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"getCourseComments",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getCourseComments(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"createCourseComment",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.createCourseComment(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"updateCourseComment",value:function(e,t,r,n,i,a){return c.__awaiter(this,void 0,void 0,o().mark((function u(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.updateCourseComment(e,t,r,n,i,a));case 1:case"end":return o.stop()}}),u)})))}},{key:"patchCourseComment",value:function(e,t,r,n,i,a){return c.__awaiter(this,void 0,void 0,o().mark((function u(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.patchCourseComment(e,t,r,n,i,a));case 1:case"end":return o.stop()}}),u)})))}},{key:"deleteCourseComment",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.deleteCourseComment(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"getCourseSection",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getCourseSection(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCourseSections",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getCourseSections(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createCourseSection",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.createCourseSection(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"updateCourseSection",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.updateCourseSection(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"patchCourseSection",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.patchCourseSection(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"deleteCourseSection",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.deleteCourseSection(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCourseLesson",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.getCourseLesson(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"getCourseLessonComments",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.getCourseLessonComments(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"getCourseLessons",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getCourseLessons(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"createCourseLesson",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createCourseLesson(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateCourseLesson",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.updateCourseLesson(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"patchCourseLesson",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.patchCourseLesson(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"deleteCourseLesson",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.deleteCourseLesson(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"markLessonComplete",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.markLessonComplete(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"markLessonIncomplete",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.markLessonIncomplete(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"changeCourseCover",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.changeCourseCover(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCourseWaitingApproval",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getCourseWaitingApproval(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCourseSuggestedUsers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getCourseSuggestedUsers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCourseInvitedUsers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getCourseInvitedUsers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCourseJoinedUsers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getCourseJoinedUsers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"joinOrAcceptInviteToCourse",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.joinOrAcceptInviteToCourse(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"leaveOrRemoveCourseRequest",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.leaveOrRemoveCourseRequest(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"inviteOrAcceptUsersToCourse",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.inviteOrAcceptUsersToCourse(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"removeInvitationToCourse",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.removeInvitationToCourse(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCourseStatus",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getCourseStatus(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},6598:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAdvApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getASpecificCustomAdv",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CustomAdv.url({id:e}),method:l.default.CustomAdv.method}))}},{key:"getAllCustomAdv",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.CustomAdvList.url({}),"?").concat(r.toString()),method:l.default.CustomAdvList.method}))}},{key:"searchCustomAdv",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.CustomAdvSearch.url({}),"?").concat(r.toString()),method:l.default.CustomAdvSearch.method}))}}])}();t.CustomAdvApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getASpecificCustomAdv",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getASpecificCustomAdv(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAllCustomAdv",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllCustomAdv(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchCustomAdv",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchCustomAdv(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},9053:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.CustomMenuApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getASpecificCustomMenu",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CustomMenu.url({id:e}),method:s.default.CustomMenu.method}))}},{key:"getAllCustomMenus",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetCustomMenus.url({}),"?").concat(r.toString()),method:s.default.GetCustomMenus.method}))}},{key:"getBaseCustomMenu",value:function(e){return(0,l.apiRequest)(Object.assign(Object.assign({},e),{url:s.default.CustomMenu.url({id:"base"}),method:s.default.CustomMenu.method}))}},{key:"searchCustomMenus",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.CustomMenuSearch.url({}),"?").concat(r.toString()),method:s.default.CustomMenuSearch.method}))}}])}();t.CustomMenuApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getASpecificCustomMenu",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getASpecificCustomMenu(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAllCustomMenus",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllCustomMenus(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getBaseCustomMenu",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getBaseCustomMenu(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"searchCustomMenus",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchCustomMenus(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},2897:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPageApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getASpecificCustomPage",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CustomPage.url({id:e}),method:s.default.CustomPage.method}))}},{key:"getAllCustomPages",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetCustomPages.url({}),"?").concat(r.toString()),method:s.default.GetCustomPages.method}))}},{key:"searchCustomPages",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.CustomPageSearch.url({}),"?").concat(r.toString()),method:s.default.CustomPageSearch.method}))}}])}();t.CustomPageApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getASpecificCustomPage",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getASpecificCustomPage(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAllCustomPages",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllCustomPages(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchCustomPages",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchCustomPages(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},2230:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.DataPortabilityApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=function(){return u((function e(){i(this,e)}),null,[{key:"generateDataPortability",value:function(e){return(0,s.apiRequest)(Object.assign({url:l.default.GenerateDataPortability.url({}),method:l.default.GenerateDataPortability.method},e))}},{key:"downloadDataPortability",value:function(e){return(0,s.apiRequest)(Object.assign({url:l.default.DataPortabilityDownload.url({}),method:l.default.DataPortabilityDownload.method,responseType:"blob"},e))}},{key:"dataPortabilityStatus",value:function(e){return(0,s.apiRequest)(Object.assign({url:l.default.DataPortabilityStatus.url({}),method:l.default.DataPortabilityStatus.method},e))}}])}();t.DataPortabilityApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"generateDataPortability",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.generateDataPortability(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"downloadDataPortability",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.downloadDataPortability(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"dataPortabilityStatus",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.dataPortabilityStatus(e));case 1:case"end":return t.stop()}}),t)})))}}])}();t.default=d},3755:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllEmbeds",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.EmbedList.url({}),"?").concat(r.toString()),method:l.default.EmbedList.method}))}},{key:"createEmbed",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.EmbedCreate.url({}),method:l.default.EmbedCreate.method,data:e}))}},{key:"searchEmbed",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.EmbedSearch.url({}),"?").concat(r.toString()),method:l.default.EmbedSearch.method}))}},{key:"getSpecificEmbed",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.Embed.url({id:e}),method:l.default.Embed.method}))}},{key:"updateASpecificEmbed",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UpdateEmbed.url({id:e}),method:l.default.UpdateEmbed.method,data:t}))}},{key:"patchASpecificEmbed",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.PatchEmbed.url({id:e}),method:l.default.PatchEmbed.method,data:t}))}},{key:"getEmbedFeed",value:function(e,t,r){var n=(0,f.urlParams)(Object.assign(Object.assign({},e&&{embed_type:e}),t&&{embed_id:t}));return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.EmbedFeed.url({}),"?").concat(n.toString()),method:l.default.EmbedFeed.method}))}},{key:"getSpecificEmbedFeed",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.SpecificEmbedFeed.url({id:e}),method:l.default.SpecificEmbedFeed.method}))}}])}();t.EmbedApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllEmbeds",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllEmbeds(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchEmbed",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchEmbed(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createEmbed",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createEmbed(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificEmbed",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificEmbed(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateASpecificEmbed",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.updateASpecificEmbed(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"patchASpecificEmbed",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.patchASpecificEmbed(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getEmbedFeed",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEmbedFeed(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getSpecificEmbedFeed",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificEmbedFeed(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},2554:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.EventApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getUserEvents",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetUserEvents.url({}),"?").concat(r.toString()),method:s.default.GetUserEvents.method}))}},{key:"getUserSubscribedEvents",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetUserSubscribedEvents.url({id:e}),"?").concat(n.toString()),method:s.default.GetUserSubscribedEvents.method}))}},{key:"getUserCreatedEvents",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetUserCreatedEvents.url({}),"?").concat(r.toString()),method:s.default.GetUserCreatedEvents.method}))}},{key:"searchEvents",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.SearchEvents.url({}),"?").concat(r.toString()),method:s.default.SearchEvents.method}))}},{key:"getSpecificEventInfo",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetEventInfo.url({id:e}),method:s.default.GetEventInfo.method}))}},{key:"getEventFeed",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetEventFeed.url({id:e}),"?").concat(n.toString()),method:s.default.GetEventFeed.method}))}},{key:"createEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CreateEvent.url({}),method:s.default.CreateEvent.method,data:e}))}},{key:"updateEvent",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.UpdateEvent.url({id:e}),method:s.default.UpdateEvent.method,data:t}))}},{key:"patchEvent",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.PatchEvent.url({id:e}),method:s.default.PatchEvent.method,data:t}))}},{key:"deleteEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.DeleteEvent.url({id:e}),method:s.default.DeleteEvent.method}))}},{key:"changeEventCover",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.PatchEvent.url({id:e}),method:s.default.PatchEvent.method,data:t},r))}},{key:"getEventMembers",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetEventSubscribers.url({id:e}),"?").concat(n.toString()),method:s.default.GetEventSubscribers.method}))}},{key:"getEventWaitingApprovalSubscribers",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetEventWaitingApprovalSubscribers.url({id:e}),"?").concat(n.toString()),method:s.default.GetEventSubscribers.method}))}},{key:"getEventSuggestedUsers",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.GetEventSuggestedUsers.url({id:e,search:t}),method:s.default.GetEventSuggestedUsers.method}))}},{key:"getEventsSuggestedUsers",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetEventsSuggestedUsers.url({search:e}),method:s.default.GetEventsSuggestedUsers.method}))}},{key:"getEventInvitedUsers",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetEventInvitedUsers.url({id:e}),"?").concat(n.toString()),method:s.default.GetEventInvitedUsers.method}))}},{key:"getUsersGoingToEvent",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetUsersGoingToEvent.url({id:e}),"?").concat(n.toString()),method:s.default.GetUsersGoingToEvent.method}))}},{key:"getUsersNotGoingToEvent",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetUsersNotGoingToEvent.url({id:e}),"?").concat(n.toString()),method:s.default.GetUsersNotGoingToEvent.method}))}},{key:"subscribeToEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.SubscribeToEvent.url({id:e}),method:s.default.SubscribeToEvent.method}))}},{key:"unsubscribeFromEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.UnsubscribeFromEvent.url({id:e}),method:s.default.UnsubscribeFromEvent.method}))}},{key:"inviteOrAcceptEventRequest",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.InviteOrAcceptEventRequest.url({id:e}),method:s.default.InviteOrAcceptEventRequest.method,data:t}))}},{key:"removeInviteEvent",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.RemoveInviteEvent.url({id:e}),method:s.default.RemoveInviteEvent.method,data:t}))}},{key:"getEventSubscriptionStatus",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetEventSubscriptionStatus.url({id:e}),method:s.default.GetEventSubscriptionStatus.method}))}},{key:"goToEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GoToEvent.url({id:e}),method:s.default.GoToEvent.method}))}},{key:"removeGoingToEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.RemoveGoingToEvent.url({id:e}),method:s.default.RemoveGoingToEvent.method}))}},{key:"notGoingToEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.NotGoingToEvent.url({id:e}),method:s.default.NotGoingToEvent.method}))}},{key:"removeNotGoingToEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.RemoveNotGoingToEvent.url({id:e}),method:s.default.RemoveNotGoingToEvent.method}))}},{key:"getEventRelated",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetEventRelated.url({id:e}),"?").concat(n.toString()),method:s.default.GetEventRelated.method}))}},{key:"showEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.ShowEvent.url({id:e}),method:s.default.ShowEvent.method}))}},{key:"hideEvent",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.hideEvent.url({id:e}),method:s.default.hideEvent.method}))}},{key:"getEventPhotoGallery",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetEventPhotoGallery.url({id:e}),"?").concat(n.toString()),method:s.default.GetEventPhotoGallery.method}))}},{key:"addMediaToEventPhotoGallery",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.AddMediaToEventPhotoGallery.url({id:e}),method:s.default.AddMediaToEventPhotoGallery.method}))}},{key:"removeMediasFromEventPhotoGallery",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.RemoveMediasFromEventPhotoGallery.url({id:e}),method:s.default.RemoveMediasFromEventPhotoGallery.method}))}}])}();t.EventApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getUserEvents",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserEvents(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserSubscribedEvents",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserSubscribedEvents(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getUserCretaedEvents",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserCreatedEvents(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchEvents",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchEvents(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificEventInfo",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificEventInfo(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getEventFeed",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEventFeed(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"createEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateEvent",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.updateEvent(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"patchEvent",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.patchEvent(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"deleteEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.deleteEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"changeEventCover",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.changeEventCover(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getEventMembers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEventMembers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getEventWaitingApprovalSubscribers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEventWaitingApprovalSubscribers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getEventSuggestedUsers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEventSuggestedUsers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getEventsSuggestedUsers",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getEventsSuggestedUsers(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getEventInvitedUsers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEventInvitedUsers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getUsersGoingToEvent",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUsersGoingToEvent(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getUsersNotGoingToEvent",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUsersNotGoingToEvent(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"subscribeToEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.subscribeToEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"unsubscribeFromEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.unsubscribeFromEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"inviteOrAcceptEventRequest",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.inviteOrAcceptEventRequest(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"removeInviteEvent",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.removeInviteEvent(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getEventSubscriptionStatus",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getEventSubscriptionStatus(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"goToEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.goToEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"removeGoingToEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.removeGoingToEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"notGoingToEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.notGoingToEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"removeNotGoingToEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.removeNotGoingToEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getEventRelated",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEventRelated(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"showEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.showEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"hideEvent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.hideEvent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getEventPhotoGallery",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEventPhotoGallery(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"addMediaToEventPhotoGallery",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.addMediaToEventPhotoGallery(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"removeMediasFromEventPhotoGallery",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.removeMediasFromEventPhotoGallery(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},3537:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllFeatures",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.Feature.url({}),"?").concat(r.toString()),method:l.default.Feature.method}))}}])}();t.FeatureApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllFeatures",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllFeatures(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},3663:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.FeedApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getMainFeed",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.MainFeed.url({}),"?").concat(r.toString()),method:l.default.MainFeed.method}))}},{key:"getExploreFeed",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.ExploreFeed.url({}),"?").concat(r.toString()),method:l.default.ExploreFeed.method}))}},{key:"getMainFeedUnseenCount",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.MainFeedUnseenCount.url({}),method:l.default.MainFeedUnseenCount.method}))}},{key:"markReadASpecificFeedObj",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.FeedObjectMarkRead.url({}),method:l.default.FeedObjectMarkRead.method,data:{object:e}}))}},{key:"likeFeedObjs",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.FeedLikeThese.url({}),method:l.default.FeedLikeThese.method,data:{object:e}}))}}])}();t.FeedApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getMainFeed",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getMainFeed(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getExploreFeed",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getExploreFeed(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getMainFeedUnseenCount",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getMainFeedUnseenCount(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"markReadASpecificFeedObj",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.markReadASpecificFeedObj(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"likeFeedObjs",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.likeFeedObjs(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},1117:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.FeedObjectApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllFeedObjects",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.FeedObjectList.url({type:e}),"?").concat(n.toString()),method:l.default.FeedObjectList.method}))}},{key:"getUncommentedFeedObjects",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.FeedObjectsUncommented.url({type:e}),"?").concat(n.toString()),method:l.default.FeedObjectsUncommented.method}))}},{key:"searchFeedObject",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.SearchFeedObject.url({type:e}),"?").concat(n.toString()),method:l.default.SearchFeedObject.method}))}},{key:"createFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.CreateFeedObject.url({type:e}),method:l.default.CreateFeedObject.method,data:t}))}},{key:"getSpecificFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.FeedObject.url({type:e,id:t}),method:l.default.FeedObject.method}))}},{key:"updateFeedObject",value:function(e,t,r,n){return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:l.default.UpdateFeedObject.url({id:t,type:e}),method:l.default.UpdateFeedObject.method,data:r}))}},{key:"deleteFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.DeleteFeedObject.url({type:e,id:t}),method:l.default.DeleteFeedObject.method}))}},{key:"feedObjectContributorsList",value:function(e,t,r,n){var o=(0,f.urlParams)(r);return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:"".concat(l.default.FeedObjectContributorsList.url({type:e,id:t}),"?").concat(o.toString()),method:l.default.FeedObjectContributorsList.method}))}},{key:"feedObjectSharesList",value:function(e,t,r,n){var o=(0,f.urlParams)(r);return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:"".concat(l.default.FeedObjectSharesList.url({type:e,id:t}),"?").concat(o.toString()),method:l.default.FeedObjectSharesList.method}))}},{key:"feedObjectUserSharesList",value:function(e,t,r,n){var o=(0,f.urlParams)(r);return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:"".concat(l.default.FeedObjectUserSharesList.url({type:e,id:t}),"?").concat(o.toString()),method:l.default.FeedObjectUserSharesList.method}))}},{key:"restoreFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.RestoreFeedObject.url({type:e,id:t}),method:l.default.RestoreFeedObject.method}))}},{key:"relatedFeedObjects",value:function(e,t,r,n){var o=(0,f.urlParams)(r);return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:"".concat(l.default.RelatedFeedObjects.url({type:e,id:t}),"?").concat(o.toString()),method:l.default.RelatedFeedObjects.method}))}},{key:"voteFeedObject",value:function(e,t,r,n){var o=(0,f.urlParams)(Object.assign({},r&&{reaction:r}));return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:"".concat(l.default.Vote.url({type:e,id:t}),"?").concat(o.toString()),method:l.default.Vote.method}))}},{key:"feedObjectVotes",value:function(e,t,r,n){var o=(0,f.urlParams)(r);return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:"".concat(l.default.VotesList.url({type:e,id:t}),"?").concat(o.toString()),method:l.default.VotesList.method}))}},{key:"feedObjectPollVote",value:function(e,t,r,n){return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:l.default.PollVote.url({type:e,id:t}),method:l.default.PollVote.method,data:{choice:r}}))}},{key:"feedObjectPollVotesList",value:function(e,t,r,n){var o=(0,f.urlParams)(r);return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:"".concat(l.default.PollVotesList.url({type:e,id:t}),"?").concat(o.toString()),method:l.default.PollVotesList.method}))}},{key:"followFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.FollowContribution.url({id:t}),method:l.default.FollowContribution.method}))}},{key:"feedObjectFollowingList",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.FeedObjectFollowingList.url({type:e}),"?").concat(n.toString()),method:l.default.FeedObjectFollowingList.method}))}},{key:"checkIfFollowingFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.CheckIfFollowingFeedObject.url({type:e,id:t}),method:l.default.CheckIfFollowingFeedObject.method}))}},{key:"suspendFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserSuspendContributionNotification.url({type:e,id:t}),method:l.default.UserSuspendContributionNotification.method}))}},{key:"checkIfSuspendedFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserCheckContributionNotificationSuspended.url({type:e,id:t}),method:l.default.UserCheckContributionNotificationSuspended.method}))}},{key:"feedObjectSuspendedList",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.UserListContributionNotificationSuspended.url({type:e}),"?").concat(n.toString()),method:l.default.UserListContributionNotificationSuspended.method}))}},{key:"flagFeedObject",value:function(e,t,r,n){return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:l.default.Flag.url({type:e,id:t}),method:l.default.Flag.method,data:r}))}},{key:"feedObjectFlagStatus",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.FlagStatus.url({type:e,id:t}),method:l.default.FlagStatus.method}))}},{key:"feedObjectFlagList",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.FeedObjectFlagList.url({type:e,id:t}),method:l.default.FeedObjectFlagList.method}))}},{key:"hideFeedObject",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.HideFeedObject.url({type:e,id:t}),method:l.default.HideFeedObject.method}))}},{key:"feedObjectHideStatus",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.FeedObjectHideStatus.url({type:e,id:t}),method:l.default.FeedObjectHideStatus.method}))}}])}();t.FeedObjectApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllFeedObjects",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getAllFeedObjects(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getUncommentedFeedObjects",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUncommentedFeedObjects(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"searchFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.searchFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"createFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.createFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getSpecificFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getSpecificFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"updateFeedObject",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.updateFeedObject(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"deleteFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.deleteFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"feedObjectContributorsList",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.feedObjectContributorsList(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"feedObjectSharesList",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.feedObjectSharesList(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"feedObjectUserSharesList",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.feedObjectUserSharesList(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"restoreFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.restoreFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"relatedFeedObjects",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.relatedFeedObjects(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"voteFeedObject",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.voteFeedObject(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"feedObjectVotes",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.feedObjectVotes(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"feedObjectPollVote",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.feedObjectPollVote(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"feedObjectPollVotesList",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.feedObjectPollVotesList(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"followFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.followFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"feedObjectFollowingList",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.feedObjectFollowingList(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"checkIfFollowingFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.checkIfFollowingFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"suspendFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.suspendFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"checkIfSuspendedFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.checkIfSuspendedFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"feedObjectSuspendedList",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.feedObjectSuspendedList(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"flagFeedObject",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.flagFeedObject(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"feedObjectFlagList",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.feedObjectFlagList(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"feedObjectFlagStatus",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.feedObjectFlagStatus(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"hideFeedObject",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.hideFeedObject(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"feedObjectHideStatus",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.feedObjectHideStatus(e,t,r));case 1:case"end":return n.stop()}}),n)})))}}])}();t.default=p},53:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.GroupApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getUserGroups",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.GetUserGroups.url({}),"?").concat(r.toString()),method:l.default.GetUserGroups.method}))}},{key:"getUserSubscribedGroups",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.GetUserSubscribedGroups.url({id:e}),"?").concat(n.toString()),method:l.default.GetUserSubscribedGroups.method}))}},{key:"searchGroups",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.SearchGroups.url({}),"?").concat(r.toString()),method:l.default.SearchGroups.method}))}},{key:"getSpecificGroupInfo",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetGroupInfo.url({id:e}),method:l.default.GetGroupInfo.method}))}},{key:"getGroupFeed",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.GetGroupFeed.url({id:e}),"?").concat(n.toString()),method:l.default.GetGroupFeed.method}))}},{key:"createGroup",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CreateGroup.url({}),method:l.default.CreateGroup.method,data:e}))}},{key:"updateGroup",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UpdateGroup.url({id:e}),method:l.default.UpdateGroup.method,data:t}))}},{key:"patchGroup",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.PatchGroup.url({id:e}),method:l.default.PatchGroup.method,data:t}))}},{key:"deleteGroup",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.DeleteGroup.url({id:e}),method:l.default.DeleteGroup.method}))}},{key:"changeGroupAvatarOrCover",value:function(e,t,r){return(0,s.apiRequest)(Object.assign({url:l.default.PatchGroup.url({id:e}),method:l.default.PatchGroup.method,data:t},r))}},{key:"getGroupMembers",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.GetGroupSubscribers.url({id:e}),"?").concat(n.toString()),method:l.default.GetGroupSubscribers.method}))}},{key:"getGroupSuggestedUsers",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.GetGroupSuggestedUsers.url({id:e,search:t}),method:l.default.GetGroupSuggestedUsers.method}))}},{key:"getGroupsSuggestedUsers",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetGroupsSuggestedUsers.url({search:e}),method:l.default.GetGroupsSuggestedUsers.method}))}},{key:"removeUserFromGroup",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.RemoveUserFromGroup.url({id:e,user:t}),method:l.default.RemoveUserFromGroup.method}))}},{key:"getGroupInvitedUsers",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.GetGroupInvitedUsers.url({id:e}),"?").concat(n.toString()),method:l.default.GetGroupInvitedUsers.method}))}},{key:"subscribeToGroup",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.SubscribeToGroup.url({id:e}),method:l.default.SubscribeToGroup.method}))}},{key:"unsubscribeFromGroup",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UnsubscribeFromGroup.url({id:e}),method:l.default.UnsubscribeFromGroup.method}))}},{key:"inviteOrAcceptGroupRequest",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.InviteOrAcceptGroupRequest.url({id:e}),method:l.default.InviteOrAcceptGroupRequest.method,data:t}))}},{key:"getGroupSubscriptionStatus",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetGroupSubscriptionStatus.url({id:e}),method:l.default.GetGroupSubscriptionStatus.method}))}},{key:"getGroupWaitingApprovalSubscribers",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.GetGroupWaitingApprovalSubscribers.url({id:e}),"?").concat(n.toString()),method:l.default.GetGroupWaitingApprovalSubscribers.method}))}}])}();t.GroupApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getUserGroups",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserGroups(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserSubscribedGroups",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserSubscribedGroups(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"searchGroups",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchGroups(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificGroupInfo",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificGroupInfo(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getGroupFeed",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getGroupFeed(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"createGroup",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createGroup(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateGroup",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.updateGroup(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"patchGroup",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.patchGroup(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"deleteGroup",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.deleteGroup(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"changeGroupAvatarOrCover",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.changeGroupAvatarOrCover(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getGroupMembers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getGroupMembers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getGroupSuggestedUsers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getGroupSuggestedUsers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getGroupsSuggestedUsers",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getGroupsSuggestedUsers(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"removeUserFromGroup",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.removeUserFromGroup(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getGroupInvitedUsers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getGroupInvitedUsers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"subscribeToGroup",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.subscribeToGroup(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"unsubscribeFromGroup",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.unsubscribeFromGroup(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"inviteOrAcceptGroupRequest",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.inviteOrAcceptGroupRequest(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getGroupSubscriptionStatus",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getGroupSubscriptionStatus(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getGroupWaitingApprovalSubscribers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getGroupWaitingApprovalSubscribers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}}])}();t.default=p},8473:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.IncubatorApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllIncubators",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.GetAllIncubators.url({}),"?").concat(r.toString()),method:l.default.GetAllIncubators.method}))}},{key:"searchIncubators",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.SearchIncubators.url({}),"?").concat(r.toString()),method:l.default.SearchIncubators.method}))}},{key:"getSpecificIncubator",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetASpecificIncubator.url({id:e}),method:l.default.GetASpecificIncubator.method}))}},{key:"createIncubator",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CreateAnIncubator.url({}),method:l.default.CreateAnIncubator.method,data:e}))}},{key:"getIncubatorSubscribers",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetIncubatorSubscribers.url({id:e}),method:l.default.GetIncubatorSubscribers.method}))}},{key:"subscribeToIncubator",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.SubscribeToIncubator.url({id:e}),method:l.default.SubscribeToIncubator.method}))}},{key:"checkIncubatorSubscription",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CheckIncubatorSubscription.url({id:e}),method:l.default.CheckIncubatorSubscription.method}))}}])}();t.IncubatorApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllIncubators",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllIncubators(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchIncubators",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchIncubators(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificIncubator",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificIncubator(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createIncubator",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createIncubator(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getIncubatorSubscribers",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getIncubatorSubscribers(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"subscribeToIncubator",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.subscribeToIncubator(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"checkIncubatorSubscription",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.checkIncubatorSubscription(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},3912:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.InsightApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getBestContributionInsight",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.InsightBestContribution.url({}),"?").concat(r.toString()),method:l.default.InsightBestContribution.method}))}},{key:"getBestEmbedInsight",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.InsightBestEmbed.url({}),"?").concat(r.toString()),method:l.default.InsightBestEmbed.method}))}},{key:"getBestUsersInsight",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.InsightBestUser.url({}),"?").concat(r.toString()),method:l.default.InsightBestUser.method}))}},{key:"getContributionsInsightCounters",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.InsightContributionCounter.url({id:e}),method:l.default.InsightContributionCounter.method}))}},{key:"getEmbedsInsightCounters",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.InsightEmbedCounter.url({type:e,id:t}),method:l.default.InsightEmbedCounter.method}))}},{key:"getUsersInsightCounters",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.InsightUserCounter.url({id:e}),method:l.default.InsightUserCounter.method}))}}])}();t.InsightApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getBestContributionInsight",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getBestContributionInsight(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getBestEmbedInsight",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getBestEmbedInsight(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getBestUsersInsight",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getBestUsersInsight(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getContributionsInsightCounters",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getContributionsInsightCounters(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getEmbedsInsightCounters",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getEmbedsInsightCounters(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getUsersInsightCounters",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUsersInsightCounters(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},9001:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.InviteApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=function(){return u((function e(){i(this,e)}),null,[{key:"getSpecificInvite",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.InviteCode.url({code:e}),method:s.default.User.method}))}}])}();t.InviteApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"getSpecificInvite",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getSpecificInvite(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=d},6433:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.LegalPageApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getLegalPages",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetLegalPages.url({}),"?").concat(r.toString()),method:s.default.GetLegalPages.method}))}},{key:"getSpecificLegalPage",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.LegalPage.url({id:e}),method:s.default.LegalPage.method}))}},{key:"getAllRevisionsOfLegalPage",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.LegalPageRevisions.url({policy:e}),method:s.default.LegalPageRevisions.method}))}},{key:"getAllLastRevisionsOfLegalPages",value:function(e){return(0,l.apiRequest)(Object.assign(Object.assign({},e),{url:s.default.LegalPagesLastRevision.url({}),method:s.default.LegalPagesLastRevision.method}))}},{key:"getLastRevisionOfLegalPage",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.LegalPageLastRevision.url({policy:e}),method:s.default.LegalPageLastRevision.method}))}},{key:"searchLegalPages",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.SearchLegalPages.url({}),"?").concat(r.toString()),method:s.default.SearchLegalPages.method}))}},{key:"ackLegalPage",value:function(e,t,r){var n;return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.AckLegalPage.url({id:e}),method:s.default.AckLegalPage.method,data:null!==(n={accept:t})&&void 0!==n?n:null}))}},{key:"getSpecificUserAck",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.SpecificUserAck.url({id:e}),method:s.default.SpecificUserAck.method}))}},{key:"userAckList",value:function(e){return(0,l.apiRequest)(Object.assign(Object.assign({},e),{url:s.default.UserAckList.url({}),method:s.default.UserAckList.method}))}}])}();t.LegalPageApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getLegalPages",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getLegalPages(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificLegalPage",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificLegalPage(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAllRevisionsOfLegalPage",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllRevisionsOfLegalPage(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAllLastRevisionsOfLegalPages",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getAllLastRevisionsOfLegalPages(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"getLastRevisionOfLegalPage",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getLastRevisionOfLegalPage(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchLegalPages",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchLegalPages(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"ackLegalPage",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.ackLegalPage(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getSpecificUserAck",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificUserAck(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userAckList",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.userAckList(e));case 1:case"end":return t.stop()}}),t)})))}}])}();t.default=p},448:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.LiveStreamApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"search",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.SearchLiveStream.url({}),"?").concat(r.toString()),method:s.default.SearchLiveStream.method}))}},{key:"getSpecificInfo",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetLiveStreamInfo.url({id:e}),method:s.default.GetLiveStreamInfo.method}))}},{key:"create",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CreateLiveStream.url({}),method:s.default.CreateLiveStream.method,data:e}))}},{key:"update",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.UpdateLiveStream.url({id:e}),method:s.default.UpdateLiveStream.method,data:t}))}},{key:"patch",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.PatchLiveStream.url({id:e}),method:s.default.PatchLiveStream.method,data:t}))}},{key:"delete",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.DeleteLiveStream.url({id:e}),method:s.default.DeleteLiveStream.method}))}},{key:"close",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CloseLiveStream.url({id:e}),method:s.default.CloseLiveStream.method}))}},{key:"changeCover",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.PatchLiveStream.url({id:e}),method:s.default.PatchLiveStream.method,data:t},r))}},{key:"join",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.JoinLiveStream.url({id:e}),method:s.default.JoinLiveStream.method}))}},{key:"removeParticipant",value:function(e,t,r){return(0,l.apiRequest)(Object.assign({url:s.default.RemoveParticipant.url({id:e}),method:s.default.RemoveParticipant.method,data:t},r))}},{key:"getMonthlyDuration",value:function(e){return(0,l.apiRequest)(Object.assign(Object.assign({},e),{url:s.default.GetLiveStreamMonthlyDuration.url({}),method:s.default.GetLiveStreamMonthlyDuration.method}))}}])}();t.LiveStreamApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"search",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.search(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificInfo",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificInfo(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"create",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.create(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"update",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.update(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"patch",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.patch(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"delete",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.delete(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"close",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.close(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"changeCover",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.changeCover(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"join",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.join(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"removeParticipant",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.removeParticipant(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getMonthlyDuration",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getMonthlyDuration(e));case 1:case"end":return t.stop()}}),t)})))}}])}();t.default=p},1748:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.LocalityApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getLocalities",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetLocalities.url({}),"?").concat(r.toString()),method:s.default.GetLocalities.method}))}},{key:"searchLocalities",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.ComposerLocalitySearch.url({}),"?").concat(r.toString()),method:s.default.ComposerLocalitySearch.method}))}}])}();t.LocalityApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getLocalities",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getLocalities(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchLocalities",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchLocalities(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},9327:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.LoyaltyApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=function(){return u((function e(){i(this,e)}),null,[{key:"getPrizes",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:l.default.GetPrizes.url({}),method:l.default.GetPrizes.method}))}},{key:"createPrize",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CreatePrize.url({}),method:l.default.CreatePrize.method,data:e}))}},{key:"getSpecificPrize",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetSpecificPrize.url({id:e}),method:l.default.GetSpecificPrize.method}))}},{key:"updatePrize",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UpdatePrize.url({id:e}),method:l.default.UpdatePrize.method,data:t}))}},{key:"patchPrize",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.PatchPrize.url({id:e}),method:l.default.PatchPrize.method,data:t}))}},{key:"getAllPrizeRequests",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.GetPrizeRequests.url({}),method:l.default.GetPrizeRequests.method}))}},{key:"createPrizeRequest",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CreatePrizeRequest.url({}),method:l.default.CreatePrizeRequest.method,data:{prize:e}}))}},{key:"getSpecificPrizeRequest",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetSpecificPrizeRequest.url({id:e}),method:l.default.GetSpecificPrizeRequest.method}))}},{key:"patchPrizeRequest",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.PatchPrizeRequest.url({id:e}),method:l.default.PatchPrizeRequest.method,data:{status:t}}))}}])}();t.LoyaltyApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"getPrizes",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getPrizes(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createPrize",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.createPrize(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificPrize",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getSpecificPrize(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updatePrize",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.updatePrize(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"patchPrize",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.patchPrize(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getAllPrizeRequests",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.getAllPrizeRequests(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"createPrizeRequest",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.createPrizeRequest(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificPrizeRequest",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getSpecificPrizeRequest(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"patchPrizeRequest",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.patchPrizeRequest(e,t,r));case 1:case"end":return n.stop()}}),n)})))}}])}();t.default=d},6539:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.MediaApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=function(){return u((function e(){i(this,e)}),null,[{key:"chunkUploadMedia",value:function(e,t,r,n,o){return(0,s.apiRequest)(Object.assign(Object.assign({},o),{url:l.default.ComposerChunkUploadMedia.url({}),method:l.default.ComposerChunkUploadMedia.method,data:e,headers:{"Content-Range":"bytes ".concat(t,"-").concat(r,"/").concat(n)}}))}},{key:"chunkUploadMediaComplete",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.ComposerChunkUploadMediaComplete.url({}),method:l.default.ComposerChunkUploadMediaComplete.method,data:e}))}},{key:"createMedia",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.ComposerMediaCreate.url({}),method:l.default.ComposerMediaCreate.method,data:e}))}},{key:"clickMedia",value:function(e,t,r){var n;return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.MediaClickTracker.url({id:e}),method:l.default.MediaClickTracker.method,data:null!==(n={ip:t})&&void 0!==n?n:null}))}},{key:"getSpecificMedia",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetMedia.url({id:e}),method:l.default.GetMedia.method}))}},{key:"updateMedia",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UpdateMedia.url({id:e}),method:l.default.UpdateMedia.method,data:{image:t}}))}},{key:"deleteMedia",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.DeleteMedia.url({id:e}),method:l.default.DeleteMedia.method}))}}])}();t.MediaApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"chunkUploadMedia",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",f.chunkUploadMedia(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"chunkUploadMediaComplete",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.chunkUploadMediaComplete(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createMedia",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.createMedia(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"clickMedia",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.clickMedia(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getSpecificMedia",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getSpecificMedia(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateMedia",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.updateMedia(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"deleteMedia",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.deleteMedia(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=d},556:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.ModerationApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getUsersForModeration",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.UsersForModeration.url({}),"?").concat(r.toString()),method:l.default.UsersForModeration.method}))}},{key:"moderateASpecificUser",value:function(e,t,r,n,o){var i=(0,f.urlParams)(Object.assign(Object.assign({},r&&{days_blocked:r}),n&&{hard:n}));return(0,s.apiRequest)(Object.assign(Object.assign({},o),{url:"".concat(l.default.ModerateUser.url({id:e}),"?").concat(i.toString()),method:l.default.ModerateUser.method,data:{status:t}}))}},{key:"getAllFlaggedContributions",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.FlaggedContributions.url({}),"?").concat(r.toString()),method:l.default.FlaggedContributions.method}))}},{key:"getAllFlagsForSpecificContribution",value:function(e,t,r,n){return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:l.default.FlagsForSpecificContribution.url({id:e,contribution_type:t}),method:l.default.FlagsForSpecificContribution.method,data:{flag_type:null!=r?r:null}}))}},{key:"moderateAContribution",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.ModerateContribution.url({id:e}),method:l.default.ModerateContribution.method,data:t}))}},{key:"getContributionModerationStatus",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.ModerateContributionStatus.url({id:e,contribution_type:t}),method:l.default.ModerateContributionStatus.method}))}}])}();t.ModerationApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getUsersForModeration",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUsersForModeration(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"moderateASpecificUser",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.moderateASpecificUser(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"getAllFlaggedContributions",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllFlaggedContributions(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAllFlagsForSpecificContribution",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.getAllFlagsForSpecificContribution(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"moderateAContribution",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.moderateAContribution(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getContributionModerationStatus",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getContributionModerationStatus(e,t,r));case 1:case"end":return n.stop()}}),n)})))}}])}();t.default=p},1617:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=function(){return u((function e(){i(this,e)}),null,[{key:"listUserNotification",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.UserNotificationList.url({}),method:l.default.UserNotificationList.method}))}},{key:"markReadNotification",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserMarkReadNotification.url({}),method:l.default.UserMarkReadNotification.method,data:{sids:e}}))}},{key:"getUnseenNotification",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.UserUnseenNotificationCount.url({}),method:l.default.UserUnseenNotificationCount.method}))}},{key:"createCustomNotification",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CreateCustomNotification.url({}),method:l.default.CreateCustomNotification.method,data:e}))}},{key:"listBroadcastMessages",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.BroadcastMessagesList.url({}),method:l.default.BroadcastMessagesList.method}))}},{key:"listBroadcastMessagesUnseenCount",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.BroadcastMessagesUnseenCount.url({}),method:l.default.BroadcastMessagesUnseenCount.method}))}},{key:"listBroadcastMessagesUndisposedCount",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.BroadcastMessagesUndisposedCount.url({}),method:l.default.BroadcastMessagesUndisposedCount.method}))}},{key:"markReadBroadcastMessages",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.BroadcastMessagesMarkRead.url({}),method:l.default.BroadcastMessagesMarkRead.method,data:{banner_ids:e}}))}},{key:"disposeBroadcastMessages",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.BroadcastMessagesDispose.url({}),method:l.default.BroadcastMessagesDispose.method,data:{banner_ids:e}}))}}])}();t.NotificationApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"listUserNotification",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.listUserNotification(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"markReadNotification",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.markReadNotification(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUnseenNotification",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.getUnseenNotification(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"createCustomNotification",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.createCustomNotification(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"listBroadcastMessages",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.listBroadcastMessages(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"listBroadcastMessagesUnseenCount",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.listBroadcastMessagesUnseenCount(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"listBroadcastMessagesUndisposedCount",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.listBroadcastMessagesUndisposedCount(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"disposeBroadcastMessages",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.disposeBroadcastMessages(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"markReadBroadcastMessages",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.markReadBroadcastMessages(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=d},2974:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.OnBoardingApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=function(){return u((function e(){i(this,e)}),null,[{key:"getAllSteps",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:s.default.GetAllSteps.url({}),method:s.default.GetAllSteps.method}))}},{key:"getAStep",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetAStep.url({step:e}),method:s.default.GetAStep.method}))}},{key:"startAStep",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{params:t,url:s.default.StartAStep.url({step:e}),method:s.default.StartAStep.method}))}},{key:"completeAStep",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CompleteAStep.url({step:e}),method:s.default.CompleteAStep.method}))}}])}();t.OnBoardingApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllSteps",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getAllSteps(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAStep",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getAStep(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"startAStep",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.startAStep(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"completeAStep",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.completeAStep(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=d},9627:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.PaymentApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getPaymentContentStatus",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{params:e,url:"".concat(s.default.GetPaymentContentStatus.url({})),method:s.default.GetPaymentContentStatus.method}))}},{key:"getPaywalls",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetPaywalls.url({}),"?").concat(r.toString()),method:s.default.GetPaywalls.method}))}},{key:"getPaymentProducts",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign({url:"".concat(s.default.GetPaymentProducts.url({}),"?").concat(r.toString()),method:s.default.GetPaymentProducts.method},t))}},{key:"getPaymentProduct",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetPaymentProduct.url({id:e}),method:s.default.GetPaymentProduct.method}))}},{key:"getPaymentProductPrices",value:function(e,t,r){var n=(0,f.urlParams)(t);return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(s.default.GetPaymentProductPrices.url({id:e}),"?").concat(n.toString()),method:s.default.GetPaymentProductPrices.method}))}},{key:"checkoutCreateSession",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CheckoutCreateSession.url({}),method:s.default.CheckoutCreateSession.method,data:e}))}},{key:"createPaymentProduct",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CreatePaymentProduct.url({}),method:s.default.CreatePaymentProduct.method,data:e}))}},{key:"getCheckoutSession",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetCheckoutSession.url({}),"?").concat(r.toString()),method:s.default.GetCheckoutSession.method}))}},{key:"checkoutCompleteSession",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CheckoutSessionComplete.url({}),method:s.default.CheckoutSessionComplete.method,data:e}))}},{key:"getPaymentsOrder",value:function(e,t){var r=(0,f.urlParams)(e);return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetPaymentOrders.url({}),"?").concat(r.toString()),method:s.default.GetPaymentOrders.method}))}},{key:"getPaymentOrder",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetPaymentOrder.url({id:e})),method:s.default.GetPaymentOrder.method}))}},{key:"getPaymentOrderPdf",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(s.default.GetPaymentOrderPdf.url({id:e})),method:s.default.GetPaymentOrderPdf.method}))}},{key:"getPaymentsCustomerPortal",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.CreateCustomerPortalSession.url({}),method:s.default.CreateCustomerPortalSession.method,data:e}))}}])}();t.PaymentApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getPaymentContentStatus",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getPaymentContentStatus(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getPaywalls",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getPaywalls(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getPaymentProducts",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getPaymentProducts(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getPaymentProduct",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getPaymentProduct(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getPaymentProductPrices",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getPaymentProductPrices(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"checkoutCreateSession",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.checkoutCreateSession(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getCheckoutSession",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getCheckoutSession(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"checkoutCompleteSession",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.checkoutCompleteSession(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getPaymentsOrder",value:function(e,t){return d.getPaymentsOrder(e,t)}},{key:"getPaymentOrder",value:function(e,t){return d.getPaymentOrder(e,t)}},{key:"getPaymentOrderPdf",value:function(e,t){return d.getPaymentOrderPdf(e,t)}},{key:"getPaymentsCustomerPortal",value:function(e,t){return d.getPaymentsCustomerPortal(e,t)}},{key:"createPaymentProduct",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createPaymentProduct(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},600:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.PreferenceApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllPreferences",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.Preferences.url({}),method:l.default.Preferences.method}))}},{key:"searchPreferences",value:function(e,t,r,n,o){var i=(0,f.urlParams)(Object.assign(Object.assign(Object.assign(Object.assign({},e&&{search:e}),t&&{section:t}),r&&{keys:r}),n&&{ordering:n}));return(0,s.apiRequest)(Object.assign(Object.assign({},o),{url:"".concat(l.default.Preferences.url({}),"?").concat(i.toString()),method:l.default.Preferences.method}))}},{key:"getSpecificPreference",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetPreference.url({id:e}),method:l.default.Preferences.method}))}},{key:"updatePreferences",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UpdatePreferences.url(),method:l.default.UpdatePreferences.method,data:e}))}}])}();t.PreferenceApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllPreferences",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getAllPreferences(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"searchPreferences",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.searchPreferences(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"getSpecificPreference",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificPreference(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updatePreferences",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.updatePreferences(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},5425:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.PrivateMessageApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllSnippets",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.GetSnippets.url({}),method:l.default.GetSnippets.method}))}},{key:"getAThread",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.GetAThread.url({}),"?").concat(r.toString()),method:l.default.GetAThread.method}))}},{key:"getASingleMessage",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetASingleMessage.url({id:e}),method:l.default.GetASingleMessage.method}))}},{key:"sendAMessage",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:l.default.SendMessage.url({}),method:l.default.SendMessage.method}))}},{key:"deleteAMessage",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.DeleteASingleMessage.url({id:e}),method:l.default.DeleteASingleMessage.method}))}},{key:"deleteAThread",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.DeleteAThread.url({}),"?").concat(r.toString()),method:l.default.DeleteAThread.method}))}},{key:"uploadMedia",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:l.default.PrivateMessageUploadMedia.url({}),method:l.default.PrivateMessageUploadMedia.method}))}},{key:"uploadThumbnail",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:l.default.PrivateMessageUploadThumbnail.url({}),method:l.default.PrivateMessageUploadThumbnail.method}))}},{key:"uploadMediaInChunks",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:l.default.PrivateMessageUploadMediaInChunks.url({}),method:l.default.PrivateMessageUploadMediaInChunks.method}))}},{key:"chunkUploadDone",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.PrivateMessageChunkUploadDone.url({}),method:l.default.PrivateMessageChunkUploadDone.method,data:e}))}},{key:"searchUser",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.PrivateMessageSearchUser.url({search:e}),method:l.default.PrivateMessageSearchUser.method}))}}])}();t.PrivateMessageApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllSnippets",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getAllSnippets(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"getAThread",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAThread(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getASingleMessage",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getASingleMessage(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"sendAMessage",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.sendAMessage(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"deleteAMessage",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.deleteAMessage(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"deleteAThread",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.deleteAThread(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"uploadMedia",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.uploadMedia(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"uploadThumbnail",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.uploadThumbnail(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"uploadMediaInChunks",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.uploadMediaInChunks(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"chunkUploadDone",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.chunkUploadDone(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchUser",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchUser(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},7889:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.PromoApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=function(){return u((function e(){i(this,e)}),null,[{key:"getSpecificPromo",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.PromoCode.url({code:e}),method:s.default.User.method}))}}])}();t.PromoApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"getSpecificPromo",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getSpecificPromo(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=d},4:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.ReactionApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){function e(){i(this,e)}return u(e,null,[{key:"getAllReactions",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.GetReactions.url({}),"?").concat(r.toString()),method:l.default.GetReactions.method}))}},{key:"getAllReactionsList",value:function(t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){var i,a;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=(0,f.urlParams)(t),n.next=3,(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.GetReactions.url({}),"?").concat(i.toString()),method:l.default.GetReactions.method}));case 3:if(!(a=n.sent).next){n.next=10;break}return n.t0=a.results,n.next=8,e.getAllReactionsList(t,Object.assign(Object.assign({},r),{url:a.next,method:l.default.GetReactions.method}));case 8:return n.t1=n.sent,n.abrupt("return",n.t0.concat.call(n.t0,n.t1));case 10:return n.abrupt("return",a.results);case 11:case"end":return n.stop()}}),n)})))}},{key:"getSpecificReaction",value:function(e,t){return(0,s.apiRequest)(Object.assign({url:l.default.GetSpecificReaction.url({id:e}),method:l.default.GetSpecificReaction.method},t))}}])}();t.ReactionApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllReactions",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllReactions(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAllReactionsList",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllReactionsList(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificReaction",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificReaction(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},9215:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.ScoreApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllScores",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.ScoresList.url({}),"?").concat(r.toString()),method:l.default.ScoresList.method}))}},{key:"searchScore",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.SearchScore.url({}),"?").concat(r.toString()),method:l.default.SearchScore.method}))}},{key:"addScore",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.AddScore.url({}),method:l.default.AddScore.method,data:e}))}}])}();t.ScoreApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllScores",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllScores(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchScore",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchScore(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"addScore",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.addScore(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=p},5571:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.SSOApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=function(){return u((function e(){i(this,e)}),null,[{key:"SignIn",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.SignIn.url({}),method:l.default.SignIn.method}))}},{key:"SignUp",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.SignUp.url({}),method:l.default.SignUp.method,data:e}))}}])}();t.SSOApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"SignIn",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.SignIn(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"SignUp",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.SignUp(e,t));case 1:case"end":return r.stop()}}),r)})))}}])}();t.default=d},9615:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.SuggestionApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getCategorySuggestion",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CategoriesSuggestion.url({}),method:l.default.CategoriesSuggestion.method,params:e}))}},{key:"getCourseSuggestion",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CourseSuggestion.url({}),method:l.default.CourseSuggestion.method,params:e}))}},{key:"getIncubatorSuggestion",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetIncubatorSuggestion.url({}),method:l.default.GetIncubatorSuggestion.method,params:e}))}},{key:"getPollSuggestion",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.PollSuggestion.url({}),method:l.default.PollSuggestion.method,params:e}))}},{key:"getUserSuggestion",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserSuggestion.url({}),method:l.default.UserSuggestion.method,params:e}))}},{key:"getEventSuggestion",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.EventSuggestion.url({}),method:l.default.EventSuggestion.method,params:e}))}},{key:"getSearchSuggestion",value:function(e,t,r){var n=(0,f.urlParams)({search:e});return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.SearchSuggestion.url({}),"?").concat(n.toString()),method:l.default.UserSuggestion.method,params:t}))}}])}();t.SuggestionApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getCategorySuggestion",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getCategorySuggestion(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getCourseSuggestion",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getCourseSuggestion(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getIncubatorSuggestion",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getIncubatorSuggestion(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getPollSuggestion",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getPollSuggestion(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserSuggestion",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserSuggestion(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getEventSuggestion",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getEventSuggestion(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSearchSuggestion",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getSearchSuggestion(e,t,r));case 1:case"end":return n.stop()}}),n)})))}}])}();t.default=p},3820:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.TagApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllTags",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.TagsList.url({}),"?").concat(r.toString()),method:l.default.TagsList.method}))}},{key:"createTag",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CreateTag.url({}),method:l.default.CreateTag.method,data:e}))}},{key:"searchTag",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.SearchTag.url({}),"?").concat(r.toString()),method:l.default.SearchTag.method}))}},{key:"getSpecificTag",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.Tag.url({id:e}),method:l.default.Tag.method}))}},{key:"updateTag",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UpdateTag.url({id:e}),method:l.default.UpdateTag.method,data:null!=t?t:null}))}},{key:"patchTag",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.PatchTag.url({id:e}),method:l.default.PatchTag.method,data:null!=t?t:null}))}},{key:"assignATag",value:function(e,t,r,n){return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:l.default.AssignTag.url({id:e}),method:l.default.AssignTag.method,data:t?{user:t}:{category:r}}))}}])}();t.TagApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllTags",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllTags(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createTag",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createTag(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"searchTag",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.searchTag(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificTag",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificTag(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateTag",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.updateTag(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"patchTag",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.patchTag(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"assignATag",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.assignATag(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}}])}();t.default=p},9607:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.UserApiClient=void 0;var c=r(2970),s=r(9714),l=c.__importDefault(r(5713)),f=r(9258),d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllUsers",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.UserList.url({}),"?").concat(r.toString()),method:l.default.UserList.method}))}},{key:"getHiddenUsers",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.ListHiddenUsers.url({}),"?").concat(r.toString()),method:l.default.ListHiddenUsers.method}))}},{key:"getHiddenUsersId",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.ListHiddenUsersId.url({}),"?").concat(r.toString()),method:l.default.ListHiddenUsersId.method}))}},{key:"userAutocomplete",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.UserAutocomplete.url({}),"?").concat(r.toString()),method:l.default.UserAutocomplete.method}))}},{key:"userSearch",value:function(e,t){var r=(0,f.urlParams)(e);return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.UserSearch.url({}),"?").concat(r.toString()),method:l.default.UserSearch.method}))}},{key:"getSpecificUser",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.User.url({id:e}),method:l.default.User.method}))}},{key:"getUserCounters",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserCounters.url({id:e}),method:l.default.UserCounters.method}))}},{key:"userUpdate",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserUpdate.url({id:e}),method:l.default.UserUpdate.method,data:t}))}},{key:"userPatch",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserPatch.url({id:e}),method:l.default.UserPatch.method,data:t}))}},{key:"userDelete",value:function(e,t,r){var n=(0,f.urlParams)(Object.assign({},t&&{hard:t}));return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.UserDelete.url({id:e}),"?").concat(n.toString()),method:l.default.UserDelete.method}))}},{key:"changeUserMail",value:function(e,t,r,n,o){return(0,s.apiRequest)(Object.assign(Object.assign({},o),{url:l.default.ChangeUserMail.url({id:e}),method:l.default.ChangeUserMail.method,data:Object.assign({new_email:t,confirm:r},n?{send_email:n}:{})}))}},{key:"confirmChangeUserMail",value:function(e,t,r,n){return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:l.default.ConfirmUserChangeMail.url({id:e}),method:l.default.ConfirmUserChangeMail.method,data:{new_email:t,validation_code:r}}))}},{key:"changeUserPassword",value:function(e,t,r,n){return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:l.default.ChangeUserPassword.url({id:e}),method:l.default.ChangeUserPassword.method,data:{password:t,new_password:r}}))}},{key:"userSettings",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserSettings.url({id:e}),method:l.default.UserSettings.method}))}},{key:"userSettingsPatch",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserSettingsPatch.url({id:e}),method:l.default.UserSettingsPatch.method,data:null!=t?t:null}))}},{key:"getCurrentUser",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.Me.url(),method:l.default.Me.method}))}},{key:"getCurrentUserAvatar",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.MyAvatar.url({}),method:l.default.MyAvatar.method}))}},{key:"getCurrentUserPermission",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.Permission.url({}),method:l.default.Permission.method}))}},{key:"getCurrentUserPlatform",value:function(e,t){var r=(0,f.urlParams)(Object.assign({},e&&{next:e}));return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:"".concat(l.default.Platform.url({}),"?").concat(r.toString()),method:l.default.Platform.method}))}},{key:"getUserFollowedCategories",value:function(e,t,r){var n=(0,f.urlParams)(Object.assign({},t&&{mutual:t}));return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.FollowedCategories.url({id:e}),"?").concat(n.toString()),method:l.default.FollowedCategories.method}))}},{key:"getUserFeed",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserFeed.url({id:e}),method:l.default.UserFeed.method,params:t}))}},{key:"getUserFollowers",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserFollowers.url({id:e}),method:l.default.UserFollowers.method,params:t}))}},{key:"getUserFollowings",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserFollowings.url({id:e}),method:l.default.UserFollowings.method,params:t}))}},{key:"followUser",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.FollowUser.url({id:e}),method:l.default.FollowUser.method}))}},{key:"checkUserFollowed",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CheckUserFollowed.url({id:e}),method:l.default.CheckUserFollowed.method}))}},{key:"checkUserFollower",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CheckUserFollower.url({id:e}),method:l.default.CheckUserFollower.method}))}},{key:"getUserConnections",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.UserConnections.url({id:e}),method:l.default.UserConnections.method,params:t}))}},{key:"checkUserConnections",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserCheckConnection.url({id:e}),method:l.default.UserCheckConnection.method}))}},{key:"getUserConnectionRequests",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserConnectionRequests.url(),method:l.default.UserConnectionRequests.method,params:e}))}},{key:"getUserRequestConnectionsSent",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserRequestConnectionsSent.url(),method:l.default.UserRequestConnectionsSent.method,params:e}))}},{key:"userAcceptRequestConnection",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserAcceptRequestConnection.url({id:e}),method:l.default.UserAcceptRequestConnection.method}))}},{key:"userRequestConnection",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserRequestConnection.url({id:e}),method:l.default.UserRequestConnection.method}))}},{key:"userRemoveConnection",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserRemoveConnection.url({id:e}),method:l.default.UserRemoveConnection.method}))}},{key:"userCancelRejectConnectionRequest",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserCancelRejectConnectionRequest.url({id:e}),method:l.default.UserCancelRejectConnectionRequest.method}))}},{key:"userCancelRequestConnection",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserCancelRequestConnection.url({id:e}),method:l.default.UserCancelRequestConnection.method}))}},{key:"userRejectConnectionRequest",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserRejectConnectionRequest.url({id:e}),method:l.default.UserRejectConnectionRequest.method}))}},{key:"userMarkSeenConnectionRequest",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserMarkSeenConnectionRequest.url({id:e}),method:l.default.UserMarkSeenConnectionRequest.method}))}},{key:"showHideUser",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserShowHide.url({id:e}),method:l.default.UserShowHide.method}))}},{key:"checkUserHidden",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CheckUserHidden.url({id:e}),method:l.default.CheckUserHidden.method}))}},{key:"checkUserHiddenBy",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.CheckUserHiddenBy.url({id:e}),method:l.default.CheckUserHiddenBy.method}))}},{key:"getUserLoyaltyPoints",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.GetUserLoyaltyPoints.url({id:e}),method:l.default.GetUserLoyaltyPoints.method}))}},{key:"getUserConnectionStatuses",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.UserConnectionStatuses.url({}),method:l.default.UserConnectionStatuses.method,data:{users:e}}))}},{key:"userTagToAddressContribution",value:function(e){return(0,s.apiRequest)(Object.assign(Object.assign({},e),{url:l.default.UserTagToAddressContribution.url({}),method:l.default.UserTagToAddressContribution.method}))}},{key:"checkUserEmailToken",value:function(e,t,r){var n=(0,f.urlParams)({email_token:t});return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:"".concat(l.default.CheckEmailToken.url({id:e}),"?").concat(n.toString()),method:l.default.CheckEmailToken.method}))}},{key:"addUserAvatar",value:function(e,t){return(0,s.apiRequest)(Object.assign({url:l.default.AddAvatar.url({}),method:l.default.AddAvatar.method,data:e},t))}},{key:"getUserAvatars",value:function(e){return(0,s.apiRequest)(Object.assign({url:l.default.GetAvatars.url({}),method:l.default.GetAvatars.method},e))}},{key:"removeUserAvatar",value:function(e,t){return(0,s.apiRequest)(Object.assign({url:l.default.RemoveAvatar.url({}),method:l.default.RemoveAvatar.method,data:{avatar_id:e}},t))}},{key:"setUserPrimaryAvatar",value:function(e,t){return(0,s.apiRequest)(Object.assign({url:l.default.SetPrimaryAvatar.url({}),method:l.default.SetPrimaryAvatar.method,data:{avatar_id:e}},t))}},{key:"getProviderAssociations",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{url:l.default.ProviderAssociations.url({id:e}),method:l.default.ProviderAssociations.method}))}},{key:"createProviderAssociation",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:l.default.CreateProviderAssociation.url({id:e.user_id}),method:l.default.CreateProviderAssociation.method}))}},{key:"deleteProviderAssociation",value:function(e,t){return(0,s.apiRequest)(Object.assign(Object.assign({},t),{data:e,url:l.default.DeleteProviderAssociation.url({id:e.user_id}),method:l.default.DeleteProviderAssociation.method}))}},{key:"getUserLiveStream",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.GetLiveStream.url({id:e}),method:l.default.UserFeed.method,params:t}))}},{key:"getOrderHistory",value:function(e,t,r){return(0,s.apiRequest)(Object.assign(Object.assign({},r),{url:l.default.GetOrderHistory.url({id:e}),method:l.default.GetOrderHistory.method,params:t}))}},{key:"getOrderDetail",value:function(e,t,r,n){return(0,s.apiRequest)(Object.assign(Object.assign({},n),{url:l.default.GetOrderDetail.url({id:e,order:t}),method:l.default.GetOrderDetail.method,params:r}))}}])}();t.UserApiClient=d;var p=function(){return u((function e(){i(this,e)}),null,[{key:"getAllUsers",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getAllUsers(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getHiddenUsers",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getHiddenUsers(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getHiddenUsersId",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getHiddenUsersId(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userAutocomplete",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userAutocomplete(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userSearch",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userSearch(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getSpecificUser",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getSpecificUser(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserCounters",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserCounters(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userUpdate",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.userUpdate(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"userPatch",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.userPatch(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"userDelete",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.userDelete(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"changeUserMail",value:function(e,t,r,n,i){return c.__awaiter(this,void 0,void 0,o().mark((function a(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.changeUserMail(e,t,r,n,i));case 1:case"end":return o.stop()}}),a)})))}},{key:"confirmChangeUserMail",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.confirmChangeUserMail(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"changeUserPassword",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.changeUserPassword(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}},{key:"userSettings",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userSettings(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userSettingsPatch",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.userSettingsPatch(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getCurrentUser",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getCurrentUser(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"getCurrentUserAvatar",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getCurrentUserAvatar(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"getCurrentUserPermission",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getCurrentUserPermission(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"getCurrentUserPlatform",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getCurrentUserPlatform(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserFollowedCategories",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserFollowedCategories(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getUserFeed",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserFeed(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getUserFollowers",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserFollowers(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getUserFollowings",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserFollowings(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"followUser",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.followUser(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"checkUserFollowed",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.checkUserFollowed(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"checkUserFollower",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.checkUserFollower(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserConnections",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserConnections(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"checkUserConnections",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.checkUserConnections(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserConnectionRequests",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserConnectionRequests(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserRequestConnectionsSent",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserRequestConnectionsSent(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userAcceptRequestConnection",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userAcceptRequestConnection(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userRequestConnection",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userRequestConnection(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userRemoveConnection",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userRemoveConnection(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userCancelRejectConnectionRequest",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userCancelRejectConnectionRequest(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userCancelRequestConnection",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userCancelRequestConnection(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userRejectConnectionRequest",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userRejectConnectionRequest(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userMarkSeenConnectionRequest",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.userMarkSeenConnectionRequest(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"showHideUser",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.showHideUser(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"checkUserHidden",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.checkUserHidden(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"checkUserHiddenBy",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.checkUserHiddenBy(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserLoyaltyPoints",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserLoyaltyPoints(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserConnectionStatuses",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getUserConnectionStatuses(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"userTagToAddressContribution",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.userTagToAddressContribution(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"checkUserEmailToken",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.checkUserEmailToken(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"addUserAvatar",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.addUserAvatar(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserAvatars",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d.getUserAvatars(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"removeUserAvatar",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.removeUserAvatar(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"setUserPrimaryAvatar",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.setUserPrimaryAvatar(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getProviderAssociations",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.getProviderAssociations(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"createProviderAssociation",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.createProviderAssociation(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"deleteProviderAssociation",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",d.deleteProviderAssociation(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getUserLiveStream",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getUserLiveStream(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getOrderHistory",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",d.getOrderHistory(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"getOrderDetail",value:function(e,t,r,n){return c.__awaiter(this,void 0,void 0,o().mark((function i(){return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",d.getOrderDetail(e,t,r,n));case 1:case"end":return o.stop()}}),i)})))}}])}();t.default=p},2136:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.WebhookApiClient=void 0;var c=r(2970),s=c.__importDefault(r(5713)),l=r(9714),f=function(){return u((function e(){i(this,e)}),null,[{key:"getAllWebhookEndpoints",value:function(e){return(0,l.apiRequest)(Object.assign(Object.assign({},e),{url:s.default.WebhookEndpointsList.url({}),method:s.default.WebhookEndpointsList.method}))}},{key:"getAllWebhookEvents",value:function(e){return(0,l.apiRequest)(Object.assign(Object.assign({},e),{url:s.default.WebhookEventsList.url({}),method:s.default.WebhookEventsList.method}))}},{key:"createWebhookEndpoint",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.WebhookCreate.url({}),method:s.default.WebhookCreate.method,data:e}))}},{key:"getASpecificWebhookEndpoint",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.GetSpecificWebhook.url({id:e}),method:s.default.GetSpecificWebhook.method}))}},{key:"updateASpecificWebhookEndpoint",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.WebhookUpdate.url({id:e}),method:s.default.WebhookUpdate.method,data:t}))}},{key:"updateASingleWebhookEndpointField",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.WebhookPatch.url({id:e}),method:s.default.WebhookPatch.method,data:t}))}},{key:"deleteWebhookEndpoint",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.WebhookDelete.url({id:e}),method:s.default.WebhookDelete.method}))}},{key:"getAllWebhookEndpointAttempts",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.WebhookEndpointAttempts.url({id:e}),method:s.default.WebhookEndpointAttempts.method}))}},{key:"expireWebhookSigningSecret",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.WebhookExpireSigningSecret.url({id:e}),method:s.default.WebhookExpireSigningSecret.method}))}},{key:"revealWebhookSigningSecret",value:function(e,t){return(0,l.apiRequest)(Object.assign(Object.assign({},t),{url:s.default.WebhookRevealSigningSecret.url({id:e}),method:s.default.WebhookRevealSigningSecret.method}))}},{key:"resendWebhookEndpointEvent",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.WebhookResendEndpointEvent.url({id:e}),method:s.default.WebhookResendEndpointEvent.method,data:{event:t}}))}},{key:"resendMultipleWebhookEndpointEvent",value:function(e,t,r){return(0,l.apiRequest)(Object.assign(Object.assign({},r),{url:s.default.WebhookResendMultipleEndpointEvent.url({id:e}),method:s.default.WebhookResendMultipleEndpointEvent.method,data:{event:t}}))}}])}();t.WebhookApiClient=f;var d=function(){return u((function e(){i(this,e)}),null,[{key:"getAllWebhookEndpoints",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.getAllWebhookEndpoints(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"getAllWebhookEvents",value:function(e){return c.__awaiter(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f.getAllWebhookEvents(e));case 1:case"end":return t.stop()}}),t)})))}},{key:"createWebhookEndpoint",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.createWebhookEndpoint(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getASpecificWebhookEndpoint",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getASpecificWebhookEndpoint(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"updateASpecificWebhookEndpoint",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.updateASpecificWebhookEndpoint(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"updateASingleWebhookEndpointField",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.updateASingleWebhookEndpointField(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"deleteWebhookEndpoint",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.deleteWebhookEndpoint(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"getAllWebhookEndpointAttempts",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.getAllWebhookEndpointAttempts(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"expireWebhookSigningSecret",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.expireWebhookSigningSecret(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"revealWebhookSigningSecret",value:function(e,t){return c.__awaiter(this,void 0,void 0,o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",f.revealWebhookSigningSecret(e,t));case 1:case"end":return r.stop()}}),r)})))}},{key:"resendWebhookEndpointEvent",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.resendWebhookEndpointEvent(e,t,r));case 1:case"end":return n.stop()}}),n)})))}},{key:"resendMultipleWebhookEndpointEvent",value:function(e,t,r){return c.__awaiter(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.resendMultipleWebhookEndpointEvent(e,t,r));case 1:case"end":return n.stop()}}),n)})))}}])}();t.default=d},4848:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.CourseInfoViewType=void 0,(r=t.CourseInfoViewType||(t.CourseInfoViewType={})).USER="user",r.EDIT="edit",r.DASHBOARD="dashboard"},708:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CourseInfoViewType=t.OnBoardingStep=t.MediaTypes=void 0;var n=r(6080);Object.defineProperty(t,"MediaTypes",{enumerable:!0,get:function(){return n.MediaTypes}});var o=r(3925);Object.defineProperty(t,"OnBoardingStep",{enumerable:!0,get:function(){return o.OnBoardingStep}});var i=r(4848);Object.defineProperty(t,"CourseInfoViewType",{enumerable:!0,get:function(){return i.CourseInfoViewType}})},6080:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.MediaTypes=void 0,(r=t.MediaTypes||(t.MediaTypes={})).URL="url",r.SHARE="share",r.EMBED="embed"},3925:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.OnBoardingStep=void 0,(r=t.OnBoardingStep||(t.OnBoardingStep={}))[r.CONTENTS=1]="CONTENTS",r[r.CATEGORIES=2]="CATEGORIES",r[r.APPEARANCE=3]="APPEARANCE",r[r.PROFILE=4]="PROFILE",r[r.INVITE=5]="INVITE",r[r.APP=6]="APP"},9714:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.apiRequest=void 0;var n=r(2970).__importDefault(r(8011)),o=r(94),i=r(2137);t.apiRequest=function(e){return n.default.request(e).then((function(t){return t?t.status>=300?(i.Logger.info(o.SCOPE_API_SERVICES,"Unable to ".concat(e.method," ").concat(e.url," (Response code: ").concat(t.status,").")),Promise.reject(t)):Promise.resolve(t.data):(i.Logger.info(o.SCOPE_API_SERVICES,"Request ".concat(e.method," ").concat(e.url," aborted.")),Promise.reject("Request ".concat(e.method," ").concat(e.url," aborted.")))})).catch((function(t){return i.Logger.warn(o.SCOPE_API_SERVICES,"Unable to ".concat(e.method," ").concat(e.url," ").concat(t)),Promise.reject(t)}))}},2722:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getCancelTokenSourceRequest=t.formatHttpErrorCode=t.formatHttpError=t.defaultError=void 0;var o=r(2970),i=r(2137),a=o.__importDefault(r(14));function u(e){e.request?console.log(e.request):console.log("Error",e.message)}t.defaultError=u;var c=function(e){var t={};if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];n.field?t["".concat((0,i.camelCase)(n.field),"Error")]=Array.isArray(n.messages)?c(n.messages):n.messages:t.error=n.message}else t.error=e.errors;return t};t.formatHttpError=function(e){var t={};return e.response&&e.response.data&&"object"===n(e.response.data)&&e.response.data.errors?t=Object.assign({},c(e.response.data.errors)):u(e),t};var s=function(e){var t={};if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];n.field?t["".concat((0,i.camelCase)(n.field),"Error")]=Array.isArray(n.messages)?s(n.messages):n.messages:t.error=n.code}else t.error=e.errors;return t};t.formatHttpErrorCode=function(e){var t={};return e.response&&e.response.data&&"object"===n(e.response.data)&&e.response.data.errors?t=Object.assign({},s(e.response.data.errors)):u(e),t},t.getCancelTokenSourceRequest=function(){return a.default.CancelToken.source()}},7013:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,a)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,s(_,"constructor",v),s(v,"constructor",h),h.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),s(_,c,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJwt=t.generateJWTToken=void 0;var i=r(2970),a=i.__importStar(r(1137));t.generateJWTToken=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"2h";return i.__awaiter(this,void 0,void 0,o().mark((function n(){var i,u;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={token_type:"access",user_id:e,jti:(new Date).getTime().toString()},u=(new TextEncoder).encode(t),n.next=4,new a.SignJWT(i).setProtectedHeader({alg:"HS256",typ:"JWT"}).setIssuedAt().setExpirationTime(r||"2h").sign(u);case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})))},t.parseJwt=function(e){var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(r)}},9258:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.urlParams=void 0,t.urlParams=function(e){return new URLSearchParams(e)}},6339:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=function(){var e=(0,o.useSCPreferences)().preferences,t=i.CONFIGURATIONS_CONTEXT_MENU_ENABLED in e&&e[i.CONFIGURATIONS_CONTEXT_MENU_ENABLED].value;return(0,a.useEffect)((function(){var e=function(e){e.preventDefault()};if(!t)return document.addEventListener("contextmenu",e),function(){document.removeEventListener("contextmenu",e)}}),[t]),null};var o=r(9723),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=i?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(4592)),a=r(8156);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}},7718:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCAlertMessagesContext=void 0,t.default=function(e){var t,r=e.children,n=void 0===r?null:r,a=(2,function(e){if(Array.isArray(e))return e}(t=(0,o.useState)({maxSnack:3,autoHideDuration:null}))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return u(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],l=a[1];return o.default.createElement(c.Provider,{value:{options:s,setOptions:l}},o.default.createElement(i.SnackbarProvider,s,n))},t.useSCAlertMessages=function(){return(0,o.useContext)(c)};var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=i?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o}(r(8156)),i=r(4584);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=(0,o.createContext)({});t.SCAlertMessagesContext=c},9082:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCContext=void 0,t.default=function(e){var t,r=e.conf,n=e.children,o=(0,i.useMemo)((function(){var e=(0,c.validateOptions)(r,c.validOptions),t=e.validationResult,n=e.settings;return t.hasErrors()?(t.emit(),null):(t.emitWarnings(),a.http.setBasePortal(n.portal),n)}),[r]),l=(2,function(e){if(Array.isArray(e))return e}(t=(0,i.useState)(o))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return f(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=l[0],h=l[1];(0,u.useDeepCompareEffectNoCheck)((function(){v.current&&h(o)}),[o]);var v=(0,s.default)();return i.default.createElement(d.Provider,{value:{settings:p}},p&&p.contextProviders.reduceRight((function(e,t){return i.default.createElement(t,null,e)}),n))},t.useSCContext=function(){return(0,i.useContext)(d)};var o,i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(8156)),a=r(7475),u=r(4537),c=r(2517),s=(o=r(5189))&&o.__esModule?o:{default:o};function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d=(0,i.createContext)({});t.SCContext=d},1249:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCLocaleContext=void 0,t.default=function(e){var t,r=e.children,n=void 0===r?null:r,d=(0,i.useSCContext)(),p=null!==(t=d.settings.locale)&&void 0!==t&&t.default?d.settings.locale.default:u.DEFAULT_LANGUAGE_UI,v=(0,a.loadLocaleData)(p,d.settings),g=h((0,o.useState)(v.locale),2),m=g[0],_=g[1],E=h((0,o.useState)(v.messages),2),S=E[0],O=E[1],b=(0,o.useMemo)((function(){return function(e){var t,r=(0,a.loadLocaleData)(e,d.settings),n=r.messages,o=r.locale;_((t={messages:n,locale:o}).locale),O(t.messages)}}),[m]);return(0,f.useDeepCompareEffectNoCheck)((function(){var e;b(null!==(e=d.settings.locale)&&void 0!==e&&e.default?d.settings.locale.default:u.DEFAULT_LANGUAGE_UI)}),[d.settings.locale]),o.default.createElement(y.Provider,{value:{locale:m,messages:S,selectLocale:b}},o.default.createElement(c.IntlProvider,{key:m,locale:m,messages:S,onError:function(e){if("MISSING_TRANSLATION"!==e.code)throw e;s.Logger.warn(l.SCOPE_SC_CORE,"Missing translation: ".concat(e.message))}},n))},t.useSCLocale=function(){return(0,o.useContext)(y)},t.withSCLocale=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(8156)),i=r(9082),a=r(8483),u=r(7523),c=r(9767),s=r(2137),l=r(3240),f=r(4537);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var y=(0,o.createContext)({});t.SCLocaleContext=y,t.withSCLocale=function(e){return function(t){var r=(0,o.useContext)(y);return o.default.createElement(c.IntlProvider,{locale:r.locale,messages:r.messages},o.default.createElement(e,p({setLanguage:r.selectLocale},t)))}}},823:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCNotificationContext=void 0,t.default=function(e){var t=e.children,r=void 0===t?null:t,n=(0,i.default)().wsInstance,c=(0,a.default)().wpSubscription,s=(0,u.default)().mnpmInstance;return o.default.createElement(l.Provider,{value:{wsInstance:n,wpSubscription:c,mnpmInstance:s}},r)},t.useSCNotification=function(){return(0,o.useContext)(l)};var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(8156)),i=c(r(3808)),a=c(r(3926)),u=c(r(5126));function c(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var l=(0,o.createContext)({});t.SCNotificationContext=l},9723:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCPreferencesContext=void 0,t.default=function(e){var t=e.children,r=void 0===t?null:t,n=(0,c.useSCContext)(),s=p((0,a.useState)(n.settings.preferences.preferences),2),l=s[0],h=s[1],y=p((0,a.useState)(n.settings.preferences.features),2),g=y[0],m=y[1],_=p((0,a.useState)(),2)[1],E=p((0,a.useState)(!(Object.keys(n.settings.preferences.preferences).length&&n.settings.preferences.features.length)),2),S=E[0],O=E[1];return(0,a.useEffect)((function(){Promise.all([o.PreferenceService.getAllPreferences(),o.FeatureService.getAllFeatures()]).then((function(e){var t=p(e,2),r=t[0],n=t[1];h(r.results.reduce((function(e,t){return f(f({},e),{},d({},"".concat(t.section,".").concat(t.name),t))}),{})),m(n.results.filter((function(e){return e.enabled})).map((function(e){return e.name}))),O(!1)})).catch((function(e){i.Logger.error(u.SCOPE_SC_CORE,e),_(e)}))}),[]),a.default.createElement(v.Provider,{value:{preferences:l,features:g,setPreferences:h,setFeatures:m,refresh:function(){Promise.all([o.PreferenceService.getAllPreferences(),o.FeatureService.getAllFeatures()]).then((function(e){var t=p(e,2),r=t[0],n=t[1];h(r.results.reduce((function(e,t){return f(f({},e),{},d({},"".concat(t.section,".").concat(t.name),t))}),{})),m(n.results.filter((function(e){return e.enabled})).map((function(e){return e.name})))})).catch((function(e){i.Logger.error(u.SCOPE_SC_CORE,e),_(e)}))}}},!S&&r)},t.useSCPreferences=function(){return(0,a.useContext)(v)};var o=r(7475),i=r(2137),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(8156)),u=r(3240),c=r(9082);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var v=(0,a.createContext)({});t.SCPreferencesContext=v},2075:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCRoutingContext=void 0,t.default=function(e){var t,r=e.children,n=void 0===r?null:r,s=(0,o.useContext)(a.SCPreferencesContext),l=(0,i.useSCContext)(),f=l.settings.router?l.settings.router:{},v=f.routerLink?f.routerLink:null,y=Object.assign(Object.keys(s.preferences).length?(p(p(p(p(p(p(p(p(p(p(t={},c.POST_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_POST].value)),c.DISCUSSION_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_DISCUSSION].value)),c.STATUS_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_STATUS].value)),c.COMMENT_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_COMMENT].value)),c.CATEGORY_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_CATEGORY].value)),c.CATEGORIES_LIST_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_CATEGORIES_LIST].value)),c.USER_PROFILE_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_USER_PROFILE].value)),c.USER_PROFILE_SETTINGS_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_USER_PROFILE_SETTINGS].value)),c.USER_NOTIFICATIONS_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_NOTIFICATIONS].value)),c.USER_PRIVATE_MESSAGES_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_USER_PRIVATE_MESSAGES].value)),p(p(t,c.INCUBATOR_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_INCUBATOR].value)),c.LIVESTREAM_ROUTE_NAME,m(s.preferences[u.CONFIGURATIONS_URL_TEMPLATE_LIVE_STREAM].value))):{},c.defaultRoutes),g=f.routes?d(d({},y),f.routes):c.defaultRoutes;function m(e){for(var t=e,r=/\{([^/]+)?\}/g,n=r.exec(e);n;)t=t.replace(n[0],":".concat(n[1])),r.lastIndex=0,n=r.exec(t);return t}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=function(r,n){for(var o=/:([^/|^?|^#]+)?/g,i=r,a=o.exec(r),u=Object.keys(n).length>0;a;)i=u?i.replace(a[0],n[a[1]]):i.split(a[0])[0],o.lastIndex=0,a=o.exec(i);return f.handleRoute?f.handleRoute(e,i,t,r):i};return r(g[e],t)}var E=(0,o.useMemo)((function(){return{routerLink:v,routes:g,url:_}}),[v,g]);return o.default.createElement(h.Provider,{value:E},n)},t.useSCRouting=function(){return(0,o.useContext)(h)};var o=l(r(8156)),i=r(9082),a=r(9723),u=l(r(4592)),c=r(8461);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h=(0,o.createContext)({});t.SCRoutingContext=h},5373:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCThemeContext=void 0,t.default=function(e){var t,r=e.children,n=void 0===r?null:r,o=(0,c.useSCContext)(),f=(0,s.useSCPreferences)(),d=(2,function(e){if(Array.isArray(e))return e}(t=(0,i.useState)((0,u.default)(o.settings.theme,f.preferences)))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return p(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=d[0],y=d[1],g=function(e){y((0,u.default)(e,f.preferences))};return(0,l.useDeepCompareEffectNoCheck)((function(){g(v)}),[o.settings.theme]),i.default.createElement(h.Provider,{value:{theme:v,setTheme:g}},i.default.createElement(a.ThemeProvider,{theme:v},n))},t.useSCTheme=function(){return(0,i.useContext)(h)},t.withSCTheme=void 0;var o,i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(8156)),a=r(901),u=(o=r(7746))&&o.__esModule?o:{default:o},c=r(9082),s=r(9723),l=r(4537);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var h=(0,i.createContext)({});t.SCThemeContext=h,t.withSCTheme=function(e){return function(t){var r=(0,i.useContext)(h);return i.default.createElement(a.ThemeProvider,{theme:r.theme},i.default.createElement(e,d({setTheme:r.setTheme},t)))}}},4702:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCUserContext=void 0,t.default=function(e){var t=e.children,r=(0,o.useContext)(a.SCContext).settings.session,n=(0,u.default)(r),C=n.state,T=n.dispatch,w=n.helpers;function A(e){T({type:u.userActionTypes.UPDATE_USER,payload:e})}var P=(0,h.default)(C.user),I=(0,p.default)(C.user),N=(0,v.default)(C.user),j=(0,m.default)(C.user),k=(0,y.default)(C.user),U=(0,d.default)(C.user,A),x=(0,_.default)(C.user),G=(0,S.default)(C.user),D=(0,O.default)(C.user),M=(0,b.default)(C.user),F=(0,o.useRef)(null),B=(0,o.useRef)(null);function V(){!window.document.hidden&&C.user&&(P.refresh&&P.refresh(),W(),U.refresh&&U.refresh(),I.refresh&&I.refresh(),k.refresh&&k.refresh(),j.refresh&&j.refresh(),x.refresh&&x.refresh(),G.refresh&&G.refresh(),D.refresh&&D.refresh(),M.refresh&&M.refresh())}function Y(e){T({type:u.userActionTypes.UPDATE_USER,payload:{unseen_interactions_counter:Math.max(e,0)}})}function q(e){T({type:u.userActionTypes.UPDATE_USER,payload:{unseen_notification_banners_counter:Math.max(e,0)}})}function K(){return w.refreshSession()}(0,f.useDeepCompareEffectNoCheck)((function(){C.session.authToken&&C.session.authToken.accessToken||C.session.type===E.COOKIE_SESSION?(T({type:u.userActionTypes.LOGIN_LOADING}),i.UserService.getCurrentUser().then((function(e){T({type:u.userActionTypes.LOGIN_SUCCESS,payload:{user:e}})})).catch((function(e){c.Logger.error(l.SCOPE_SC_CORE,"Unable to retrieve the authenticated user."),T({type:u.userActionTypes.LOGIN_FAILURE,payload:{error:e}})}))):T({type:u.userActionTypes.LOGIN_FAILURE})}),[C.session]),(0,o.useEffect)((function(){return window.document.addEventListener("visibilitychange",V),function(){window.document.removeEventListener("visibilitychange",V)}}),[]),(0,o.useEffect)((function(){return F.current=s.default.subscribe("".concat(g.SCNotificationTopicType.INTERACTION,".").concat(g.SCNotificationTypologyType.BLOCKED_USER),(function(){T({type:u.userActionTypes.UPDATE_USER,payload:{status:g.SCUserStatus.BLOCKED}})})),B.current=s.default.subscribe("".concat(g.SCNotificationTopicType.INTERACTION,".").concat(g.SCNotificationTypologyType.UNBLOCKED_USER),(function(){T({type:u.userActionTypes.UPDATE_USER,payload:{status:g.SCUserStatus.APPROVED}})})),function(){s.default.unsubscribe(F.current),s.default.unsubscribe(B.current)}}),[]);var W=(0,o.useMemo)((function(){return function(){return C.user?i.UserService.getCurrentUser().then((function(e){T({type:u.userActionTypes.UPDATE_USER,payload:R(R(R(R(R(R(R(R(R(R({unseen_interactions_counter:e.unseen_interactions_counter,unseen_notification_banners_counter:e.unseen_notification_banners_counter},e.followers_counter?{followers_counter:e.followers_counter}:{}),e.followings_counter?{followings_counter:e.followings_counter}:{}),e.categories_counter?{categories_counter:e.categories_counter}:{}),e.discussions_counter?{discussions_counter:e.discussions_counter}:{}),e.posts_counter?{posts_counter:e.posts_counter}:{}),e.statuses_counter?{status_counter:e.statuses_counter}:{}),e.polls_counter?{polls_counter:e.polls_counter}:{}),e.connections_counter?{connections_counter:e.connections_counter}:{}),e.connection_requests_sent_counter?{connection_requests_sent_counter:e.connection_requests_sent_counter}:{}),e.connection_requests_received_counter?{connection_requests_received_counter:e.connection_requests_received_counter}:{})})})).catch((function(e){c.Logger.error(l.SCOPE_SC_CORE,"Unable to refresh counters. Error: ".concat(e.response.toString()))})):Promise.reject()}}),[C.user]);function H(){w.logoutSession()}var $=(0,o.useMemo)((function(){return{user:C.user,session:C.session,loading:C.loading,error:C.error,updateUser:A,setUnseenInteractionsCounter:Y,setUnseenNotificationBannersCounter:q,refreshCounters:W,logout:H,refreshSession:K,managers:{settings:P,categories:U,followed:I,followers:N,connections:k,incubators:j,blockedUsers:x,groups:G,events:D,courses:M}}}),[C,P.all,P.isLoading,U.loading,U.categories,I.loading,I.followed,N.loading,N.followers,k.loading,k.connections,x.blocked,j.loading,j.incubators,G.loading,G.groups,D.loading,D.events,M.loading,M.emptyCache]);return o.default.createElement(L.Provider,{value:$},t)},t.useSCUser=function(){return(0,o.useContext)(L)};var o=w(r(8156)),i=r(7475),a=r(9082),u=w(r(8291)),c=r(2137),s=C(r(8641)),l=r(3240),f=r(4537),d=C(r(9467)),p=C(r(7309)),h=C(r(2985)),v=C(r(5421)),y=C(r(1870)),g=r(9954),m=C(r(1776)),_=C(r(8887)),E=w(r(4191)),S=C(r(8793)),O=C(r(6336)),b=C(r(145));function C(e){return e&&e.__esModule?e:{default:e}}function T(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(T=function(e){return e?r:t})(e)}function w(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=T(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){P(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var L=(0,o.createContext)({});t.SCUserContext=L},8719:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SCVoteContext=void 0,t.default=function(e){var t=e.children,r=void 0===t?null:t,n=(0,c.useSCContext)(),f=(0,o.useContext)(l.SCPreferencesContext),p=d((0,o.useState)(n.settings.vote.reactions),2),v=p[0],y=p[1],g=d((0,o.useState)(),2)[1],m=d((0,o.useState)(f.features&&!f.features.includes(s.SCFeatureName.REACTION)||null!==n.settings.vote.reactions),2),_=m[0],E=m[1],S=d((0,o.useState)(f.features&&f.features.includes(s.SCFeatureName.REACTION)&&null===n.settings.vote.reactions),2),O=S[0],b=S[1],C=(0,o.useCallback)((function(){return i.ReactionService.getAllReactionsList().then((function(e){return y(e),e}))}),[]),T=(0,o.useCallback)((function(){_||(E(!0),b(!0),C().then((function(){b(!1)})).catch((function(e){a.Logger.error(u.SCOPE_SC_CORE,e),g(e)})))}),[O,_]);return(0,o.useEffect)((function(){var e;if(f.features&&f.features.includes(s.SCFeatureName.REACTION)&&!v)return e=setTimeout(T),function(){e&&clearTimeout(e)}}),[f.features,v]),o.default.createElement(h.Provider,{value:{reactions:v,isLoading:O,refreshReactions:C}},_&&r)},t.useSCVote=function(){return(0,o.useContext)(h)};var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(8156)),i=r(7475),a=r(2137),u=r(3240),c=r(9082),s=r(9954),l=r(9723);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var h=(0,o.createContext)({});t.SCVoteContext=h},6358:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(8156)),i=r(2075),a=["children"],u=["to"];function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var f=function(e,t){var r=e.children,n=l(e,a),c=(0,o.useContext)(i.SCRoutingContext);if(c.routerLink){var f=c.routerLink;return o.default.createElement(f,s({},n,{ref:t}),r)}var d=n.to,p=l(n,u);return o.default.createElement("a",s({href:d},p,{ref:t}),r)},d=o.default.forwardRef(f);t.default=d},1844:(e,t)=>{t.__esModule=!0,t.HANDLE_ANONYMOUS_ACTION_OPTION=void 0,t.HANDLE_ANONYMOUS_ACTION_OPTION="handleAnonymousAction"},7748:(e,t)=>{t.__esModule=!0,t.getWidgetStateCacheKey=t.getVirtualizedScrollStateCacheKey=t.getStateFeedCacheKey=t.getPmSnippetsObjectCacheKey=t.getPmSnippetObjectCacheKey=t.getPaymentProductObjectCacheKey=t.getPaymentOrderObjectCacheKey=t.getLiveStreamObjectCacheKey=t.getLessonObjectCacheKey=t.getLessonCommentsCachePrefixKeys=t.getLessonCommentsCacheKey=t.getLessonCommentCacheKey=t.getIncubatorObjectCacheKey=t.getGroupsObjectCacheKey=t.getGroupObjectCacheKey=t.getFeedSPCacheKey=t.getFeedObjectCacheKey=t.getFeedCacheKey=t.getEventsObjectCacheKey=t.getEventObjectCacheKey=t.getCoursesObjectCacheKey=t.getCourseObjectCacheKey=t.getContributorsCachePrefixKeys=t.getContributorsCacheKey=t.getCommentObjectsCachePrefixKeys=t.getCommentObjectsCacheKey=t.getCommentObjectCacheKey=t.getCategoryObjectCacheKey=t.getCategoriesObjectCacheKey=t.getBroadcastMessagesObjectCacheKey=t.getAdvObjectCacheKey=t.VIRTUALIZED_SCROLL_STATE_CACHE_PREFIX_KEY=t.USER_REQUESTS_EVENTS_STATE_CACHE_PREFIX_KEY=t.USER_PARTECIPANTS_EVENTS_STATE_CACHE_PREFIX_KEY=t.USER_OTHER_EVENTS_STATE_CACHE_PREFIX_KEY=t.USER_LIVE_STREAM_CACHE_PREFIX_KEY=t.USER_INVITED_EVENTS_STATE_CACHE_PREFIX_KEY=t.USER_FOLLOWERS_TOOLS_STATE_CACHE_PREFIX_KEY=t.USER_FOLLOWED_TOOLS_STATE_CACHE_PREFIX_KEY=t.USER_EVENTS_STATE_CACHE_PREFIX_KEY=t.USER_CREATED_COURSES_STATE_CACHE_PREFIX_KEY=t.USER_CONNECTIONS_TOOLS_STATE_CACHE_PREFIX_KEY=t.USER_CONNECTIONS_REQUESTS_TOOLS_STATE_CACHE_PREFIX_KEY=t.USER_CONNECTIONS_REQUESTS_SENT_TOOLS_STATE_CACHE_PREFIX_KEY=t.USER_COMMENTS_COURSES_STATE_CACHE_PREFIX_KEY=t.USERS_REQUESTS_COURSES_STATE_CACHE_PREFIX_KEY=t.USERS_PARTECIPANTS_COURSES_STATE_CACHE_PREFIX_KEY=t.TRENDING_PEOPLE_TOOLS_STATE_CACHE_PREFIX_KEY=t.TRENDING_FEED_TOOLS_STATE_CACHE_PREFIX_KEY=t.STUDENTS_PARTECIPANTS_COURSES_STATE_CACHE_PREFIX_KEY=t.RELATED_FEED_TOOLS_STATE_CACHE_PREFIX_KEY=t.POLL_SUGGESTION_TOOLS_STATE_CACHE_PREFIX_KEY=t.PM_SNIPPET_OBJECT_CACHE_PREFIX_KEY=t.PM_SNIPPETS_OBJECT_CACHE_PREFIX_KEY=t.PEOPLE_SUGGESTION_TOOLS_STATE_CACHE_PREFIX_KEY=t.PAYMENT_PRODUCT_OBJECT_CACHE_PREFIX_KEY=t.PAYMENT_ORDER_OBJECT_CACHE_PREFIX_KEY=t.LIVESTREAM_OBJECT_CACHE_PREFIX_KEY=t.LESSON_OBJECT_CACHE_PREFIX_KEY=t.LESSON_COMMENT_CACHE_PREFIX_KEY=t.LESSON_COMMENTS_CACHE_PREFIX_KEY=t.INCUBATOR_SUGGESTION_TOOLS_STATE_CACHE_PREFIX_KEY=t.INCUBATOR_OBJECT_CACHE_PREFIX_KEY=t.INCUBATOR_LIST_TOOLS_STATE_CACHE_PREFIX_KEY=t.GROUP_REQUESTS_TOOLS_STATE_CACHE_PREFIX_KEY=t.GROUP_OBJECT_CACHE_PREFIX_KEY=t.GROUP_MEMBERS_TOOLS_STATE_CACHE_PREFIX_KEY=t.GROUPS_SUBSCRIBED_TOOLS_STATE_CACHE_PREFIX_KEY=t.GROUPS_OBJECT_CACHE_PREFIX_KEY=t.GROUPS_LIST_TOOLS_STATE_CACHE_PREFIX_KEY=t.FEED_STATE_CACHE_PREFIX_KEY=t.FEED_OBJECT_CACHE_PREFIX_KEY=t.FEED_CACHE_SP_KEY=t.FEED_CACHE_PREFIX_KEY=t.EVENT_OBJECT_CACHE_PREFIX_KEY=t.EVENT_MEDIA_STATE_CACHE_PREFIX_KEY=t.EVENTS_OBJECT_CACHE_PREFIX_KEY=t.COURSE_OBJECT_CACHE_PREFIX_KEY=t.COURSES_OBJECT_CACHE_PREFIX_KEY=t.CONTRIBUTORS_CACHE_PREFIX_KEY=t.COMMENT_OBJECT_CACHE_PREFIX_KEY=t.COMMENT_OBJECTS_CACHE_PREFIX_KEY=t.CATEGORY_OBJECT_CACHE_PREFIX_KEY=t.CATEGORIES_SUGGESTION_TOOLS_STATE_CACHE_PREFIX_KEY=t.CATEGORIES_POPULAR_TOOLS_STATE_CACHE_PREFIX_KEY=t.CATEGORIES_OBJECT_CACHE_PREFIX_KEY=t.CATEGORIES_LIST_TOOLS_STATE_CACHE_PREFIX_KEY=t.CATEGORIES_FOLLOWED_TOOLS_STATE_CACHE_PREFIX_KEY=t.BROADCAST_MESSAGES_OBJECT_CACHE_PREFIX_KEY=t.ADV_OBJECT_CACHE_PREFIX_KEY=void 0;var r="_fo_";t.FEED_OBJECT_CACHE_PREFIX_KEY=r,t.getFeedObjectCacheKey=function(e,t){return"".concat(r).concat(t,"_").concat(e)};var n="_co_";t.COMMENT_OBJECT_CACHE_PREFIX_KEY=n,t.getCommentObjectCacheKey=function(e){return"".concat(n).concat(e)};var o="_cos_";t.COMMENT_OBJECTS_CACHE_PREFIX_KEY=o,t.getCommentObjectsCacheKey=function(e,t,r){return"".concat(o).concat(t,"_").concat(e,"_").concat(r)},t.getCommentObjectsCachePrefixKeys=function(e,t){return"".concat(o).concat(t,"_").concat(e)};var i="_lco_";t.LESSON_COMMENT_CACHE_PREFIX_KEY=i,t.getLessonCommentCacheKey=function(e){return"".concat(i).concat(e)};var a="_lcos_";t.LESSON_COMMENTS_CACHE_PREFIX_KEY=a,t.getLessonCommentsCacheKey=function(e,t){return"".concat(a).concat(e,"_").concat(t)},t.getLessonCommentsCachePrefixKeys=function(e){return"".concat(a).concat(e)};var u="_cas_";t.CATEGORIES_OBJECT_CACHE_PREFIX_KEY=u,t.getCategoriesObjectCacheKey=function(){return"".concat(u)};var c="_ca_";t.CATEGORY_OBJECT_CACHE_PREFIX_KEY=c,t.getCategoryObjectCacheKey=function(e){return"".concat(c).concat(e)};var s="_crs_";t.COURSE_OBJECT_CACHE_PREFIX_KEY=s,t.getCourseObjectCacheKey=function(e){return"".concat(s).concat(e)};var l="_crss_";t.COURSES_OBJECT_CACHE_PREFIX_KEY=l,t.getCoursesObjectCacheKey=function(){return"".concat(l)};var f="_lss_";t.LESSON_OBJECT_CACHE_PREFIX_KEY=f,t.getLessonObjectCacheKey=function(e){return"".concat(f).concat(e)};var d="_evt_";t.EVENT_OBJECT_CACHE_PREFIX_KEY=d,t.getEventObjectCacheKey=function(e){return"".concat(d).concat(e)};var p="_evts_";t.EVENTS_OBJECT_CACHE_PREFIX_KEY=p,t.getEventsObjectCacheKey=function(){return"".concat(p)};var h="_liveStream_";t.LIVESTREAM_OBJECT_CACHE_PREFIX_KEY=h,t.getLiveStreamObjectCacheKey=function(e){return"".concat(h).concat(e)};var v="_grp_";t.GROUP_OBJECT_CACHE_PREFIX_KEY=v,t.getGroupObjectCacheKey=function(e){return"".concat(v).concat(e)};var y="_grps_";t.GROUPS_OBJECT_CACHE_PREFIX_KEY=y,t.getGroupsObjectCacheKey=function(){return"".concat(y)};var g="_inc_";t.INCUBATOR_OBJECT_CACHE_PREFIX_KEY=g,t.getIncubatorObjectCacheKey=function(e){return"".concat(g).concat(e)};var m="_contr_";t.CONTRIBUTORS_CACHE_PREFIX_KEY=m,t.getContributorsCacheKey=function(e,t,r){return"".concat(m).concat(t,"_").concat(e,"_").concat(r)},t.getContributorsCachePrefixKeys=function(e,t){return"".concat(m).concat(t,"_").concat(e)};var _="_bcms_";t.BROADCAST_MESSAGES_OBJECT_CACHE_PREFIX_KEY=_,t.getBroadcastMessagesObjectCacheKey=function(){return"".concat(_)};var E="_feed_";t.FEED_CACHE_PREFIX_KEY=E,t.getFeedCacheKey=function(e,t){return"".concat(E).concat(e,"_").concat(t)};var S="_feed_st_";t.FEED_STATE_CACHE_PREFIX_KEY=S,t.getStateFeedCacheKey=function(e){return"".concat(S).concat(e)};var O="_virtualized_scroll_st_";t.VIRTUALIZED_SCROLL_STATE_CACHE_PREFIX_KEY=O,t.getVirtualizedScrollStateCacheKey=function(e){return"".concat(O).concat(e)};var b="_feed_spos_";t.FEED_CACHE_SP_KEY=b,t.getFeedSPCacheKey=function(e){return"".concat(b).concat(e)};var C="_adv_";t.ADV_OBJECT_CACHE_PREFIX_KEY=C,t.getAdvObjectCacheKey=function(e){return"".concat(C).concat(e)};var T="_pmss_";t.PM_SNIPPETS_OBJECT_CACHE_PREFIX_KEY=T,t.getPmSnippetsObjectCacheKey=function(){return"".concat(T)};var w="_pms_";t.PM_SNIPPET_OBJECT_CACHE_PREFIX_KEY=w,t.getPmSnippetObjectCacheKey=function(e){return"".concat(w).concat(e)};var A="_ppo_";t.PAYMENT_PRODUCT_OBJECT_CACHE_PREFIX_KEY=A,t.getPaymentProductObjectCacheKey=function(e){return"".concat(A).concat(e)};var R="_pord_";t.PAYMENT_ORDER_OBJECT_CACHE_PREFIX_KEY=R,t.getPaymentOrderObjectCacheKey=function(e){return"".concat(R).concat(e)},t.CATEGORIES_LIST_TOOLS_STATE_CACHE_PREFIX_KEY="_cListWidget_",t.CATEGORIES_FOLLOWED_TOOLS_STATE_CACHE_PREFIX_KEY="_cFolWidget_",t.CATEGORIES_SUGGESTION_TOOLS_STATE_CACHE_PREFIX_KEY="_cSugWidget_",t.CATEGORIES_POPULAR_TOOLS_STATE_CACHE_PREFIX_KEY="_cPopWidget_",t.USER_FOLLOWERS_TOOLS_STATE_CACHE_PREFIX_KEY="_uFolWidget_",t.USER_FOLLOWED_TOOLS_STATE_CACHE_PREFIX_KEY="_uFoldWidget_",t.USER_CREATED_COURSES_STATE_CACHE_PREFIX_KEY="_uCreCoursesWidget_",t.USER_EVENTS_STATE_CACHE_PREFIX_KEY="_uEvents_",t.USER_OTHER_EVENTS_STATE_CACHE_PREFIX_KEY="_uOtherEvents_",t.USER_PARTECIPANTS_EVENTS_STATE_CACHE_PREFIX_KEY="_uPartecipantsEvents_",t.USERS_PARTECIPANTS_COURSES_STATE_CACHE_PREFIX_KEY="_uPartecipantsCourses_",t.STUDENTS_PARTECIPANTS_COURSES_STATE_CACHE_PREFIX_KEY="_sPartecipantsCourses_",t.USERS_REQUESTS_COURSES_STATE_CACHE_PREFIX_KEY="_uRequestsCourses_",t.USER_COMMENTS_COURSES_STATE_CACHE_PREFIX_KEY="_uCommentsCourses_",t.USER_INVITED_EVENTS_STATE_CACHE_PREFIX_KEY="_uInvitedEvents_",t.USER_REQUESTS_EVENTS_STATE_CACHE_PREFIX_KEY="_uRequestsEvents_",t.USER_LIVE_STREAM_CACHE_PREFIX_KEY="_uUserLives_",t.EVENT_MEDIA_STATE_CACHE_PREFIX_KEY="_eMedia_",t.USER_CONNECTIONS_TOOLS_STATE_CACHE_PREFIX_KEY="_uConWidget_",t.USER_CONNECTIONS_REQUESTS_TOOLS_STATE_CACHE_PREFIX_KEY="_uConReqWidget_",t.USER_CONNECTIONS_REQUESTS_SENT_TOOLS_STATE_CACHE_PREFIX_KEY="_uConReqSentWidget_",t.TRENDING_FEED_TOOLS_STATE_CACHE_PREFIX_KEY="_fTrendWidget_",t.RELATED_FEED_TOOLS_STATE_CACHE_PREFIX_KEY="_rFeedWidget_",t.TRENDING_PEOPLE_TOOLS_STATE_CACHE_PREFIX_KEY="_pTrendWidget_",t.PEOPLE_SUGGESTION_TOOLS_STATE_CACHE_PREFIX_KEY="_pSugWidget_",t.INCUBATOR_LIST_TOOLS_STATE_CACHE_PREFIX_KEY="_iListWidget_",t.INCUBATOR_SUGGESTION_TOOLS_STATE_CACHE_PREFIX_KEY="_iSugWidget_",t.POLL_SUGGESTION_TOOLS_STATE_CACHE_PREFIX_KEY="_pSugWidget_",t.GROUP_MEMBERS_TOOLS_STATE_CACHE_PREFIX_KEY="_gMemWidget_",t.GROUP_REQUESTS_TOOLS_STATE_CACHE_PREFIX_KEY="_gReqWidget_",t.GROUPS_LIST_TOOLS_STATE_CACHE_PREFIX_KEY="_glIST_",t.GROUPS_SUBSCRIBED_TOOLS_STATE_CACHE_PREFIX_KEY="_gSubWidget_",t.getWidgetStateCacheKey=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return"".concat(e).concat(void 0!==t?t:"")}},2225:(e,t,r)=>{t.__esModule=!0,t.DEFAULT_CONTEXT_PROVIDERS=t.CONTEXT_PROVIDERS_OPTION=void 0;var n=f(r(9723)),o=f(r(8719)),i=f(r(2075)),a=f(r(4702)),u=f(r(823)),c=f(r(5373)),s=f(r(1249)),l=f(r(7718));function f(e){return e&&e.__esModule?e:{default:e}}t.CONTEXT_PROVIDERS_OPTION="contextProviders";var d=[n.default,o.default,i.default,a.default,s.default,c.default,l.default,u.default];t.DEFAULT_CONTEXT_PROVIDERS=d},4357:(e,t)=>{t.__esModule=!0,t.WEB_PUSH_NOTIFICATION_DEVICE_TYPE=t.REGISTRATION_ID_KEY=t.PLATFORM_KEY=t.PLATFORMS=t.PLATFORM=t.NOTIFICATION_SERVICE_KEY=t.NOTIFICATIONS_SERVICES=t.IOS_PUSH_NOTIFICATION_IOS_DEVICE_TYPE=t.DEVICE_ID_KEY=t.ANDROID_PUSH_NOTIFICATION_GCM_DEVICE_TYPE=t.ANDROID_PUSH_NOTIFICATION_FCM_DEVICE_TYPE=void 0,t.WEB_PUSH_NOTIFICATION_DEVICE_TYPE="wp",t.ANDROID_PUSH_NOTIFICATION_GCM_DEVICE_TYPE="gcm",t.ANDROID_PUSH_NOTIFICATION_FCM_DEVICE_TYPE="fcm";var r="apns";t.IOS_PUSH_NOTIFICATION_IOS_DEVICE_TYPE=r;var n={ANDROID:"Android",IOS:"iOS"};t.PLATFORM=n;var o=Object.keys(n).map((function(e){return n[e]}));t.PLATFORMS=o;var i=["gcm","fcm",r];t.NOTIFICATIONS_SERVICES=i,t.PLATFORM_KEY="app-platform",t.REGISTRATION_ID_KEY="app-registrationId",t.NOTIFICATION_SERVICE_KEY="app-notificationService",t.DEVICE_ID_KEY="app-deviceId"},3240:(e,t)=>{t.__esModule=!0,t.SCOPE_SC_CORE=void 0,t.SCOPE_SC_CORE="@selfcommunity/react-core"},6115:(e,t)=>{t.__esModule=!0,t.FEATURES_OPTION=t.DEFAULT_FEATURES_OPTION=void 0,t.FEATURES_OPTION="features",t.DEFAULT_FEATURES_OPTION=[]},7452:(e,t)=>{function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.__esModule=!0,t.INTEGRATIONS_OPTION=t.INTEGRATIONS_OPENAI_SECRETKEY_OPTION=t.INTEGRATIONS_OPENAI_OPTION=t.INTEGRATIONS_GEOCODING_OPTION=t.INTEGRATIONS_GEOCODING_APIKEY_OPTION=t.DEFAULT_INTEGRATIONS_OPTION=void 0,t.INTEGRATIONS_OPTION="integrations";var n="openai";t.INTEGRATIONS_OPENAI_OPTION=n;var o="secretKey";t.INTEGRATIONS_OPENAI_SECRETKEY_OPTION=o;var i="geocoding";t.INTEGRATIONS_GEOCODING_OPTION=i;var a="apiKey";t.INTEGRATIONS_GEOCODING_APIKEY_OPTION=a;var u=r(r({},n,r({},o,null)),i,r({},a,null));t.DEFAULT_INTEGRATIONS_OPTION=u},7523:(e,t)=>{t.__esModule=!0,t.LOCALE_OPTION=t.LOCALE_MESSAGES_OPTION=t.LOCALE_IT=t.LOCALE_EN=t.LOCALE_DEFAULT_OPTION=t.LOCALES=t.DEFAULT_LANGUAGE_UI=void 0,t.LOCALE_OPTION="locale",t.LOCALE_DEFAULT_OPTION="default",t.LOCALE_MESSAGES_OPTION="messages";t.LOCALE_EN="en",t.LOCALE_IT="it";var r=["en","it"];t.LOCALES=r,t.DEFAULT_LANGUAGE_UI="en"},3973:(e,t,r)=>{t.__esModule=!0,t.SCSilentToastNotifications=t.SCSilentSnippetNotifications=t.SCNotificationTopics=t.SCNotificationMapping=t.NOTIFICATIONS_SETTINGS_TOAST_EMIT_SOUND=t.NOTIFICATIONS_SETTINGS_SHOW_TOAST=t.NOTIFICATIONS_SETTINGS_QA_FREQUENCY=t.NOTIFICATIONS_SETTINGS_MOBILE=t.NOTIFICATIONS_SETTINGS_EMAIL_NOT_QA=void 0;var n=r(9954),o=[n.SCNotificationTopicType.INTERACTION,n.SCNotificationTopicType.NEWS];t.SCNotificationTopics=o;var i={1:n.SCNotificationTypologyType.CONTRIBUTION,2:n.SCNotificationTypologyType.COMMENT,4:n.SCNotificationTypologyType.NESTED_COMMENT,55:n.SCNotificationTypologyType.CONNECTION_REQUEST,56:n.SCNotificationTypologyType.CONNECTION_ACCEPT,57:n.SCNotificationTypologyType.CONNECTION_REJECT,58:n.SCNotificationTypologyType.CONNECTION_CANCEL_REJECT,59:n.SCNotificationTypologyType.CONNECTION_REMOVE,60:n.SCNotificationTypologyType.CONNECTION_CANCEL_REQUEST,19:n.SCNotificationTypologyType.MENTION,9:n.SCNotificationTypologyType.VOTE_UP,16:n.SCNotificationTypologyType.FOLLOW,37:n.SCNotificationTypologyType.PRIVATE_MESSAGE,105:n.SCNotificationTypologyType.DELETE_PRIVATE_MESSAGE,26:n.SCNotificationTypologyType.LIVE_STREAM_STARTED,50:n.SCNotificationTypologyType.DELETED_FOR_ADVERTISING,51:n.SCNotificationTypologyType.DELETED_FOR_AGGRESSIVE,52:n.SCNotificationTypologyType.DELETED_FOR_VULGAR,65:n.SCNotificationTypologyType.DELETED_FOR_POOR,66:n.SCNotificationTypologyType.DELETED_FOR_OFFTOPIC,54:n.SCNotificationTypologyType.UNDELETED_FOR,75:n.SCNotificationTypologyType.COLLAPSED_FOR_ADVERTISING,76:n.SCNotificationTypologyType.COLLAPSED_FOR_AGGRESSIVE,77:n.SCNotificationTypologyType.COLLAPSED_FOR_VULGAR,78:n.SCNotificationTypologyType.COLLAPSED_FOR_POOR,79:n.SCNotificationTypologyType.COLLAPSED_FOR_OFFTOPIC,97:n.SCNotificationTypologyType.USER_FOLLOW,98:n.SCNotificationTypologyType.USER_UNFOLLOW,67:n.SCNotificationTypologyType.KINDLY_NOTICE_ADVERTISING,68:n.SCNotificationTypologyType.KINDLY_NOTICE_AGGRESSIVE,69:n.SCNotificationTypologyType.KINDLY_NOTICE_VULGAR,70:n.SCNotificationTypologyType.KINDLY_NOTICE_POOR,71:n.SCNotificationTypologyType.KINDLY_NOTICE_OFFTOPIC,73:n.SCNotificationTypologyType.KINDLY_NOTICE_FLAG,74:n.SCNotificationTypologyType.BLOCKED_USER,83:n.SCNotificationTypologyType.UNBLOCKED_USER,96:n.SCNotificationTypologyType.INCUBATOR_APPROVED,99:n.SCNotificationTypologyType.CUSTOM_NOTIFICATION,31:n.SCNotificationTypologyType.USER_INVITED_TO_JOIN_GROUP,32:n.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP,33:n.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_GROUP,34:n.SCNotificationTypologyType.USER_ADDED_TO_GROUP,7:n.SCNotificationTypologyType.USER_INVITED_TO_JOIN_EVENT,10:n.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT,14:n.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_EVENT,15:n.SCNotificationTypologyType.USER_ADDED_TO_EVENT,27:n.SCNotificationTypologyType.USER_INVITED_TO_JOIN_COURSE,29:n.SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_COURSE,30:n.SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_COURSE,46:n.SCNotificationTypologyType.USER_ADDED_TO_COURSE,80:n.SCNotificationTypologyType.MANAGER_ADDED_TO_COURSE,82:n.SCNotificationTypologyType.USER_COMMENTED_A_COURSE_LESSON};t.SCNotificationMapping=i,t.SCSilentSnippetNotifications=[57,58,59,60,98,99,105],t.SCSilentToastNotifications=[50,51,52,54,57,58,59,60,65,66,67,68,69,70,71,75,76,77,78,79,98,99,105],t.NOTIFICATIONS_SETTINGS_QA_FREQUENCY="qa_frequency",t.NOTIFICATIONS_SETTINGS_EMAIL_NOT_QA="email_notification_not_qa",t.NOTIFICATIONS_SETTINGS_MOBILE="mobile_notifications_scmty",t.NOTIFICATIONS_SETTINGS_TOAST_EMIT_SOUND="toast_notifications_emit_sound",t.NOTIFICATIONS_SETTINGS_SHOW_TOAST="show_toast_notifications"},6506:(e,t)=>{function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.__esModule=!0,t.NOTIFICATIONS_WEB_SOCKET_OPTION=t.NOTIFICATIONS_WEB_PUSH_MESSAGING_OPTION=t.NOTIFICATIONS_WEB_PUSH_MESSAGING_DIALOG_COOKIE=t.NOTIFICATIONS_WEBSOCKET_SECURE_OPTION=t.NOTIFICATIONS_WEBSOCKET_PREFIX_PATH_OPTION=t.NOTIFICATIONS_OPTION=t.NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING_OPTION=t.NOTIFICATIONS_MOBILE_NATIVE_DISABLE_OPTION=t.NOTIFICATIONS_DISABLE_TOAST_MESSAGE_OPTION=t.NOTIFICATIONS_APPLICATION_SERVER_KEY_OPTION=t.DEFAULT_NOTIFICATIONS=void 0,t.NOTIFICATIONS_OPTION="notifications";var n="webSocket";t.NOTIFICATIONS_WEB_SOCKET_OPTION=n;var o="webPushMessaging";t.NOTIFICATIONS_WEB_PUSH_MESSAGING_OPTION=o;var i="mobileNativePushMessaging";t.NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING_OPTION=i,t.NOTIFICATIONS_WEB_PUSH_MESSAGING_DIALOG_COOKIE="wpnDialogDisabled";var a="disableToastMessage";t.NOTIFICATIONS_DISABLE_TOAST_MESSAGE_OPTION=a;var u="disable";t.NOTIFICATIONS_MOBILE_NATIVE_DISABLE_OPTION=u;var c="secure";t.NOTIFICATIONS_WEBSOCKET_SECURE_OPTION=c,t.NOTIFICATIONS_WEBSOCKET_PREFIX_PATH_OPTION="prefixPath",t.NOTIFICATIONS_APPLICATION_SERVER_KEY_OPTION="applicationServerKey";var s=r(r(r({},n,r(r({},a,!1),c,!0)),o,r({},a,!0)),i,r({},u,!1));t.DEFAULT_NOTIFICATIONS=s},4592:(e,t,r)=>{t.__esModule=!0,t.POINTS_APP_USED=t.LOYALTY_PRIZE_C_IMAGE=t.LOYALTY_PRIZE_B_IMAGE=t.LOYALTY_PRIZE_A_IMAGE=t.LOGO_NAVBAR_LOGO_MOBILE=t.LOGO_NAVBAR_LOGO=t.IMAGES_USER_DEFAULT_COVER=t.IMAGES_ERROR_503=t.IMAGES_ERROR_404=t.IMAGES_ERRORPAGES_IMAGE=t.IMAGES_APP_ICON=t.GLOBAL_PREFERENCES_OPTION=t.DEFAULT_GLOBAL_PREFERENCES_OPTION=t.DATA_TYPES=t.COVERS_VISIBILITY=t.COVERS_COVER_4_HP_M1920=t.COVERS_COVER_3_HP_M1920=t.COVERS_COVER_2_HP_M1920=t.COVERS_COVER_1_HP_M1920=t.CONFIGURATIONS_USER_METADATA_DEFINITIONS=t.CONFIGURATIONS_USERS_APPROVAL_ENABLED=t.CONFIGURATIONS_URL_TEMPLATE_VERIFY_EMAIL=t.CONFIGURATIONS_URL_TEMPLATE_USER_PROFILE_SETTINGS=t.CONFIGURATIONS_URL_TEMPLATE_USER_PROFILE=t.CONFIGURATIONS_URL_TEMPLATE_USER_PRIVATE_MESSAGES=t.CONFIGURATIONS_URL_TEMPLATE_STATUS=t.CONFIGURATIONS_URL_TEMPLATE_POST=t.CONFIGURATIONS_URL_TEMPLATE_PASSWORD_RECOVER=t.CONFIGURATIONS_URL_TEMPLATE_NOTIFICATIONS=t.CONFIGURATIONS_URL_TEMPLATE_LIVE_STREAM=t.CONFIGURATIONS_URL_TEMPLATE_INCUBATOR=t.CONFIGURATIONS_URL_TEMPLATE_EMAIL_UNSUBSCRIBE=t.CONFIGURATIONS_URL_TEMPLATE_EMAIL_SETTINGS=t.CONFIGURATIONS_URL_TEMPLATE_DISCUSSION=t.CONFIGURATIONS_URL_TEMPLATE_COMMENT=t.CONFIGURATIONS_URL_TEMPLATE_CATEGORY=t.CONFIGURATIONS_URL_TEMPLATE_CATEGORIES_LIST=t.CONFIGURATIONS_TAG_MANAGER_CONTAINER_ID=t.CONFIGURATIONS_SUBSCRIPTION_TIER=t.CONFIGURATIONS_STRIPE_CONNECTED_ACCOUNT_ID=t.CONFIGURATIONS_STREAM_QUALITY=t.CONFIGURATIONS_STATUS_TYPE_ENABLED=t.CONFIGURATIONS_POST_TYPE_ENABLED=t.CONFIGURATIONS_POST_ONLY_STAFF_ENABLED=t.CONFIGURATIONS_PEOPLE_SEARCH_ENABLED=t.CONFIGURATIONS_PAYMENTS_ENABLED=t.CONFIGURATIONS_ONBOARDING_HIDDEN=t.CONFIGURATIONS_ONBOARDING_ENABLED=t.CONFIGURATIONS_MANUAL_CATEGORIES_ORDER_ENABLED=t.CONFIGURATIONS_LIVE_VIDEO_CONFERENCE_ENABLED=t.CONFIGURATIONS_LIVE_STREAM_ONLY_STAFF_ENABLED=t.CONFIGURATIONS_LIVE_STREAM_ENABLED=t.CONFIGURATIONS_HOME_STREAM_ORDER_BY=t.CONFIGURATIONS_GROUPS_VISIBILITY_ENABLED=t.CONFIGURATIONS_GROUPS_PRIVATE_ENABLED=t.CONFIGURATIONS_GROUPS_ONLY_STAFF_ENABLED=t.CONFIGURATIONS_GROUPS_ENABLED=t.CONFIGURATIONS_GDPR_SIGNUP_ACCEPT_HTML=t.CONFIGURATIONS_GDPR_COOKIE_CONSENT_EXTERNAL_HTML=t.CONFIGURATIONS_FOLLOW_ENABLED=t.CONFIGURATIONS_EXPLORE_STREAM_ORDER_BY=t.CONFIGURATIONS_EXPLORE_STREAM_ENABLED=t.CONFIGURATIONS_EVENTS_VISIBILITY_ENABLED=t.CONFIGURATIONS_EVENTS_PRIVATE_ENABLED=t.CONFIGURATIONS_EVENTS_ONLY_STAFF_ENABLED=t.CONFIGURATIONS_EVENTS_ENABLED=t.CONFIGURATIONS_DISCUSSION_TYPE_ENABLED=t.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL=t.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_TEXT=t.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_IMAGE=t.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_ENABLED=t.CONFIGURATIONS_COURSES_VISIBILITY_ENABLED=t.CONFIGURATIONS_COURSES_PRIVATE_ENABLED=t.CONFIGURATIONS_COURSES_ONLY_STAFF_ENABLED=t.CONFIGURATIONS_COURSES_ENABLED=t.CONFIGURATIONS_COURSES_ADVANCED_ENABLED=t.CONFIGURATIONS_CONTEXT_MENU_ENABLED=t.CONFIGURATIONS_CONTENT_AVAILABILITY=t.CONFIGURATIONS_CONNECTION_ENABLED=t.CONFIGURATIONS_APP_URL=t.COLORS_NAVBARBACK=t.COLORS_COLORSECONDARY=t.COLORS_COLORPRIMARY=t.COLORS_COLORFONTSECONDARY=t.COLORS_COLORFONT=t.COLORS_COLORBACK=t.ADVERTISING_CUSTOM_ADV_ONLY_FOR_ANONYMOUS_USERS_ENABLED=t.ADVERTISING_CUSTOM_ADV_ENABLED=t.ADDONS_SHARE_POST_ON_TWITTER_ENABLED=t.ADDONS_SHARE_POST_ON_LINKEDIN_ENABLED=t.ADDONS_SHARE_POST_ON_FACEBOOK_ENABLED=t.ADDONS_REGISTRATION_WIZARD=t.ADDONS_PRIVATE_MESSAGES_ENABLED=t.ADDONS_POST_GEOLOCATION_ENABLED=t.ADDONS_POLLS_ENABLED=t.ADDONS_LOYALTY_POINTS_COLLECTION=t.ADDONS_INCUBATOR_SUBSCRIBERS=t.ADDONS_INCUBATOR_ENABLED=t.ADDONS_CLOSED_COMMUNITY=t.ADDONS_AFFINITY_ENABLED=void 0,t.getPreferenceSection=t.getPreferenceName=t.getPreference=t.WEBMASTER_META_TITLE_HOME_NOT_LOGGED=t.WEBMASTER_META_ROBOTS=t.WEBMASTER_META_DESCRIPTION=t.TEXT_ERROR_PAGES_TITLE=t.TEXT_ERROR_PAGES_SUBTITLE=t.TEXT_APPLICATION_SLOGAN2=t.TEXT_APPLICATION_SLOGAN1=t.TEXT_APPLICATION_NAME=t.TEXT_APPLICATION_COPYRIGHT=t.STYLE_FONT_FAMILY=t.STATIC_STRIPE_PUBLIC_KEY=t.STATIC_STACKID=t.STATIC_ENVIRONMENT=t.STAFF_STAFF_BADGE_LABEL=t.STAFF_STAFF_BADGE_ICON=t.PROVIDERS_WEB_PUSH_PUBLIC_KEY=t.PROVIDERS_WEB_PUSH_ENABLED=t.PROVIDERS_TWITTER_SIGNIN_ENABLED=t.PROVIDERS_TWITTER_APP_SECRET=t.PROVIDERS_TWITTER_APP_KEY=t.PROVIDERS_LINKEDIN_SIGNIN_ENABLED=t.PROVIDERS_LINKEDIN_APP_SECRET=t.PROVIDERS_LINKEDIN_APP_KEY=t.PROVIDERS_GOOGLE_SIGNIN_ENABLED=t.PROVIDERS_GOOGLE_GEOCODING_API_KEY=t.PROVIDERS_GOOGLE_APP_SECRET=t.PROVIDERS_GOOGLE_APP_KEY=t.PROVIDERS_FACEBOOK_SIGNIN_ENABLED=t.PROVIDERS_FACEBOOK_APP_SECRET=t.PROVIDERS_FACEBOOK_APP_KEY=t.PROVIDERS_APP_URL_ON_GOOGLE_PLAY=t.PROVIDERS_APP_URL_ON_APP_STORE=t.PREFERENCES_OPTION=t.POINTS_SOCIAL_SHARE=t.POINTS_RECEIVE_VOTE=t.POINTS_MAKE_POST=t.POINTS_MAKE_DISCUSSION=t.POINTS_MAKE_COMMENT=t.POINTS_DAILY_VISIT=t.POINTS_CONNECTION_OR_FOLLOWER=void 0;var n,o=r(9954);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.PREFERENCES_OPTION="preferences",t.GLOBAL_PREFERENCES_OPTION="preferences",t.DEFAULT_GLOBAL_PREFERENCES_OPTION={};var c="".concat(o.SCPreferenceSection.TEXT,".").concat(o.SCPreferenceName.APPLICATION_NAME);t.TEXT_APPLICATION_NAME=c;var s="".concat(o.SCPreferenceSection.TEXT,".").concat(o.SCPreferenceName.APPLICATION_SLOGAN1);t.TEXT_APPLICATION_SLOGAN1=s;var l="".concat(o.SCPreferenceSection.TEXT,".").concat(o.SCPreferenceName.APPLICATION_SLOGAN2);t.TEXT_APPLICATION_SLOGAN2=l;var f="".concat(o.SCPreferenceSection.TEXT,".").concat(o.SCPreferenceName.APPLICATION_COPYRIGHT);t.TEXT_APPLICATION_COPYRIGHT=f;var d="".concat(o.SCPreferenceSection.TEXT,".").concat(o.SCPreferenceName.ERRORPAGES_TITLE);t.TEXT_ERROR_PAGES_TITLE=d;var p="".concat(o.SCPreferenceSection.TEXT,".").concat(o.SCPreferenceName.ERRORPAGES_SUBTITLE);t.TEXT_ERROR_PAGES_SUBTITLE=p;var h="".concat(o.SCPreferenceSection.STYLE,".").concat(o.SCPreferenceName.FONT_FAMILY);t.STYLE_FONT_FAMILY=h;var v="".concat(o.SCPreferenceSection.LOGO,".").concat(o.SCPreferenceName.NAVBAR_LOGO);t.LOGO_NAVBAR_LOGO=v;var y="".concat(o.SCPreferenceSection.LOGO,".").concat(o.SCPreferenceName.NAVBAR_LOGO_MOBILE);t.LOGO_NAVBAR_LOGO_MOBILE=y;var g="".concat(o.SCPreferenceSection.COLORS,".").concat(o.SCPreferenceName.COLORBACK);t.COLORS_COLORBACK=g;var m="".concat(o.SCPreferenceSection.COLORS,".").concat(o.SCPreferenceName.COLORPRIMARY);t.COLORS_COLORPRIMARY=m;var _="".concat(o.SCPreferenceSection.COLORS,".").concat(o.SCPreferenceName.COLORSECONDARY);t.COLORS_COLORSECONDARY=_;var E="".concat(o.SCPreferenceSection.COLORS,".").concat(o.SCPreferenceName.NAVBARBACK);t.COLORS_NAVBARBACK=E;var S="".concat(o.SCPreferenceSection.COLORS,".").concat(o.SCPreferenceName.COLORFONT);t.COLORS_COLORFONT=S;var O="".concat(o.SCPreferenceSection.COLORS,".").concat(o.SCPreferenceName.COLORFONTSECONDARY);t.COLORS_COLORFONTSECONDARY=O;var b="".concat(o.SCPreferenceSection.COVERS,".").concat(o.SCPreferenceName.COVER_1_HP_M1920);t.COVERS_COVER_1_HP_M1920=b;var C="".concat(o.SCPreferenceSection.COVERS,".").concat(o.SCPreferenceName.COVER_2_HP_M1920);t.COVERS_COVER_2_HP_M1920=C;var T="".concat(o.SCPreferenceSection.COVERS,".").concat(o.SCPreferenceName.COVER_3_HP_M1920);t.COVERS_COVER_3_HP_M1920=T;var w="".concat(o.SCPreferenceSection.COVERS,".").concat(o.SCPreferenceName.COVER_4_HP_M1920);t.COVERS_COVER_4_HP_M1920=w;var A="".concat(o.SCPreferenceSection.COVERS,".").concat(o.SCPreferenceName.COVERS_VISIBILITY);t.COVERS_VISIBILITY=A;var R="".concat(o.SCPreferenceSection.IMAGES,".").concat(o.SCPreferenceName.APP_ICON);t.IMAGES_APP_ICON=R;var P="".concat(o.SCPreferenceSection.IMAGES,".").concat(o.SCPreferenceName.USER_DEFAULT_COVER);t.IMAGES_USER_DEFAULT_COVER=P;var L="".concat(o.SCPreferenceSection.IMAGES,".").concat(o.SCPreferenceName.ERROR_404);t.IMAGES_ERROR_404=L;var I="".concat(o.SCPreferenceSection.IMAGES,".").concat(o.SCPreferenceName.ERROR_503);t.IMAGES_ERROR_503=I;var N="".concat(o.SCPreferenceSection.IMAGES,".").concat(o.SCPreferenceName.ERRORPAGES_IMAGE);t.IMAGES_ERRORPAGES_IMAGE=N;var j="".concat(o.SCPreferenceSection.STAFF,".").concat(o.SCPreferenceName.STAFF_BADGE_ICON);t.STAFF_STAFF_BADGE_ICON=j;var k="".concat(o.SCPreferenceSection.STAFF,".").concat(o.SCPreferenceName.STAFF_BADGE_LABEL);t.STAFF_STAFF_BADGE_LABEL=k;var U="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.PRIZE_A_IMAGE);t.LOYALTY_PRIZE_A_IMAGE=U;var x="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.PRIZE_B_IMAGE);t.LOYALTY_PRIZE_B_IMAGE=x;var G="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.PRIZE_C_IMAGE);t.LOYALTY_PRIZE_C_IMAGE=G;var D="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.POINTS_MAKE_DISCUSSION);t.POINTS_MAKE_DISCUSSION=D;var M="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.POINTS_MAKE_POST);t.POINTS_MAKE_POST=M;var F="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.POINTS_MAKE_COMMENT);t.POINTS_MAKE_COMMENT=F;var B="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.POINTS_RECEIVE_VOTE);t.POINTS_RECEIVE_VOTE=B;var V="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.POINTS_CONNECTION_OR_FOLLOWER);t.POINTS_CONNECTION_OR_FOLLOWER=V;var Y="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.POINTS_SOCIAL_SHARE);t.POINTS_SOCIAL_SHARE=Y;var q="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.POINTS_APP_USED);t.POINTS_APP_USED=q;var K="".concat(o.SCPreferenceSection.LOYALTY,".").concat(o.SCPreferenceName.POINTS_DAILY_VISIT);t.POINTS_DAILY_VISIT=K;var W="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.AFFINITY_ENABLED);t.ADDONS_AFFINITY_ENABLED=W;var H="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.CLOSED_COMMUNITY);t.ADDONS_CLOSED_COMMUNITY=H;var $="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.INCUBATOR_ENABLED);t.ADDONS_INCUBATOR_ENABLED=$;var X="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.INCUBATOR_SUBSCRIBERS);t.ADDONS_INCUBATOR_SUBSCRIBERS=X;var J="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.LOYALTY_POINTS_COLLECTION);t.ADDONS_LOYALTY_POINTS_COLLECTION=J;var z="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.POLLS_ENABLED);t.ADDONS_POLLS_ENABLED=z;var Q="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.REGISTRATION_WIZARD);t.ADDONS_REGISTRATION_WIZARD=Q;var Z="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.POST_GEOLOCATION_ENABLED);t.ADDONS_POST_GEOLOCATION_ENABLED=Z;var ee="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.SHARE_POST_ON_FACEBOOK_ENABLED);t.ADDONS_SHARE_POST_ON_FACEBOOK_ENABLED=ee;var te="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.SHARE_POST_ON_TWITTER_ENABLED);t.ADDONS_SHARE_POST_ON_TWITTER_ENABLED=te;var re="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.SHARE_POST_ON_LINKEDIN_ENABLED);t.ADDONS_SHARE_POST_ON_LINKEDIN_ENABLED=re;var ne="".concat(o.SCPreferenceSection.ADDONS,".").concat(o.SCPreferenceName.PRIVATE_MESSAGES_ENABLED);t.ADDONS_PRIVATE_MESSAGES_ENABLED=ne;var oe="".concat(o.SCPreferenceSection.ADVERTISING,".").concat(o.SCPreferenceName.CUSTOM_ADV_ENABLED);t.ADVERTISING_CUSTOM_ADV_ENABLED=oe;var ie="".concat(o.SCPreferenceSection.ADVERTISING,".").concat(o.SCPreferenceName.CUSTOM_ADV_ONLY_FOR_ANONYMOUS_USERS_ENABLED);t.ADVERTISING_CUSTOM_ADV_ONLY_FOR_ANONYMOUS_USERS_ENABLED=ie;var ae="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.CONNECTION_ENABLED);t.CONFIGURATIONS_CONNECTION_ENABLED=ae;var ue="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.FOLLOW_ENABLED);t.CONFIGURATIONS_FOLLOW_ENABLED=ue;var ce="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.EXPLORE_STREAM_ENABLED);t.CONFIGURATIONS_EXPLORE_STREAM_ENABLED=ce;var se="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.EXPLORE_STREAM_ORDER_BY);t.CONFIGURATIONS_EXPLORE_STREAM_ORDER_BY=se;var le="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.HOME_STREAM_ORDER_BY);t.CONFIGURATIONS_HOME_STREAM_ORDER_BY=le;var fe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.MANUAL_CATEGORIES_ORDER_ENABLED);t.CONFIGURATIONS_MANUAL_CATEGORIES_ORDER_ENABLED=fe;var de="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.PEOPLE_SEARCH_ENABLED);t.CONFIGURATIONS_PEOPLE_SEARCH_ENABLED=de;var pe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.POST_ONLY_STAFF_ENABLED);t.CONFIGURATIONS_POST_ONLY_STAFF_ENABLED=pe;var he="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.STREAM_QUALITY);t.CONFIGURATIONS_STREAM_QUALITY=he;var ve="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.CONTENT_AVAILABILITY);t.CONFIGURATIONS_CONTENT_AVAILABILITY=ve;var ye="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.USERS_APPROVAL_ENABLED);t.CONFIGURATIONS_USERS_APPROVAL_ENABLED=ye;var ge="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.POST_TYPE_ENABLED);t.CONFIGURATIONS_POST_TYPE_ENABLED=ge;var me="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.DISCUSSION_TYPE_ENABLED);t.CONFIGURATIONS_DISCUSSION_TYPE_ENABLED=me;var _e="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.STATUS_TYPE_ENABLED);t.CONFIGURATIONS_STATUS_TYPE_ENABLED=_e;var Ee="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_EMAIL_SETTINGS);t.CONFIGURATIONS_URL_TEMPLATE_EMAIL_SETTINGS=Ee;var Se="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_EMAIL_UNSUBSCRIBE);t.CONFIGURATIONS_URL_TEMPLATE_EMAIL_UNSUBSCRIBE=Se;var Oe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_PASSWORD_RECOVER);t.CONFIGURATIONS_URL_TEMPLATE_PASSWORD_RECOVER=Oe;var be="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_VERIFY_EMAIL);t.CONFIGURATIONS_URL_TEMPLATE_VERIFY_EMAIL=be;var Ce="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_POST);t.CONFIGURATIONS_URL_TEMPLATE_POST=Ce;var Te="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_DISCUSSION);t.CONFIGURATIONS_URL_TEMPLATE_DISCUSSION=Te;var we="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_STATUS);t.CONFIGURATIONS_URL_TEMPLATE_STATUS=we;var Ae="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_COMMENT);t.CONFIGURATIONS_URL_TEMPLATE_COMMENT=Ae;var Re="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_CATEGORY);t.CONFIGURATIONS_URL_TEMPLATE_CATEGORY=Re;var Pe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_CATEGORIES_LIST);t.CONFIGURATIONS_URL_TEMPLATE_CATEGORIES_LIST=Pe;var Le="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_USER_PROFILE);t.CONFIGURATIONS_URL_TEMPLATE_USER_PROFILE=Le;var Ie="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_USER_PROFILE_SETTINGS);t.CONFIGURATIONS_URL_TEMPLATE_USER_PROFILE_SETTINGS=Ie;var Ne="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_NOTIFICATIONS);t.CONFIGURATIONS_URL_TEMPLATE_NOTIFICATIONS=Ne;var je="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_USER_PRIVATE_MESSAGES);t.CONFIGURATIONS_URL_TEMPLATE_USER_PRIVATE_MESSAGES=je;var ke="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_INCUBATOR);t.CONFIGURATIONS_URL_TEMPLATE_INCUBATOR=ke;var Ue="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.URL_TEMPLATE_LIVE_STREAM);t.CONFIGURATIONS_URL_TEMPLATE_LIVE_STREAM=Ue;var xe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.APP_URL);t.CONFIGURATIONS_APP_URL=xe;var Ge="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.USER_METADATA_DEFINITIONS);t.CONFIGURATIONS_USER_METADATA_DEFINITIONS=Ge;var De="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.TAG_MANAGER_CONTAINER_ID);t.CONFIGURATIONS_TAG_MANAGER_CONTAINER_ID=De;var Me="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.GDPR_COOKIE_CONSENT_EXTERNAL_HTML);t.CONFIGURATIONS_GDPR_COOKIE_CONSENT_EXTERNAL_HTML=Me;var Fe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.GDPR_SIGNUP_ACCEPT_HTML);t.CONFIGURATIONS_GDPR_SIGNUP_ACCEPT_HTML=Fe;var Be="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.CUSTOM_NAVBAR_ITEM_ENABLED);t.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_ENABLED=Be;var Ve="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.CUSTOM_NAVBAR_ITEM_TEXT);t.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_TEXT=Ve;var Ye="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.CUSTOM_NAVBAR_ITEM_URL);t.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL=Ye;var qe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.CUSTOM_NAVBAR_ITEM_IMAGE);t.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_IMAGE=qe;var Ke="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.GROUPS_ENABLED);t.CONFIGURATIONS_GROUPS_ENABLED=Ke;var We="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.GROUPS_ONLY_STAFF_ENABLED);t.CONFIGURATIONS_GROUPS_ONLY_STAFF_ENABLED=We;var He="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.GROUPS_VISIBILITY_ENABLED);t.CONFIGURATIONS_GROUPS_VISIBILITY_ENABLED=He;var $e="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.GROUPS_PRIVATE_ENABLED);t.CONFIGURATIONS_GROUPS_PRIVATE_ENABLED=$e;var Xe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.EVENTS_ENABLED);t.CONFIGURATIONS_EVENTS_ENABLED=Xe;var Je="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.EVENTS_ONLY_STAFF_ENABLED);t.CONFIGURATIONS_EVENTS_ONLY_STAFF_ENABLED=Je;var ze="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.EVENTS_VISIBILITY_ENABLED);t.CONFIGURATIONS_EVENTS_VISIBILITY_ENABLED=ze;var Qe="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.EVENTS_PRIVATE_ENABLED);t.CONFIGURATIONS_EVENTS_PRIVATE_ENABLED=Qe;var Ze="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.COURSES_ENABLED);t.CONFIGURATIONS_COURSES_ENABLED=Ze;var et="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.COURSES_ONLY_STAFF_ENABLED);t.CONFIGURATIONS_COURSES_ONLY_STAFF_ENABLED=et;var tt="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.COURSES_VISIBILITY_ENABLED);t.CONFIGURATIONS_COURSES_VISIBILITY_ENABLED=tt;var rt="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.COURSES_PRIVATE_ENABLED);t.CONFIGURATIONS_COURSES_PRIVATE_ENABLED=rt;var nt="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.COURSES_ADVANCED_ENABLED);t.CONFIGURATIONS_COURSES_ADVANCED_ENABLED=nt;var ot="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.ONBOARDING_ENABLED);t.CONFIGURATIONS_ONBOARDING_ENABLED=ot;var it="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.ONBOARDING_HIDDEN);t.CONFIGURATIONS_ONBOARDING_HIDDEN=it;var at="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.LIVE_STREAM_ENABLED);t.CONFIGURATIONS_LIVE_STREAM_ENABLED=at;var ut="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.LIVE_STREAM_ONLY_STAFF_ENABLED);t.CONFIGURATIONS_LIVE_STREAM_ONLY_STAFF_ENABLED=ut;var ct="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.LIVE_STREAM_VIDEO_CONFERENCE_ENABLED);t.CONFIGURATIONS_LIVE_VIDEO_CONFERENCE_ENABLED=ct;var st="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.SUBSCRIPTION_TIER);t.CONFIGURATIONS_SUBSCRIPTION_TIER=st;var lt="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.PAYMENTS_ENABLED);t.CONFIGURATIONS_PAYMENTS_ENABLED=lt;var ft="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.STRIPE_CONNECTED_ACCOUNT_ID);t.CONFIGURATIONS_STRIPE_CONNECTED_ACCOUNT_ID=ft;var dt="".concat(o.SCPreferenceSection.CONFIGURATIONS,".").concat(o.SCPreferenceName.CONTEXT_MENU_ENABLED);t.CONFIGURATIONS_CONTEXT_MENU_ENABLED=dt;var pt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.APP_URL_ON_APP_STORE);t.PROVIDERS_APP_URL_ON_APP_STORE=pt;var ht="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.APP_URL_ON_GOOGLE_PLAY);t.PROVIDERS_APP_URL_ON_GOOGLE_PLAY=ht;var vt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.FACEBOOK_SIGNIN_ENABLED);t.PROVIDERS_FACEBOOK_SIGNIN_ENABLED=vt;var yt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.FACEBOOK_APP_KEY);t.PROVIDERS_FACEBOOK_APP_KEY=yt;var gt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.FACEBOOK_APP_SECRET);t.PROVIDERS_FACEBOOK_APP_SECRET=gt;var mt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.LINKEDIN_SIGNIN_ENABLED);t.PROVIDERS_LINKEDIN_SIGNIN_ENABLED=mt;var _t="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.LINKEDIN_APP_KEY);t.PROVIDERS_LINKEDIN_APP_KEY=_t;var Et="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.LINKEDIN_APP_SECRET);t.PROVIDERS_LINKEDIN_APP_SECRET=Et;var St="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.TWITTER_SIGNIN_ENABLED);t.PROVIDERS_TWITTER_SIGNIN_ENABLED=St;var Ot="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.TWITTER_APP_KEY);t.PROVIDERS_TWITTER_APP_KEY=Ot;var bt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.TWITTER_APP_SECRET);t.PROVIDERS_TWITTER_APP_SECRET=bt;var Ct="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.GOOGLE_GEOCODING_API_KEY);t.PROVIDERS_GOOGLE_GEOCODING_API_KEY=Ct;var Tt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.GOOGLE_SIGNIN_ENABLED);t.PROVIDERS_GOOGLE_SIGNIN_ENABLED=Tt;var wt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.GOOGLE_APP_KEY);t.PROVIDERS_GOOGLE_APP_KEY=wt;var At="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.GOOGLE_APP_SECRET);t.PROVIDERS_GOOGLE_APP_SECRET=At;var Rt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.WEB_PUSH_PUBLIC_KEY);t.PROVIDERS_WEB_PUSH_PUBLIC_KEY=Rt;var Pt="".concat(o.SCPreferenceSection.PROVIDERS,".").concat(o.SCPreferenceName.WEB_PUSH_ENABLED);t.PROVIDERS_WEB_PUSH_ENABLED=Pt;var Lt="".concat(o.SCPreferenceSection.WEBMASTER,".").concat(o.SCPreferenceName.META_ROBOTS);t.WEBMASTER_META_ROBOTS=Lt;var It="".concat(o.SCPreferenceSection.WEBMASTER,".").concat(o.SCPreferenceName.META_TITLE_HOME_NOT_LOGGED);t.WEBMASTER_META_TITLE_HOME_NOT_LOGGED=It;var Nt="".concat(o.SCPreferenceSection.WEBMASTER,".").concat(o.SCPreferenceName.META_DESCRIPTION);t.WEBMASTER_META_DESCRIPTION=Nt;var jt="".concat(o.SCPreferenceSection.STATIC,".").concat(o.SCPreferenceName.ENVIRONMENT);t.STATIC_ENVIRONMENT=jt;var kt="".concat(o.SCPreferenceSection.STATIC,".").concat(o.SCPreferenceName.STACK_ID);t.STATIC_STACKID=kt;var Ut="".concat(o.SCPreferenceSection.STATIC,".").concat(o.SCPreferenceName.STRIPE_PUBLIC_KEY);t.STATIC_STRIPE_PUBLIC_KEY=Ut;var xt=function(e){return"True"===e||"False"!==e&&null};t.getPreferenceSection=function(e){return e?a(e.split("."),1)[0]:null},t.getPreferenceName=function(e){return e?a(e.split("."),2)[1]:null},t.getPreference=function(e){if(e){var t=a(e.split("."),2);return{section:t[0],name:t[1]}}return null};var Gt=function(e){return parseInt(e,10)},Dt=function(e){return e.toString()},Mt=(i(i(i(i(i(i(i(i(i(i(n={},s,Dt),l,Dt),f,Dt),v,Dt),y,Dt),g,Dt),m,Dt),_,Dt),E,Dt),S,Dt),i(i(i(i(i(i(i(i(i(i(n,O,Dt),b,Dt),C,Dt),T,Dt),w,Dt),A,Gt),R,Dt),P,Dt),L,Dt),I,Dt),i(i(i(i(i(i(i(i(i(i(n,N,Dt),d,Dt),p,Dt),j,Dt),k,Dt),U,Dt),x,Dt),G,Dt),W,xt),H,xt),i(i(i(i(i(i(i(i(i(i(n,$,xt),X,Gt),J,xt),z,xt),Q,xt),Z,xt),ee,xt),te,xt),re,xt),ue,xt),i(i(i(i(i(i(i(i(i(i(n,ce,xt),se,Dt),le,Dt),fe,xt),de,xt),pe,xt),ve,xt),he,xt),ye,xt),me,xt),i(i(i(i(i(i(i(i(i(i(n,_e,xt),Ee,Dt),Se,Dt),Oe,Dt),be,Dt),Ce,Dt),Te,Dt),we,Dt),Ae,Dt),Re,Dt),i(i(i(i(i(i(i(i(i(i(n,Pe,Dt),Le,Dt),Ie,Dt),Ne,Dt),je,Dt),ke,Dt),Ue,Dt),xe,Dt),Ge,Dt),De,Dt),i(i(i(i(i(i(i(i(i(i(n,Me,Dt),Fe,Dt),Be,Dt),Ve,Dt),Ye,Dt),qe,Dt),Ke,xt),We,xt),He,xt),$e,xt),i(i(i(i(i(i(i(i(i(i(n,Xe,xt),Je,xt),ze,xt),Qe,xt),Ze,xt),et,xt),tt,xt),rt,xt),nt,xt),ot,xt),i(i(i(i(i(i(i(i(i(i(n,it,xt),at,xt),ut,xt),ct,xt),st,Dt),lt,xt),ft,Dt),dt,xt),pt,Dt),ht,Dt),i(i(i(i(i(i(i(i(i(i(n,vt,Dt),yt,Dt),gt,Dt),mt,Dt),_t,Dt),Et,Dt),St,Dt),Ot,Dt),bt,Dt),Ct,Dt),i(i(i(i(i(i(i(i(i(i(n,Tt,Dt),wt,Dt),At,Dt),Rt,Dt),Pt,xt),Lt,Dt),It,Dt),Nt,Dt),jt,Dt),kt,Dt),i(n,Ut,Dt));t.DATA_TYPES=Mt},8461:(e,t)=>{var r;function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.__esModule=!0,t.defaultRoutes=t.USER_PROFILE_SETTINGS_ROUTE_NAME=t.USER_PROFILE_ROUTE_NAME=t.USER_PROFILE_FOLLOWINGS_ROUTE_NAME=t.USER_PROFILE_FOLLOWERS_ROUTE_NAME=t.USER_PROFILE_FOLLOWED_POSTS_ROUTE_NAME=t.USER_PROFILE_FOLLOWED_DISCUSSIONS_ROUTE_NAME=t.USER_PROFILE_CONNECTIONS_ROUTE_NAME=t.USER_PROFILE_CONNECTIONS_REQUESTS_SENT_ROUTE_NAME=t.USER_PROFILE_CONNECTIONS_REQUESTS_ROUTE_NAME=t.USER_PROFILE_CATEGORIES_ROUTE_NAME=t.USER_PRIVATE_MESSAGES_ROUTE_NAME=t.USER_PAYMENT_METHODS_ROUTE_NAME=t.USER_PAYMENTS_ORDER_PDF_ROUTE_NAME=t.USER_PAYMENTS_HISTORY_ORDERS_ROUTE_NAME=t.USER_NOTIFICATIONS_ROUTE_NAME=t.STATUS_ROUTE_NAME=t.SIGNUP_ROUTE_NAME=t.SIGNIN_ROUTE_NAME=t.ROUTER_OPTION=t.RECOVER_ROUTE_NAME=t.POST_ROUTE_NAME=t.PORTAL_OPTION=t.LOYALTY_ROUTE_NAME=t.LIVESTREAM_ROUTE_NAME=t.LEGAL_PAGES_ROUTE_NAME=t.INCUBATOR_ROUTE_NAME=t.HOME_ROUTE_NAME=t.GROUP_ROUTE_NAME=t.GROUP_MESSAGES_ROUTE_NAME=t.GROUP_MEMBERS_ROUTE_NAME=t.GROUPS_SUBSCRIBED_ROUTE_NAME=t.GROUPS_ROUTE_NAME=t.EXPLORE_ROUTE_NAME=t.EVENT_ROUTE_NAME=t.EVENTS_SUGGESTED_ROUTE_NAME=t.EVENTS_SUBSCRIBED_ROUTE_NAME=t.EVENTS_ROUTE_NAME=t.EVENTS_HIGHLIGHT_ROUTE_NAME=t.DISCUSSION_ROUTE_NAME=t.CUSTOM_PAGES_ROUTE_NAME=t.COURSE_ROUTE_NAME=t.COURSE_LESSON_ROUTE_NAME=t.COURSE_LESSON_PREVIEW_ROUTE_NAME=t.COURSE_LESSON_EDIT_ROUTE_NAME=t.COURSE_LESSON_COMMENTS_ROUTE_NAME=t.COURSE_EDIT_ROUTE_NAME=t.COURSE_DASHBOARD_ROUTE_NAME=t.COURSES_ROUTE_NAME=t.COMMENT_ROUTE_NAME=t.CHECKOUT_PAYMENT=t.CATEGORY_TRENDING_FEED_ROUTE_NAME=t.CATEGORY_ROUTE_NAME=t.CATEGORIES_LIST_ROUTE_NAME=void 0,t.PORTAL_OPTION="portal",t.ROUTER_OPTION="router";var o="home";t.HOME_ROUTE_NAME=o;var i="explore";t.EXPLORE_ROUTE_NAME=i;var a="post";t.POST_ROUTE_NAME=a;var u="discussion";t.DISCUSSION_ROUTE_NAME=u;var c="status";t.STATUS_ROUTE_NAME=c;var s="comment";t.COMMENT_ROUTE_NAME=s;var l="category";t.CATEGORY_ROUTE_NAME=l;var f="category_trending_feed";t.CATEGORY_TRENDING_FEED_ROUTE_NAME=f;var d="categories";t.CATEGORIES_LIST_ROUTE_NAME=d;var p="user_profile";t.USER_PROFILE_ROUTE_NAME=p;var h="user_profile_settings";t.USER_PROFILE_SETTINGS_ROUTE_NAME=h;var v="user_notifications";t.USER_NOTIFICATIONS_ROUTE_NAME=v;var y="user_messages";t.USER_PRIVATE_MESSAGES_ROUTE_NAME=y;var g="user_followings";t.USER_PROFILE_FOLLOWINGS_ROUTE_NAME=g;var m="user_followers";t.USER_PROFILE_FOLLOWERS_ROUTE_NAME=m;var _="user_connections";t.USER_PROFILE_CONNECTIONS_ROUTE_NAME=_;var E="user_connections_requests";t.USER_PROFILE_CONNECTIONS_REQUESTS_ROUTE_NAME=E;var S="user_connections_requests_sent";t.USER_PROFILE_CONNECTIONS_REQUESTS_SENT_ROUTE_NAME=S;var O="user_categories";t.USER_PROFILE_CATEGORIES_ROUTE_NAME=O;var b="user_followed_posts";t.USER_PROFILE_FOLLOWED_POSTS_ROUTE_NAME=b;var C="user_followed_discussions";t.USER_PROFILE_FOLLOWED_DISCUSSIONS_ROUTE_NAME=C;var T="user_payments_history_orders";t.USER_PAYMENTS_HISTORY_ORDERS_ROUTE_NAME=T;var w="user_payments_order_pdf";t.USER_PAYMENTS_ORDER_PDF_ROUTE_NAME=w;var A="user_payment_methods";t.USER_PAYMENT_METHODS_ROUTE_NAME=A;var R="loyalty";t.LOYALTY_ROUTE_NAME=R;var P="incubator";t.INCUBATOR_ROUTE_NAME=P;var L="signin";t.SIGNIN_ROUTE_NAME=L;var I="signup";t.SIGNUP_ROUTE_NAME=I;var N="recover";t.RECOVER_ROUTE_NAME=N;var j="custom_pages";t.CUSTOM_PAGES_ROUTE_NAME=j;var k="legal_pages";t.LEGAL_PAGES_ROUTE_NAME=k;var U="group";t.GROUP_ROUTE_NAME=U;var x="group_members";t.GROUP_MEMBERS_ROUTE_NAME=x;var G="group_messages";t.GROUP_MESSAGES_ROUTE_NAME=G;var D="groups";t.GROUPS_ROUTE_NAME=D;var M="groups_subscribed";t.GROUPS_SUBSCRIBED_ROUTE_NAME=M;var F="event";t.EVENT_ROUTE_NAME=F;var B="events";t.EVENTS_ROUTE_NAME=B;var V="course";t.COURSE_ROUTE_NAME=V;var Y="course_edit";t.COURSE_EDIT_ROUTE_NAME=Y;var q="course_dashboard";t.COURSE_DASHBOARD_ROUTE_NAME=q;var K="course_lesson";t.COURSE_LESSON_ROUTE_NAME=K;var W="course_lesson_preview";t.COURSE_LESSON_PREVIEW_ROUTE_NAME=W;var H="course_lesson_edit";t.COURSE_LESSON_EDIT_ROUTE_NAME=H;var $="course_lesson_comments";t.COURSE_LESSON_COMMENTS_ROUTE_NAME=$;var X="courses";t.COURSES_ROUTE_NAME=X;var J="events_suggested";t.EVENTS_SUGGESTED_ROUTE_NAME=J;var z="events_subscribed";t.EVENTS_SUBSCRIBED_ROUTE_NAME=z;var Q="events_highlight";t.EVENTS_HIGHLIGHT_ROUTE_NAME=Q;var Z="live";t.LIVESTREAM_ROUTE_NAME=Z;var ee="checkout_payment";t.CHECKOUT_PAYMENT=ee;var te=(n(n(n(n(n(n(n(n(n(n(r={},o,"/"),i,"/explore/"),a,"/post/:id/"),u,"/discussion/:id/"),c,"/status/:id/"),s,"/:contribution_type/:contribution_id/comment/:id/"),l,"/category/:id/:slug/"),f,"/category/:id/:slug/trending/"),d,"/categories/"),p,"/user/:id/"),n(n(n(n(n(n(n(n(n(n(r,h,"/user/:id/edit/"),v,"/notification/"),y,"/messages/:id/"),g,"/user/:id/followed/"),m,"/user/:id/followers/"),_,"/user/:id/connections/"),E,"/user/:id/connections/requests/"),S,"/user/:id/connections/requests/sent/"),O,"/user/:id/categories/"),b,"/user/:id/posts/followed/"),n(n(n(n(n(n(n(n(n(n(r,C,"/user/:id/discussions/followed/"),T,"/user/:id/:username/history_orders/"),w,"/user/:id/:username/order/:pid/pdf/"),A,"/user/:id/:username/payment_methods/"),R,"/loyalty/"),P,"/incubator/:id/"),L,"/signin/"),I,"/signup/"),N,"/recover/"),j,"/:id/:slug/"),n(n(n(n(n(n(n(n(n(n(r,k,"/legal/:policy/"),U,"/group/:id/:slug/"),x,"/group/:id/:slug/members/"),G,"/group/:id/:slug/messages/"),D,"/groups/"),M,"/groups/subscribed/"),B,"/events/"),J,"/events/suggested"),F,"/event/:id/:slug/"),z,"/events/subscribed/"),n(n(n(n(n(n(n(n(n(n(r,Q,"/events/highlight/"),V,"/course/:id/:slug/"),X,"/courses/"),Y,"/course/:id/:slug/edit/:tab"),q,"/course/:id/:slug/dashboard"),K,"/course/:id/:slug/section/:section_id/lesson/:lesson_id/"),W,"/course/:id/:slug/section/:section_id/lesson/:lesson_id/preview"),$,"/course/:id/:slug/section/:section_id/lesson/:lesson_id/comments"),H,"/course/:id/:slug/section/:section_id/lesson/:lesson_id/edit"),Z,"/live/:slug/"),n(r,ee,"/checkout/:content_type/:content_id/price/:price_id"));t.defaultRoutes=te},4191:(e,t)=>{t.__esModule=!0,t.sessionTypes=t.SESSION_TYPE_OPTION=t.SESSION_OPTION=t.SESSION_HANDLE_REFRESH_TOKEN_OPTION=t.SESSION_HANDLE_LOGOUT_OPTION=t.SESSION_CLIENT_ID_OPTION=t.SESSION_AUTH_TOKEN_OPTION=t.OAUTH_SESSION=t.JWT_SESSION=t.COOKIE_SESSION=void 0,t.SESSION_OPTION="session",t.SESSION_TYPE_OPTION="type",t.SESSION_CLIENT_ID_OPTION="clientId",t.SESSION_AUTH_TOKEN_OPTION="authToken",t.SESSION_HANDLE_REFRESH_TOKEN_OPTION="handleRefreshToken",t.SESSION_HANDLE_LOGOUT_OPTION="handleLogout";var r="Cookie";t.COOKIE_SESSION=r,t.JWT_SESSION="JWT";var n="OAuth";t.OAUTH_SESSION=n;var o=["JWT",n,r];t.sessionTypes=o},3232:(e,t)=>{t.__esModule=!0,t.THEME_OPTION=void 0,t.THEME_OPTION="theme"},3789:(e,t)=>{t.__esModule=!0,t.VOTE_REACTIONS_OPTION=t.VOTE_OPTION=t.DEFAULT_VOTE_REACTIONS_OPTION=void 0,t.VOTE_OPTION="vote",t.VOTE_REACTIONS_OPTION="reactions",t.DEFAULT_VOTE_REACTIONS_OPTION=null},706:(e,t)=>{t.__esModule=!0,t.WS_SUB_PROTOCOL_PREFIX=t.WS_PROTOCOL_SECURE=t.WS_PROTOCOL_INSECURE=t.WS_PREFIX_PATH=t.WS_HEARTBEAT_MESSAGE=t.WS_FACILITY_NOTIFY=void 0,t.WS_PROTOCOL_SECURE="wss",t.WS_PROTOCOL_INSECURE="ws",t.WS_PREFIX_PATH="ws",t.WS_SUB_PROTOCOL_PREFIX="__",t.WS_FACILITY_NOTIFY="notify",t.WS_HEARTBEAT_MESSAGE="--1a61c1de89b75ddfbb684b8d224ee3ae--"},8291:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=function(e){var t,r=(2,function(e){if(Array.isArray(e))return e}(t=(0,a.useReducer)(_,{},(function(){return E(e)})))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t)||function(e,t){if(e){if("string"==typeof e)return h(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n=r[0],o=r[1],f=(0,a.useRef)(null),v=(0,a.useRef)(!1),y=(0,a.useRef)([]),g=n.user?n.user.id:null,S=n.session.authToken&&n.session.authToken.accessToken?n.session.authToken.accessToken:null;(0,c.default)((function(){o({type:m.REFRESH_SESSION,payload:{conf:E(e)}})}),[e]);var O=(0,a.useMemo)((function(){return function(){var e=n.session;return!v.current&&e.handleRefreshToken?(v.current=!0,e.handleRefreshToken(n.session).then((function(e){return v.current=!1,o({type:m.REFRESH_TOKEN_SUCCESS,payload:{token:e}}),Promise.resolve(e)})).catch((function(e){return s.Logger.error(l.SCOPE_SC_CORE,"Unable to refresh user session."),e.response&&e.response.data&&o({type:m.REFRESH_TOKEN_FAILURE,payload:{error:e.response.toString()}}),Promise.reject(e)}))):Promise.reject(new Error("Unable to refresh session. Unauthenticated user."))}}),[S]),b=(0,a.useMemo)((function(){return function(){o({type:m.LOGOUT});var e=n.session;e.handleLogout&&e.handleLogout()}}),[]),C=(0,a.useMemo)((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;y.current.forEach((function(r){e?r.reject(e):r.resolve(t)})),y.current=[]}}),[y.current]);return(0,a.useEffect)((function(){return null!==g&&(f.current=i.http.getClientInstance().interceptors.response.use((function(e){return e}),function(){var e,t=(e=d().mark((function e(t){var r,o,a,c;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.config,!t.response){e.next=23;break}if(401!==t.response.status){e.next=22;break}if(!v.current){e.next=5;break}return e.abrupt("return",new Promise((function(e,t){y.current.push({resolve:e,reject:t})})).then((function(e){return r.headers.Authorization="Bearer "+e,i.http.request(r)})).catch((function(e){return s.Logger.error(l.SCOPE_SC_CORE,"Unable to resolve promises in failedQueue."),Promise.reject(e)})));case 5:if(o=n.session,a=o&&"authToken"in o?o.authToken:null,!(o.type!==u.COOKIE_SESSION&&!v.current&&n.user&&o&&o.handleRefreshToken&&Boolean(a&&a.refreshToken))){e.next=22;break}return e.prev=8,e.next=11,O();case 11:return c=e.sent,r.headers.Authorization="Bearer ".concat(c.accessToken),C(null,c.accessToken),e.abrupt("return",Promise.resolve(i.http.request(r)));case 17:if(e.prev=17,e.t0=e.catch(8),!e.t0.response||!e.t0.response.data){e.next=22;break}return C(e.t0,null),e.abrupt("return",Promise.reject(e.t0.response.data));case 22:return e.abrupt("return",Promise.reject(t));case 23:case"end":return e.stop()}}),e,null,[[8,17]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){p(i,n,o,a,u,"next",e)}function u(e){p(i,n,o,a,u,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}())),function(){null!==f.current&&i.http.getClientInstance().interceptors.response.eject(f.current)}}),[g,S]),{state:n,dispatch:o,helpers:{refreshSession:O,logoutSession:b}}},t.userActionTypes=void 0;var o,i=r(7475),a=r(8156),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(4191)),c=(o=r(4537))&&o.__esModule?o:{default:o},s=r(2137),l=r(3240);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function d(){d=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function p(){}function h(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,i)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=l(e[i],e,a);if("throw"!==s.type){var f=s.arg,d=f.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){f.value=e,u(f)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,c(_,"constructor",v),c(v,"constructor",h),h.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function p(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m={LOGIN_LOADING:"_login_loading",LOGIN_SUCCESS:"_login_success",LOGIN_FAILURE:"_login_failure",LOGOUT:"_logout",REFRESH_TOKEN_SUCCESS:"_refresh_token_success",REFRESH_TOKEN_FAILURE:"_invalid_token_failure",REFRESH_SESSION:"_refresh_token",UPDATE_USER:"_change_user"};function _(e,t){switch(t.type){case m.LOGIN_LOADING:return{session:Object.assign({},e.session),error:null,loading:!0};case m.LOGIN_SUCCESS:return{user:t.payload.user,error:null,session:Object.assign({},e.session),loading:!1};case m.LOGIN_FAILURE:return{user:null,session:Object.assign({},e.session),error:t.payload&&t.payload.error?t.payload.error:null,loading:!1};case m.REFRESH_TOKEN_SUCCESS:var r=Object.assign({},e.session.authToken,y(y(y({},e.session.authToken),{},{accessToken:t.payload.token.accessToken},t.payload.token.refreshToken?{refreshToken:t.payload.token.refreshToken}:{}),t.payload.token.expiresIn?{expiresIn:t.payload.token.expiresIn}:{})),n=Object.assign({},e.session,{authToken:r});return i.http.setAuthorizeToken(r.accessToken),y(y({},e),{},{session:n,error:null,loading:!1});case m.REFRESH_TOKEN_FAILURE:return{user:null,session:Object.assign({},e.session),loading:null,error:t.payload.error};case m.LOGOUT:return{user:void 0,session:{},error:null,loading:null};case m.UPDATE_USER:return y(y({},e),{},{user:y(y({},e.user),t.payload)});case m.REFRESH_SESSION:return y(y({},e),t.payload.conf);default:throw new Error("Unhandled type: ".concat(t.type))}}function E(e){var t=Object.assign({},e);return[u.OAUTH_SESSION,u.JWT_SESSION].includes(t.type)?t.authToken&&t.authToken.accessToken?i.http.setAuthorizeToken(t.authToken.accessToken):i.http.setAuthorizeToken():t.type===u.COOKIE_SESSION&&i.http.setAuthorizeToken(),i.http.setSupportWithCredentials(t.type===u.COOKIE_SESSION),{user:void 0,session:t,error:null,loading:!0,isSessionRefreshing:!1,refreshSession:!1}}t.userActionTypes=m},8887:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=c((0,n.useState)(!1),2),r=t[0],s=t[1],l=c((0,n.useState)([]),2),f=l[0],d=l[1],p=e?e.id:null,h=(0,n.useMemo)((function(){return function(){return r}}),[r]),v=(0,n.useMemo)((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?(t&&s(!0),o.UserService.getHiddenUsersId().then((function(e){return d(e),t&&s(!1),Promise.resolve(e)})).catch((function(e){return i.Logger.error(a.SCOPE_SC_CORE,"Unable to load blocked users."),i.Logger.error(a.SCOPE_SC_CORE,e),t&&s(!1),Promise.reject(e)}))):Promise.reject()}}),[f,e]),y=(0,n.useMemo)((function(){return function(e){return s(!0),o.http.request({url:o.Endpoints.UserShowHide.url({id:e.id}),method:o.Endpoints.UserShowHide.method}).then((function(t){if(t.status>=300)return Promise.reject(t);var r=f.includes(e.id),n=r?u(f.filter((function(t){return t!==e.id}))):[e.id].concat(u(f));return d(n),s(!1),Promise.resolve(!r)}))}}),[r,f.length,s]),g=(0,n.useMemo)((function(){return function(e){return!!p&&f.includes(e.id)}}),[f]);return(0,n.useEffect)((function(){p?v(!0):d([])}),[p]),e?{blocked:f,loading:r,isLoading:h,block:y,isBlocked:g,refresh:v}:{blocked:f,loading:r,isLoading:h}};var n=r(8156),o=r(7475),i=r(2137),a=r(3240);function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},4486:(e,t,r)=>{t.__esModule=!0,t.default=function(){var e=(0,n.useRef)([]),t=(0,n.useRef)([]),r=i((0,n.useState)([]),2),a=r[0],u=r[1],c=i((0,n.useState)([]),2),s=c[0],l=c[1],f=(0,n.useMemo)((function(){return function(t){t.map((function(t){e.current.includes(t)||e.current.push(t)}))}}),[e]),d=(0,n.useMemo)((function(){return function(){e.current=[],t.current=[]}}),[e]),p=(0,n.useMemo)((function(){return function(e){return"number"==typeof e?t.current.includes(e):t.current.includes(e.id)}}),[a,t]),h=(0,n.useMemo)((function(){return function(e){t.current=t.current.includes(e)?t.current:[].concat(o(t.current),[e]),u((function(t){return t.includes(e)?t:[].concat(o(t),[e])}))}}),[t,a]),v=(0,n.useMemo)((function(){return function(e){t.current=t.current.filter((function(t){return t!==e})),u((function(t){return t.filter((function(t){return t!==e}))}))}}),[t,a]);return{cache:e.current,updateCache:f,emptyCache:d,data:s,setData:l,loading:a,setLoading:h,setUnLoading:v,isLoading:p}};var n=r(8156);function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},1870:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=(0,l.default)(),r=t.cache,h=t.updateCache,g=t.emptyCache,m=t.data,_=t.setData,E=t.loading,S=t.setLoading,O=t.setUnLoading,b=t.isLoading,C=(0,c.useSCPreferences)(),T=e?e.id:null,w=s.CONFIGURATIONS_FOLLOW_ENABLED in C.preferences&&C.preferences[s.CONFIGURATIONS_FOLLOW_ENABLED].value,A=(0,n.useRef)(null),R=(0,n.useRef)(null),P=(0,n.useRef)(null),L=(0,n.useRef)(null),I=function(e,t){if(void 0!==t.data.connection){var r;switch(d.SCNotificationMapping[t.data.activity_type]){case i.SCNotificationTypologyType.CONNECTION_REQUEST:r={user:"request_user",state:i.SCConnectionStatus.CONNECTION_REQUEST_RECEIVED};break;case i.SCNotificationTypologyType.CONNECTION_CANCEL_REQUEST:r={user:"cancel_request_user",state:null};break;case i.SCNotificationTypologyType.CONNECTION_ACCEPT:r={user:"accept_user",state:i.SCConnectionStatus.CONNECTED};break;case i.SCNotificationTypologyType.CONNECTION_REMOVE:r={user:"remove_user",state:null}}h([t.data[r.user].id]),_((function(e){return F(e,t.data[r.user].id,r.state)}))}};(0,p.useDeepCompareEffectNoCheck)((function(){return A.current=f.default.subscribe("".concat(i.SCNotificationTopicType.INTERACTION,".").concat(i.SCNotificationTypologyType.CONNECTION_ACCEPT),I),R.current=f.default.subscribe("".concat(i.SCNotificationTopicType.INTERACTION,".").concat(i.SCNotificationTypologyType.CONNECTION_REQUEST),I),L.current=f.default.subscribe("".concat(i.SCNotificationTopicType.INTERACTION,".").concat(i.SCNotificationTypologyType.CONNECTION_CANCEL_REQUEST),I),P.current=f.default.subscribe("".concat(i.SCNotificationTopicType.INTERACTION,".").concat(i.SCNotificationTypologyType.CONNECTION_REMOVE),I),function(){f.default.unsubscribe(A.current),f.default.unsubscribe(R.current),f.default.unsubscribe(L.current),f.default.unsubscribe(P.current)}}),[m]);var N=(0,n.useMemo)((function(){return function(){g(),T&&r.length>0&&o.http.request({url:o.Endpoints.UserConnectionStatuses.url({}),method:o.Endpoints.UserConnectionStatuses.method,data:{users:r}}).then((function(e){return e.status>=300?Promise.reject(e):(h(Object.keys(e.data.connection_statuses).map((function(e){return parseInt(e)}))),_(Object.keys(e.data.connection_statuses).map((function(t){return y({},t,e.data.connection_statuses[t])}))),Promise.resolve(e.data))})).catch((function(e){a.Logger.error(u.SCOPE_SC_CORE,"Unable to refresh users Connections by the authenticated user."),a.Logger.error(u.SCOPE_SC_CORE,e)}))}}),[m,T,r]),j=(0,n.useMemo)((function(){return function(e,t){return S(e.id),o.http.request({url:t.url({id:e.id}),method:t.method}).then((function(t){return t.status>=300?Promise.reject(t):(h([e.id]),_((function(r){return F(r,e.id,t.data.connection_status)})),O(e.id),Promise.resolve(t.data))})).catch((function(t){return a.Logger.error(u.SCOPE_SC_CORE,t),t&&t.response&&t.response&&t.response.status&&403===t.response.status?(O(e.id),Promise.reject(t)):M(e)}))}}),[m,E,r]),k=(0,n.useMemo)((function(){return function(e){return j(e,o.Endpoints.UserRequestConnection)}}),[j]),U=(0,n.useMemo)((function(){return function(e){return j(e,o.Endpoints.UserCancelRequestConnection)}}),[j]),x=(0,n.useMemo)((function(){return function(e){return j(e,o.Endpoints.UserRemoveConnection)}}),[j]),G=(0,n.useMemo)((function(){return function(e){return j(e,o.Endpoints.UserAcceptRequestConnection)}}),[j]),D=(0,n.useMemo)((function(){return function(e){var t=m.filter((function(t){return parseInt(Object.keys(t)[0])===e.id}));return t.length?t[0][e.id]:null}}),[m]),M=function(e){return S(e.id),o.http.request({url:o.Endpoints.UserCheckConnectionStatus.url({id:e.id}),method:o.Endpoints.UserCheckConnectionStatus.method}).then((function(t){return t.status>=300?Promise.reject(t):(_((function(r){return F(r,e.id,t.data.connection_status)})),h([e.id]),O(e.id),Promise.resolve(t.data))})).catch((function(t){return O(e.id),Promise.reject(t)}))},F=function(e,t,r){var n;return e.findIndex((function(e){return parseInt(Object.keys(e)[0])===t}))<0?[].concat(function(e){if(Array.isArray(e))return v(e)}(n=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[y({},t,r)]):e.map((function(n,o){return parseInt(Object.keys(n)[0])===t?y({},Object.keys(n)[0],r):y({},Object.keys(n)[0],e[o][Object.keys(n)[0]])}))},B=(0,n.useMemo)((function(){return function(e){return h([e.id]),_((function(t){return F(t,e.id,e.connection_status)})),e.connection_status}}),[m,r]);return(0,n.useEffect)((function(){T||g()}),[T]),w||!e?{connections:m,loading:E,isLoading:b}:{connections:m,loading:E,isLoading:b,status:function(e){if(r.includes(e.id))return D(e);if(T){if("connection_status"in e)return B(e);b(e)||M(e)}return null},requestConnection:k,cancelRequestConnection:U,acceptConnection:G,removeConnection:x,refresh:N,emptyCache:g}};var n=r(8156),o=r(7475),i=r(9954),a=r(2137),u=r(3240),c=r(9723),s=r(4592),l=h(r(4486)),f=h(r(8641)),d=r(3973),p=r(4537);function h(e){return e&&e.__esModule?e:{default:e}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},6167:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.fetch,r=void 0!==t&&t,s=c((0,n.useState)([]),2),l=s[0],f=s[1],d=c((0,n.useState)(!1),2),p=d[0],h=d[1],v=(0,u.useSCUser)(),y=(0,a.useSCPreferences)(),g=(0,n.useMemo)((function(){return function(){return i.http.request({url:i.Endpoints.ComposerAddressingTagList.url(),method:i.Endpoints.ComposerAddressingTagList.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[]);return(0,n.useEffect)((function(){!p&&r&&v.user&&y.features.includes(o.SCFeatureName.TAGGING)&&g().then((function(e){h(!0),f(e)}))}),[p,r,v.user,y.features]),{scAddressingTags:l}};var n=r(8156),o=r(9954),i=r(7475),a=r(9723),u=r(4702);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},7626:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=void 0;var o=r(8156),i=r(7475),a=r(2137),u=r(7748),c=r(3240);function s(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(){l=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,i)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,c(_,"constructor",v),c(v,"constructor",h),h.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function f(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function d(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){f(i,n,o,a,u,"next",e)}function u(e){f(i,n,o,a,u,"throw",e)}a(void 0)}))}}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var y="".concat(i.Endpoints.BroadcastMessagesList.url(),"?limit=3"),g=(0,u.getBroadcastMessagesObjectCacheKey)(),m={results:[],next:y,previous:null,count:0};t.default=function(e){var t=(e||{}).cacheStrategy,r=(void 0===t?a.CacheStrategies.CACHE_FIRST:t)!==a.CacheStrategies.NETWORK_ONLY?a.LRUCache.get(g,null):null,n=p((0,o.useState)(null!==r?r:m),2),u=n[0],f=n[1],h=p((0,o.useState)(!r&&null),2),v=h[0],_=h[1],E=function(){var e=d(l().mark((function e(t){var r,n,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.http.request({url:t,method:i.Endpoints.BroadcastMessagesList.method});case 2:if(r=e.sent,!(n=r.data).next||n.results[n.results.length-1].viewed_at){e.next=9;break}return e.next=7,E(n.next);case 7:return o=e.sent,e.abrupt("return",{results:n.results.concat(o.results),next:o.next,previous:null,count:o.count});case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=d(l().mark((function e(){var t,r=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]&&r[0],_(!0),e.abrupt("return",E(t?y:u.next).then((function(e){var r=t?e:{results:[].concat(s(u.results),s(e.results)),next:e.next,count:e.count,previous:e.previous};return f(r),_(!1),a.LRUCache.set(g,r),Promise.resolve(e)})).catch((function(e){return a.Logger.error(c.SCOPE_SC_CORE,e),Promise.reject()})));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return{data:u,loading:v,fetchMessages:S,setMessages:function(e){var t={results:s(e),next:u.next,count:Math.max(u.count-(u.results.length-e.length),0),previous:u.previous};return f(t),a.LRUCache.set(g,t),t}}}},472:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=void 0;var o=r(8156),i=r(3240),a=r(7475),u=r(2137),c=r(7748);function s(){s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,i)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,c(_,"constructor",v),c(v,"constructor",h),h.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var v={categories:[],isLoading:!0};t.default=function(e){var t,r,n=e||{},l=n.cacheStrategy,d=void 0===l?u.CacheStrategies.CACHE_FIRST:l,y=n.endpointQueryParams,g=void 0===y?{}:y,m=(0,c.getCategoriesObjectCacheKey)(),_=d!==u.CacheStrategies.NETWORK_ONLY?function(e,t){if(!e)return null;var r=e.map((function(e){var t=(0,c.getCategoryObjectCacheKey)(e);return u.LRUCache.get(t)}));return r.filter((function(e){return!e})).length>0?null:null!=t&&t.can_create_content?r.filter((function(e){return!e.content_only_staff})):r}(u.LRUCache.get(m,null),g):null,E=(t=(0,o.useState)(null!==_?{categories:_,isLoading:!1}:v),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),S=E[0],O=E[1],b=function(){var e,t=(e=s().mark((function e(){var t,r,n=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:a.Endpoints.CategoryList.url(),e.next=3,a.CategoryService.getAllCategories(f({active:!0},g),{url:t});case 3:if(!(r=e.sent).next){e.next=12;break}return e.t1=r.results,e.next=8,b(r.next);case 8:e.t2=e.sent,e.t0=e.t1.concat.call(e.t1,e.t2),e.next=13;break;case 12:e.t0=r.results;case 13:return e.abrupt("return",e.t0);case 14:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){p(i,n,o,a,u,"next",e)}function u(e){p(i,n,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){d===u.CacheStrategies.CACHE_FIRST&&_||b().then((function(e){O({categories:e,isLoading:!1}),u.LRUCache.set(m,e.map((function(e){var t=(0,c.getCategoryObjectCacheKey)(e.id);return u.LRUCache.set(t,e),e.id})))})).catch((function(e){console.log(e),u.Logger.error(i.SCOPE_SC_CORE,"Unable to retrieve categories")}))}),[]),S}},8895:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.category,d=void 0===f?null:f,p=e.cacheStrategy,h=void 0===p?a.CacheStrategies.CACHE_FIRST:p,v=d?d.id:r,y=(0,s.useSCUser)(),g=y.user?y.user.id:null,m=(0,u.getCategoryObjectCacheKey)(v),_=g?d:(0,a.objectWithoutProperties)(d,["followed"]),E=l((0,n.useState)(h!==a.CacheStrategies.NETWORK_ONLY?a.LRUCache.get(m,_):null),2),S=E[0],O=E[1],b=l((0,n.useState)(null),2),C=b[0],T=b[1],w=(0,n.useMemo)((function(){return function(){return i.http.request({url:i.Endpoints.Category.url({id:v}),method:i.Endpoints.Category.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[v]),A=(0,n.useMemo)((function(){return function(){w().then((function(e){var t=g?e:(0,a.objectWithoutProperties)(e,["followed"]);O(t),a.LRUCache.set(m,t)})).catch((function(e){a.LRUCache.delete(m),T("Error on refresh category with id ".concat(r)),a.Logger.error(o.SCOPE_SC_CORE,"Error on refresh category with id ".concat(r)),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}}),[v,O,m]);return(0,n.useEffect)((function(){v&&(!S||S&&v!==S.id)&&w().then((function(e){var t=g?e:(0,a.objectWithoutProperties)(e,["followed"]);O(t),a.LRUCache.set(m,t)})).catch((function(e){a.LRUCache.delete(m),T("Category with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,"Category with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}),[v]),(0,c.useDeepCompareEffectNoCheck)((function(){if(d){var e=g?d:(0,a.objectWithoutProperties)(d,["followed"]);O(e),a.LRUCache.set(m,e)}}),[d]),{scCategory:S,setSCCategory:O,error:C,refreshCategory:A}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137),u=r(7748),c=r(4537),s=r(4702);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},634:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,l=e.commentObject,f=void 0===l?null:l,d=e.cacheStrategy,p=void 0===d?a.CacheStrategies.CACHE_FIRST:d,h=f?f.id:r,v=(0,u.getCommentObjectCacheKey)(h),y=s((0,n.useState)(p!==a.CacheStrategies.NETWORK_ONLY?a.LRUCache.get(v,f):f),2),g=y[0],m=y[1],_=s((0,n.useState)(null),2),E=_[0],S=_[1],O=(0,n.useMemo)((function(){return function(){return i.http.request({url:i.Endpoints.Comment.url({id:h}),method:i.Endpoints.Comment.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[h]);return(0,n.useEffect)((function(){!h||g&&p!==a.CacheStrategies.STALE_WHILE_REVALIDATE||O().then((function(e){m(e),a.LRUCache.set(v,e)})).catch((function(e){a.LRUCache.delete(v),S("CommentObject with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,"CommentObject with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}),[h]),(0,c.useDeepCompareEffectNoCheck)((function(){f&&(m(f),a.LRUCache.set(v,g))}),[f]),{obj:g,setObj:m,error:E}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137),u=r(7748),c=r(4537);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},393:(e,t,r)=>{t.__esModule=!0,t.commentsObjectActionTypes=void 0,t.default=function(e){var t,r=e.id,n=e.feedObject,v=e.feedObjectType,y=e.offset,m=void 0===y?0:y,O=e.pageSize,b=void 0===O?5:O,C=e.orderBy,T=void 0===C?a.SCCommentsOrderBy.ADDED_AT_DESC:C,w=e.parent,A=e.onChangePage,R=e.cacheStrategy,P=void 0===R?c.CacheStrategies.NETWORK_ONLY:R,L=(0,s.default)({id:r,feedObject:n,feedObjectType:v,cacheStrategy:P}),I=L.obj,N=L.setObj,j=function(){var e=m?"&offset=".concat(m):"",t=w?"&parent=".concat(w):"",n=I?I.id:r,o=I?I.type:v;return"".concat(u.Endpoints.Comments.url(),"?").concat(o,"=").concat(n,"&limit=").concat(b,"&ordering=").concat(T).concat(e).concat(t)},k=(2,function(e){if(Array.isArray(e))return e}(t=(0,o.useReducer)(E,{obj:I,offset:m,pageSize:b,next:j(),cacheStrategy:P},S))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t)||h(t,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),U=k[0],x=k[1],G=(0,f.useIsComponentMountedRef)(),D=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=(0,l.getCommentObjectsCacheKey)(I.id,I.type,e);return t&&c.LRUCache.hasKey(r)&&P!==c.CacheStrategies.NETWORK_ONLY?Promise.resolve(c.LRUCache.get(r)):u.http.request({url:e,method:u.Endpoints.Comments.method}).then((function(e){return e.status>=300?Promise.reject(e):(c.LRUCache.set(r,e.data),e.data.results.forEach((function(e){return c.LRUCache.set((0,l.getCommentObjectCacheKey)(e.id),e)})),Promise.resolve(e.data))}))};function M(){if(I&&U.next&&!U.isLoadingNext){var e=U.next;x({type:_.LOADING_NEXT}),D(e).then((function(t){if(G.current){var r=(0,d.getCurrentPage)(e,b),n=t.next?r+1:null;x({type:_.DATA_NEXT_LOADED,payload:g({page:r,nextPage:n,comments:[].concat(p(U.comments),p(t.results)),next:t.next,total:t.count,componentLoaded:!0},m&&0===U.comments.length?{previous:t.previous,previousPage:t.previous?r-1:null}:{})}),A&&A(r)}})).catch((function(e){c.Logger.error(i.SCOPE_SC_CORE,e)})).then((function(){G.current&&P===c.CacheStrategies.STALE_WHILE_REVALIDATE&&x({type:_.DATA_REVALIDATE,payload:{revalidateNext:e}})}))}}return(0,o.useEffect)((function(){G.current&&U.componentLoaded&&U.reload&&!U.isLoadingNext&&!U.isLoadingPrevious&&(x({type:_.DATA_RELOADED}),M())}),[U.reload,G]),(0,o.useEffect)((function(){var e,t;G.current&&U.componentLoaded&&Boolean(I)&&!U.reload&&U.revalidate&&(e=U.revalidateNext,t=Boolean(U.revalidateNext),D(e,!1).then((function(e){var r,n=(0,d.getCurrentPage)(t?e.next:e.previous,b);if(t)r=U.comments.slice(0,U.comments.length-e.results.length).concat(e.results);else{var o=U.comments.slice(e.results.length,U.comments.length);r=e.results.concat(o)}G.current&&x({type:t?_.DATA_NEXT_LOADED:_.DATA_PREVIOUS_LOADED,payload:g(g({page:n,comments:r},t?{next:e.next}:{previous:e.previous}),{},{total:e.count})})})))}),[U.revalidate,G]),g(g({feedObject:I,setFeedObject:N},U),{},{pageSize:b,getNextPage:M,getPreviousPage:function(){if(I&&U.previous&&!U.isLoadingPrevious){var e=U.previous;x({type:_.LOADING_PREVIOUS}),D(e).then((function(t){if(G.current){var r=(0,d.getCurrentPage)(e,b),n=t.previous?r-1:null;x({type:_.DATA_PREVIOUS_LOADED,payload:{page:r,previousPage:n,comments:[].concat(p(t.results),p(U.comments)),previous:t.previous}}),A&&A(r)}})).catch((function(e){c.Logger.error(i.SCOPE_SC_CORE,e)})).then((function(){G.current&&P===c.CacheStrategies.STALE_WHILE_REVALIDATE&&x({type:_.DATA_REVALIDATE,payload:{revalidatePrevious:e}})}))}},orderBy:T,reload:function(){G.current&&U.componentLoaded&&Boolean(I)&&!U.isLoadingNext&&!U.reload&&x({type:_.DATA_RELOAD,payload:{next:j()}})}})};var n,o=r(8156),i=r(3240),a=r(9954),u=r(7475),c=r(2137),s=(n=r(6594))&&n.__esModule?n:{default:n},l=r(7748),f=r(357),d=r(2584);function p(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _={LOADING_NEXT:"_loading_next",LOADING_PREVIOUS:"_loading_previous",DATA_NEXT_LOADED:"_data_next_loaded",DATA_PREVIOUS_LOADED:"_data_previous_loaded",DATA_RELOAD:"_data_reload",DATA_RELOADED:"_data_reloaded",DATA_REVALIDATE:"_data_revalidate"};function E(e,t){switch(t.type){case _.LOADING_NEXT:return g(g({},e),{},{isLoadingNext:!0,isLoadingPrevious:!1});case _.LOADING_PREVIOUS:return g(g({},e),{},{isLoadingNext:!1,isLoadingPrevious:!0});case _.DATA_NEXT_LOADED:return g(g(g(g(g(g({},e),{},{comments:t.payload.comments,isLoadingNext:!1,componentLoaded:!0,revalidate:!1,revalidateNext:null,revalidatePrevious:null,next:t.payload.next},t.payload.page?{page:t.payload.page}:{}),t.payload.nextPage?{nextPage:t.payload.nextPage}:{}),t.payload.previous?{previous:t.payload.previous}:{}),t.payload.previousPage?{previousPage:t.payload.previousPage}:{}),t.payload.total?{total:t.payload.total}:{});case _.DATA_PREVIOUS_LOADED:return g(g(g({},e),{},{comments:t.payload.comments,isLoadingPrevious:!1,revalidate:!1,revalidateNext:null,revalidatePrevious:null,previous:t.payload.previous},t.payload.page?{page:t.payload.page}:{}),t.payload.previousPage?{previousPage:t.payload.previousPage}:{});case _.DATA_RELOAD:return g(g({},e),{},{next:t.payload.next,previousPage:null,nextPage:null,comments:[],total:0,previous:null,isLoadingNext:!0,reload:!0});case _.DATA_RELOADED:return g(g({},e),{},{componentLoaded:!0,reload:!1});case _.DATA_REVALIDATE:return g(g(g(g({},e),{},{componentLoaded:!0,revalidate:!0},t.payload.revalidateNext?{revalidateNext:t.payload.revalidateNext}:{}),t.payload.revalidatePrevious?{revalidatePrevious:t.payload.revalidatePrevious}:{}),{},{reload:!1});default:throw new Error("Unhandled type: ".concat(t.type))}}function S(e){var t=e.obj?(0,l.getCommentObjectsCacheKey)(e.obj.id,e.obj.type,e.next):null,r={componentLoaded:!1,comments:[],total:0,next:e.next,previous:null,isLoadingNext:!1,isLoadingPrevious:!1,page:Math.ceil(e.offset/e.pageSize+1),reload:!1,revalidate:!1,revalidateNext:null,revalidatePrevious:null};if(r.nextPage=r.next?r.page+1:null,r.previousPage=r.previous?r.page-1:null,t&&c.LRUCache.hasKey(t)&&e.cacheStrategy!==c.CacheStrategies.NETWORK_ONLY){var n=c.LRUCache.get(t),o=Math.max((0,d.getCurrentPage)(n.next,e.pageSize),1),i=n.next?(0,d.getCurrentPage)(n.next,e.pageSize):null,a=n.previous?Math.max((0,d.getCurrentPage)(n.previous,e.pageSize)-1,1):null;return g(g({},r),{total:n.count,next:n.next,previous:n.previous,comments:n.results,page:o,nextPage:i,previousPage:a,componentLoaded:!0})}return r}t.commentsObjectActionTypes=_},2118:(e,t,r)=>{t.__esModule=!0,t.contributorsObjectActionTypes=void 0,t.default=function(e){var t,r=e.id,n=e.feedObject,p=e.feedObjectType,h=e.offset,y=void 0===h?0:h,_=e.pageSize,E=void 0===_?5:_,S=e.onChangePage,O=e.cacheStrategy,b=void 0===O?u.CacheStrategies.CACHE_FIRST:O,C=(0,l.useIsComponentMountedRef)(),T=(0,c.default)({id:r,feedObject:n,feedObjectType:p}),w=T.obj,A=T.setObj,R=w?w.id:null,P=function(){var e=y?"&offset=".concat(y):"",t=w?w.id:r,n=w?w.type:p;return"".concat(a.Endpoints.FeedObjectContributorsList.url({type:n,id:t}),"?limit=").concat(E).concat(e)},L=(2,function(e){if(Array.isArray(e))return e}(t=(0,o.useReducer)(m,{},(function(){return function(e){var t=e.obj?(0,s.getContributorsCacheKey)(e.obj.id,e.obj.type,e.next):null,r={componentLoaded:!1,contributors:[],total:0,next:e.next,previous:null,isLoadingNext:!1,isLoadingPrevious:!1,page:e.offset/e.pageSize+1,reload:!1};if(t&&u.LRUCache.hasKey(t)&&e.cacheStrategy!==u.CacheStrategies.NETWORK_ONLY){var n=u.LRUCache.get(t);return v(v({},r),{total:n.count,next:n.next,previous:n.previous,contributors:n.results})}return r}({obj:w,offset:y,pageSize:E,next:P(),cacheStrategy:b})})))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t)||d(t,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),I=L[0],N=L[1],j=function(e){var t=new URLSearchParams(e),r=Object.fromEntries(t.entries());return(r.offset?parseInt(r.offset):0)/E+1},k=function(e,t){return U(e,!1).then((function(e){var r,n=j(I.next);if(t)r=I.contributors.slice(0,I.contributors.length-e.results.length).concat(e.results);else{var o=I.contributors.slice(e.results.length,I.contributors.length);r=e.results.concat(o)}C.current&&N({type:t?g.DATA_NEXT_LOADED:g.DATA_PREVIOUS_LOADED,payload:v(v({page:n,contributors:r},t?{next:e.next}:{previous:e.previous}),{},{total:e.count})})}))},U=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=(0,s.getContributorsCacheKey)(w.id,w.type,e);return t&&u.LRUCache.hasKey(r)&&b!==u.CacheStrategies.NETWORK_ONLY?Promise.resolve(u.LRUCache.get(r)):a.http.request({url:e,method:a.Endpoints.Comments.method}).then((function(e){return e.status>=300?Promise.reject(e):(u.LRUCache.set(r,e.data),Promise.resolve(e.data))}))};function x(){w&&I.next&&!I.isLoadingNext&&(N({type:g.LOADING_NEXT}),U(I.next).then((function(e){if(C.current){var t=j(I.next);N({type:g.DATA_NEXT_LOADED,payload:v({page:t,contributors:[].concat(f(I.contributors),f(e.results)),next:e.next,total:e.count,componentLoaded:!0},y&&0===I.contributors.length?{previous:e.previous}:{})}),S&&S(t)}})).catch((function(e){u.Logger.error(i.SCOPE_SC_CORE,e)})).then((function(){C.current&&b===u.CacheStrategies.STALE_WHILE_REVALIDATE&&k(I.next,!0)})))}return(0,o.useEffect)((function(){C.current&&I.componentLoaded&&Boolean(w)&&!I.reload&&N({type:g.DATA_RELOAD,payload:{next:P()}})}),[R,E,y,C]),(0,o.useEffect)((function(){C.current&&I.componentLoaded&&I.reload&&!I.isLoadingNext&&!I.isLoadingPrevious&&(N({type:g.DATA_RELOADED}),x())}),[I.reload,C]),v(v({feedObject:w,setFeedObject:A},I),{},{pageSize:E,getNextPage:x,getPreviousPage:function(){w&&I.previous&&!I.isLoadingPrevious&&(N({type:g.LOADING_PREVIOUS}),U(I.previous).then((function(e){if(C.current){var t=j(I.previous);N({type:g.DATA_PREVIOUS_LOADED,payload:{page:t,contributors:[].concat(f(e.results),f(I.contributors)),previous:e.previous}}),S&&S(t)}})).catch((function(e){u.Logger.error(i.SCOPE_SC_CORE,e)})).then((function(){b===u.CacheStrategies.STALE_WHILE_REVALIDATE&&k(I.next,!1)})))}})};var n,o=r(8156),i=r(3240),a=r(7475),u=r(2137),c=(n=r(6594))&&n.__esModule?n:{default:n},s=r(7748),l=r(357);function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g={LOADING_NEXT:"_loading_next",LOADING_PREVIOUS:"_loading_previous",DATA_NEXT_LOADED:"_data_next_loaded",DATA_PREVIOUS_LOADED:"_data_previous_loaded",DATA_RELOAD:"_data_reload",DATA_RELOADED:"_data_reloaded"};function m(e,t){switch(t.type){case g.LOADING_NEXT:return v(v({},e),{},{isLoadingNext:!0,isLoadingPrevious:!1});case g.LOADING_PREVIOUS:return v(v({},e),{},{isLoadingNext:!1,isLoadingPrevious:!0});case g.DATA_NEXT_LOADED:return v(v(v({},e),{},{page:t.payload.currentPage,contributors:t.payload.contributors,isLoadingNext:!1,componentLoaded:!0,next:t.payload.next},t.payload.previous?{previous:t.payload.previous}:{}),t.payload.total?{total:t.payload.total}:{});case g.DATA_PREVIOUS_LOADED:return v(v({},e),{},{page:t.payload.currentPage,contributors:t.payload.contributors,isLoadingPrevious:!1,previous:t.payload.previous});case g.DATA_RELOAD:return v(v({},e),{},{next:t.payload.next,contributors:[],total:0,previous:null,reload:!0});case g.DATA_RELOADED:return v(v({},e),{},{componentLoaded:!1,reload:!1});default:throw new Error("Unhandled type: ".concat(t.type))}}t.contributorsObjectActionTypes=g},6552:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.course,d=void 0===f?null:f,p=e.cacheStrategy,h=void 0===p?o.CacheStrategies.CACHE_FIRST:p,v=e.params,y=void 0===v?null:v,g=(0,i.useMemo)((function(){return(null==d?void 0:d.id)||r}),[d,r]),m=(0,u.useSCUser)(),_=(0,i.useMemo)((function(){var e;return(null===(e=m.user)||void 0===e?void 0:e.id)||null}),[m.user]),E=(0,i.useMemo)((function(){return(0,c.getCourseObjectCacheKey)(g)}),[g]),S=(0,i.useMemo)((function(){return _?d:(0,o.objectWithoutProperties)(d,["join_status"])}),[_,d]),O=l((0,i.useState)(h!==o.CacheStrategies.NETWORK_ONLY?o.LRUCache.get(E,S):null),2),b=O[0],C=O[1],T=l((0,i.useState)(null),2),w=T[0],A=T[1],R=(0,i.useCallback)((function(e){C(e),o.LRUCache.set(E,e)}),[C,E]),P=(0,i.useMemo)((function(){return function(e){return n.http.request({url:n.Endpoints.GetCourseInfo.url({id:e}),method:n.Endpoints.GetCourseInfo.method,params:null!=y?y:{}}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[]),L=(0,i.useMemo)((function(){return function(){P(r).then((function(e){R(e)})).catch((function(e){o.LRUCache.delete(E),A("Error on refresh course with id ".concat(r)),o.Logger.error(s.SCOPE_SC_CORE,"Error on refresh course with id ".concat(r)),o.Logger.error(s.SCOPE_SC_CORE,e.message)}))}}),[r,E,R]);return(0,i.useEffect)((function(){null==r||d||P(r).then((function(e){R(e)})).catch((function(e){o.LRUCache.delete(E),403===e.status?(A("You do not have permission to perform this action."),o.Logger.error(s.SCOPE_SC_CORE,"You do not have permission to perform this action.")):(A("Course with id ".concat(r," not found")),o.Logger.error(s.SCOPE_SC_CORE,"Course with id ".concat(r," not found"))),o.Logger.error(s.SCOPE_SC_CORE,e.message)}))}),[r,d,_]),(0,a.useDeepCompareEffectNoCheck)((function(){d&&R(d)}),[d,_]),{scCourse:b,setSCCourse:R,error:w,refreshCourse:L}};var n=r(7475),o=r(2137),i=r(8156),a=r(4537),u=r(4702),c=r(7748),s=r(3240);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},2619:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=void 0;var o=r(8156),i=r(3240),a=r(7475),u=r(2137),c=r(7748);function s(){s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,i)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,c(_,"constructor",v),c(v,"constructor",h),h.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function l(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d={courses:[],isLoading:!0};t.default=function(e){var t,r,n=(e||{}).cacheStrategy,p=void 0===n?u.CacheStrategies.CACHE_FIRST:n,h=(0,c.getCoursesObjectCacheKey)(),v=p!==u.CacheStrategies.NETWORK_ONLY?function(e){if(!e)return null;var t=e.map((function(e){var t=(0,c.getCourseObjectCacheKey)(e);return u.LRUCache.get(t)}));return t.filter((function(e){return!e})).length>0?null:t}(u.LRUCache.get(h,null)):null,y=(t=(0,o.useState)(null!==v?{courses:v,isLoading:!1}:d),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=y[0],m=y[1],_=function(){var e,t=(e=s().mark((function e(){var t,r,n,o=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:a.Endpoints.GetJoinedCourses.url(),e.next=3,a.http.request({url:t,method:a.Endpoints.GetJoinedCourses.method});case 3:if(r=e.sent,!(n=r.data).next){e.next=11;break}return e.t0=n.results,e.next=9,_(n.next);case 9:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 11:return e.abrupt("return",n.results);case 12:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){l(i,n,o,a,u,"next",e)}function u(e){l(i,n,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){p===u.CacheStrategies.CACHE_FIRST&&v||_().then((function(e){m({courses:e,isLoading:!1}),u.LRUCache.set(h,e.map((function(e){var t=(0,c.getCourseObjectCacheKey)(e.id);return u.LRUCache.set(t,e),e.id})))})).catch((function(e){console.log(e),u.Logger.error(i.SCOPE_SC_CORE,"Unable to retrieve courses")}))}),[]),g}},1219:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,n=e.position,l=void 0===n?null:n,d=e.categoriesId,h=void 0===d?null:d,v=e.active,y=void 0===v||v,g=e.cacheStrategy,m=void 0===g?u.CacheStrategies.CACHE_FIRST:g,_=p((0,o.useState)(null!==r&&m===u.CacheStrategies.CACHE_FIRST&&u.LRUCache.get((0,s.getAdvObjectCacheKey)(r))?u.LRUCache.get((0,s.getAdvObjectCacheKey)(r)):null),2),E=_[0],S=_[1],O=p((0,o.useState)(null),2),b=O[0],C=O[1],T=(0,c.default)(),w=(0,o.useMemo)((function(){return function(e){e.map((function(e){u.LRUCache.set((0,s.getAdvObjectCacheKey)(e.id),e)}))}}),[]),A=(0,o.useMemo)((function(){return function(){return null!==r?a.http.request({url:"".concat(a.Endpoints.CustomAdv.url({id:r}),"?active=").concat(Boolean(y)),method:a.Endpoints.CustomAdv.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve([e.data])})):a.http.request({url:"".concat(a.Endpoints.CustomAdvSearch.url({}),"?active=").concat(Boolean(y)),method:a.Endpoints.CustomAdvSearch.method,params:f(f({},l&&{position:l}),{categories:h?"[".concat(h.toString(),"]"):"[]"})}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data.results)}))}}),[r,l,"".concat(h)]);return(0,o.useEffect)((function(){E&&m===u.CacheStrategies.CACHE_FIRST||A().then((function(e){T.current&&S(e[Math.floor(Math.random()*e.length)]),w(e)})).catch((function(e){T.current&&C("Custom ADV with position ".concat(l," not found")),u.Logger.error(i.SCOPE_SC_CORE,"Custom ADV with position ".concat(l," not found")),u.Logger.error(i.SCOPE_SC_CORE,e.message)}))}),[r,l,"".concat(h),E]),{scCustomAdv:E,setSCCustomAdv:S,error:b}};var n,o=r(8156),i=r(3240),a=r(7475),u=r(2137),c=(n=r(5189))&&n.__esModule?n:{default:n},s=r(7748);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},458:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.event,p=void 0===f?null:f,v=e.autoSubscribe,y=void 0===v||v,g=e.cacheStrategy,m=void 0===g?i.CacheStrategies.CACHE_FIRST:g,_=(0,a.useMemo)((function(){return(null==p?void 0:p.id)||r}),[p,r]),E=(0,c.useSCUser)(),S=(0,a.useMemo)((function(){var e;return(null===(e=E.user)||void 0===e?void 0:e.id)||null}),[E.user]),O=(0,a.useMemo)((function(){return(0,s.getEventObjectCacheKey)(_)}),[_]),b=(0,a.useMemo)((function(){return S?p:(0,i.objectWithoutProperties)(p,["subscription_status"])}),[S,p]),C=h((0,a.useState)(m!==i.CacheStrategies.NETWORK_ONLY?i.LRUCache.get(O,b):null),2),T=C[0],w=C[1],A=h((0,a.useState)(null),2),R=A[0],P=A[1],L=(0,a.useMemo)((function(){return function(e){y&&null!==S&&(e.privacy===o.SCEventPrivacyType.PUBLIC&&!e.subscription_status||e.subscription_status===o.SCEventSubscriptionStatusType.INVITED)?n.EventService.subscribeToEvent(e.id).then((function(){var t=d(d({},e),{},{subscription_status:o.SCEventSubscriptionStatusType.SUBSCRIBED});w(t),i.LRUCache.set(O,t)})).catch((function(){w(e),i.LRUCache.set(O,e)})):(w(e),i.LRUCache.set(O,e))}}),[y,S,w]),I=(0,a.useMemo)((function(){return function(e){return n.http.request({url:n.Endpoints.GetEventInfo.url({id:e}),method:n.Endpoints.GetEventInfo.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[]),N=(0,a.useMemo)((function(){return function(){return function(){I(r).then((function(e){L(e)})).catch((function(e){i.LRUCache.delete(O),P("Error on refresh event with id ".concat(r)),i.Logger.error(l.SCOPE_SC_CORE,"Error on refresh event with id ".concat(r)),i.Logger.error(l.SCOPE_SC_CORE,e.message)}))}}}),[r,L,O]);return(0,a.useEffect)((function(){null==r||p||I(r).then((function(e){L(e)})).catch((function(e){i.LRUCache.delete(O),P("Event with id ".concat(r," not found")),i.Logger.error(l.SCOPE_SC_CORE,"Event with id ".concat(r," not found")),i.Logger.error(l.SCOPE_SC_CORE,e.message)}))}),[r,p,S]),(0,u.useDeepCompareEffectNoCheck)((function(){p&&L(p)}),[p,S]),{scEvent:T,setSCEvent:L,error:R,refreshEvent:N}};var n=r(7475),o=r(9954),i=r(2137),a=r(8156),u=r(4537),c=r(4702),s=r(7748),l=r(3240);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},519:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=void 0;var o=r(8156),i=r(3240),a=r(7475),u=r(2137),c=r(7748);function s(){s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,i)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,c(_,"constructor",v),c(v,"constructor",h),h.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function l(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d={events:[],isLoading:!0};t.default=function(e){var t,r,n=(e||{}).cacheStrategy,p=void 0===n?u.CacheStrategies.CACHE_FIRST:n,h=(0,c.getEventsObjectCacheKey)(),v=p!==u.CacheStrategies.NETWORK_ONLY?function(e){if(!e)return null;var t=e.map((function(e){var t=(0,c.getEventObjectCacheKey)(e);return u.LRUCache.get(t)}));return t.filter((function(e){return!e})).length>0?null:t}(u.LRUCache.get(h,null)):null,y=(t=(0,o.useState)(null!==v?{events:v,isLoading:!1}:d),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=y[0],m=y[1],_=function(){var e,t=(e=s().mark((function e(){var t,r,n,o=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:a.Endpoints.GetUserEvents.url(),e.next=3,a.http.request({url:t,method:a.Endpoints.GetUserEvents.method});case 3:if(r=e.sent,!(n=r.data).next){e.next=11;break}return e.t0=n.results,e.next=9,_(n.next);case 9:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 11:return e.abrupt("return",n.results);case 12:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){l(i,n,o,a,u,"next",e)}function u(e){l(i,n,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){p===u.CacheStrategies.CACHE_FIRST&&v||_().then((function(e){m({events:e,isLoading:!1}),u.LRUCache.set(h,e.map((function(e){var t=(0,c.getEventObjectCacheKey)(e.id);return u.LRUCache.set(t,e),e.id})))})).catch((function(e){console.log(e),u.Logger.error(i.SCOPE_SC_CORE,"Unable to retrieve events")}))}),[]),g}},6694:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t,r=e.id,n=e.endpoint,l=e.endpointQueryParams,d=void 0===l?{limit:5,offset:0}:l,p=e.onNextPage,_=e.onPreviousPage,E=e.cacheStrategy,S=void 0===E?u.CacheStrategies.NETWORK_ONLY:E,O=e.prefetchedData,b=(0,o.useMemo)((function(){return Object.assign({limit:10,offset:0},d)}),[d]),C=(0,s.default)(),T=(0,o.useMemo)((function(){return function(){return(0,u.appendURLSearchParams)(n.url({}),Object.keys(b).map((function(e){return v({},e,b[e])})))}}),[b]),w=(2,function(e){if(Array.isArray(e))return e}(t=(0,o.useReducer)(g,{},(function(){return m({id:r,endpoint:n,queryParams:b,next:T(),cacheStrategy:S,prefetchedData:O})})))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t)||f(t,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),A=w[0],R=w[1],P=function(e){var t=new URLSearchParams(e),r=Object.fromEntries(t.entries());return r.offset?parseInt(r.offset):0},L=function(e,t){return I(e,!1).then((function(e){var r;if(t)r=A.results.slice(0,A.results.length-e.results.length).concat(e.results);else{var n=A.results.slice(e.results.length,A.results.length);r=e.results.concat(n)}R({type:y.DATA_REVALIDATE,payload:{results:r}})}))},I=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2?arguments[2]:void 0,i=(0,c.getFeedCacheKey)(r,e);return t&&u.LRUCache.hasKey(i)&&S!==u.CacheStrategies.NETWORK_ONLY?Promise.resolve(u.LRUCache.get(i)):a.http.request(h({url:e,method:n.method},o?{cancelToken:o.token}:{})).then((function(e){return e.status>=300?Promise.reject(e):(u.LRUCache.set(i,e.data),Promise.resolve(e.data))}))};function N(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n&&A.next&&!A.isLoadingNext&&(R({type:y.LOADING_NEXT}),I(A.next,null,e).then((function(e){if(C.current){var t=Math.max(P(e.next)-b.limit,A.results.length),r=Math.ceil(t/b.limit+1),n=e.next?r+1:null,o=e.count||(0===A.count&&0===e.results.length?0:A.count+e.results.length+1);R({type:y.DATA_NEXT_LOADED,payload:h({currentPage:r,nextPage:n,currentOffset:t,count:o,results:e.results,next:e.next,componentLoaded:!0},b.offset&&0===A.results.length?{previous:e.previous,previousPage:e.previous?r-1:null}:{})}),p&&p(r,t,o,e.results),S===u.CacheStrategies.STALE_WHILE_REVALIDATE&&L(A.next,!0)}})).catch((function(e){u.Logger.error(i.SCOPE_SC_CORE,e)})))}function j(){R({type:y.RESET,payload:m({id:r,endpoint:n,queryParams:b,next:T(),cacheStrategy:S,prefetchedData:O})})}return(0,o.useEffect)((function(){A.componentLoaded&&A.reload&&!A.isLoadingNext&&!A.isLoadingPrevious&&(R({type:y.DATA_RELOADED}),N())}),[A.reload]),(0,o.useEffect)((function(){return function(){j()}}),[]),h(h({},A),{},{updateState:function(e){R({type:y.UPDATE_DATA,payload:e})},getNextPage:N,getPreviousPage:function(){n&&A.previous&&!A.isLoadingPrevious&&(R({type:y.LOADING_PREVIOUS}),I(A.previous).then((function(e){if(C.current){var t=Math.max(P(A.previous),0),r=Math.ceil(t/b.limit+1),n=e.previous?r-1:null,o=e.count||A.count+e.results.length+1;R({type:y.DATA_PREVIOUS_LOADED,payload:{currentPage:r,previousPage:n,currentOffset:t,count:o,initialOffset:t,results:e.results,previous:e.previous}}),_&&_(r,t,o,e.results),S===u.CacheStrategies.STALE_WHILE_REVALIDATE&&L(A.next,!0)}})).catch((function(e){u.Logger.error(i.SCOPE_SC_CORE,e)})))},reload:function(){R({type:y.DATA_RELOAD,payload:{next:T()}})},reset:j})},t.feedDataActionTypes=void 0;var n,o=r(8156),i=r(3240),a=r(7475),u=r(2137),c=r(7748),s=(n=r(5189))&&n.__esModule?n:{default:n};function l(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y={LOADING_NEXT:"_loading_next",LOADING_PREVIOUS:"_loading_previous",DATA_NEXT_LOADED:"_data_next_loaded",DATA_PREVIOUS_LOADED:"_data_previous_loaded",DATA_REVALIDATE:"_data_revalidate",DATA_RELOAD:"_data_reload",DATA_RELOADED:"_data_reloaded",UPDATE_DATA:"_data_update",RESET:"_reset"};function g(e,t){var r=h({},e);switch(t.type){case y.LOADING_NEXT:r=h(h({},e),{},{isLoadingNext:!0,isLoadingPrevious:!1});break;case y.LOADING_PREVIOUS:r=h(h({},e),{},{isLoadingNext:!1,isLoadingPrevious:!0});break;case y.DATA_NEXT_LOADED:r=h(h(h(h({},e),{},{currentPage:t.payload.currentPage,currentOffset:t.payload.currentOffset,results:[].concat(l(e.results),l(t.payload.results)),isLoadingNext:!1,componentLoaded:!0,next:t.payload.next,nextPage:t.payload.nextPage},t.payload.previous?{previous:t.payload.previous}:{}),t.payload.count?{count:t.payload.count}:{}),t.payload.previousPage?{previousPage:t.payload.previousPage}:{});break;case y.DATA_PREVIOUS_LOADED:r=h(h({},e),{},{currentPage:t.payload.currentPage,currentOffset:t.payload.currentOffset,initialOffset:t.payload.initialOffset,results:[].concat(l(t.payload.results),l(e.results)),isLoadingPrevious:!1,componentLoaded:!0,previous:t.payload.previous,previousPage:t.payload.previousPage});break;case y.DATA_REVALIDATE:r=h(h({},e),{},{results:t.payload.results});break;case y.DATA_RELOAD:r=h(h({},e),{},{next:t.payload.next,currentPage:1,previousPage:null,nextPage:null,currentOffset:0,initialOffset:0,results:[],count:0,previous:null,reload:!0});break;case y.DATA_RELOADED:r=h(h({},e),{},{componentLoaded:!1,reload:!1});break;case y.UPDATE_DATA:r=h(h({},e),t.payload);break;case y.RESET:r=h({},t.payload)}return u.LRUCache.set((0,c.getStateFeedCacheKey)(e.id),r),r}function m(e){var t=h({id:e.id,results:[],count:0,next:e.next,previous:null,isLoadingNext:!1,isLoadingPrevious:!1,limit:e.queryParams.limit,currentPage:Math.ceil(e.queryParams.offset/e.queryParams.limit+1),currentOffset:e.queryParams.offset,initialOffset:e.queryParams.offset,reload:!1,componentLoaded:Boolean(e.prefetchedData)},e.prefetchedData&&e.prefetchedData);t.nextPage=t.next?t.currentPage+1:null,t.previousPage=t.previous?t.currentPage-1:null;var r=(0,c.getStateFeedCacheKey)(e.id);if(r&&u.LRUCache.hasKey(r)&&e.cacheStrategy!==u.CacheStrategies.NETWORK_ONLY){var n=u.LRUCache.get(r);return h(h({},t),n)}return e.prefetchedData&&u.LRUCache.set(r,t),t}t.feedDataActionTypes=y},6594:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.feedObject,d=void 0===f?null:f,p=e.feedObjectType,h=void 0===p?u.SCContributionType.POST||u.SCContributionType.DISCUSSION||u.SCContributionType.STATUS:p,v=e.cacheStrategy,y=void 0===v?i.CacheStrategies.CACHE_FIRST:v,g=d?d.id:r,m=d?d.type:h,_=(0,s.getFeedObjectCacheKey)(g,m),E=l((0,n.useState)(y!==i.CacheStrategies.NETWORK_ONLY?i.LRUCache.get(_,d):d),2),S=E[0],O=E[1],b=l((0,n.useState)(null),2),C=b[0],T=b[1],w=(0,n.useMemo)((function(){return function(){return o.http.request({url:o.Endpoints.FeedObject.url({type:m,id:g}),method:o.Endpoints.FeedObject.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[g,m]);return(0,n.useEffect)((function(){g&&m&&!d&&w().then((function(e){O(e),i.LRUCache.set(_,e)})).catch((function(e){i.LRUCache.delete(_),T("FeedObject with id ".concat(r," not found")),i.Logger.error(a.SCOPE_SC_CORE,"FeedObject with id ".concat(r," not found")),i.Logger.error(a.SCOPE_SC_CORE,e.message)}))}),[g,m]),(0,c.useDeepCompareEffectNoCheck)((function(){d&&(y===i.CacheStrategies.NETWORK_ONLY?(O(d),i.LRUCache.set(_,d)):O(i.LRUCache.get(_,d)))}),[d]),{obj:S,setObj:function(e){i.LRUCache.set(_,e),O(Object.assign({},e))},error:C}};var n=r(8156),o=r(7475),i=r(2137),a=r(3240),u=r(9954),c=r(4537),s=r(7748);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},2994:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.group,d=void 0===f?null:f,p=e.cacheStrategy,h=void 0===p?a.CacheStrategies.CACHE_FIRST:p,v=d?d.id:r,y=(0,s.useSCUser)(),g=y.user?y.user.id:null,m=(0,u.getGroupObjectCacheKey)(v),_=g?d:(0,a.objectWithoutProperties)(d,["subscription_status"]),E=l((0,n.useState)(h!==a.CacheStrategies.NETWORK_ONLY?a.LRUCache.get(m,_):null),2),S=E[0],O=E[1],b=l((0,n.useState)(null),2),C=b[0],T=b[1],w=function(e){var t=g?e:(0,a.objectWithoutProperties)(e,["subscription_status"]);O(t),a.LRUCache.set(m,t)},A=(0,n.useMemo)((function(){return function(){return i.http.request({url:i.Endpoints.GetGroupInfo.url({id:v}),method:i.Endpoints.GetGroupInfo.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[v]),R=(0,n.useMemo)((function(){return function(){A().then((function(e){w(e)})).catch((function(e){a.LRUCache.delete(m),T("Error on refresh group with id ".concat(r)),a.Logger.error(o.SCOPE_SC_CORE,"Error on refresh group with id ".concat(r)),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}}),[m,w]);return(0,n.useEffect)((function(){v&&(!S||S&&v!==S.id)&&A().then((function(e){w(e)})).catch((function(e){a.LRUCache.delete(m),T("Group with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,"Group with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}),[v,g]),(0,c.useDeepCompareEffectNoCheck)((function(){d&&w(d)}),[d,g]),{scGroup:S,setSCGroup:w,error:C,refreshGroup:R}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137),u=r(7748),c=r(4537),s=r(4702);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},6151:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=void 0;var o=r(8156),i=r(3240),a=r(7475),u=r(2137),c=r(7748);function s(){s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,i)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,c(_,"constructor",v),c(v,"constructor",h),h.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function l(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d={groups:[],isLoading:!0};t.default=function(e){var t,r,n=(e||{}).cacheStrategy,p=void 0===n?u.CacheStrategies.CACHE_FIRST:n,h=(0,c.getGroupsObjectCacheKey)(),v=p!==u.CacheStrategies.NETWORK_ONLY?function(e){if(!e)return null;var t=e.map((function(e){var t=(0,c.getGroupObjectCacheKey)(e);return u.LRUCache.get(t)}));return t.filter((function(e){return!e})).length>0?null:t}(u.LRUCache.get(h,null)):null,y=(t=(0,o.useState)(null!==v?{groups:v,isLoading:!1}:d),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=y[0],m=y[1],_=function(){var e,t=(e=s().mark((function e(){var t,r,n,o=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:a.Endpoints.GetUserGroups.url(),e.next=3,a.http.request({url:t,method:a.Endpoints.GetUserGroups.method});case 3:if(r=e.sent,!(n=r.data).next){e.next=11;break}return e.t0=n.results,e.next=9,_(n.next);case 9:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 11:return e.abrupt("return",n.results);case 12:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){l(i,n,o,a,u,"next",e)}function u(e){l(i,n,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,o.useEffect)((function(){p===u.CacheStrategies.CACHE_FIRST&&v||_().then((function(e){m({groups:e,isLoading:!1}),u.LRUCache.set(h,e.map((function(e){var t=(0,c.getGroupObjectCacheKey)(e.id);return u.LRUCache.set(t,e),e.id})))})).catch((function(e){console.log(e),u.Logger.error(i.SCOPE_SC_CORE,"Unable to retrieve groups")}))}),[]),g}},2243:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.incubator,d=void 0===f?null:f,p=e.cacheStrategy,h=void 0===p?a.CacheStrategies.CACHE_FIRST:p,v=d?d.id:r,y=(0,s.useSCUser)(),g=y.user?y.user.id:null,m=(0,u.getIncubatorObjectCacheKey)(v),_=g?d:(0,a.objectWithoutProperties)(d,["subscribed"]),E=l((0,n.useState)(h!==a.CacheStrategies.NETWORK_ONLY?a.LRUCache.get(m,_):null),2),S=E[0],O=E[1],b=l((0,n.useState)(null),2),C=b[0],T=b[1],w=(0,n.useMemo)((function(){return function(){return i.http.request({url:i.Endpoints.GetASpecificIncubator.url({id:v}),method:i.Endpoints.GetASpecificIncubator.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[v]);return(0,n.useEffect)((function(){v&&(!S||S&&v!==S.id)&&w().then((function(e){var t=g?e:(0,a.objectWithoutProperties)(e,["subscribed"]);O(t),a.LRUCache.set(m,t)})).catch((function(e){a.LRUCache.delete(m),T("Incubator with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,"Incubator with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}),[v]),(0,c.useDeepCompareEffectNoCheck)((function(){if(d){var e=g?d:(0,a.objectWithoutProperties)(d,["subscribed"]);O(e),a.LRUCache.set(m,e)}}),[d]),{scIncubator:S,setSCIncubator:O,error:C}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137),u=r(7748),c=r(4537),s=r(4702);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},7416:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.lesson,d=void 0===f?null:f,p=e.courseId,h=void 0===p?null:p,v=e.sectionId,y=void 0===v?null:v,g=e.cacheStrategy,m=void 0===g?o.CacheStrategies.CACHE_FIRST:g,_=(0,i.useMemo)((function(){return(null==d?void 0:d.id)||r}),[d,r]),E=(0,u.useSCUser)(),S=(0,i.useMemo)((function(){var e;return(null===(e=E.user)||void 0===e?void 0:e.id)||null}),[E.user]),O=(0,i.useMemo)((function(){return(0,c.getLessonObjectCacheKey)(_)}),[_]),b=l((0,i.useState)(m!==o.CacheStrategies.NETWORK_ONLY?o.LRUCache.get(O,d):null),2),C=b[0],T=b[1],w=l((0,i.useState)(null),2),A=w[0],R=w[1],P=function(e){T(e),o.LRUCache.set(O,e)},L=(0,i.useMemo)((function(){return function(e){return n.http.request({url:n.Endpoints.GetCourseLesson.url({id:h,section_id:y,lesson_id:e}),method:n.Endpoints.GetCourseLesson.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[h,y,r]);return(0,i.useEffect)((function(){_&&h&&y&&L(_).then((function(e){P(e)})).catch((function(e){o.LRUCache.delete(O),R("Lesson with id ".concat(_," not found")),o.Logger.error(s.SCOPE_SC_CORE,"Lesson with id ".concat(_," not found")),o.Logger.error(s.SCOPE_SC_CORE,e.message)}))}),[_,h,y]),(0,a.useDeepCompareEffectNoCheck)((function(){d&&P(d)}),[d,S]),{scLesson:C,setSCLesson:P,error:A}};var n=r(7475),o=r(2137),i=r(8156),a=r(4537),u=r(4702),c=r(7748),s=r(3240);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},1560:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,l=e.commentObject,f=void 0===l?null:l,d=e.lesson,p=void 0===d?null:d,h=e.cacheStrategy,v=void 0===h?a.CacheStrategies.CACHE_FIRST:h,y=f?f.id:r,g=(0,u.getLessonCommentCacheKey)(y),m=s((0,n.useState)(v!==a.CacheStrategies.NETWORK_ONLY?a.LRUCache.get(g,f):f),2),_=m[0],E=m[1],S=s((0,n.useState)(null),2),O=S[0],b=S[1],C=(0,n.useMemo)((function(){return function(){return i.http.request({url:i.Endpoints.GetCourseLessonComment.url({id:p.course_id,section_id:p.section_id,lesson_id:p.id,comment_id:y}),method:i.Endpoints.GetCourseLessonComment.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[y,p]);return(0,n.useEffect)((function(){!y||!p||_&&v!==a.CacheStrategies.STALE_WHILE_REVALIDATE||C().then((function(e){E(e),a.LRUCache.set(g,e)})).catch((function(e){a.LRUCache.delete(g),b("Course Lesson comment Object with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,"Course Lesson comment Object with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}),[y,p]),(0,c.useDeepCompareEffectNoCheck)((function(){f&&(E(f),a.LRUCache.set(g,_))}),[f]),{obj:_,setObj:E,error:O}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137),u=r(7748),c=r(4537);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},2779:(e,t,r)=>{t.__esModule=!0,t.commentsObjectActionTypes=void 0,t.default=function(e){var t,r=e.id,n=e.lessonObject,v=e.offset,y=void 0===v?0:v,m=e.pageSize,O=void 0===m?15:m,b=e.orderBy,C=void 0===b?a.SCCommentsOrderBy.ADDED_AT_DESC:b,T=e.parent,w=e.onChangePage,A=e.cacheStrategy,R=void 0===A?c.CacheStrategies.NETWORK_ONLY:A,P=(0,d.default)({id:r,lesson:n,courseId:n.course_id,sectionId:n.section_id,cacheStrategy:R}),L=P.scLesson,I=P.setSCLesson,N=function(){var e=y?"&offset=".concat(y):"",t=T?"&parent=".concat(T):"",o=L?L.id:r,i=L?L.course_id:n.course_id,a=L?L.section_id:n.section_id;return"".concat(u.Endpoints.GetCourseLessonComments.url({id:i,section_id:a,lesson_id:o}),"?limit=").concat(O,"&ordering=").concat(C).concat(e).concat(t)},j=(2,function(e){if(Array.isArray(e))return e}(t=(0,o.useReducer)(E,{scLesson:L,offset:y,pageSize:O,next:N(),cacheStrategy:R},S))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t)||h(t,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),k=j[0],U=j[1],x=(0,l.useIsComponentMountedRef)(),G=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=(0,s.getLessonCommentsCacheKey)(L.id,e);return t&&c.LRUCache.hasKey(r)&&R!==c.CacheStrategies.NETWORK_ONLY?Promise.resolve(c.LRUCache.get(r)):u.http.request({url:e,method:u.Endpoints.GetCourseLessonComments.method}).then((function(e){return e.status>=300?Promise.reject(e):(c.LRUCache.set(r,e.data),e.data.results.forEach((function(e){return c.LRUCache.set((0,s.getLessonCommentCacheKey)(e.id),e)})),Promise.resolve(e.data))}))};function D(){if(L&&k.next&&!k.isLoadingNext){var e=k.next;U({type:_.LOADING_NEXT}),G(e).then((function(t){if(x.current){var r=(0,f.getCurrentPage)(e,O),n=t.next?r+1:null;U({type:_.DATA_NEXT_LOADED,payload:g({page:r,nextPage:n,comments:[].concat(p(k.comments),p(t.results)),next:t.next,total:t.count,componentLoaded:!0},y&&0===k.comments.length?{previous:t.previous,previousPage:t.previous?r-1:null}:{})}),w&&w(r)}})).catch((function(e){c.Logger.error(i.SCOPE_SC_CORE,e)})).then((function(){x.current&&R===c.CacheStrategies.STALE_WHILE_REVALIDATE&&U({type:_.DATA_REVALIDATE,payload:{revalidateNext:e}})}))}}return(0,o.useEffect)((function(){x.current&&k.componentLoaded&&k.reload&&!k.isLoadingNext&&!k.isLoadingPrevious&&(U({type:_.DATA_RELOADED}),D())}),[k.reload,x]),(0,o.useEffect)((function(){var e,t;x.current&&k.componentLoaded&&Boolean(L)&&!k.reload&&k.revalidate&&(e=k.revalidateNext,t=Boolean(k.revalidateNext),G(e,!1).then((function(e){var r,n=(0,f.getCurrentPage)(t?e.next:e.previous,O);if(t)r=k.comments.slice(0,k.comments.length-e.results.length).concat(e.results);else{var o=k.comments.slice(e.results.length,k.comments.length);r=e.results.concat(o)}x.current&&U({type:t?_.DATA_NEXT_LOADED:_.DATA_PREVIOUS_LOADED,payload:g(g({page:n,comments:r},t?{next:e.next}:{previous:e.previous}),{},{total:e.count})})})))}),[k.revalidate,x]),g(g({lessonObject:L,setLessonObject:I},k),{},{pageSize:O,getNextPage:D,getPreviousPage:function(){if(L&&k.previous&&!k.isLoadingPrevious){var e=k.previous;U({type:_.LOADING_PREVIOUS}),G(e).then((function(t){if(x.current){var r=(0,f.getCurrentPage)(e,O),n=t.previous?r-1:null;U({type:_.DATA_PREVIOUS_LOADED,payload:{page:r,previousPage:n,comments:[].concat(p(t.results),p(k.comments)),previous:t.previous}}),w&&w(r)}})).catch((function(e){c.Logger.error(i.SCOPE_SC_CORE,e)})).then((function(){x.current&&R===c.CacheStrategies.STALE_WHILE_REVALIDATE&&U({type:_.DATA_REVALIDATE,payload:{revalidatePrevious:e}})}))}},orderBy:C,reload:function(){x.current&&k.componentLoaded&&Boolean(L)&&!k.isLoadingNext&&!k.reload&&U({type:_.DATA_RELOAD,payload:{next:N()}})},updateLessonComments:function(e){if(e){U({type:_.DATA_NEXT_LOADED,payload:{comments:e,next:k.next,total:e.length}});var t=(0,s.getLessonCommentsCacheKey)(L.id,k.next);c.LRUCache.set(t,e.map((function(e){var t=(0,s.getLessonCommentCacheKey)(e.id);return c.LRUCache.set(t,e),e.id})))}}})};var n,o=r(8156),i=r(3240),a=r(9954),u=r(7475),c=r(2137),s=r(7748),l=r(357),f=r(2584),d=(n=r(7416))&&n.__esModule?n:{default:n};function p(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _={LOADING_NEXT:"_loading_next",LOADING_PREVIOUS:"_loading_previous",DATA_NEXT_LOADED:"_data_next_loaded",DATA_PREVIOUS_LOADED:"_data_previous_loaded",DATA_RELOAD:"_data_reload",DATA_RELOADED:"_data_reloaded",DATA_REVALIDATE:"_data_revalidate"};function E(e,t){switch(t.type){case _.LOADING_NEXT:return g(g({},e),{},{isLoadingNext:!0,isLoadingPrevious:!1});case _.LOADING_PREVIOUS:return g(g({},e),{},{isLoadingNext:!1,isLoadingPrevious:!0});case _.DATA_NEXT_LOADED:return g(g(g(g(g(g({},e),{},{comments:t.payload.comments,isLoadingNext:!1,componentLoaded:!0,revalidate:!1,revalidateNext:null,revalidatePrevious:null,next:t.payload.next},t.payload.page?{page:t.payload.page}:{}),t.payload.nextPage?{nextPage:t.payload.nextPage}:{}),t.payload.previous?{previous:t.payload.previous}:{}),t.payload.previousPage?{previousPage:t.payload.previousPage}:{}),t.payload.total?{total:t.payload.total}:{});case _.DATA_PREVIOUS_LOADED:return g(g(g({},e),{},{comments:t.payload.comments,isLoadingPrevious:!1,revalidate:!1,revalidateNext:null,revalidatePrevious:null,previous:t.payload.previous},t.payload.page?{page:t.payload.page}:{}),t.payload.previousPage?{previousPage:t.payload.previousPage}:{});case _.DATA_RELOAD:return g(g({},e),{},{next:t.payload.next,previousPage:null,nextPage:null,comments:[],total:0,previous:null,isLoadingNext:!0,reload:!0});case _.DATA_RELOADED:return g(g({},e),{},{componentLoaded:!0,reload:!1});case _.DATA_REVALIDATE:return g(g(g(g({},e),{},{componentLoaded:!0,revalidate:!0},t.payload.revalidateNext?{revalidateNext:t.payload.revalidateNext}:{}),t.payload.revalidatePrevious?{revalidatePrevious:t.payload.revalidatePrevious}:{}),{},{reload:!1});default:throw new Error("Unhandled type: ".concat(t.type))}}function S(e){var t=e.scLesson?(0,s.getLessonCommentsCacheKey)(e.scLesson.id,e.next):null,r={componentLoaded:!1,comments:[],total:0,next:e.next,previous:null,isLoadingNext:!1,isLoadingPrevious:!1,page:Math.ceil(e.offset/e.pageSize+1),reload:!1,revalidate:!1,revalidateNext:null,revalidatePrevious:null};if(r.nextPage=r.next?r.page+1:null,r.previousPage=r.previous?r.page-1:null,t&&c.LRUCache.hasKey(t)&&e.cacheStrategy!==c.CacheStrategies.NETWORK_ONLY){var n=c.LRUCache.get(t),o=Math.max((0,f.getCurrentPage)(n.next,e.pageSize),1),i=n.next?(0,f.getCurrentPage)(n.next,e.pageSize):null,a=n.previous?Math.max((0,f.getCurrentPage)(n.previous,e.pageSize)-1,1):null;return g(g({},r),{total:n.count,next:n.next,previous:n.previous,comments:n.results,page:o,nextPage:i,previousPage:a,componentLoaded:!0})}return r}t.commentsObjectActionTypes=_},4706:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.liveStream,d=void 0===f?null:f,p=e.cacheStrategy,h=void 0===p?o.CacheStrategies.CACHE_FIRST:p,v=d?d.id:r,y=(0,u.useSCUser)(),g=y.user?y.user.id:null,m=(0,c.getLiveStreamObjectCacheKey)(v),_=g?d:(0,o.objectWithoutProperties)(d,["subscription_status"]),E=l((0,i.useState)(h!==o.CacheStrategies.NETWORK_ONLY?o.LRUCache.get(m,_):null),2),S=E[0],O=E[1],b=l((0,i.useState)(null),2),C=b[0],T=b[1],w=(0,i.useMemo)((function(){return function(e){O(e),o.LRUCache.set(m,e)}}),[g,O]),A=(0,i.useMemo)((function(){return function(e){return n.http.request({url:n.Endpoints.GetLiveStreamInfo.url({id:e}),method:n.Endpoints.GetLiveStreamInfo.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[]);return(0,i.useEffect)((function(){null==r||d||A(r).then((function(e){w(e)})).catch((function(e){o.LRUCache.delete(m),T("LiveStream with id ".concat(r," not found")),o.Logger.error(s.SCOPE_SC_CORE,"LiveStream with id ".concat(r," not found")),o.Logger.error(s.SCOPE_SC_CORE,e.message)}))}),[r,d,g]),(0,a.useDeepCompareEffectNoCheck)((function(){d&&w(d)}),[d,g]),{scLiveStream:S,setSCLiveStream:w,error:C}};var n=r(7475),o=r(2137),i=r(8156),a=r(4537),u=r(4702),c=r(7748),s=r(3240);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},133:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.paymentOrder,d=void 0===f?null:f,p=e.cacheStrategy,h=void 0===p?o.CacheStrategies.NETWORK_ONLY:p,v=(0,i.useMemo)((function(){return(null==d?void 0:d.id)||r}),[d,r]),y=(0,u.useSCUser)(),g=(0,i.useMemo)((function(){var e;return(null===(e=y.user)||void 0===e?void 0:e.id)||null}),[y.user]),m=(0,i.useMemo)((function(){return(0,c.getPaymentOrderObjectCacheKey)(v)}),[v]),_=l((0,i.useState)(h!==o.CacheStrategies.NETWORK_ONLY?o.LRUCache.get(m,d):null),2),E=_[0],S=_[1],O=l((0,i.useState)(null),2),b=O[0],C=(O[1],(0,i.useCallback)((function(e){S(e),o.LRUCache.set(m,e)}),[S,m])),T=(0,i.useMemo)((function(){return function(e){return n.http.request({url:n.Endpoints.GetPaymentOrder.url({id:e}),method:n.Endpoints.GetPaymentOrder.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[]);return(0,i.useEffect)((function(){null==r||d||T(r).then((function(e){C(e)})).catch((function(e){o.LRUCache.delete(m),o.Logger.error(s.SCOPE_SC_CORE,e.message)}))}),[r,d,g]),(0,a.useDeepCompareEffectNoCheck)((function(){d&&C(d)}),[d,g]),{scPaymentOrder:E,setSCPaymentOrder:C,error:b}};var n=r(7475),o=r(2137),i=r(8156),a=r(4537),u=r(4702),c=r(7748),s=r(3240);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},1513:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,f=e.paymentProduct,d=void 0===f?null:f,p=e.cacheStrategy,h=void 0===p?o.CacheStrategies.NETWORK_ONLY:p,v=(0,i.useMemo)((function(){return(null==d?void 0:d.id)||r}),[d,r]),y=(0,u.useSCUser)(),g=(0,i.useMemo)((function(){var e;return(null===(e=y.user)||void 0===e?void 0:e.id)||null}),[y.user]),m=(0,i.useMemo)((function(){return(0,c.getPaymentProductObjectCacheKey)(v)}),[v]),_=l((0,i.useState)(h!==o.CacheStrategies.NETWORK_ONLY?o.LRUCache.get(m,d):null),2),E=_[0],S=_[1],O=l((0,i.useState)(null),2),b=O[0],C=(O[1],(0,i.useCallback)((function(e){S(e),o.LRUCache.set(m,e)}),[S,m])),T=(0,i.useMemo)((function(){return function(e){return n.http.request({url:n.Endpoints.GetPaymentProduct.url({id:e}),method:n.Endpoints.GetPaymentProduct.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[]);return(0,i.useEffect)((function(){null==r||d||T(r).then((function(e){C(e)})).catch((function(e){o.LRUCache.delete(m),o.Logger.error(s.SCOPE_SC_CORE,e.message)}))}),[r,d,g]),(0,a.useDeepCompareEffectNoCheck)((function(){d&&C(d)}),[d,g]),{scPaymentProduct:E,setSCPaymentProduct:C,error:b}};var n=r(7475),o=r(2137),i=r(8156),a=r(4537),u=r(4702),c=r(7748),s=r(3240);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},6515:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=void 0;var o=r(8156),i=r(3240),a=r(7475),u=r(2137),c=r(7748),s=r(4702);function l(){l=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var y={};c(y,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(w([])));m&&m!==t&&r.call(m,i)&&(y=m);var _=v.prototype=p.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=v,c(_,"constructor",v),c(v,"constructor",h),h.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function f(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var p={snippets:[],isLoading:!0};t.default=function(e){var t,r,n=(e||{}).cacheStrategy,h=void 0===n?u.CacheStrategies.CACHE_FIRST:n,v=(0,c.getPmSnippetsObjectCacheKey)(),y=h!==u.CacheStrategies.NETWORK_ONLY?function(e){if(!e)return null;var t=e.map((function(e){var t=(0,c.getPmSnippetObjectCacheKey)(e);return u.LRUCache.get(t)}));return t.filter((function(e){return!e})).length>0?null:t}(u.LRUCache.get(v,null)):null,g=(t=(0,o.useState)(null!==y?{snippets:y,isLoading:!1}:p),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=g[0],_=g[1],E=((0,s.useSCUser)(),function(){var e,t=(e=l().mark((function e(){var t,r,n,o=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:a.Endpoints.GetSnippets.url(),e.next=3,a.http.request({url:t,method:a.Endpoints.GetSnippets.method});case 3:if(r=e.sent,!(n=r.data).next){e.next=11;break}return e.t0=n.results,e.next=9,E(n.next);case 9:return e.t1=e.sent,e.abrupt("return",e.t0.concat.call(e.t0,e.t1));case 11:return e.abrupt("return",n.results);case 12:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){f(i,n,o,a,u,"next",e)}function u(e){f(i,n,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}());return(0,o.useEffect)((function(){h===u.CacheStrategies.CACHE_FIRST&&y||E().then((function(e){_({snippets:e,isLoading:!1}),u.LRUCache.set(v,e.map((function(e){var t=(0,c.getPmSnippetObjectCacheKey)(e.id);return u.LRUCache.set(t,e),e.id})))})).catch((function(e){console.log(e),u.Logger.error(i.SCOPE_SC_CORE,"Unable to retrieve snippets")}))}),[]),{data:m,updateSnippets:function(e){e&&(_({snippets:e,isLoading:!1}),u.LRUCache.set(v,e.map((function(e){var t=(0,c.getPmSnippetObjectCacheKey)(e.id);return u.LRUCache.set(t,e),e.id}))))}}}},576:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,c=e.tag,s=void 0===c?null:c,l=u((0,n.useState)(s),2),f=l[0],d=l[1],p=u((0,n.useState)(null),2),h=p[0],v=p[1],y=(0,n.useMemo)((function(){return function(){return i.http.request({url:i.Endpoints.Tag.url({id:r}),method:i.Endpoints.Tag.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[r]);return(0,n.useEffect)((function(){r&&y().then((function(e){d(e)})).catch((function(e){v("Tag with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,"Tag with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}),[r]),{scTag:f,setSCTag:d,error:h}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},7014:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=void 0===t?null:t,s=e.user,l=void 0===s?null:s,f=(0,u.useSCUser)(),d=f.user?f.user.id:null,p=(0,n.useMemo)((function(){return d?l:(0,a.objectWithoutProperties)(l,["connection_status"])}),[l]),h=c((0,n.useState)(p),2),v=h[0],y=h[1],g=c((0,n.useState)(null),2),m=g[0],_=g[1],E=c((0,n.useState)(!1),2),S=E[0],O=E[1],b=(0,n.useMemo)((function(){return function(){return i.http.request({url:i.Endpoints.User.url({id:l?l.id:r}),method:i.Endpoints.User.method}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[r,l]),C=(0,n.useMemo)((function(){return function(){return S?Promise.reject():(O(!0),b().then((function(e){O(!1),y(d?e:(0,a.objectWithoutProperties)(e,["connection_status"]))})).catch((function(e){O(!1),_("Unable to refresh user with id ".concat(r)),a.Logger.error(o.SCOPE_SC_CORE,"Unable to refresh user with id ".concat(r)),a.Logger.error(o.SCOPE_SC_CORE,e.message)})))}}),[b,S]);return(0,n.useEffect)((function(){r?b().then((function(e){y(d?e:(0,a.objectWithoutProperties)(e,["connection_status"]))})).catch((function(e){_("User with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,"User with id ".concat(r," not found")),a.Logger.error(o.SCOPE_SC_CORE,e.message)})):y(p)}),[r,p]),{scUser:v,setSCUser:y,refresh:C,refreshing:S,error:m}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137),u=r(4702);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},494:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.user,r=void 0===t?null:t,s=e.blockedByUser,l=void 0===s?null:s,f=e.sync,d=void 0===f||f,p=c((0,n.useState)(null),2),h=p[0],v=p[1],y=c((0,n.useState)(!0),2),g=y[0],m=y[1],_=c((0,n.useState)(null),2),E=_[0],S=_[1],O=(0,u.useSCUser)(),b=(0,n.useMemo)((function(){return function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t&&m(!0),i.UserService.checkUserHiddenBy(e.id).then((function(e){return t&&m(!1),v(e.is_hidden_by),Promise.resolve(e.is_hidden_by)})).catch((function(e){t&&m(!1),a.Logger.error(o.SCOPE_SC_CORE,"Unable to load user blocked by."),a.Logger.error(o.SCOPE_SC_CORE,e),S(e)}))}}),[g,v]);return(0,n.useEffect)((function(){r&&null===h&&(O.user?O.user.id!==r.id?b(r):(v(!1),m(!1)):null===O.user&&(v(l),m(!1)))}),[O.user,r,b,h,g]),(0,n.useEffect)((function(){O.user||null===h||v(l)}),[O.user,h,l]),(0,n.useEffect)((function(){var e;if(O.user&&O.user.id!==(null==r?void 0:r.id)&&null!==h&&d)return e=setInterval((function(){b(r,!1)}),5e3),function(){e&&clearInterval(e)}}),[O.user,r,b,h]),{blockedBy:h,loading:g,error:E}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137),u=r(4702);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},8081:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=e.providers,c=void 0===r?null:r,s=u((0,n.useState)(c||[]),2),l=s[0],f=s[1],d=u((0,n.useState)(null),2),p=d[0],h=d[1];return(0,n.useEffect)((function(){null===c&&i.UserService.getProviderAssociations(t).then((function(e){f(e)})).catch((function(e){h("User with id ".concat(t," not found")),a.Logger.error(o.SCOPE_SC_CORE,"User with id ".concat(t," not found")),a.Logger.error(o.SCOPE_SC_CORE,e.message)}))}),[t,c]),{scUserProviders:l,setSCUserProviders:f,error:p}};var n=r(8156),o=r(3240),i=r(7475),a=r(2137);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},7775:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=e.id,r=e.contribution,d=void 0===r?null:r,h=e.contributionType,g=e.onVote,m=void 0===g?null:g,_=e.cacheStrategy,E=void 0===_?i.CacheStrategies.CACHE_FIRST:_,S=(0,n.useMemo)((function(){return h===u.SCContributionType.COMMENT?(0,c.getCommentObjectCacheKey)(t):(0,c.getFeedObjectCacheKey)(t,h)}),[t,h]),O=(0,n.useMemo)((function(){return h===u.SCContributionType.COMMENT?o.Endpoints.Comment:o.Endpoints.FeedObject}),[t,h]),b=y((0,n.useState)(!1),2),C=b[0],T=b[1],w=y((0,n.useState)(E!==i.CacheStrategies.NETWORK_ONLY?i.LRUCache.get(S,d):d),2),A=w[0],R=w[1],P=y((0,n.useState)(!1),2),L=P[0],I=P[1],N=y((0,n.useState)(o.Endpoints.VotesList.url({type:h,id:t})),2),j=N[0],k=N[1],U=y((0,n.useState)([]),2),x=U[0],G=U[1],D=y((0,n.useState)(!1),2),M=D[0],F=D[1],B=y((0,n.useState)(null),2),V=B[0],Y=B[1],q=(0,s.useSCContext)(),K=(0,l.useSCUser)(),W=(0,f.useSCVote)(),H=(0,n.useMemo)((function(){var e;return{default:null===(e=W.reactions)||void 0===e?void 0:e.find((function(e){return 1===e.id})),reactions:W.reactions,isLoading:W.isLoading}}),[W.reactions,W.isLoading]),$=(0,n.useMemo)((function(){return function(){return T(!0),o.http.request({url:O.url({type:h,id:t}),method:O.method}).then((function(e){return T(!1),e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[t,h]),X=(0,n.useMemo)((function(){return function(e){var t={};return e&&H.reactions&&(t.reaction=e.id),o.http.request({url:o.Endpoints.Vote.url({type:A.type,id:A.id}),method:o.Endpoints.Vote.method,params:t}).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}}),[A,q]);return(0,n.useEffect)((function(){(E!==i.CacheStrategies.CACHE_FIRST||!A||K.user&&!Object.prototype.hasOwnProperty.call(A,"voted"))&&$().then((function(e){R(e),i.LRUCache.set(S,e)})).catch((function(e){i.LRUCache.delete(S),Y("FeedObject with id ".concat(t," not found")),i.Logger.error(a.SCOPE_SC_CORE,"FeedObject with id ".concat(t," not found")),i.Logger.error(a.SCOPE_SC_CORE,e.message)}))}),[t,h,K.user]),(0,n.useEffect)((function(){d&&R(d)}),[d]),p(p({},(0,n.useMemo)((function(){return{contributionVoted:!!A&&A.voted,contributionVoteCount:A?A.vote_count:0,contributionReaction:A?A.reaction:null,contributionReactionsCount:A?A.reactions_count:null}}),[A])),{},{isLoading:C,isVoting:L,handleVote:function(e){K.user&&A&&!L&&(I(!0),X(e).then((function(){var t,r,n={voted:!A.voted,vote_count:A.voted?A.vote_count-1:A.vote_count+1};if(e&&(null==A||null===(t=A.reaction)||void 0===t?void 0:t.id)!==e.id){var o=!(null!=A&&A.reaction),i=-1===A.reactions_count.findIndex((function(t){return t.reaction.id===e.id}));n={voted:!!o||A.voted,vote_count:o?A.vote_count+1:A.vote_count,reaction:e,reactions_count:[].concat(v(A.reactions_count.map((function(t){var r,n;return t.reaction.id===(null==A||null===(r=A.reaction)||void 0===r?void 0:r.id)&&t.count-1==0?null:t.reaction.id===(null==A||null===(n=A.reaction)||void 0===n?void 0:n.id)&&t.count-1>0?{count:t.count-1,reaction:t.reaction}:t.reaction.id===e.id?{count:t.count+1,reaction:t.reaction}:t}))),[i?{count:1,reaction:e}:null]).filter((function(e){return Boolean(e)}))}}else e&&null!=A&&A.reaction&&(null==A||null===(r=A.reaction)||void 0===r?void 0:r.id)===e.id&&(n=Object.assign({},n,{reaction:null,reactions_count:A.reactions_count.map((function(e){var t,r;return e.reaction.id===(null==A||null===(t=A.reaction)||void 0===t?void 0:t.id)&&e.count-1==0?null:e.reaction.id===(null==A||null===(r=A.reaction)||void 0===r?void 0:r.id)&&e.count-1>0?{count:e.count-1,reaction:e.reaction}:e})).filter((function(e){return Boolean(e)}))}));var a=Object.assign({},A,n);R(a),I(!1),m&&m(a,null)})).catch((function(e){i.Logger.error(a.SCOPE_SC_CORE,e),I(!1),m&&m(A,e)})))},reactions:H,error:V,handleFetchVoteList:function(e){var r=e.reaction,n=void 0===r?null:r,i=e.reset,a=void 0!==i&&i,u=a?"".concat(o.Endpoints.VotesList.url({type:h,id:t})).concat(n?"?reaction=".concat(n.id):""):j;F(!0),o.http.request({url:u,method:o.Endpoints.VotesList.method}).then((function(e){G(a?e.data.results:[].concat(v(x),v(e.data.results))),k(e.data.next)})).catch((function(e){return Y(e)})).then((function(){return F(!1)}))},voteList:x,isLoadingVoteList:M,voteListHasNext:Boolean(j)})};var n=r(8156),o=r(7475),i=r(2137),a=r(3240),u=r(9954),c=r(7748),s=r(9082),l=r(4702),f=r(8719);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},9467:(e,t,r)=>{t.__esModule=!0,t.default=function(e,t){var r=(0,a.default)(),n=r.cache,l=r.updateCache,f=r.emptyCache,d=r.data,p=r.setData,h=r.loading,v=r.setLoading,y=r.setUnLoading,g=r.isLoading,m=e?e.id:null,_=(0,o.useMemo)((function(){return function(){f(),e&&i.http.request({url:i.Endpoints.FollowedCategories.url({id:e.id}),method:i.Endpoints.FollowedCategories.method}).then((function(e){if(e.status>=300)return Promise.reject(e);var t=e.data.map((function(e){return e.id}));return l(t),p(t),Promise.resolve(e.data)})).catch((function(e){c.Logger.error(u.SCOPE_SC_CORE,"Unable to refresh categories followed by the authenticated user."),c.Logger.error(u.SCOPE_SC_CORE,e)}))}}),[d,e,n]),E=(0,o.useMemo)((function(){return function(e){return v(e.id),i.http.request({url:i.Endpoints.FollowCategory.url({id:e.id}),method:i.Endpoints.FollowCategory.method}).then((function(r){if(r.status>=300)return Promise.reject(r);l([e.id]);var n=d.includes(e.id);return p((function(t){return n?t.filter((function(t){return t!==e.id})):[e.id].concat(s(t))})),y(e.id),t({categories_counter:n?d.length-1:d.length+1}),Promise.resolve(r.data)}))}}),[d,h,n]),S=(0,o.useMemo)((function(){return function(e){var t=e.followed||!1;return l([e.id]),p((function(r){return t?[].concat(s(r),[e.id]):r})),t}}),[d,n]),O=(0,o.useMemo)((function(){return function(e){if(n.includes(e.id))return Boolean(d.includes(e.id));if(m){if("followed"in e)return S(e);g(e)||function(e){v(e.id),i.http.request({url:i.Endpoints.CheckCategoryIsFollowed.url({id:e.id}),method:i.Endpoints.CheckCategoryIsFollowed.method}).then((function(t){return t.status>=300?Promise.reject(t):(l([e.id]),p((function(r){return t.data.is_followed?[e.id].concat(s(r)):r.filter((function(t){return t!==e.id}))})),y(e.id),Promise.resolve(t.data))}))}(e)}return!1}}),[d,h,n,m]);return(0,o.useEffect)((function(){m||f()}),[m]),e?{categories:d,loading:h,isLoading:g,follow:E,isFollowed:O,refresh:_,emptyCache:f}:{categories:d,loading:h,isLoading:g}};var n,o=r(8156),i=r(7475),a=(n=r(4486))&&n.__esModule?n:{default:n},u=r(3240),c=r(2137);function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},7309:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=(0,l.default)(),r=t.cache,n=t.updateCache,p=t.emptyCache,h=t.data,y=t.setData,g=t.loading,m=t.setLoading,_=t.setUnLoading,E=t.isLoading,S=(0,c.useSCPreferences)(),O=e?e.id:null,b=s.CONFIGURATIONS_FOLLOW_ENABLED in S.preferences&&S.preferences[s.CONFIGURATIONS_FOLLOW_ENABLED].value,C=(0,o.useMemo)((function(){return function(){p(),e&&r.length>0&&i.http.request({url:i.Endpoints.UserConnectionStatuses.url({}),method:i.Endpoints.UserConnectionStatuses.method,data:{users:r}}).then((function(e){return e.status>=300?Promise.reject(e):(n(Object.keys(e.data.connection_statuses).map((function(e){return parseInt(e)}))),y(Object.entries(e.data.connection_statuses).filter((function(e){return d(e,2)[1]===v})).map((function(e){var t=d(e,1)[0];return parseInt(t)}))),Promise.resolve(e.data))})).catch((function(e){a.Logger.error(u.SCOPE_SC_CORE,"Unable to refresh users followed by the authenticated user."),a.Logger.error(u.SCOPE_SC_CORE,e)}))}}),[h,e,r]),T=(0,o.useMemo)((function(){return function(e){return m(e.id),i.http.request({url:i.Endpoints.FollowUser.url({id:e.id}),method:i.Endpoints.FollowUser.method}).then((function(t){if(t.status>=300)return Promise.reject(t);n([e.id]);var r=h.includes(e.id);return y((function(t){return r?t.filter((function(t){return t!==e.id})):[e.id].concat(f(t))})),_(e.id),Promise.resolve(t)})).catch((function(t){return _(e.id),Promise.reject(t)}))}}),[h,g,r]),w=(0,o.useMemo)((function(){return function(e){var t=e.connection_status===v;return n([e.id]),y((function(r){return t?[].concat(f(r),[e.id]):r})),t}}),[h,r]),A=(0,o.useMemo)((function(){return function(e){if(r.includes(e.id))return Boolean(h.includes(e.id));if(O){if("connection_status"in e)return w(e);E(e)||function(e){m(e.id),i.http.request({url:i.Endpoints.CheckUserFollowed.url({id:e.id}),method:i.Endpoints.CheckUserFollowed.method}).then((function(t){return t.status>=300?Promise.reject(t):(n([e.id]),y((function(r){return t.data.is_followed?[].concat(f(r),[e.id]):r.filter((function(t){return t!==e.id}))})),_(e.id),Promise.resolve(t.data))}))}(e)}return!1}}),[h,g,r,O]);return(0,o.useEffect)((function(){O||p()}),[O]),b&&e?{followed:h,loading:g,isLoading:E,follow:T,isFollowed:A,refresh:C,emptyCache:p}:{followed:h,loading:g,isLoading:E}};var n,o=r(8156),i=r(7475),a=r(2137),u=r(3240),c=r(9723),s=r(4592),l=(n=r(4486))&&n.__esModule?n:{default:n};function f(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var v="followed"},5421:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=(0,c.default)(),r=t.cache,f=t.updateCache,p=t.emptyCache,h=t.data,v=t.setData,y=t.loading,g=t.setLoading,m=t.setUnLoading,_=t.isLoading,E=(0,a.useSCPreferences)(),S=u.CONFIGURATIONS_FOLLOW_ENABLED in E.preferences&&E.preferences[u.CONFIGURATIONS_FOLLOW_ENABLED].value,O=(0,n.useRef)(null),b=(0,n.useRef)(null),C=function(e,t){l.SCNotificationMapping[t.data.activity_type]===i.SCNotificationTypologyType.USER_FOLLOW?(f([t.data.follower.id]),h.includes(t.data.follower.id)||v((function(e){return[t.data.follower.id].concat(d(e))}))):l.SCNotificationMapping[t.data.activity_type]===i.SCNotificationTypologyType.USER_UNFOLLOW&&(f([t.data.unfollower.id]),h.includes(t.data.unfollower.id)&&v((function(e){return e.filter((function(e){return e!==t.data.unfollower.id}))})))};(0,n.useEffect)((function(){return O.current=s.default.subscribe("".concat(i.SCNotificationTopicType.INTERACTION,".").concat(i.SCNotificationTypologyType.USER_FOLLOW),C),b.current=s.default.subscribe("".concat(i.SCNotificationTopicType.INTERACTION,".").concat(i.SCNotificationTypologyType.USER_UNFOLLOW),C),function(){s.default.unsubscribe(O.current),s.default.unsubscribe(b.current)}}),[h.length,r.length]);var T=(0,n.useMemo)((function(){return function(e){return r.includes(e.id)?Boolean(h.includes(e.id)):(_(e)||function(e){g(e.id),o.http.request({url:o.Endpoints.CheckUserFollower.url({id:e.id}),method:o.Endpoints.CheckUserFollower.method}).then((function(t){return t.status>=300?Promise.reject(t):(f([e.id]),v((function(r){return t.data.is_follower?[].concat(d(r),[e.id]):r.filter((function(t){return t!==e.id}))})),m(e.id),Promise.resolve(t.data))}))}(e),!1)}}),[h,y,r]);return S&&e?{followers:h,loading:y,isLoading:_,isFollower:T,emptyCache:p}:{followers:h,loading:y,isLoading:_}};var n=r(8156),o=r(7475),i=r(9954),a=r(9723),u=r(4592),c=f(r(4486)),s=f(r(8641)),l=r(3973);function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},3897:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=void 0;var o=r(8156),i=r(7871),a=r(9723),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(4592));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var s=["places","geocoding","maps"];t.default=function(){var e=(0,a.useSCPreferences)().preferences,t=(0,o.useMemo)((function(){return e&&u.PROVIDERS_GOOGLE_GEOCODING_API_KEY in e?e[u.PROVIDERS_GOOGLE_GEOCODING_API_KEY].value:null}),[e]),r=(0,i.useLoadScript)({googleMapsApiKey:t,libraries:s});return{isLoaded:r.isLoaded,loadError:r.loadError,geocodingApiKey:t}}},145:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=function(e){var t=(0,u.default)(),r=t.cache,n=t.updateCache,v=t.emptyCache,m=t.data,S=t.setData,O=t.loading,b=t.setLoading,C=t.setUnLoading,T=t.isLoading,w=(0,l.useSCPreferences)(),A=w.preferences,R=w.features,P=e?e.id:null,L=(0,o.useMemo)((function(){return A&&R&&R.includes(a.SCFeatureName.COURSE)&&d.CONFIGURATIONS_COURSES_ENABLED in A&&A[d.CONFIGURATIONS_COURSES_ENABLED].value}),[A,R]),I=(0,o.useRef)(null),N=(0,o.useRef)(null);(0,p.useDeepCompareEffectNoCheck)((function(){return I.current=h.default.subscribe("".concat(a.SCNotificationTopicType.INTERACTION,".").concat(a.SCNotificationTypologyType.USER_INVITED_TO_JOIN_COURSE),j),N.current=h.default.subscribe("".concat(a.SCNotificationTopicType.INTERACTION,".").concat(a.SCNotificationTypologyType.USER_ADDED_TO_COURSE),j),function(){h.default.unsubscribe(I.current),h.default.unsubscribe(N.current)}}),[m]);var j=function(e,t){var r;if(void 0!==t.data.course){var o;switch(f.SCNotificationMapping[t.data.activity_type]){case a.SCNotificationTypologyType.USER_INVITED_TO_JOIN_COURSE:o=a.SCCourseJoinStatusType.INVITED;break;case a.SCNotificationTypologyType.USER_ADDED_TO_COURSE:o=t.data.notification_obj.course&&null!==(r=t.data.notification_obj.course.paywalls)&&void 0!==r&&r.length?a.SCCourseJoinStatusType.PAYMENT_WAITING:a.SCCourseJoinStatusType.JOINED}n([t.data.course]),S((function(e){return G(e,t.data.course,o)}))}},k=(0,o.useMemo)((function(){return function(){v(),e&&i.http.request({url:i.Endpoints.GetUserJoinedCourses.url({id:e.id}),method:i.Endpoints.GetUserJoinedCourses.method}).then((function(e){if(e.status>=300)return Promise.reject(e);var t=e.data.results.map((function(e){return e.id}));return n(t),S(e.data.results.map((function(e){return E({},e.id,e.join_status)}))),Promise.resolve(e.data)})).catch((function(e){s.Logger.error(c.SCOPE_SC_CORE,"Unable to refresh the authenticated user courses."),s.Logger.error(c.SCOPE_SC_CORE,e)}))}}),[m,e,r]),U=(0,o.useMemo)((function(){return function(){var e=_(g().mark((function e(t){var r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(t.id),e.next=3,i.http.request({url:i.Endpoints.JoinOrAcceptInviteToCourse.url({id:t.id}),method:i.Endpoints.JoinOrAcceptInviteToCourse.method});case 3:if(!((r=e.sent).status>=300)){e.next=6;break}return e.abrupt("return",Promise.reject(r));case 6:return n([t.id]),S((function(e){return G(e,t.id,t.privacy===a.SCCoursePrivacyType.PRIVATE&&t.join_status!==a.SCCourseJoinStatusType.INVITED?a.SCCourseJoinStatusType.REQUESTED:a.SCCourseJoinStatusType.JOINED)})),C(t.id),e.next=11,Promise.resolve(r.data);case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),[m,O,r]),x=(0,o.useMemo)((function(){return function(){var e=_(g().mark((function e(t){var r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m[t.id]===a.SCCourseJoinStatusType.REQUESTED){e.next=13;break}return b(t.id),e.next=4,i.http.request({url:i.Endpoints.LeaveOrRemoveCourseRequest.url({id:t.id}),method:i.Endpoints.LeaveOrRemoveCourseRequest.method});case 4:if(!((r=e.sent).status>=300)){e.next=7;break}return e.abrupt("return",Promise.reject(r));case 7:return n([t.id]),S((function(e){return G(e,t.id,null)})),C(t.id),e.next=12,Promise.resolve(r.data);case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),[m,O,r]),G=function(e,t,r){var n;return e.findIndex((function(e){return parseInt(Object.keys(e)[0])===t}))<0?[].concat(function(e){if(Array.isArray(e))return y(e)}(n=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[E({},t,r)]):e.map((function(n,o){return parseInt(Object.keys(n)[0])===t?E({},Object.keys(n)[0],r):E({},Object.keys(n)[0],e[o][Object.keys(n)[0]])}))},D=(0,o.useMemo)((function(){return function(e){var t=m.filter((function(t){return parseInt(Object.keys(t)[0])===e.id}));return t.length?t[0][e.id]:m.length?null:e.join_status}}),[m]),M=(0,o.useMemo)((function(){return function(e){return n([e.id]),S((function(t){return G(t,e.id,e.join_status)})),e.join_status}}),[m,r]),F=(0,o.useMemo)((function(){return function(e){if(r.includes(e.id))return D(e);if(P&&e){if("join_status"in e)return M(e);T(e)||function(e){b(e.id),i.http.request({url:i.Endpoints.GetCourseStatus.url({id:e.id}),method:i.Endpoints.GetCourseStatus.method}).then((function(t){return t.status>=300?Promise.reject(t):(S((function(r){return G(r,e.id,t.data.status)})),n([e.id]),C(e.id),Promise.resolve(t.data))})).catch((function(t){return C(e.id),Promise.reject(t)}))}(e)}return null}}),[O,r,P,M,D]);return(0,o.useEffect)((function(){P||v()}),[P]),L&&e?{courses:m,loading:O,isLoading:T,join:U,leave:x,joinStatus:F,refresh:k,emptyCache:v}:{courses:m,loading:O,isLoading:T}};var o=r(8156),i=r(7475),a=r(9954),u=v(r(4486)),c=r(3240),s=r(2137),l=r(9723),f=r(3973),d=r(4592),p=r(4537),h=v(r(8641));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function g(){g=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function d(){}function p(){}function h(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(w([])));m&&m!==t&&r.call(m,i)&&(v=m);var _=h.prototype=d.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function o(i,a,u,c){var s=l(e[i],e,a);if("throw"!==s.type){var f=s.arg,d=f.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,u,c)}),(function(e){o("throw",e,u,c)})):t.resolve(d).then((function(e){f.value=e,u(f)}),(function(e){return o("throw",e,u,c)}))}c(s.arg)}var i;this._invoke=function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return p.prototype=h,c(_,"constructor",h),c(h,"constructor",p),p.displayName=c(h,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},E(S.prototype),c(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),c(_,u,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function m(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){m(i,n,o,a,u,"next",e)}function u(e){m(i,n,o,a,u,"throw",e)}a(void 0)}))}}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},8223:(e,t,r)=>{t.__esModule=!0,t.default=function(){return{handleMediaClick:function(e){n.http.request({url:n.Endpoints.MediaClickTracker.url({id:e.id}),method:n.Endpoints.MediaClickTracker.method}).catch((function(e){o.Logger.error(i.SCOPE_SC_CORE,e)}))}}};var n=r(7475),o=r(2137),i=r(3240)},5126:(e,t,r)=>{t.__esModule=!0,t.default=function(){var e=(0,o.useSCContext)(),t=(0,i.useSCUser)(),r=h((0,n.useState)(null),2),f=r[0],p=r[1],v=h((0,n.useState)(!1),2),y=v[0],g=v[1],m=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t?c.Endpoints.DeleteDevice.url({type:e.notification_service,id:e.registration_id}):c.Endpoints.NewDevice.url({type:e.notification_service}),n=t?c.Endpoints.DeleteDevice.method:c.Endpoints.NewDevice.method;return g(!0),c.http.request(d({url:r,method:n},t?{}:{data:d({registration_id:e.registration_id,cloud_message_type:e.notification_service.toUpperCase(),name:"".concat(e.platform," device")},e.device_id?{device_id:e.device_id}:{})})).then((function(e){return e.status>=300?Promise.reject(e):(g(!1),Promise.resolve(e.data))})).catch((function(e){return g(!1),Promise.reject(e)}))},_=function(){f&&!y&&(a.Logger.info(u.SCOPE_SC_CORE,"Mobile native notification is disabled. Unregister the device."),m(f,!0).then((function(e){p(null),a.Logger.info(u.SCOPE_SC_CORE,"Device unregistration successful. Your device will not be able to receive mobile push notifications.")})).catch((function(){p(null)})))};return(0,n.useEffect)((function(){if(t.user&&(0,l.isMobileNativeNotificationEnabled)()&&!e.settings.notifications.mobileNativePushMessaging.disable){var r=window&&window[s.PLATFORM_KEY]&&s.PLATFORMS.includes(window[s.PLATFORM_KEY])&&window[s.REGISTRATION_ID_KEY]&&window[s.NOTIFICATION_SERVICE_KEY]&&s.NOTIFICATIONS_SERVICES.includes(window[s.NOTIFICATION_SERVICE_KEY])?d({platform:window[s.PLATFORM_KEY],registration_id:window[s.REGISTRATION_ID_KEY],notification_service:window[s.NOTIFICATION_SERVICE_KEY]},window[s.DEVICE_ID_KEY]?{device_id:window[s.DEVICE_ID_KEY]}:{}):a.LocalStorageDB.checkifSupport()&&a.LocalStorageDB.get(s.PLATFORM_KEY)&&s.PLATFORMS.includes(a.LocalStorageDB.get(s.PLATFORM_KEY))&&a.LocalStorageDB.get(s.REGISTRATION_ID_KEY)&&a.LocalStorageDB.get(s.NOTIFICATION_SERVICE_KEY)&&s.NOTIFICATIONS_SERVICES.includes(a.LocalStorageDB.get(s.NOTIFICATION_SERVICE_KEY))?d({platform:a.LocalStorageDB.get(s.PLATFORM_KEY),registration_id:a.LocalStorageDB.get(s.REGISTRATION_ID_KEY),notification_service:a.LocalStorageDB.get(s.NOTIFICATION_SERVICE_KEY)},window[s.DEVICE_ID_KEY]?{device_id:window[s.DEVICE_ID_KEY]}:{}):null;(n=r)&&n.registration_id&&(n.platform===s.PLATFORM.ANDROID&&(n.notification_service===s.ANDROID_PUSH_NOTIFICATION_GCM_DEVICE_TYPE||n.notification_service===s.ANDROID_PUSH_NOTIFICATION_FCM_DEVICE_TYPE)||n.platform===s.PLATFORM.IOS&&(n.notification_service===s.IOS_PUSH_NOTIFICATION_IOS_DEVICE_TYPE||n.notification_service===s.ANDROID_PUSH_NOTIFICATION_FCM_DEVICE_TYPE))?f&&(!f||f.registration_id===r.registration_id)||y||(a.Logger.info(u.SCOPE_SC_CORE,"Mobile native notification is enabled. Checking and validate data..."),a.Logger.info(u.SCOPE_SC_CORE,"Data is valid to register the device for receive mobile push notification."),m(r).then((function(e){p(d(d({},r),{},{id:e.id})),a.Logger.info(u.SCOPE_SC_CORE,"Device registration successful. Your device will now be able to receive mobile push notifications.")}))):(a.Logger.warn(u.SCOPE_SC_CORE,"Invalid data. Unable to register the device for native push notification."),_())}else _();var n})),{mnpmInstance:f,setMnpmInstance:p}};var n=r(8156),o=r(9082),i=r(4702),a=r(2137),u=r(3240),c=r(7475),s=r(4357),l=r(149);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},7286:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.default=function(){var e=(0,a.useSCPreferences)(),t=e.preferences,r=e.features;return{isPaymentsEnabled:(0,o.useMemo)((function(){return t&&r&&r.includes(i.SCFeatureName.PAYMENTS)&&u.CONFIGURATIONS_PAYMENTS_ENABLED in t&&t[u.CONFIGURATIONS_PAYMENTS_ENABLED].value}),[t]),stripePublicKey:(0,o.useMemo)((function(){return t&&u.STATIC_STRIPE_PUBLIC_KEY in t&&t[u.STATIC_STRIPE_PUBLIC_KEY].value}),[t]),stripeConnectedAccountId:(0,o.useMemo)((function(){return t&&u.CONFIGURATIONS_STRIPE_CONNECTED_ACCOUNT_ID in t&&t[u.CONFIGURATIONS_STRIPE_CONNECTED_ACCOUNT_ID].value}),[t])}};var o=r(8156),i=r(9954),a=r(9723),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(4592));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}},2985:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=c((0,n.useState)(null),2),r=t[0],s=t[1],l=c((0,n.useState)(!1),2),f=l[0],d=l[1],p=(0,n.useMemo)((function(){return function(){e&&(d(!0),o.http.request({url:o.Endpoints.UserSettings.url({id:e.id}),method:o.Endpoints.UserSettings.method}).then((function(e){s(e.data),d(!1)})).catch((function(e){i.Logger.error(a.SCOPE_SC_CORE,"Unable to load user settings."),i.Logger.error(a.SCOPE_SC_CORE,e)})))}}),[e,r]),h=(0,n.useMemo)((function(){return function(){return f}}),[f]),v=(0,n.useMemo)((function(){return function(e){return r&&e in r?r[e]:null}}),[r]),y=(0,n.useMemo)((function(){return function(){return r}}),[r]),g=(0,n.useMemo)((function(){return function(t,n){return r&&t in r?o.http.request({url:o.Endpoints.UserSettingsPatch.url({id:e.id}),method:o.Endpoints.UserSettingsPatch.method,data:u({},t,n)}).then((function(e){var o=Object.assign({},r,u({},t,n));return s(o),Promise.resolve(o)})).catch((function(e){console.log(e)})):Promise.reject()}}),[r]);return(0,n.useEffect)((function(){p()}),[e]),{update:g,get:v,all:y,isLoading:h,refresh:p}};var n=r(8156),o=r(7475),i=r(2137),a=r(3240);function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},6336:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=(0,h.default)(),r=t.cache,v=t.updateCache,m=t.emptyCache,_=t.data,E=t.setData,S=t.loading,O=t.setLoading,b=t.setUnLoading,C=t.isLoading,T=(0,s.useSCPreferences)(),w=T.preferences,A=T.features,R=e?e.id:null,P=(0,u.useMemo)((function(){return w&&A&&A.includes(o.SCFeatureName.TAGGING)&&d.CONFIGURATIONS_EVENTS_ENABLED in w&&w[d.CONFIGURATIONS_EVENTS_ENABLED].value}),[w,A]),L=(0,u.useRef)(null),I=(0,u.useRef)(null);(0,c.useDeepCompareEffectNoCheck)((function(){return L.current=a.default.subscribe("".concat(o.SCNotificationTopicType.INTERACTION,".").concat(o.SCNotificationTypologyType.USER_INVITED_TO_JOIN_EVENT),N),I.current=a.default.subscribe("".concat(o.SCNotificationTopicType.INTERACTION,".").concat(o.SCNotificationTypologyType.USER_ADDED_TO_EVENT),N),function(){a.default.unsubscribe(L.current),a.default.unsubscribe(I.current)}}),[_]);var N=function(e,t){if(void 0!==t.data.event){var r;switch(f.SCNotificationMapping[t.data.activity_type]){case o.SCNotificationTypologyType.USER_INVITED_TO_JOIN_EVENT:r=o.SCEventSubscriptionStatusType.INVITED;break;case o.SCNotificationTypologyType.USER_ADDED_TO_EVENT:r=o.SCEventSubscriptionStatusType.SUBSCRIBED}v([t.data.event]),E((function(e){return x(e,t.data.event,r)}))}},j=(0,u.useMemo)((function(){return function(){m(),e&&n.http.request({url:n.Endpoints.GetUserSubscribedEvents.url({id:e.id}),method:n.Endpoints.GetUserSubscribedEvents.method}).then((function(e){if(e.status>=300)return Promise.reject(e);var t=e.data.results.map((function(e){return e.id}));return v(t),E(e.data.results.map((function(e){return g({},e.id,e.subscription_status)}))),Promise.resolve(e.data)})).catch((function(e){i.Logger.error(l.SCOPE_SC_CORE,"Unable to refresh the authenticated user events."),i.Logger.error(l.SCOPE_SC_CORE,e)}))}}),[_,e,r]),k=(0,u.useMemo)((function(){return function(e){O(e.id);var t=e.subscription_status&&e.subscription_status!==o.SCEventSubscriptionStatusType.INVITED?e.subscription_status===o.SCEventSubscriptionStatusType.GOING?{url:n.Endpoints.RemoveGoingToEvent.url({id:e.id}),method:n.Endpoints.RemoveGoingToEvent.method}:{url:n.Endpoints.GoToEvent.url({id:e.id}),method:n.Endpoints.GoToEvent.method}:{url:n.Endpoints.SubscribeToEvent.url({id:e.id}),method:n.Endpoints.SubscribeToEvent.method};return n.http.request(t).then((function(t){if(t.status>=300)return Promise.reject(t);var r=(0,p.getEventStatus)(e,!0);return e.subscription_status===o.SCEventSubscriptionStatusType.NOT_GOING&&(r=(0,p.getEventStatus)(Object.assign({},e,{subscription_status:o.SCEventSubscriptionStatusType.SUBSCRIBED}),!0)),E((function(t){return x(t,e.id,r)})),v([e.id]),b(e.id),Promise.resolve(Object.assign({},e,{subscription_status:r}))}))}}),[_,S,r]),U=(0,u.useMemo)((function(){return function(e){if(e.subscription_status!==o.SCEventSubscriptionStatusType.REQUESTED){O(e.id);var t=e.subscription_status===o.SCEventSubscriptionStatusType.NOT_GOING?{url:n.Endpoints.RemoveNotGoingToEvent.url({id:e.id}),method:n.Endpoints.RemoveNotGoingToEvent.method}:{url:n.Endpoints.NotGoingToEvent.url({id:e.id}),method:n.Endpoints.NotGoingToEvent.method};return n.http.request(t).then((function(t){if(t.status>=300)return Promise.reject(t);var r=(0,p.getEventStatus)(e,!1);return e.subscription_status===o.SCEventSubscriptionStatusType.GOING&&(r=(0,p.getEventStatus)(Object.assign({},e,{subscription_status:o.SCEventSubscriptionStatusType.SUBSCRIBED}),!1)),E((function(t){return x(t,e.id,r)})),v([e.id]),b(e.id),Promise.resolve(Object.assign({},e,{subscription_status:r}))}))}return O(e.id),n.http.request({url:n.Endpoints.UnsubscribeFromEvent.url({id:e.id}),method:n.Endpoints.UnsubscribeFromEvent.method}).then((function(t){return t.status>=300?Promise.reject(t):(v([e.id]),E((function(t){return x(t,e.id,null)})),b(e.id),Promise.resolve(Object.assign({},e,{subscription_status:null})))}))}}),[_,S,r]),x=function(e,t,r){var n;return e.findIndex((function(e){return parseInt(Object.keys(e)[0])===t}))<0?[].concat(function(e){if(Array.isArray(e))return y(e)}(n=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[g({},t,r)]):e.map((function(n,o){return parseInt(Object.keys(n)[0])===t?g({},Object.keys(n)[0],r):g({},Object.keys(n)[0],e[o][Object.keys(n)[0]])}))},G=(0,u.useMemo)((function(){return function(e){var t=_.filter((function(t){return parseInt(Object.keys(t)[0])===e.id}));return t.length?t[0][e.id]:_.length?null:e.subscription_status}}),[_]),D=(0,u.useMemo)((function(){return function(e){return v([e.id]),E((function(t){return x(t,e.id,e.subscription_status)})),e.subscription_status}}),[_,r]),M=(0,u.useMemo)((function(){return function(e){if(r.includes(null==e?void 0:e.id))return G(e);if(R&&e){if("subscription_status"in e)return D(e);C(e)||function(e){O(e.id),n.http.request({url:n.Endpoints.GetEventSubscriptionStatus.url({id:e.id}),method:n.Endpoints.GetEventSubscriptionStatus.method}).then((function(t){return t.status>=300?Promise.reject(t):(E((function(r){return x(r,e.id,t.data.status)})),v([e.id]),b(e.id),Promise.resolve(t.data))})).catch((function(t){return b(e.id),Promise.reject(t)}))}(e)}return null}}),[S,r,R,D,G]);return(0,u.useEffect)((function(){R||m()}),[R]),P&&e?{events:_,loading:S,isLoading:C,toggleEventAttendance:k,toggleEventNonattendance:U,subscriptionStatus:M,refresh:j,emptyCache:m}:{events:_,loading:S,isLoading:C}};var n=r(7475),o=r(9954),i=r(2137),a=v(r(8641)),u=r(8156),c=r(4537),s=r(9723),l=r(3240),f=r(3973),d=r(4592),p=r(3536),h=v(r(4486));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},8793:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=(0,a.default)(),r=t.cache,h=t.updateCache,g=t.emptyCache,m=t.data,_=t.setData,E=t.loading,S=t.setLoading,O=t.setUnLoading,b=t.isLoading,C=(0,s.useSCPreferences)(),T=C.preferences,w=C.features,A=e?e.id:null,R=(0,n.useMemo)((function(){return T&&w&&w.includes(i.SCFeatureName.TAGGING)&&w.includes(i.SCFeatureName.GROUPING)&&f.CONFIGURATIONS_GROUPS_ENABLED in T&&T[f.CONFIGURATIONS_GROUPS_ENABLED].value}),[T,w]),P=(0,n.useRef)(null),L=(0,n.useRef)(null);(0,d.useDeepCompareEffectNoCheck)((function(){return P.current=p.default.subscribe("".concat(i.SCNotificationTopicType.INTERACTION,".").concat(i.SCNotificationTypologyType.USER_INVITED_TO_JOIN_GROUP),I),L.current=p.default.subscribe("".concat(i.SCNotificationTopicType.INTERACTION,".").concat(i.SCNotificationTypologyType.USER_ADDED_TO_GROUP),I),function(){p.default.unsubscribe(P.current),p.default.unsubscribe(L.current)}}),[m]);var I=function(e,t){var r;if(void 0!==t.data.group){var n;switch(l.SCNotificationMapping[t.data.activity_type]){case i.SCNotificationTypologyType.USER_INVITED_TO_JOIN_GROUP:n=i.SCGroupSubscriptionStatusType.INVITED;break;case i.SCNotificationTypologyType.USER_ADDED_TO_GROUP:n=t.data.notification_obj.group&&null!==(r=t.data.notification_obj.group.paywalls)&&void 0!==r&&r.length?i.SCGroupSubscriptionStatusType.PAYMENT_WAITING:i.SCGroupSubscriptionStatusType.SUBSCRIBED}h([t.data.group]),_((function(e){return U(e,t.data.group,n)}))}},N=(0,n.useMemo)((function(){return function(){g(),e&&o.http.request({url:o.Endpoints.GetUserSubscribedGroups.url({id:e.id}),method:o.Endpoints.GetUserSubscribedGroups.method}).then((function(e){if(e.status>=300)return Promise.reject(e);var t=e.data.results.map((function(e){return e.id}));return h(t),_(e.data.results.map((function(e){return y({},e.id,e.subscription_status)}))),Promise.resolve(e.data)})).catch((function(e){c.Logger.error(u.SCOPE_SC_CORE,"Unable to refresh the authenticated user groups."),c.Logger.error(u.SCOPE_SC_CORE,e)}))}}),[m,e,r]),j=(0,n.useMemo)((function(){return function(e){return S(e.id),o.http.request({url:o.Endpoints.SubscribeToGroup.url({id:e.id}),method:o.Endpoints.SubscribeToGroup.method}).then((function(t){return t.status>=300?Promise.reject(t):(h([e.id]),_((function(t){return U(t,e.id,e.privacy===i.SCGroupPrivacyType.PRIVATE&&e.subscription_status!==i.SCGroupSubscriptionStatusType.INVITED?i.SCGroupSubscriptionStatusType.REQUESTED:i.SCGroupSubscriptionStatusType.SUBSCRIBED)})),O(e.id),Promise.resolve(t.data))}))}}),[m,E,r]),k=(0,n.useMemo)((function(){return function(e){if(m[e.id]!==i.SCGroupSubscriptionStatusType.REQUESTED)return S(e.id),o.http.request({url:o.Endpoints.UnsubscribeFromGroup.url({id:e.id}),method:o.Endpoints.UnsubscribeFromGroup.method}).then((function(t){return t.status>=300?Promise.reject(t):(h([e.id]),_((function(t){return U(t,e.id,null)})),O(e.id),Promise.resolve(t.data))}))}}),[m,E,r]),U=function(e,t,r){var n;return e.findIndex((function(e){return parseInt(Object.keys(e)[0])===t}))<0?[].concat(function(e){if(Array.isArray(e))return v(e)}(n=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[y({},t,r)]):e.map((function(n,o){return parseInt(Object.keys(n)[0])===t?y({},Object.keys(n)[0],r):y({},Object.keys(n)[0],e[o][Object.keys(n)[0]])}))},x=(0,n.useMemo)((function(){return function(e){var t=m.filter((function(t){return parseInt(Object.keys(t)[0])===e.id}));return t.length?t[0][e.id]:m.length?null:e.subscription_status}}),[m]),G=(0,n.useMemo)((function(){return function(e){return h([e.id]),_((function(t){return U(t,e.id,e.subscription_status)})),e.subscription_status}}),[m,r]),D=(0,n.useMemo)((function(){return function(e){if(r.includes(e.id))return x(e);if(A&&e){if("subscription_status"in e)return G(e);b(e)||function(e){S(e.id),o.http.request({url:o.Endpoints.GetGroupSubscriptionStatus.url({id:e.id}),method:o.Endpoints.GetGroupSubscriptionStatus.method}).then((function(t){return t.status>=300?Promise.reject(t):(_((function(r){return U(r,e.id,t.data.status)})),h([e.id]),O(e.id),Promise.resolve(t.data))})).catch((function(t){return O(e.id),Promise.reject(t)}))}(e)}return null}}),[E,r,A,G,x]);return(0,n.useEffect)((function(){A||g()}),[A]),R&&e?{groups:m,loading:E,isLoading:b,subscribe:j,unsubscribe:k,subscriptionStatus:D,refresh:N,emptyCache:g}:{groups:m,loading:E,isLoading:b}};var n=r(8156),o=r(7475),i=r(9954),a=h(r(4486)),u=r(3240),c=r(2137),s=r(9723),l=r(3973),f=r(4592),d=r(4537),p=h(r(8641));function h(e){return e&&e.__esModule?e:{default:e}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},1776:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=(0,c.default)(),r=t.cache,n=t.updateCache,l=t.emptyCache,f=t.data,d=t.setData,p=t.loading,h=t.setLoading,v=t.setUnLoading,y=t.isLoading,g=e?e.id:null,m=(0,o.useMemo)((function(){return function(){l(),e&&i.http.request({url:i.Endpoints.GetAllIncubators.url({}),method:i.Endpoints.GetAllIncubators.method}).then((function(e){if(e.status>=300)return Promise.reject(e);var t=e.data.results.map((function(e){return e.id}));return n(t),d(t),Promise.resolve(e.data)})).catch((function(e){a.Logger.error(u.SCOPE_SC_CORE,"Unable to refresh incubators subscribed by the authenticated user."),a.Logger.error(u.SCOPE_SC_CORE,e)}))}}),[f,e,r]),_=(0,o.useMemo)((function(){return function(e){return h(e.id),i.http.request({url:i.Endpoints.SubscribeToIncubator.url({id:e.id}),method:i.Endpoints.SubscribeToIncubator.method}).then((function(t){if(t.status>=300)return Promise.reject(t);n([e.id]);var r=f.includes(e.id);return d((function(t){return r?t.filter((function(t){return t!==e.id})):[e.id].concat(s(t))})),v(e.id),Promise.resolve(t.data)}))}}),[f,p,r]),E=(0,o.useMemo)((function(){return function(e){var t=e.subscribed||!1;return n([e.id]),d((function(r){return t?[].concat(s(r),[e.id]):r})),t}}),[f,r]),S=(0,o.useMemo)((function(){return function(e){if(r.includes(e.id))return Boolean(f.includes(e.id));if(g){if("subscribed"in e)return E(e);y(e)||function(e){h(e.id),i.http.request({url:i.Endpoints.CheckIncubatorSubscription.url({id:e.id}),method:i.Endpoints.CheckIncubatorSubscription.method}).then((function(t){return t.status>=300?Promise.reject(t):(n([e.id]),d((function(r){return t.data.subscribed?[].concat(s(r),[e.id]):r.filter((function(t){return t!==e.id}))})),v(e.id),Promise.resolve(t.data))}))}(e)}return!1}}),[f,p,r,g]);return(0,o.useEffect)((function(){g||l()}),[g]),e?{incubators:f,loading:p,isLoading:y,subscribe:_,isSubscribed:S,refresh:m,emptyCache:l}:{incubators:f,loading:p,isLoading:y}};var n,o=r(8156),i=r(7475),a=r(2137),u=r(3240),c=(n=r(4486))&&n.__esModule?n:{default:n};function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},6874:(e,t,r)=>{t.__esModule=!0,t.default=function(e){var t=(0,a.useSCUser)(),r=(0,i.default)({user:e}),n=r.blockedBy,u=r.loading;return{blocked:!(0,o.useMemo)((function(){return t.user&&e.id===t.user.id}),[t.user,e])&&e&&Boolean(t.user&&t.managers.blockedUsers.isBlocked(e)||n),loading:t.user&&(t.managers.blockedUsers.isLoading()||u)}};var n,o=r(8156),i=(n=r(494))&&n.__esModule?n:{default:n},a=r(4702)},3926:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.SUPPORTED_BROWSER_TYPES=t.OPERA_BROWSER_TYPE=t.FIREFOX_BROWSER_TYPE=t.EDGE_BROWSER_TYPE=t.DEFAULT_BROWSER_TYPE=t.CHROME_BROWSER_TYPE=void 0,t.default=function(){var e,t=(0,a.useSCContext)(),r=(0,u.useSCUser)(),n=(0,i.useContext)(p.SCPreferencesContext),o=(0,m.useIntl)(),E=(0,h.useSnackbar)(),S=E.enqueueSnackbar,T=E.closeSnackbar,w=(2,function(e){if(Array.isArray(e))return e}(e=(0,i.useState)(null))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e)||function(e,t){if(e){if("string"==typeof e)return C(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),A=w[0],R=w[1],I=(0,i.useRef)(0),N=void 0!==t.settings.notifications.webPushMessaging.applicationServerKey?t.settings.notifications.webPushMessaging.applicationServerKey:v.PROVIDERS_WEB_PUSH_PUBLIC_KEY in n.preferences?n.preferences[v.PROVIDERS_WEB_PUSH_PUBLIC_KEY].value:null,j=!(!(v.PROVIDERS_WEB_PUSH_ENABLED in n.preferences)||!n.preferences[v.PROVIDERS_WEB_PUSH_ENABLED].value)&&n.preferences[v.PROVIDERS_WEB_PUSH_ENABLED].value,k=function(e){e&&(T(e),g.default.set(y.NOTIFICATIONS_WEB_PUSH_MESSAGING_DIALOG_COOKIE,"1",{expires:1}))},U=function(e){return L.indexOf(e.name)<0?P:e.name},x=function(e,t){if(L.indexOf(e.name)<0)return t.endpoint;try{var r=t.endpoint.split("/");return r[r.length-1]}catch(e){return t.endpoint}},G=function(e,t){var n=(0,c.loadVersionBrowser)();return function(e,t){var r=t?f.Endpoints.DeleteDevice.url({type:d.WEB_PUSH_NOTIFICATION_DEVICE_TYPE,id:e.registration_id}):f.Endpoints.NewDevice.url({type:d.WEB_PUSH_NOTIFICATION_DEVICE_TYPE}),n=t?f.Endpoints.DeleteDevice.method:f.Endpoints.NewDevice.method;return f.http.request(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({url:r,method:n},t?{}:{data:e})).then((function(e){return e.status>=300?Promise.reject(e):Promise.resolve(e.data)}))}({browser:U(n).toUpperCase(),p256dh:btoa(String.fromCharCode.apply(null,new Uint8Array(e.getKey("p256dh")))),auth:btoa(String.fromCharCode.apply(null,new Uint8Array(e.getKey("auth")))),user:r.user?r.user.username:"",registration_id:x(n,e)},t).then((function(e){t?R(null):(c.Logger.info(l.SCOPE_SC_CORE,"Web Push Notifications subscription created successfully"),R(e))})).catch((function(e){c.Logger.error(l.SCOPE_SC_CORE,e)}))},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;navigator.serviceWorker.ready.then((function(t){t&&t.pushManager.getSubscription().then((function(t){t&&t.unsubscribe().then((function(){c.Logger.info(l.SCOPE_SC_CORE,"Unsubscription successfully"),G(t,!0).then((function(){e&&e()}))})).catch((function(e){c.Logger.info(l.SCOPE_SC_CORE,"Error on removing web push notification subscription."),console.log(e)}))})).catch((function(e){c.Logger.info(l.SCOPE_SC_CORE,"Error thrown while unsubscribing from push messaging. ".concat(e))}))}))},M=function(){navigator.serviceWorker.getRegistration().then((function(e){e?e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:(0,c.urlB64ToUint8Array)(N)}).then((function(e){e?G(e,!1):c.Logger.info(l.SCOPE_SC_CORE,"We aren’t subscribed to push.")})).catch((function(e){console.log(e),"denied"===Notification.permission?c.Logger.info(l.SCOPE_SC_CORE,"Permission for Web Push Notifications was denied"):(I.current+=1,c.Logger.info(l.SCOPE_SC_CORE,"Unable to subscribe(".concat(I.current,") to push. ").concat(e)),I.current<3?D((function(){return M()})):c.Logger.info(l.SCOPE_SC_CORE,"Unable to subscribe to Web Push Notification. ".concat(e)))})):c.Logger.info(l.SCOPE_SC_CORE,"To receive Web Push Notifications the service worker must be registered.")}))},F=function(e){"granted"!==Notification.permission&&Notification.requestPermission().then((function(e){"granted"===e?navigator.serviceWorker.ready.then((function(e){e.pushManager.getSubscription().then((function(e){e?G(e,!1):M()})).catch((function(e){c.Logger.info(l.SCOPE_SC_CORE,"Error during getSubscription()"),console.log(e)}))})):c.Logger.info(l.SCOPE_SC_CORE,"Permission for Notifications was denied")})).catch((function(e){console.log(e),c.Logger.info(l.SCOPE_SC_CORE,"Request web push permission by a user generated gesture")})),k(e)};return(0,i.useEffect)((function(){!A&&r.user&&((0,_.isWebPushMessagingEnabled)()?!j||t.settings.notifications.webPushMessaging.disableToastMessage?c.Logger.warn(l.SCOPE_SC_CORE,"This instance is not configured to support web push notifications or they have been disabled."):N?(c.Logger.info(l.SCOPE_SC_CORE,"Initialize web push notification."),"undefined"!=typeof ServiceWorkerRegistration?"PushManager"in window&&"serviceWorker"in navigator&&"Notification"in window?"denied"!==Notification.permission?"default"===Notification.permission?(c.Logger.info(l.SCOPE_SC_CORE,"Request permission"),navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")?g.default.get(y.NOTIFICATIONS_WEB_PUSH_MESSAGING_DIALOG_COOKIE)?c.Logger.info(l.SCOPE_SC_CORE,"Skip show the dialog to request Web Push Notifications grant permission"):S(o.formatMessage({id:"ui.webPushNotification.requestPermission",defaultMessage:"ui.webPushNotification.requestPermission"}),{action:function(e){return i.default.createElement(i.default.Fragment,null,i.default.createElement(s.Button,{size:"small",sx:{color:"#FFF"},onClick:function(){return F(e)}},o.formatMessage({id:"ui.webPushNotification.allow",defaultMessage:"ui.webPushNotification.allow"})),i.default.createElement(s.Button,{size:"small",sx:{color:"#FFF"},onClick:function(){return k(e)}},o.formatMessage({id:"ui.webPushNotification.block",defaultMessage:"ui.webPushNotification.block"})))},variant:"default",anchorOrigin:{horizontal:"center",vertical:"bottom"},preventDuplicate:!0}):F(null)):"granted"===Notification.permission&&M():c.Logger.info(l.SCOPE_SC_CORE,"The user has blocked Web Push Notifications."):c.Logger.info(l.SCOPE_SC_CORE,"Service Worker or Push messaging aren't supported."):c.Logger.info(l.SCOPE_SC_CORE,"Notifications aren't supported.")):c.Logger.warn(l.SCOPE_SC_CORE,"Invalid or missing applicationServerKey. Check the configuration that is passed to the SCContextProvider."):c.Logger.warn(l.SCOPE_SC_CORE,"Mobile native notifications replace web push messages with this settings.")),r.user&&(0,_.isWebPushMessagingEnabled)()||!A||D((function(){navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")&&g.default.remove(y.NOTIFICATIONS_WEB_PUSH_MESSAGING_DIALOG_COOKIE)}))}),[r.user,t.settings.notifications.webPushMessaging,A]),{wpSubscription:A,requestNotificationPermission:F}};var o,i=S(r(8156)),a=r(9082),u=r(4702),c=r(2137),s=r(901),l=r(3240),f=r(7475),d=r(4357),p=r(9723),h=r(4584),v=S(r(4592)),y=r(6506),g=(o=r(602))&&o.__esModule?o:{default:o},m=r(9767),_=r(149);function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(E=function(e){return e?r:t})(e)}function S(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=E(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var T="chrome";t.CHROME_BROWSER_TYPE=T;var w="firefox";t.FIREFOX_BROWSER_TYPE=w;var A="opera";t.OPERA_BROWSER_TYPE=A;var R="edge";t.EDGE_BROWSER_TYPE=R;var P=T;t.DEFAULT_BROWSER_TYPE=P;var L=[T,w,A,R];t.SUPPORTED_BROWSER_TYPES=L},3808:(e,t,r)=>{t.__esModule=!0,t.default=function(){var e,t=(0,a.useSCContext)(),r=(0,u.useSCUser)(),n=(2,function(e){if(Array.isArray(e))return e}(e=(0,o.useState)(null))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=n[0],h=n[1],v=t.settings.notifications.webSocket.secure||!("secure"in t.settings.notifications.webSocket)?l.WS_PROTOCOL_SECURE:l.WS_PROTOCOL_INSECURE,y=t.settings.notifications.webSocket.prefixPath||l.WS_PREFIX_PATH,g="".concat(v,"://").concat(new URL(t.settings.portal).hostname,"/").concat(y,"/").concat(l.WS_FACILITY_NOTIFY,"?subscribe-user"),m=t.settings.session.authToken&&t.settings.session.authToken.accessToken?"".concat(l.WS_SUB_PROTOCOL_PREFIX).concat(t.settings.session.authToken.accessToken):null,_=function(){p&&p.close()};(0,o.useEffect)((function(){r.user&&!p&&g&&m&&(h(c.WSClient.getInstance({uri:g,heartbeatMsg:l.WS_HEARTBEAT_MESSAGE,protocols:[m],receiveMessage:E})),window.addEventListener("beforeunload",_)),!r.user&&p&&(window.removeEventListener("beforeunload",_),p&&p.close())}),[r.user]);var E=function(e){var t=JSON.parse(e);t&&t.type&&s.SCNotificationTopics.includes(t.type)&&(t.type===i.SCNotificationTopicType.INTERACTION?(t.data.activity_type===i.SCNotificationTypologyType.NOTIFICATION_BANNER?f.default.publish("".concat(t.type,".").concat(i.SCNotificationTypologyType.NOTIFICATION_BANNER),t):s.SCNotificationMapping[t.data.activity_type]&&f.default.publish("".concat(t.type,".").concat(s.SCNotificationMapping[t.data.activity_type]),t),S(t.data)):f.default.publish("".concat(t.type),t))},S=function(e){var t=0;void 0!==e.count_interactions&&(t=e.count_interactions),void 0!==e.count_notification_banners&&(t=Math.max(t-e.count_notification_banners,0),r.setUnseenInteractionsCounter(e.count_notification_banners)),void 0!==e.count_interactions&&r.setUnseenInteractionsCounter(t)};return{wsInstance:p,setWsInstance:h}};var n,o=r(8156),i=r(9954),a=r(9082),u=r(4702),c=r(2137),s=r(3973),l=r(706),f=(n=r(8641))&&n.__esModule?n:{default:n};function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},7721:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.UserUtils=t.SCRoutes=t.SCPreferences=t.SCNotification=t.SCFeatures=t.SCCache=t.Preferences=t.Locale=void 0;var o=r(1111);t.SCUserContextType=o.SCUserContextType,t.SCFollowedCategoriesManagerType=o.SCFollowedCategoriesManagerType,t.SCContextProviderType=o.SCContextProviderType,t.SCContextType=o.SCContextType,t.SCSettingsType=o.SCSettingsType,t.SCSessionType=o.SCSessionType,t.SCFollowedManagerType=o.SCFollowedManagerType,t.SCFollowersManagerType=o.SCFollowersManagerType,t.SCSettingsManagerType=o.SCSettingsManagerType,t.SCConnectionsManagerType=o.SCConnectionsManagerType,t.SCSubscribedIncubatorsManagerType=o.SCSubscribedIncubatorsManagerType,t.SCLocaleType=o.SCLocaleType,t.SCNotificationContextType=o.SCNotificationContextType,t.SCPreferencesContextType=o.SCPreferencesContextType,t.SCThemeContextType=o.SCThemeContextType,t.SCRoutingContextType=o.SCRoutingContextType,t.SCLocaleContextType=o.SCLocaleContextType,t.SCAlertMessagesContextType=o.SCAlertMessagesContextType,t.SCThemeAvatarVariableType=o.SCThemeAvatarVariableType,t.SCThemeCategoryIconVariableType=o.SCThemeCategoryIconVariableType,t.SCThemeCategoryVariableType=o.SCThemeCategoryVariableType,t.SCThemeVariablesType=o.SCThemeVariablesType,t.SCThemeType=o.SCThemeType,t.SCSubscribedGroupsManagerType=o.SCSubscribedGroupsManagerType,t.SCSubscribedEventsManagerType=o.SCSubscribedEventsManagerType,t.SCJoinedCoursesManagerType=o.SCJoinedCoursesManagerType;var i=ae(r(9082));t.SCContextProvider=i.default,t.SCContext=i.SCContext,t.useSCContext=i.useSCContext;var a=ae(r(4702));t.SCUserProvider=a.default,t.SCUserContext=a.SCUserContext,t.useSCUser=a.useSCUser;var u=ae(r(5373));t.SCThemeProvider=u.default,t.SCThemeContext=u.SCThemeContext,t.useSCTheme=u.useSCTheme,t.withSCTheme=u.withSCTheme;var c=ae(r(2075));t.SCRoutingProvider=c.default,t.SCRoutingContext=c.SCRoutingContext,t.useSCRouting=c.useSCRouting;var s=ae(r(1249));t.SCLocaleProvider=s.default,t.SCLocaleContext=s.SCLocaleContext,t.useSCLocale=s.useSCLocale,t.withSCLocale=s.withSCLocale;var l=ae(r(823));t.SCNotificationProvider=l.default,t.SCNotificationContext=l.SCNotificationContext,t.useSCNotification=l.useSCNotification;var f=ae(r(7718));t.SCAlertMessagesProvider=f.default,t.SCAlertMessagesContext=f.SCAlertMessagesContext,t.useSCAlertMessages=f.useSCAlertMessages;var d=ae(r(9723));t.SCPreferencesProvider=d.default,t.SCPreferencesContext=d.SCPreferencesContext,t.useSCPreferences=d.useSCPreferences;var p=ae(r(4592));t.SCPreferences=p,t.Preferences=p;var h=ae(r(6115));t.SCFeatures=h;var v=ae(r(3973));t.SCNotification=v;var y=ae(r(7748));t.SCCache=y;var g=oe(r(6339));t.SCContextMenu=g.default;var m=oe(r(7014));t.useSCFetchUser=m.default;var _=oe(r(8081));t.useSCFetchUserProviders=_.default;var E=oe(r(7775));t.useSCFetchVote=E.default;var S=oe(r(6594));t.useSCFetchFeedObject=S.default;var O=oe(r(634));t.useSCFetchCommentObject=O.default;var b=oe(r(393));t.useSCFetchCommentObjects=b.default;var C=oe(r(1560));t.useSCFetchLessonCommentObject=C.default;var T=oe(r(2779));t.useSCFetchLessonCommentObjects=T.default;var w=oe(r(1219));t.useSCFetchCustomAdv=w.default;var A=oe(r(576));t.useSCFetchTag=A.default;var R=oe(r(6167));t.useSCFetchAddressingTagList=R.default;var P=oe(r(8895));t.useSCFetchCategory=P.default;var L=oe(r(472));t.useSCFetchCategories=L.default;var I=oe(r(2243));t.useSCFetchIncubator=I.default;var N=oe(r(8223));t.useSCMediaClick=N.default;var j=oe(r(2118));t.useSCFetchContributors=j.default;var k=oe(r(6694));t.useSCFetchFeed=k.default;var U=oe(r(6515));t.useSCFetchPrivateMessageSnippets=U.default;var x=oe(r(7626));t.useSCFetchBroadcastMessages=x.default;var G=oe(r(494));t.useSCFetchUserBlockedBy=G.default;var D=oe(r(6874));t.useSCUserIsBlocked=D.default;var M=oe(r(2994));t.useSCFetchGroup=M.default;var F=oe(r(6151));t.useSCFetchGroups=F.default;var B=oe(r(458));t.useSCFetchEvent=B.default;var V=oe(r(519));t.useSCFetchEvents=V.default;var Y=oe(r(4706));t.useSCFetchLiveStream=Y.default;var q=oe(r(3897));t.useSCGoogleApiLoader=q.default;var K=oe(r(6552));t.useSCFetchCourse=K.default;var W=oe(r(2619));t.useSCFetchCourses=W.default;var H=oe(r(7416));t.useSCFetchLesson=H.default;var $=oe(r(7286));t.useSCPaymentsEnabled=$.default;var X=oe(r(1513));t.useSCFetchPaymentProduct=X.default;var J=oe(r(133));t.useSCFetchPaymentOrder=J.default;var z=oe(r(6358));t.Link=z.default;var Q=ae(r(8461));t.SCRoutes=Q;var Z=ae(r(2330));t.UserUtils=Z;var ee=oe(r(7746));t.getTheme=ee.default;var te=r(357);t.useIsComponentMountedRef=te.useIsComponentMountedRef,t.usePreviousValue=te.usePreviousValue,t.useIsomorphicLayoutEffect=te.useIsomorphicLayoutEffect,t.useEffectOnce=te.useEffectOnce,t.useNoInitialEffect=te.useNoInitialEffect,t.usePageVisibility=te.usePageVisibility,t.useResizeObserver=te.useResizeObserver;var re=r(3536);t.getEventStatus=re.getEventStatus;var ne=ae(r(7523));function oe(e){return e&&e.__esModule?e:{default:e}}function ie(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(ie=function(e){return e?r:t})(e)}function ae(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=ie(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}t.Locale=ne},7746:(e,t,r)=>{t.__esModule=!0,t.default=void 0;var n,o=r(901),i=r(2137),a=(n=r(7409))&&n.__esModule?n:{default:n},u=r(4592);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=function(e,t,r){return!(!e.hasOwnProperty(t)||!e[t].hasOwnProperty("value"))&&r(e[t].value)};t.default=function(e,t){var r=t?{palette:s(s(s({},f(t,u.COLORS_COLORBACK,a.default)&&{background:{default:t[u.COLORS_COLORBACK].value}}),{},{text:s(s({},f(t,u.COLORS_COLORFONT,a.default)&&{primary:t[u.COLORS_COLORFONT].value}),f(t,u.COLORS_COLORFONTSECONDARY,a.default)&&{secondary:t[u.COLORS_COLORFONTSECONDARY].value})},f(t,u.COLORS_COLORPRIMARY,a.default)&&{primary:{main:t[u.COLORS_COLORPRIMARY].value}}),f(t,u.COLORS_COLORSECONDARY,a.default)&&s({secondary:{main:t[u.COLORS_COLORSECONDARY].value}},f(t,u.COLORS_NAVBARBACK,a.default)&&{navbar:{main:t[u.COLORS_NAVBARBACK].value}})),typography:s({},f(t,u.STYLE_FONT_FAMILY,i.isString)&&{fontFamily:t[u.STYLE_FONT_FAMILY].value})}:{};return(0,o.createTheme)((0,i.mergeDeep)(s({selfcommunity:{user:{avatar:{sizeSmall:24,sizeMedium:40,sizeLarge:50,sizeXLarge:100}},category:{icon:{sizeSmall:24,sizeMedium:40,sizeLarge:50}},group:{avatar:{sizeSmall:40,sizeMedium:60,sizeLarge:90,sizeXLarge:120}},contentProduct:{icon:{sizeSmall:24,sizeMedium:40}},contentProductPrice:{icon:{sizeSmall:24,sizeMedium:40}}}},r),e))}},2361:(e,t)=>{t.__esModule=!0},1111:(e,t,r)=>{t.__esModule=!0;var n=r(2361);t.SCUserContextType=n.SCUserContextType,t.SCFollowedManagerType=n.SCFollowedManagerType,t.SCFollowersManagerType=n.SCFollowersManagerType,t.SCFollowedCategoriesManagerType=n.SCFollowedCategoriesManagerType,t.SCSettingsManagerType=n.SCSettingsManagerType,t.SCSubscribedIncubatorsManagerType=n.SCSubscribedIncubatorsManagerType,t.SCConnectionsManagerType=n.SCConnectionsManagerType,t.SCBlockedUsersManagerType=n.SCBlockedUsersManagerType,t.SCContextProviderType=n.SCContextProviderType,t.SCContextType=n.SCContextType,t.SCSettingsType=n.SCSettingsType,t.SCSessionType=n.SCSessionType,t.SCPreferencesContextType=n.SCPreferencesContextType,t.SCNotificationContextType=n.SCNotificationContextType,t.SCLocaleType=n.SCLocaleType,t.SCVoteType=n.SCVoteType,t.SCVoteContextType=n.SCVoteContextType,t.SCThemeContextType=n.SCThemeContextType,t.SCRoutingContextType=n.SCRoutingContextType,t.SCLocaleContextType=n.SCLocaleContextType,t.SCAlertMessagesContextType=n.SCAlertMessagesContextType,t.SCSubscribedGroupsManagerType=n.SCSubscribedGroupsManagerType,t.SCSubscribedEventsManagerType=n.SCSubscribedEventsManagerType,t.SCJoinedCoursesManagerType=n.SCJoinedCoursesManagerType;var o=r(3166);t.SCThemeAvatarVariableType=o.SCThemeAvatarVariableType,t.SCThemeUserVariableType=o.SCThemeUserVariableType,t.SCThemeCategoryIconVariableType=o.SCThemeCategoryIconVariableType,t.SCThemeCategoryVariableType=o.SCThemeCategoryVariableType,t.SCThemeVariablesType=o.SCThemeVariablesType,t.SCThemeType=o.SCThemeType},3166:(e,t)=>{t.__esModule=!0},4688:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.ValidationWarnings=t.ValidationResult=t.ValidationError=void 0;var o,i,a,u=r(7523),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(4191)),s=r(2137);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var v=p((function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.defaultErrorMessageMap[t];h(this,e),this.errorCode=null,this.errorData=null,this.errorMessage=null,this.errorCode=t,this.errorData=r,this.errorMessage=n}));t.ValidationError=v,o=v,v.ERROR_INVALID_CONF=3100,v.ERROR_INVALID_SESSION=4100,v.ERROR_INVALID_SESSION_TYPE=4101,v.ERROR_INVALID_SESSION_AUTH_TOKEN=4102,v.ERROR_INVALID_SESSION_CLIENT_ID=4103,v.ERROR_INVALID_SESSION_REFRESH_TOKEN_CALLBACK=4104,v.ERROR_INVALID_SESSION_LOGOUT_CALLBACK=4105,v.ERROR_INVALID_PORTAL=4200,v.ERROR_INVALID_LOCALE=4300,v.ERROR_INVALID_TRANSLATIONS=4400,v.ERROR_INVALID_THEME=4500,v.ERROR_INVALID_ROUTER=4600,v.ERROR_INVALID_PROVIDERS=4700,v.ERROR_INVALID_HANDLE_ANONYMOUS_ACTION=4800,v.ERROR_INVALID_NOTIFICATIONS=4900,v.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET=4901,v.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_DISABLE_TOAST_MESSAGE=4902,v.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_SECURE=4903,v.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_PREFIX_PATH=4904,v.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING=4921,v.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_DISABLE_TOAST_MESSAGE=4922,v.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_APPLICATION_SERVER_KEY=4923,v.ERROR_INVALID_NOTIFICATIONS_MOBILE_PUSH_MESSAGING_DISABLE=4924,v.ERROR_INVALID_NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING=4931,v.ERROR_INVALID_PREFERENCES=5e3,v.ERROR_INVALID_GLOBAL_PREFERENCES=5001,v.ERROR_INVALID_PREFERENCES_FEATURES=5002,v.ERROR_INVALID_VOTE=6e3,v.ERROR_INVALID_VOTE_REACTIONS=6001,v.ERROR_INVALID_VOTE_REACTIONS_STRUCTURE=6002,v.ERROR_INVALID_INTEGRATIONS=6100,v.ERROR_INVALID_INTEGRATIONS_OPENAI=6101,v.ERROR_INVALID_INTEGRATIONS_OPENAI_SECRETKEY=6102,v.ERROR_INVALID_INTEGRATIONS_GEOCODING=6103,v.ERROR_INVALID_INTEGRATIONS_GEOCODING_APIKEY=6104,v.defaultErrorMessageMap=(f(f(f(f(f(f(f(f(f(f(a={},o.ERROR_INVALID_CONF,"Invalid or missing library configuration. Check the configuration that is passed to the SCContextProvider."),o.ERROR_INVALID_SESSION,"Invalid session format."),o.ERROR_INVALID_SESSION_TYPE,"Invalid sessionType. Available options are ".concat(c.sessionTypes.join(", "),".")),o.ERROR_INVALID_SESSION_AUTH_TOKEN,"Invalid auth token format"),o.ERROR_INVALID_SESSION_CLIENT_ID,"Invalid clientId in the initial configuration."),o.ERROR_INVALID_SESSION_REFRESH_TOKEN_CALLBACK,"Invalid refresh token callback"),o.ERROR_INVALID_SESSION_LOGOUT_CALLBACK,"Invalid logout callback"),o.ERROR_INVALID_PORTAL,"Invalid portal. Check if the url format is valid."),o.ERROR_INVALID_LOCALE,"Invalid locale. Available options are ".concat(u.LOCALES.join(", "),".")),o.ERROR_INVALID_TRANSLATIONS,"Invalid locale messages(translations) options."),f(f(f(f(f(f(f(f(f(f(a,o.ERROR_INVALID_THEME,"Invalid theme options."),o.ERROR_INVALID_ROUTER,"Invalid router configuration"),o.ERROR_INVALID_PROVIDERS,"Invalid providers. Check if the list of providers is valid."),o.ERROR_INVALID_HANDLE_ANONYMOUS_ACTION,"Invalid handle anonymous action callback"),o.ERROR_INVALID_NOTIFICATIONS,"Invalid notifications conf."),o.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET,"Invalid notifications (websocket) option."),o.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_DISABLE_TOAST_MESSAGE,"Invalid notifications websocket conf: disableToastMessage must be a boolean value."),o.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_SECURE,"Invalid notifications websocket conf: secure must be a boolean value."),o.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_PREFIX_PATH,"Invalid notifications websocket conf: prefixPath must be a string value."),o.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING,"Invalid notifications (web push messaging) option."),f(f(f(f(f(f(f(f(f(f(a,o.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_DISABLE_TOAST_MESSAGE,"Invalid notifications web push messaging option. 'disableToastMessage' must be a boolean value."),o.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_APPLICATION_SERVER_KEY,"Invalid notifications web push messaging option. 'applicationServerKey' must be a string value."),o.ERROR_INVALID_NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING,"Invalid notifications (mobile native push messaging) option."),o.ERROR_INVALID_NOTIFICATIONS_MOBILE_PUSH_MESSAGING_DISABLE,"Invalid notifications mobile native push messaging option. 'disable' must be a boolean value."),o.ERROR_INVALID_PREFERENCES,"Invalid preferences option."),o.ERROR_INVALID_GLOBAL_PREFERENCES,"Invalid preferences option. 'preferences' inside preferences must be a valid array of global preferences."),o.ERROR_INVALID_PREFERENCES_FEATURES,"Invalid preferences option. 'features' must be a valid array of features."),o.ERROR_INVALID_VOTE,"Invalid vote option."),o.ERROR_INVALID_VOTE_REACTIONS,"Invalid vote option. 'reactions' must be a valid array of reaction objects."),o.ERROR_INVALID_VOTE_REACTIONS_STRUCTURE,"Invalid vote option. 'reactions' must be a valid array of reaction with attributes (id, label, sentiment, image, active)."),f(f(f(f(f(a,o.ERROR_INVALID_INTEGRATIONS,"Invalid integrations conf."),o.ERROR_INVALID_INTEGRATIONS_OPENAI,"Invalid integrations (openai) option."),o.ERROR_INVALID_INTEGRATIONS_OPENAI_SECRETKEY,"Invalid integrations openai conf: secretKey must be a string value."),o.ERROR_INVALID_INTEGRATIONS_GEOCODING,"Invalid integrations (geocoding) option."),o.ERROR_INVALID_INTEGRATIONS_GEOCODING_APIKEY,"Invalid integrations geocoding conf: apiKey must be a string value."));var y=p((function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.defaultErrorMessageMap[t];h(this,e),this.warningCode=null,this.warningData=null,this.warningMessage=null,this.warningCode=t,this.warningData=r,this.warningMessage=n}));t.ValidationWarnings=y,i=y,y.WARNING_SESSION_REFRESH_TOKEN_CALLBACK_NOT_FOUND=3100,y.WARNING_LOCALE_FALLBACK=3300,y.WARNING_ROUTER_FALLBACK=3500,y.WARNING_HANDLE_ANONYMOUS_ACTION_FALLBACK=3700,y.defaultErrorMessageMap=f(f(f(f({},i.WARNING_SESSION_REFRESH_TOKEN_CALLBACK_NOT_FOUND,"The 'handleRefreshToken' is not defined in initial conf. When the token expires it will not be renewed and the user session will be lost."),i.WARNING_LOCALE_FALLBACK,"The 'locale' is not defined in initial conf, fallback to the default ".concat(u.DEFAULT_LANGUAGE_UI,".")),i.WARNING_ROUTER_FALLBACK,"The 'router' is not defined in initial conf, fallback to the default configurations."),i.WARNING_HANDLE_ANONYMOUS_ACTION_FALLBACK,"The 'handleAnonymousAction' is not defined in initial conf, fallback to the default configurations.");var g=function(){return p((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"[Report Error]";h(this,e),this.errors=[],this.warnings=[],this.scope="",this.scope=t}),[{key:"addError",value:function(e,t){return this.errors.push(new v(e,t)),this.errors}},{key:"addWarnings",value:function(e,t){return this.warnings.push(new y(e,t)),this.errors}},{key:"hasErrors",value:function(){return this.errors.length>0}},{key:"hasWarnings",value:function(){return this.warnings.length>0}},{key:"emitErrors",value:function(){var e=this;this.hasErrors()&&this.errors.map((function(t){return s.Logger.error(e.scope,t.errorMessage)}))}},{key:"emitWarnings",value:function(){var e=this;this.hasWarnings()&&this.warnings.map((function(t){return s.Logger.warn(e.scope,t.warningMessage)}))}},{key:"emit",value:function(){this.emitErrors(),this.emitWarnings()}}])}();t.ValidationResult=g},3536:(e,t,r)=>{t.__esModule=!0,t.getEventStatus=function(e,t){var r=e.subscription_status,o=e.privacy;if(!r)return o===n.SCEventPrivacyType.PRIVATE?n.SCEventSubscriptionStatusType.REQUESTED:n.SCEventSubscriptionStatusType.SUBSCRIBED;switch(r){case n.SCEventSubscriptionStatusType.INVITED:case n.SCEventSubscriptionStatusType.GOING:case n.SCEventSubscriptionStatusType.NOT_GOING:return n.SCEventSubscriptionStatusType.SUBSCRIBED;case n.SCEventSubscriptionStatusType.SUBSCRIBED:return t?n.SCEventSubscriptionStatusType.GOING:n.SCEventSubscriptionStatusType.NOT_GOING;case n.SCEventSubscriptionStatusType.REQUESTED:return o===n.SCEventPrivacyType.PRIVATE?null:n.SCEventSubscriptionStatusType.SUBSCRIBED;default:return null}};var n=r(9954)},357:(e,t,r)=>{t.__esModule=!0;var n=l(r(5189));t.useIsComponentMountedRef=n.default;var o=l(r(3112));t.usePreviousValue=o.default;var i=l(r(8511));t.useIsomorphicLayoutEffect=i.default;var a=l(r(8444));t.useEffectOnce=a.default;var u=l(r(802));t.useNoInitialEffect=u.default;var c=l(r(773));t.usePageVisibility=c.default;var s=l(r(1728));function l(e){return e&&e.__esModule?e:{default:e}}t.useResizeObserver=s.default},8444:(e,t,r)=>{t.__esModule=!0,t.default=void 0;var n=r(8156);t.default=function(e,t){var r=(0,n.useRef)(!1);(0,n.useEffect)((function(){t&&!r.current&&(e(),r.current=!0)}),[t])}},5189:(e,t,r)=>{t.__esModule=!0,t.default=void 0;var n=r(8156);t.default=function(){var e=(0,n.useRef)(!1);return(0,n.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},8511:(e,t,r)=>{t.__esModule=!0,t.default=void 0;var n=r(8156),o=(0,r(2137).isClientSideRendering)()?n.useLayoutEffect:n.useEffect;t.default=o},802:(e,t,r)=>{t.__esModule=!0,t.default=void 0;var n=r(8156);t.default=function(e,t){var r=(0,n.useRef)(!0);(0,n.useEffect)((function(){var t=function(){};if(r.current?r.current=!1:t=e(),t&&"function"==typeof t)return t}),t)}},773:(e,t,r)=>{t.__esModule=!0,t.default=void 0;var n=r(8156);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.default=function(){var e,t,r=(e=(0,n.useState)(!0),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=r[0],a=r[1];return(0,n.useEffect)((function(){var e=function(){a(!document.hidden)};return document.addEventListener("visibilitychange",e),function(){document.removeEventListener("visibilitychange",e)}}),[]),i}},3112:(e,t,r)=>{t.__esModule=!0,t.default=void 0;var n=r(8156);t.default=function(e){var t=(0,n.useRef)();return(0,n.useEffect)((function(){t.current=e})),t.current}},1728:(e,t,r)=>{t.__esModule=!0,t.default=function(e,t,r){(0,n.useEffect)((function(){if(e&&"ResizeObserver"in window){var n=new ResizeObserver(r);return n.observe(e,t),function(){n.disconnect()}}}),[e,t,r])};var n=r(8156)},8483:(e,t,r)=>{t.__esModule=!0,t.default=void 0,t.loadLocaleData=function(e,t){var r=e,n=t.locale&&t.locale.messages?t.locale.messages:i.default;n[r]||(r=o.DEFAULT_LANGUAGE_UI,t.messages?u.Logger.warn(c.SCOPE_SC_CORE,"Locale ".concat(r," not found in messages configuration. Fallback to 'en'.")):u.Logger.warn(c.SCOPE_SC_CORE,"Locale ".concat(r," not found in sc-i18n package. Fallback to 'en'.")));try{return{messages:n[r],locale:r}}catch(e){return t.messages&&(n=i.default,u.Logger.error(c.SCOPE_SC_CORE,"Configuration Locale.messages doesn't contains ".concat(r,". Fallback to 'en' of 'sc-i18n'"))),{messages:n[o.LOCALE_EN],locale:o.DEFAULT_LANGUAGE_UI}}};var n,o=r(7523),i=(n=r(5698))&&n.__esModule?n:{default:n},a=r(9767),u=r(2137),c=r(3240),s=a.createIntl;t.default=s},149:(e,t,r)=>{t.__esModule=!0,t.isMobileNativeNotificationEnabled=i,t.isWebPushMessagingEnabled=function(){return!i()};var n=r(4357),o=r(2137);function i(){return(0,o.isClientSideRendering)()&&window[n.PLATFORM_KEY]&&window[n.PLATFORM_KEY]in n.PLATFORM||o.LocalStorageDB.checkifSupport()&&o.LocalStorageDB.get(n.PLATFORM_KEY)&&n.PLATFORMS.includes(o.LocalStorageDB.get(n.PLATFORM_KEY))}},2584:(e,t)=>{t.__esModule=!0,t.getCurrentPage=function(e,t){var r=new URLSearchParams(e),n=Object.fromEntries(r.entries());return(n.offset?parseInt(n.offset):0)/t+1}},2330:(e,t,r)=>{t.__esModule=!0,t.MODERATOR_ROLE=t.EDITOR_ROLE=t.COMMUNITY_CREATOR=t.ADMIN_ROLE=void 0,t.getUserRole=u,t.isAdmin=c,t.isBlocked=function(e){return e&&e.status&&e.status===n.SCUserStatus.BLOCKED},t.isCommunityCreator=function(e){return e&&1===e.id},t.isEditor=l,t.isModerator=s,t.isStaff=function(e){return c(e)||s(e)||l(e)};var n=r(9954),o="admin";t.ADMIN_ROLE=o;var i="moderator";t.MODERATOR_ROLE=i;var a="editor";function u(e){if(e&&e.role){var t=e.role;if(t===o)return o;if(t===i)return i;if(t===a)return a}return null}function c(e){return u(e)===o}function s(e){return u(e)===i}function l(e){return u(e)===a}t.EDITOR_ROLE=a,t.COMMUNITY_CREATOR=1},2517:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.__esModule=!0,t.validateHandleRefreshToken=t.validateHandleLogout=t.validateHandleAnonymousAction=t.validateGlobalPreferences=t.validateGeocodingApiKey=t.validateGeocoding=t.validateFeatures=t.validateContextProviders=t.validOptions=t.settingsOptions=t.sessionOptions=t.preferencesOptions=t.notificationsWebSocketOptions=t.notificationsWebPushMessagingOptions=t.notificationsOptions=t.notificationsMobileNativePushMessagingOptions=t.localeOptions=t.integrationsOptions=t.integrationsOpenAIOptions=t.integrationsGeocodingOptions=void 0,t.validateIntegrations=Z,t.validateMobileNativePushMessagingDisable=t.validateMobileNativePushMessaging=t.validateLocaleMessages=t.validateLocaleDefault=t.validateLocale=void 0,t.validateNotifications=L,t.validatePortal=t.validateOptions=t.validateOpenAISecretKey=t.validateOpenAI=void 0,t.validatePreferences=J,t.validateRouter=t.validateReactions=void 0,t.validateSession=C,t.validateTheme=t.validateSessionType=t.validateSessionClientId=t.validateSessionAuthTokenOption=void 0,t.validateVote=Q,t.voteOptions=t.validateWebSocketSecure=t.validateWebSocketPrefixPath=t.validateWebSocketDisableToastMessage=t.validateWebSocket=t.validateWebPushMessagingDisableToastMessage=t.validateWebPushMessagingApplicationServerKey=t.validateWebPushMessaging=void 0;var o,i=E(r(7523)),a=r(2137),u=E(r(4191)),c=r(3240),s=r(4688),l=r(2225),f=E(r(6506)),d=E(r(3232)),p=r(8461),h=E(r(1844)),v=E(r(4592)),y=E(r(6115)),g=E(r(3789)),m=E(r(7452));function _(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_=function(e){return e?r:t})(e)}function E(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=_(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(o,a,u):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e){var t=[],r=[];if(!e||!(0,a.isObject)(e))return t.push(s.ValidationError.ERROR_INVALID_SESSION),{errors:t,warnings:r,value:e};var n=Object.keys(Me),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=Me[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:o}}var T=function(e,t){var r=[];return t[u.SESSION_TYPE_OPTION]&&u.sessionTypes.includes(t[u.SESSION_TYPE_OPTION])||r.push(s.ValidationError.ERROR_INVALID_SESSION_TYPE),{errors:r,warnings:[],value:e}};t.validateSessionType=T;var w=function(e,t){var r=[];return!t[u.SESSION_TYPE_OPTION]||t[u.SESSION_TYPE_OPTION]!==u.OAUTH_SESSION&&t[u.SESSION_TYPE_OPTION]!==u.OAUTH_SESSION||t[u.SESSION_TYPE_OPTION]!==u.OAUTH_SESSION||t[u.SESSION_CLIENT_ID_OPTION]&&(0,a.isString)(t[u.SESSION_CLIENT_ID_OPTION])||r.push(s.ValidationError.ERROR_INVALID_SESSION_CLIENT_ID),{errors:r,warnings:[],value:e}};t.validateSessionClientId=w;var A=function(e,t){var r=[];return!t[u.SESSION_TYPE_OPTION]||t[u.SESSION_TYPE_OPTION]!==u.OAUTH_SESSION&&t[u.SESSION_TYPE_OPTION]!==u.JWT_SESSION||t[u.SESSION_AUTH_TOKEN_OPTION]&&!(0,a.isObject)(t[u.SESSION_AUTH_TOKEN_OPTION])&&r.push(s.ValidationError.ERROR_INVALID_SESSION_AUTH_TOKEN),{errors:r,warnings:[],value:e}};t.validateSessionAuthTokenOption=A;var R=function(e,t){var r=[],n=[];return!t[u.SESSION_TYPE_OPTION]||t[u.SESSION_TYPE_OPTION]!==u.OAUTH_SESSION&&t[u.SESSION_TYPE_OPTION]!==u.JWT_SESSION||(t.authToken&&!t.handleRefreshToken&&n.push(s.ValidationWarnings.WARNING_SESSION_REFRESH_TOKEN_CALLBACK_NOT_FOUND),t.handleRefreshToken&&!(0,a.isFunc)(t.handleRefreshToken)&&r.push(s.ValidationError.ERROR_INVALID_SESSION_REFRESH_TOKEN_CALLBACK)),{errors:r,warnings:n,value:e}};t.validateHandleRefreshToken=R;var P=function(e,t){var r=[];return t.handleLogout&&!(0,a.isFunc)(t.handleLogout)&&r.push(s.ValidationError.ERROR_INVALID_SESSION_LOGOUT_CALLBACK),{errors:r,warnings:[],value:e}};function L(e){var t=[],r=[];if(!e||!(0,a.isObject)(e))return{errors:t,warnings:r,value:f.DEFAULT_NOTIFICATIONS};var n=Object.keys(Be),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=Be[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:O(O({},f.DEFAULT_NOTIFICATIONS),o)}}t.validateHandleLogout=P;var I=function(e){var t=[],r=[];if(e&&!(0,a.isObject)(e))return t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET),{errors:t,warnings:r,v:e};var n=Object.keys(Ve),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=Ve[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:o}};t.validateWebSocket=I;var N=function(e){var t=[],r=[];return e?("boolean"!=typeof e&&t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_DISABLE_TOAST_MESSAGE),{errors:t,warnings:r,value:e}):{errors:t,warnings:r,value:f.DEFAULT_NOTIFICATIONS[f.NOTIFICATIONS_WEB_SOCKET_OPTION][f.NOTIFICATIONS_DISABLE_TOAST_MESSAGE_OPTION]}};t.validateWebSocketDisableToastMessage=N;var j=function(e){var t=[],r=[];return void 0===(null==e?void 0:e.toString())?{errors:t,warnings:r,value:f.DEFAULT_NOTIFICATIONS[f.NOTIFICATIONS_WEB_SOCKET_OPTION][f.NOTIFICATIONS_WEBSOCKET_SECURE_OPTION]}:("boolean"!=typeof e&&t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_SECURE),{errors:t,warnings:r,value:e})};t.validateWebSocketSecure=j;var k=function(e){var t=[];return e&&(0,a.isString)(e)||t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_PREFIX_PATH),{errors:t,warnings:[],value:e}};t.validateWebSocketPrefixPath=k;var U=function(e){var t=[],r=[];if(e&&!(0,a.isObject)(e))return t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING),{errors:t,warnings:r,v:e};var n=Object.keys(Ye),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=Ye[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:o}};t.validateWebPushMessaging=U;var x=function(e){var t=[],r=[];return void 0===e?{errors:t,warnings:r,value:f.DEFAULT_NOTIFICATIONS[f.NOTIFICATIONS_WEB_PUSH_MESSAGING_OPTION][f.NOTIFICATIONS_DISABLE_TOAST_MESSAGE_OPTION]}:("boolean"!=typeof e&&t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_DISABLE_TOAST_MESSAGE),{errors:t,warnings:r,value:e})};t.validateWebPushMessagingDisableToastMessage=x;var G=function(e){var t=[];return e&&((0,a.isString)(e)||t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_APPLICATION_SERVER_KEY)),{errors:t,warnings:[],value:e}};t.validateWebPushMessagingApplicationServerKey=G;var D=function(e){var t=[],r=[];if(e&&!(0,a.isObject)(e))return t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING),{errors:t,warnings:r,v:e};var n=Object.keys(qe),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=qe[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:o}};t.validateMobileNativePushMessaging=D;var M=function(e){var t=[],r=[];return void 0===e?{errors:t,warnings:r,value:f.DEFAULT_NOTIFICATIONS[f.NOTIFICATIONS_MOBILE_NATIVE_DISABLE_OPTION][f.NOTIFICATIONS_MOBILE_NATIVE_DISABLE_OPTION]}:("boolean"!=typeof e&&t.push(s.ValidationError.ERROR_INVALID_NOTIFICATIONS_MOBILE_PUSH_MESSAGING_DISABLE),{errors:t,warnings:r,value:e})};t.validateMobileNativePushMessagingDisable=M;var F=function(e){var t=[];return e&&(0,a.isString)(e)&&(0,a.isValidUrl)(e)||t.push(s.ValidationError.ERROR_INVALID_PORTAL),{errors:t,warnings:[],value:e}};t.validatePortal=F;var B=function(e,t){var r=[],n=[];return t.default?(0,a.isString)(e)&&(t[i.LOCALE_MESSAGES_OPTION]||i.LOCALES.includes(e))||r.push(s.ValidationError.ERROR_INVALID_LOCALE):n.push(s.ValidationWarnings.WARNING_LOCALE_FALLBACK),{errors:r,warnings:n,value:e}};t.validateLocaleDefault=B;var V=function(e){var t=[];return e.messages&&!(0,a.isObject)(e.messages)&&t.push(s.ValidationError.ERROR_INVALID_TRANSLATIONS),{errors:t,warnings:[],value:e}};t.validateLocaleMessages=V;var Y=function(e){var t=[],r=[];if(!e||!(0,a.isObject)(e)||(0,a.isObject)(e)&&!e.messages&&!e.default)return r.push(s.ValidationWarnings.WARNING_LOCALE_FALLBACK),{errors:t,warnings:r,v:e};var n=Object.keys(Fe),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=Fe[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:o}};t.validateLocale=Y;var q=function(e){var t=[],r=[];return e?(0,a.isObject)(e)?(e.routes&&!(0,a.isObject)(e.routes)||e.handleRoute&&!(0,a.isFunc)(e.handleRoute))&&t.push(s.ValidationError.ERROR_INVALID_ROUTER):t.push(s.ValidationError.ERROR_INVALID_ROUTER):r.push(s.ValidationWarnings.WARNING_ROUTER_FALLBACK),{errors:t,warnings:r,value:e}};t.validateRouter=q;var K=function(e){var t=[];return e&&!(0,a.isObject)(e)&&t.push(s.ValidationError.ERROR_INVALID_THEME),{errors:t,warnings:[],value:e}};t.validateTheme=K;var W=function(e){var t=[],r=[];return e?((0,a.isFunc)(e)||t.push(s.ValidationError.ERROR_INVALID_HANDLE_ANONYMOUS_ACTION),{errors:t,warnings:r,value:e}):(r.push(s.ValidationWarnings.WARNING_HANDLE_ANONYMOUS_ACTION_FALLBACK),{errors:t,warnings:r,value:function(){a.Logger.info(c.SCOPE_SC_CORE,"Attempting to perform an action that requires a logged user.")}})};t.validateHandleAnonymousAction=W;var H=function(e){var t=[],r=[];return e?(Array.isArray(e)?e.filter((function(e){return!l.DEFAULT_CONTEXT_PROVIDERS.includes(e)})).length>0&&t.push(s.ValidationError.ERROR_INVALID_PROVIDERS):t.push(s.ValidationError.ERROR_INVALID_PROVIDERS),{errors:t,warnings:r,value:e}):{errors:t,warnings:r,value:l.DEFAULT_CONTEXT_PROVIDERS}};t.validateContextProviders=H;var $=function(e,t){var r=[];return t[v.GLOBAL_PREFERENCES_OPTION]&&((0,a.isObject)(e)&&Object.keys(e).every((function(e){return/[a-zA-Z]+.[a-zA-Z]+/g.test(e)}))||r.push(s.ValidationError.ERROR_INVALID_GLOBAL_PREFERENCES)),{errors:r,warnings:[],value:e}};t.validateGlobalPreferences=$;var X=function(e,t){var r=[];return t[y.FEATURES_OPTION]&&(Array.isArray(e)||r.push(s.ValidationError.ERROR_INVALID_PREFERENCES_FEATURES)),{errors:r,warnings:[],value:e}};function J(e){var t=[],r=[],n=b(b({},v.GLOBAL_PREFERENCES_OPTION,v.DEFAULT_GLOBAL_PREFERENCES_OPTION),y.FEATURES_OPTION,y.DEFAULT_FEATURES_OPTION);if(e){if((0,a.isObject)(e)){var o=Object.keys(Ke),i=Object.keys(e).filter((function(e){return o.includes(e)})).reduce((function(n,o){var i=Ke[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:O(O({},n),i)}}return t.push(s.ValidationError.ERROR_INVALID_PREFERENCES),{errors:t,warnings:r,value:e}}return{errors:t,warnings:r,value:n}}t.validateFeatures=X;var z=function(e,t){var r=[];return t[g.VOTE_REACTIONS_OPTION]&&(Array.isArray(e)||r.push(s.ValidationError.ERROR_INVALID_VOTE_REACTIONS),Array.isArray(e)&&e.length>0&&e.filter((function(e){return null!==e.id&&null!==e.label&&null!==e.sentiment&&e.image&&null!==e.active})).length<e.length&&r.push(s.ValidationError.ERROR_INVALID_VOTE_REACTIONS_STRUCTURE)),{errors:r,warnings:[],value:e}};function Q(e){var t=[],r=[],n=b({},g.VOTE_REACTIONS_OPTION,g.DEFAULT_VOTE_REACTIONS_OPTION);if(e){if((0,a.isObject)(e)){var o=Object.keys(We),i=Object.keys(e).filter((function(e){return o.includes(e)})).reduce((function(n,o){var i=We[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:O(O({},n),i)}}return t.push(s.ValidationError.ERROR_INVALID_VOTE),{errors:t,warnings:r,value:e}}return{errors:t,warnings:r,value:n}}function Z(e){var t=[],r=[];if(!e||!(0,a.isObject)(e))return{errors:t,warnings:r,value:m.DEFAULT_INTEGRATIONS_OPTION};var n=Object.keys(He),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=He[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:O(O({},m.DEFAULT_INTEGRATIONS_OPTION),o)}}t.validateReactions=z;var ee=function(e){var t=[],r=[];if(e&&!(0,a.isObject)(e))return t.push(s.ValidationError.ERROR_INVALID_INTEGRATIONS_OPENAI),{errors:t,warnings:r,v:e};var n=Object.keys($e),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=$e[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:o}};t.validateOpenAI=ee;var te=function(e){var t=[],r=[];if(e&&!(0,a.isObject)(e))return t.push(s.ValidationError.ERROR_INVALID_INTEGRATIONS_GEOCODING),{errors:t,warnings:r,v:e};var n=Object.keys(Xe),o=Object.keys(e).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=Xe[o].validator(e[o],e);return i.errors.map((function(e){return t.push(e)})),i.warnings.map((function(e){return r.push(e)})),n[o]=i.value,n}),{});return{errors:t,warnings:r,value:o}};t.validateGeocoding=te;var re=function(e){var t=[];return e&&(0,a.isString)(e)||t.push(s.ValidationError.ERROR_INVALID_INTEGRATIONS_OPENAI_SECRETKEY),{errors:t,warnings:[],value:e}};t.validateOpenAISecretKey=re;var ne=function(e){var t=[];return e&&(0,a.isString)(e)||t.push(s.ValidationError.ERROR_INVALID_INTEGRATIONS_GEOCODING_APIKEY),{errors:t,warnings:[],value:e}};t.validateGeocodingApiKey=ne;var oe={name:p.PORTAL_OPTION,validator:F},ie={name:i.LOCALE_OPTION,validator:Y},ae={name:d.THEME_OPTION,validator:K},ue={name:p.ROUTER_OPTION,validator:q},ce={name:f.NOTIFICATIONS_OPTION,validator:L},se={name:u.SESSION_OPTION,validator:C},le={name:h.HANDLE_ANONYMOUS_ACTION_OPTION,validator:W},fe={name:l.CONTEXT_PROVIDERS_OPTION,validator:H},de={name:v.PREFERENCES_OPTION,validator:J},pe={name:g.VOTE_OPTION,validator:Q},he={name:m.INTEGRATIONS_OPTION,validator:Z},ve={name:u.SESSION_TYPE_OPTION,validator:T},ye={name:u.SESSION_CLIENT_ID_OPTION,validator:w},ge={name:u.SESSION_AUTH_TOKEN_OPTION,validator:A},me={name:u.SESSION_HANDLE_REFRESH_TOKEN_OPTION,validator:R},_e={name:u.SESSION_HANDLE_LOGOUT_OPTION,validator:P},Ee={name:i.LOCALE_DEFAULT_OPTION,validator:B},Se={name:i.LOCALE_MESSAGES_OPTION,validator:V},Oe={name:v.GLOBAL_PREFERENCES_OPTION,validator:$},be={name:y.FEATURES_OPTION,validator:X},Ce={name:f.NOTIFICATIONS_WEB_SOCKET_OPTION,validator:I},Te={name:f.NOTIFICATIONS_WEB_PUSH_MESSAGING_OPTION,validator:U},we={name:f.NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING_OPTION,validator:D},Ae={name:f.NOTIFICATIONS_DISABLE_TOAST_MESSAGE_OPTION,validator:N},Re={name:f.NOTIFICATIONS_WEBSOCKET_SECURE_OPTION,validator:j},Pe={name:f.NOTIFICATIONS_WEBSOCKET_PREFIX_PATH_OPTION,validator:k},Le={name:f.NOTIFICATIONS_DISABLE_TOAST_MESSAGE_OPTION,validator:x},Ie={name:f.NOTIFICATIONS_APPLICATION_SERVER_KEY_OPTION,validator:G},Ne={name:f.NOTIFICATIONS_MOBILE_NATIVE_DISABLE_OPTION,validator:M},je={name:g.VOTE_REACTIONS_OPTION,validator:z},ke={name:m.INTEGRATIONS_OPENAI_OPTION,validator:ee},Ue={name:m.INTEGRATIONS_OPENAI_SECRETKEY_OPTION,validator:re},xe={name:m.INTEGRATIONS_GEOCODING_OPTION,validator:te},Ge={name:m.INTEGRATIONS_GEOCODING_APIKEY_OPTION,validator:ne},De=(b(b(b(b(b(b(b(b(b(b(o={},oe.name,oe),ie.name,ie),ae.name,ae),ce.name,ce),ue.name,ue),se.name,se),le.name,le),fe.name,fe),de.name,de),pe.name,pe),b(o,he.name,he));t.settingsOptions=De;var Me=b(b(b(b(b({},ve.name,ve),ye.name,ye),ge.name,ge),me.name,me),_e.name,_e);t.sessionOptions=Me;var Fe=b(b({},Ee.name,Ee),Se.name,Se);t.localeOptions=Fe;var Be=b(b(b({},Ce.name,Ce),Te.name,Te),we.name,we);t.notificationsOptions=Be;var Ve=b(b(b({},Ae.name,Ae),Re.name,Re),Pe.name,Pe);t.notificationsWebSocketOptions=Ve;var Ye=b(b({},Le.name,Le),Ie.name,Ie);t.notificationsWebPushMessagingOptions=Ye;var qe=b({},Ne.name,Ne);t.notificationsMobileNativePushMessagingOptions=qe;var Ke=b(b({},Oe.name,Oe),be.name,be);t.preferencesOptions=Ke;var We=b({},je.name,je);t.voteOptions=We;var He=b(b({},ke.name,ke),xe.name,xe);t.integrationsOptions=He;var $e=b({},Ue.name,Ue);t.integrationsOpenAIOptions=$e;var Xe=b({},Ge.name,Ge);t.integrationsGeocodingOptions=Xe;var Je=O({},De);t.validOptions=Je,t.validateOptions=function(e,t){var r=new s.ValidationResult(c.SCOPE_SC_CORE);if(!e)return r.addError(s.ValidationError.ERROR_INVALID_CONF,e),{validationResult:r,values:e};var n=Object.keys(t),o=O(O({},e),Object.keys(t).reduce((function(e,t){return e[t]=null,e}),{})),i=Object.keys(o).filter((function(e){return n.includes(e)})).reduce((function(n,o){var i=t[o].validator(e[o]);return i.errors.map((function(e){return r.addError(e,i.value)})),i.warnings.map((function(e){return r.addWarnings(e,i.value)})),n[o]=i.value,n}),{});return{validationResult:r,settings:i}}},9954:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SCPaymentPriceCurrencyType=t.SCCommunityEnvironment=t.SCCommunitySubscriptionTier=t.SCLiveStreamViewType=t.SCLiveStreamConnectionDetailsErrorType=t.SCCourseLessonStatusType=t.SCCourseLessonCompletionStatusType=t.SCCourseTypologyType=t.SCCourseLessonTypologyType=t.SCCourseJoinStatusType=t.SCCoursePrivacyType=t.SCOnBoardingStepIdType=t.SCOnBoardingStepStatusType=t.SCOnBoardingStepType=t.SCEventDateFilterType=t.SCEventLocationFilterType=t.SCEventLocationType=t.SCEventRecurrenceType=t.SCEventSubscriptionStatusType=t.SCEventPrivacyType=t.SCPrivateMessageType=t.SCGroupSubscriptionStatusType=t.SCGroupPrivacyType=t.SCMetadataTypeFieldType=t.SCPrivateMessageStatusType=t.SuggestionType=t.SCUserStatus=t.SCPrizeUserStatusType=t.SCMessageFileType=t.SCPreferenceName=t.SCPreferenceSection=t.SCNotificationTopicType=t.SCNotificationTypologyType=t.SCLanguageType=t.SCLegalPagePoliciesType=t.SCIncubatorStatusType=t.SCConnectionStatus=t.SCFlagModerationStatusType=t.SCFlagTypeEnum=t.SCFeedUnitActivityTypologyType=t.SCFeedTypologyType=t.SCFeatureName=t.SCDeviceApnsTypeEnum=t.SCDeviceTypeEnum=t.SCCustomPageTypeEnum=t.SCCustomAdvPosition=t.SCCommentsOrderBy=t.SCCategoryAutoFollowType=t.SCBroadcastMessageBannerType=t.SCContributionType=void 0,t.SCCourseOrderingUsersType=t.SCCheckoutSessionUIMode=t.SCPaymentRecurringInterval=t.SCPaymentProductTemplateType=t.SCCheckoutSessionStatus=t.SCContentType=void 0;var n=r(2555);Object.defineProperty(t,"SCContributionType",{enumerable:!0,get:function(){return n.SCContributionType}}),Object.defineProperty(t,"SCBroadcastMessageBannerType",{enumerable:!0,get:function(){return n.SCBroadcastMessageBannerType}}),Object.defineProperty(t,"SCCategoryAutoFollowType",{enumerable:!0,get:function(){return n.SCCategoryAutoFollowType}}),Object.defineProperty(t,"SCCommentsOrderBy",{enumerable:!0,get:function(){return n.SCCommentsOrderBy}}),Object.defineProperty(t,"SCCustomAdvPosition",{enumerable:!0,get:function(){return n.SCCustomAdvPosition}}),Object.defineProperty(t,"SCCustomPageTypeEnum",{enumerable:!0,get:function(){return n.SCCustomPageTypeEnum}}),Object.defineProperty(t,"SCDeviceTypeEnum",{enumerable:!0,get:function(){return n.SCDeviceTypeEnum}}),Object.defineProperty(t,"SCDeviceApnsTypeEnum",{enumerable:!0,get:function(){return n.SCDeviceApnsTypeEnum}}),Object.defineProperty(t,"SCFeatureName",{enumerable:!0,get:function(){return n.SCFeatureName}}),Object.defineProperty(t,"SCFeedTypologyType",{enumerable:!0,get:function(){return n.SCFeedTypologyType}}),Object.defineProperty(t,"SCFeedUnitActivityTypologyType",{enumerable:!0,get:function(){return n.SCFeedUnitActivityTypologyType}}),Object.defineProperty(t,"SCFlagTypeEnum",{enumerable:!0,get:function(){return n.SCFlagTypeEnum}}),Object.defineProperty(t,"SCFlagModerationStatusType",{enumerable:!0,get:function(){return n.SCFlagModerationStatusType}}),Object.defineProperty(t,"SCConnectionStatus",{enumerable:!0,get:function(){return n.SCConnectionStatus}}),Object.defineProperty(t,"SCIncubatorStatusType",{enumerable:!0,get:function(){return n.SCIncubatorStatusType}}),Object.defineProperty(t,"SCLegalPagePoliciesType",{enumerable:!0,get:function(){return n.SCLegalPagePoliciesType}}),Object.defineProperty(t,"SCLanguageType",{enumerable:!0,get:function(){return n.SCLanguageType}}),Object.defineProperty(t,"SCNotificationTypologyType",{enumerable:!0,get:function(){return n.SCNotificationTypologyType}}),Object.defineProperty(t,"SCNotificationTopicType",{enumerable:!0,get:function(){return n.SCNotificationTopicType}}),Object.defineProperty(t,"SCPreferenceSection",{enumerable:!0,get:function(){return n.SCPreferenceSection}}),Object.defineProperty(t,"SCPreferenceName",{enumerable:!0,get:function(){return n.SCPreferenceName}}),Object.defineProperty(t,"SCMessageFileType",{enumerable:!0,get:function(){return n.SCMessageFileType}}),Object.defineProperty(t,"SCPrizeUserStatusType",{enumerable:!0,get:function(){return n.SCPrizeUserStatusType}}),Object.defineProperty(t,"SCUserStatus",{enumerable:!0,get:function(){return n.SCUserStatus}}),Object.defineProperty(t,"SuggestionType",{enumerable:!0,get:function(){return n.SuggestionType}}),Object.defineProperty(t,"SCPrivateMessageStatusType",{enumerable:!0,get:function(){return n.SCPrivateMessageStatusType}}),Object.defineProperty(t,"SCMetadataTypeFieldType",{enumerable:!0,get:function(){return n.SCMetadataTypeFieldType}}),Object.defineProperty(t,"SCGroupPrivacyType",{enumerable:!0,get:function(){return n.SCGroupPrivacyType}}),Object.defineProperty(t,"SCGroupSubscriptionStatusType",{enumerable:!0,get:function(){return n.SCGroupSubscriptionStatusType}}),Object.defineProperty(t,"SCPrivateMessageType",{enumerable:!0,get:function(){return n.SCPrivateMessageType}}),Object.defineProperty(t,"SCEventPrivacyType",{enumerable:!0,get:function(){return n.SCEventPrivacyType}}),Object.defineProperty(t,"SCEventSubscriptionStatusType",{enumerable:!0,get:function(){return n.SCEventSubscriptionStatusType}}),Object.defineProperty(t,"SCEventRecurrenceType",{enumerable:!0,get:function(){return n.SCEventRecurrenceType}}),Object.defineProperty(t,"SCEventLocationType",{enumerable:!0,get:function(){return n.SCEventLocationType}}),Object.defineProperty(t,"SCEventLocationFilterType",{enumerable:!0,get:function(){return n.SCEventLocationFilterType}}),Object.defineProperty(t,"SCEventDateFilterType",{enumerable:!0,get:function(){return n.SCEventDateFilterType}}),Object.defineProperty(t,"SCOnBoardingStepType",{enumerable:!0,get:function(){return n.SCOnBoardingStepType}}),Object.defineProperty(t,"SCOnBoardingStepStatusType",{enumerable:!0,get:function(){return n.SCOnBoardingStepStatusType}}),Object.defineProperty(t,"SCOnBoardingStepIdType",{enumerable:!0,get:function(){return n.SCOnBoardingStepIdType}}),Object.defineProperty(t,"SCCoursePrivacyType",{enumerable:!0,get:function(){return n.SCCoursePrivacyType}}),Object.defineProperty(t,"SCCourseJoinStatusType",{enumerable:!0,get:function(){return n.SCCourseJoinStatusType}}),Object.defineProperty(t,"SCCourseLessonTypologyType",{enumerable:!0,get:function(){return n.SCCourseLessonTypologyType}}),Object.defineProperty(t,"SCCourseTypologyType",{enumerable:!0,get:function(){return n.SCCourseTypologyType}}),Object.defineProperty(t,"SCCourseLessonStatusType",{enumerable:!0,get:function(){return n.SCCourseLessonStatusType}}),Object.defineProperty(t,"SCCourseLessonCompletionStatusType",{enumerable:!0,get:function(){return n.SCCourseLessonCompletionStatusType}}),Object.defineProperty(t,"SCLiveStreamConnectionDetailsErrorType",{enumerable:!0,get:function(){return n.SCLiveStreamConnectionDetailsErrorType}}),Object.defineProperty(t,"SCLiveStreamViewType",{enumerable:!0,get:function(){return n.SCLiveStreamViewType}}),Object.defineProperty(t,"SCCommunitySubscriptionTier",{enumerable:!0,get:function(){return n.SCCommunitySubscriptionTier}}),Object.defineProperty(t,"SCCommunityEnvironment",{enumerable:!0,get:function(){return n.SCCommunityEnvironment}}),Object.defineProperty(t,"SCPaymentPriceCurrencyType",{enumerable:!0,get:function(){return n.SCPaymentPriceCurrencyType}}),Object.defineProperty(t,"SCContentType",{enumerable:!0,get:function(){return n.SCContentType}}),Object.defineProperty(t,"SCCheckoutSessionStatus",{enumerable:!0,get:function(){return n.SCCheckoutSessionStatus}}),Object.defineProperty(t,"SCPaymentProductTemplateType",{enumerable:!0,get:function(){return n.SCPaymentProductTemplateType}}),Object.defineProperty(t,"SCPaymentRecurringInterval",{enumerable:!0,get:function(){return n.SCPaymentRecurringInterval}}),Object.defineProperty(t,"SCCheckoutSessionUIMode",{enumerable:!0,get:function(){return n.SCCheckoutSessionUIMode}}),Object.defineProperty(t,"SCCourseOrderingUsersType",{enumerable:!0,get:function(){return n.SCCourseOrderingUsersType}})},6746:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCBroadcastMessageBannerType=void 0,(r=t.SCBroadcastMessageBannerType||(t.SCBroadcastMessageBannerType={})).HTML="html_banner",r.NOTIFICATION="notification_banner"},9757:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCCategoryAutoFollowType=void 0,(r=t.SCCategoryAutoFollowType||(t.SCCategoryAutoFollowType={})).NONE="none",r.DEFAULT="default",r.FORCED="forced"},9786:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCCommentsOrderBy=void 0,(r=t.SCCommentsOrderBy||(t.SCCommentsOrderBy={})).ADDED_AT_DESC="-added_at",r.ADDED_AT_ASC="added_at",r.CONNECTION_DESC="-connection",r.CONNECTION_ASC="connection"},1609:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCContributeStatusType=t.SCContributionType=void 0,(n=t.SCContributionType||(t.SCContributionType={})).DISCUSSION="discussion",n.POST="post",n.STATUS="status",n.COMMENT="comment",(r=t.SCContributeStatusType||(t.SCContributeStatusType={})).OPEN="open",r.IGNORED="ignored",r.HIDDEN="hidden",r.DELETED="deleted"},1631:(e,t)=>{var r,n,o,i,a,u,c;Object.defineProperty(t,"__esModule",{value:!0}),t.SCCourseLessonCompletionStatusType=t.SCCourseLessonStatusType=t.SCCourseLessonTypologyType=t.SCCourseOrderingUsersType=t.SCCourseJoinStatusType=t.SCCourseTypologyType=t.SCCoursePrivacyType=void 0,(c=t.SCCoursePrivacyType||(t.SCCoursePrivacyType={})).OPEN="open",c.PRIVATE="private",c.SECRET="secret",c.DRAFT="",(u=t.SCCourseTypologyType||(t.SCCourseTypologyType={})).SELF="self-paced",u.STRUCTURED="structured",u.SCHEDULED="scheduled",(a=t.SCCourseJoinStatusType||(t.SCCourseJoinStatusType={})).JOINED="joined",a.REQUESTED="requested",a.INVITED="invited",a.MANAGER="manager",a.CREATOR="creator",a.PAYMENT_WAITING="payment_waiting",(i=t.SCCourseOrderingUsersType||(t.SCCourseOrderingUsersType={})).JOINED_AT="joined_at",i.LAST_ACTIVE_AT="last_active_at",(o=t.SCCourseLessonTypologyType||(t.SCCourseLessonTypologyType={})).LESSON="lesson",o.QUIZ="quiz",(n=t.SCCourseLessonStatusType||(t.SCCourseLessonStatusType={})).DRAFT="draft",n.PUBLISHED="published",(r=t.SCCourseLessonCompletionStatusType||(t.SCCourseLessonCompletionStatusType={})).UNCOMPLETED="uncompleted",r.COMPLETED="completed",r.FAILED="failed"},9137:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCCustomAdvPosition=void 0,(r=t.SCCustomAdvPosition||(t.SCCustomAdvPosition={})).POSITION_BELOW_TOPBAR="BELOW_TOPBAR",r.POSITION_BELOW_FEED_OBJECT="BELOW_THE_POST",r.POSITION_IN_COMMENTS="IN_POST_COMMENTS",r.POSITION_RELATED_POSTS_COLUMN="RELATED_POSTS_COLUMN",r.POSITION_FEED_SIDEBAR="TOOLS_COLUMN",r.POSITION_FEED="IN_STREAM"},6416:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCCustomPageTypeEnum=void 0,(r=t.SCCustomPageTypeEnum||(t.SCCustomPageTypeEnum={})).NORMAL="normal",r.LEGAL="legal"},6225:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCDeviceApnsTypeEnum=t.SCDeviceGcmTypeEnum=t.SCDeviceTypeEnum=void 0,(n=t.SCDeviceTypeEnum||(t.SCDeviceTypeEnum={})).ANDROID="Android",n.IOS="iOS",(r=t.SCDeviceGcmTypeEnum||(t.SCDeviceGcmTypeEnum={})).GCM="GCM",r.FCM="FCM",(t.SCDeviceApnsTypeEnum||(t.SCDeviceApnsTypeEnum={})).APNS="APNS"},1782:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCCommunityEnvironment=void 0,(r=t.SCCommunityEnvironment||(t.SCCommunityEnvironment={})).STAGE="stage",r.PRODUCTION="prod"},6905:(e,t)=>{var r,n,o,i,a,u;Object.defineProperty(t,"__esModule",{value:!0}),t.SCEventDateFilterType=t.SCEventRecurrenceType=t.SCEventLocationFilterType=t.SCEventLocationType=t.SCEventSubscriptionStatusType=t.SCEventPrivacyType=void 0,(u=t.SCEventPrivacyType||(t.SCEventPrivacyType={})).PUBLIC="public",u.PRIVATE="private",(a=t.SCEventSubscriptionStatusType||(t.SCEventSubscriptionStatusType={})).SUBSCRIBED="subscribed",a.REQUESTED="requested",a.INVITED="invited",a.GOING="going",a.NOT_GOING="not_going",(i=t.SCEventLocationType||(t.SCEventLocationType={})).PERSON="in person",i.ONLINE="virtual",i.LIVESTREAM="live_stream",(o=t.SCEventLocationFilterType||(t.SCEventLocationFilterType={})).ANY="any",o.PERSON="in person",o.ONLINE="virtual",(n=t.SCEventRecurrenceType||(t.SCEventRecurrenceType={})).NEVER="never",n.DAILY="daily",n.WEEKLY="weekly",n.MONTHLY="monthly",(r=t.SCEventDateFilterType||(t.SCEventDateFilterType={})).ALL="all",r.TODAY="today",r.TOMORROW="tomorrow",r.THIS_WEEK="this_week",r.NEXT_WEEK="next_week",r.THIS_MONTH="this_month",r.NOT_PAST="not_past",r.PAST="past"},4742:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCFeatureName=void 0,(r=t.SCFeatureName||(t.SCFeatureName={})).INTERESTS="interests",r.CUSTOMIZE="customize",r.ADDONS="addons",r.DOMAIN="domain",r.SOCIAL_PROVIDERS="social_providers",r.COMMUNITY_SUBSCRIPTION="community_subscription",r.SEO="seo",r.ADVERTISING="advertising",r.GOOGLE_CLOUD_API="google_cloud_api",r.HOTJAR="hotjar",r.SQREEN="sqreen",r.INCUBATORS="incubators",r.CMS="cms",r.LEGAL_PAGES="legal_pages",r.SCORING="scoring",r.USER_ROLES="user_roles",r.EMAIL_MANAGER="email_manager",r.LOYALTY="loyalty",r.BROADCAST="broadcast",r.INVITATION="invitation",r.APP_SETTINGS="app_settings",r.MODERATION_FLAGS="moderation_flags",r.MODERATION_CONTENTS="moderation_contents",r.MODERATION_USERS_BLOCKED="moderation_users_blocked",r.MODERATION_USERS="moderation_users",r.DATA_PROVISIONING_DASHBOARD="data_provisioning_dashboard",r.DATA_PROVISIONING_USERS="data_provisioning_users",r.DATA_PROVISIONING_CONTENTS="data_provisioning_contents",r.DATA_PROVISIONING_INTERESTS="data_provisioning_interests",r.DATA_PROVISIONING_POLLS="data_provisioning_polls",r.DATA_PROVISIONING_REPORTS="data_provisioning_reports",r.REGISTRATION_ALERTS="registration_alerts",r.SOCIAL_SHARE="social_share",r.FEED_SETTINGS="stream_settings",r.TAGGING="tagging",r.API_V2="api_v2",r.WEBHOOK="webhook",r.HEADLESS="headless",r.CUSTOMIZE_HEADLESS="customize_headless",r.SYSTEM_PAGES="system_pages",r.REACTION="reaction",r.GROUPING="grouping",r.EVENT="event",r.LIVE_STREAM="live_stream",r.PAYMENTS="payments",r.COURSE="course"},7787:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCFeedUnitActivityTypologyType=t.SCFeedTypologyType=void 0,(n=t.SCFeedTypologyType||(t.SCFeedTypologyType={})).HOME="home",n.EXPLORE="explore",n.CATEGORY="category",n.GROUP="group",n.EVENT="event",(r=t.SCFeedUnitActivityTypologyType||(t.SCFeedUnitActivityTypologyType={})).COMMENT="comment",r.VOTE="vote",r.POLLVOTE="pollvote",r.FOLLOW="follow"},5792:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCFlagModerationStatusType=t.SCFlagTypeEnum=void 0,(n=t.SCFlagTypeEnum||(t.SCFlagTypeEnum={}))[n.SPAM=0]="SPAM",n[n.AGGRESSIVE=1]="AGGRESSIVE",n[n.VULGAR=2]="VULGAR",n[n.POOR=3]="POOR",n[n.OFFTOPIC=4]="OFFTOPIC",(r=t.SCFlagModerationStatusType||(t.SCFlagModerationStatusType={})).IGNORED="ignored",r.DELETED="deleted",r.HIDDEN="hidden"},4812:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCConnectionStatus=void 0,(r=t.SCConnectionStatus||(t.SCConnectionStatus={})).CONNECTED="connected",r.CONNECTION_REQUEST_SENT="sent_connection_request",r.CONNECTION_REQUEST_RECEIVED="received_connection_request"},221:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCGroupSubscriptionStatusType=t.SCGroupPrivacyType=void 0,(n=t.SCGroupPrivacyType||(t.SCGroupPrivacyType={})).PUBLIC="public",n.PRIVATE="private",(r=t.SCGroupSubscriptionStatusType||(t.SCGroupSubscriptionStatusType={})).SUBSCRIBED="subscribed",r.REQUESTED="requested",r.INVITED="invited",r.PAYMENT_WAITING="payment_waiting"},4888:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCIncubatorStatusType=void 0,(r=t.SCIncubatorStatusType||(t.SCIncubatorStatusType={}))[r.PENDING=0]="PENDING",r[r.PROPOSAL=1]="PROPOSAL",r[r.APPROVED=2]="APPROVED",r[r.IGNORED=3]="IGNORED"},2555:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SCLiveStreamViewType=t.SCLiveStreamConnectionDetailsErrorType=t.SCCourseOrderingUsersType=t.SCCourseLessonCompletionStatusType=t.SCCourseTypologyType=t.SCCourseLessonStatusType=t.SCCourseLessonTypologyType=t.SCCourseJoinStatusType=t.SCCoursePrivacyType=t.SCOnBoardingStepIdType=t.SCOnBoardingStepStatusType=t.SCOnBoardingStepType=t.SCEventLocationFilterType=t.SCEventDateFilterType=t.SCEventLocationType=t.SCEventRecurrenceType=t.SCEventSubscriptionStatusType=t.SCEventPrivacyType=t.SCGroupSubscriptionStatusType=t.SCGroupPrivacyType=t.SCDeviceTypeEnum=t.SCDeviceApnsTypeEnum=t.SCConnectionStatus=t.SuggestionType=t.SCContributeStatusType=t.SCContributionType=t.SCLegalPagePoliciesType=t.SCFeatureName=t.SCPreferenceName=t.SCPreferenceSection=t.SCCustomPageTypeEnum=t.SCFlagModerationStatusType=t.SCFlagTypeEnum=t.SCPrizeUserStatusType=t.SCIncubatorStatusType=t.SCNotificationTopicType=t.SCNotificationTypologyType=t.SCPrivateMessageType=t.SCMessageFileType=t.SCPrivateMessageStatusType=t.SCCommentsOrderBy=t.SCFeedTypologyType=t.SCFeedUnitActivityTypologyType=t.SCCustomAdvPosition=t.SCCategoryAutoFollowType=t.SCMetadataTypeFieldType=t.SCUserReputationType=t.SCUserStatus=t.SCLanguageType=t.SCBroadcastMessageBannerType=void 0,t.SCPaymentRecurringInterval=t.SCCheckoutSessionUIMode=t.SCPaymentProductTemplateType=t.SCCheckoutSessionStatus=t.SCContentType=t.SCPaymentPriceCurrencyType=t.SCCommunityEnvironment=t.SCCommunitySubscriptionTier=void 0;var n=r(6746);Object.defineProperty(t,"SCBroadcastMessageBannerType",{enumerable:!0,get:function(){return n.SCBroadcastMessageBannerType}});var o=r(9137);Object.defineProperty(t,"SCCustomAdvPosition",{enumerable:!0,get:function(){return o.SCCustomAdvPosition}});var i=r(9742);Object.defineProperty(t,"SCLanguageType",{enumerable:!0,get:function(){return i.SCLanguageType}});var a=r(8099);Object.defineProperty(t,"SCUserReputationType",{enumerable:!0,get:function(){return a.SCUserReputationType}}),Object.defineProperty(t,"SCUserStatus",{enumerable:!0,get:function(){return a.SCUserStatus}});var u=r(9757);Object.defineProperty(t,"SCCategoryAutoFollowType",{enumerable:!0,get:function(){return u.SCCategoryAutoFollowType}});var c=r(3529);Object.defineProperty(t,"SCMetadataTypeFieldType",{enumerable:!0,get:function(){return c.SCMetadataTypeFieldType}});var s=r(9786);Object.defineProperty(t,"SCCommentsOrderBy",{enumerable:!0,get:function(){return s.SCCommentsOrderBy}});var l=r(9937);Object.defineProperty(t,"SCMessageFileType",{enumerable:!0,get:function(){return l.SCMessageFileType}}),Object.defineProperty(t,"SCPrivateMessageStatusType",{enumerable:!0,get:function(){return l.SCPrivateMessageStatusType}}),Object.defineProperty(t,"SCPrivateMessageType",{enumerable:!0,get:function(){return l.SCPrivateMessageType}});var f=r(4888);Object.defineProperty(t,"SCIncubatorStatusType",{enumerable:!0,get:function(){return f.SCIncubatorStatusType}});var d=r(689);Object.defineProperty(t,"SCPrizeUserStatusType",{enumerable:!0,get:function(){return d.SCPrizeUserStatusType}});var p=r(7787);Object.defineProperty(t,"SCFeedTypologyType",{enumerable:!0,get:function(){return p.SCFeedTypologyType}}),Object.defineProperty(t,"SCFeedUnitActivityTypologyType",{enumerable:!0,get:function(){return p.SCFeedUnitActivityTypologyType}});var h=r(3500);Object.defineProperty(t,"SCNotificationTopicType",{enumerable:!0,get:function(){return h.SCNotificationTopicType}}),Object.defineProperty(t,"SCNotificationTypologyType",{enumerable:!0,get:function(){return h.SCNotificationTypologyType}});var v=r(5792);Object.defineProperty(t,"SCFlagModerationStatusType",{enumerable:!0,get:function(){return v.SCFlagModerationStatusType}}),Object.defineProperty(t,"SCFlagTypeEnum",{enumerable:!0,get:function(){return v.SCFlagTypeEnum}});var y=r(6416);Object.defineProperty(t,"SCCustomPageTypeEnum",{enumerable:!0,get:function(){return y.SCCustomPageTypeEnum}});var g=r(4609);Object.defineProperty(t,"SCPreferenceSection",{enumerable:!0,get:function(){return g.SCPreferenceSection}}),Object.defineProperty(t,"SCPreferenceName",{enumerable:!0,get:function(){return g.SCPreferenceName}});var m=r(4742);Object.defineProperty(t,"SCFeatureName",{enumerable:!0,get:function(){return m.SCFeatureName}});var _=r(7208);Object.defineProperty(t,"SCLegalPagePoliciesType",{enumerable:!0,get:function(){return _.SCLegalPagePoliciesType}});var E=r(1609);Object.defineProperty(t,"SCContributeStatusType",{enumerable:!0,get:function(){return E.SCContributeStatusType}}),Object.defineProperty(t,"SCContributionType",{enumerable:!0,get:function(){return E.SCContributionType}});var S=r(6405);Object.defineProperty(t,"SuggestionType",{enumerable:!0,get:function(){return S.SuggestionType}});var O=r(4812);Object.defineProperty(t,"SCConnectionStatus",{enumerable:!0,get:function(){return O.SCConnectionStatus}});var b=r(6225);Object.defineProperty(t,"SCDeviceApnsTypeEnum",{enumerable:!0,get:function(){return b.SCDeviceApnsTypeEnum}}),Object.defineProperty(t,"SCDeviceTypeEnum",{enumerable:!0,get:function(){return b.SCDeviceTypeEnum}});var C=r(221);Object.defineProperty(t,"SCGroupPrivacyType",{enumerable:!0,get:function(){return C.SCGroupPrivacyType}}),Object.defineProperty(t,"SCGroupSubscriptionStatusType",{enumerable:!0,get:function(){return C.SCGroupSubscriptionStatusType}});var T=r(6905);Object.defineProperty(t,"SCEventPrivacyType",{enumerable:!0,get:function(){return T.SCEventPrivacyType}}),Object.defineProperty(t,"SCEventRecurrenceType",{enumerable:!0,get:function(){return T.SCEventRecurrenceType}}),Object.defineProperty(t,"SCEventLocationType",{enumerable:!0,get:function(){return T.SCEventLocationType}}),Object.defineProperty(t,"SCEventDateFilterType",{enumerable:!0,get:function(){return T.SCEventDateFilterType}}),Object.defineProperty(t,"SCEventLocationFilterType",{enumerable:!0,get:function(){return T.SCEventLocationFilterType}}),Object.defineProperty(t,"SCEventSubscriptionStatusType",{enumerable:!0,get:function(){return T.SCEventSubscriptionStatusType}});var w=r(1631);Object.defineProperty(t,"SCCoursePrivacyType",{enumerable:!0,get:function(){return w.SCCoursePrivacyType}}),Object.defineProperty(t,"SCCourseJoinStatusType",{enumerable:!0,get:function(){return w.SCCourseJoinStatusType}}),Object.defineProperty(t,"SCCourseLessonTypologyType",{enumerable:!0,get:function(){return w.SCCourseLessonTypologyType}}),Object.defineProperty(t,"SCCourseLessonStatusType",{enumerable:!0,get:function(){return w.SCCourseLessonStatusType}}),Object.defineProperty(t,"SCCourseTypologyType",{enumerable:!0,get:function(){return w.SCCourseTypologyType}}),Object.defineProperty(t,"SCCourseLessonCompletionStatusType",{enumerable:!0,get:function(){return w.SCCourseLessonCompletionStatusType}}),Object.defineProperty(t,"SCCourseOrderingUsersType",{enumerable:!0,get:function(){return w.SCCourseOrderingUsersType}});var A=r(6877);Object.defineProperty(t,"SCLiveStreamViewType",{enumerable:!0,get:function(){return A.SCLiveStreamViewType}}),Object.defineProperty(t,"SCLiveStreamConnectionDetailsErrorType",{enumerable:!0,get:function(){return A.SCLiveStreamConnectionDetailsErrorType}});var R=r(1447);Object.defineProperty(t,"SCOnBoardingStepType",{enumerable:!0,get:function(){return R.SCOnBoardingStepType}}),Object.defineProperty(t,"SCOnBoardingStepStatusType",{enumerable:!0,get:function(){return R.SCOnBoardingStepStatusType}}),Object.defineProperty(t,"SCOnBoardingStepIdType",{enumerable:!0,get:function(){return R.SCOnBoardingStepIdType}});var P=r(6140);Object.defineProperty(t,"SCCommunitySubscriptionTier",{enumerable:!0,get:function(){return P.SCCommunitySubscriptionTier}});var L=r(1782);Object.defineProperty(t,"SCCommunityEnvironment",{enumerable:!0,get:function(){return L.SCCommunityEnvironment}});var I=r(6217);Object.defineProperty(t,"SCPaymentPriceCurrencyType",{enumerable:!0,get:function(){return I.SCPaymentPriceCurrencyType}}),Object.defineProperty(t,"SCContentType",{enumerable:!0,get:function(){return I.SCContentType}}),Object.defineProperty(t,"SCCheckoutSessionStatus",{enumerable:!0,get:function(){return I.SCCheckoutSessionStatus}}),Object.defineProperty(t,"SCPaymentProductTemplateType",{enumerable:!0,get:function(){return I.SCPaymentProductTemplateType}}),Object.defineProperty(t,"SCCheckoutSessionUIMode",{enumerable:!0,get:function(){return I.SCCheckoutSessionUIMode}}),Object.defineProperty(t,"SCPaymentRecurringInterval",{enumerable:!0,get:function(){return I.SCPaymentRecurringInterval}})},7208:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCLegalPagePoliciesType=void 0,(r=t.SCLegalPagePoliciesType||(t.SCLegalPagePoliciesType={})).TERMS_AND_CONDITIONS="tec",r.PRIVACY="privacy"},6877:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCLiveStreamConnectionDetailsErrorType=t.SCLiveStreamViewType=void 0,(n=t.SCLiveStreamViewType||(t.SCLiveStreamViewType={})).GALLERY="gallery",n.SPEAKER="speaker",(r=t.SCLiveStreamConnectionDetailsErrorType||(t.SCLiveStreamConnectionDetailsErrorType={})).LIVE_STREAM_IS_CLOSED="LIVE_STREAM_IS_CLOSED",r.MONTHLY_MINUTE_LIMIT_REACHED="MONTHLY_MINUTE_LIMIT_REACHED",r.WAITING_HOST_TO_START_LIVE_STREAM="WAITING_HOST_TO_START_LIVE_STREAM",r.PARTICIPANTS_LIMIT_REACHED="PARTICIPANTS_LIMIT_REACHED",r.PARTICIPATE_THE_EVENT_TO_JOIN_LIVE_STREAM="PARTICIPATE_THE_EVENT_TO_JOIN_LIVE_STREAM",r.USER_BANNED_FOR_THIS_LIVE_STREAM="USER_BANNED_FOR_THIS_LIVE_STREAM"},9742:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCLanguageType=void 0,(r=t.SCLanguageType||(t.SCLanguageType={})).EN="en",r.IT="it"},3529:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCMetadataTypeFieldType=void 0,(r=t.SCMetadataTypeFieldType||(t.SCMetadataTypeFieldType={})).STRING="string",r.EMAIL="email",r.URL="url",r.ENUM="enum",r.PHONE_NUMBER="phone_number",r.CHECKBOX="checkbox"},3500:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCNotificationTopicType=t.SCNotificationTypologyType=void 0,(n=t.SCNotificationTypologyType||(t.SCNotificationTypologyType={})).COMMENT="comment",n.NESTED_COMMENT="nested_comment",n.CONNECTION_REQUEST="connection_request",n.CONNECTION_ACCEPT="connection_accept",n.CONNECTION_REMOVE="connection_remove",n.CONNECTION_REJECT="connection_reject",n.CONNECTION_CANCEL_REJECT="connection_cancel_reject",n.CONNECTION_CANCEL_REQUEST="connection_cancel_request",n.MENTION="mention",n.VOTE_UP="vote_up",n.FOLLOW="follow",n.PRIVATE_MESSAGE="private_message",n.DELETE_PRIVATE_MESSAGE="delete_private_message",n.DELETED_FOR_ADVERTISING="deleted_for_advertising",n.DELETED_FOR_AGGRESSIVE="deleted_for_aggressive",n.DELETED_FOR_VULGAR="deleted_for_vulgar",n.DELETED_FOR_POOR="deleted_for_poor",n.DELETED_FOR_OFFTOPIC="deleted_for_offtopic",n.UNDELETED_FOR="undeleted_for",n.COLLAPSED_FOR_ADVERTISING="collapsed_for_advertising",n.COLLAPSED_FOR_AGGRESSIVE="collapsed_for_aggressive",n.COLLAPSED_FOR_VULGAR="collapsed_for_vulgar",n.COLLAPSED_FOR_POOR="collapsed_for_poor",n.COLLAPSED_FOR_OFFTOPIC="collapsed_for_offtopic",n.USER_FOLLOW="user_follow",n.USER_UNFOLLOW="user_unfollow",n.KINDLY_NOTICE_ADVERTISING="kindly_notice_advertising",n.KINDLY_NOTICE_AGGRESSIVE="kindly_notice_aggressive",n.KINDLY_NOTICE_VULGAR="kindly_notice_vulgar",n.KINDLY_NOTICE_POOR="kindly_notice_poor",n.KINDLY_NOTICE_OFFTOPIC="kindly_notice_offtopic",n.KINDLY_NOTICE_FLAG="kindly_notice_flag",n.BLOCKED_USER="blocked_user",n.UNBLOCKED_USER="unblocked_user",n.INCUBATOR_APPROVED="incubator_approved",n.CUSTOM_NOTIFICATION="custom_notification",n.NOTIFICATION_BANNER="notification_banner",n.CONTRIBUTION="contribution",n.USER_INVITED_TO_JOIN_GROUP="user_invited_to_join_group",n.USER_REQUESTED_TO_JOIN_GROUP="user_requested_to_join_group",n.USER_ACCEPTED_TO_JOIN_GROUP="user_accepted_to_join_group",n.USER_ADDED_TO_GROUP="user_added_to_group",n.USER_INVITED_TO_JOIN_EVENT="user_invited_to_join_event",n.USER_REQUESTED_TO_JOIN_EVENT="user_requested_to_join_event",n.USER_ACCEPTED_TO_JOIN_EVENT="user_accepted_to_join_event",n.USER_ADDED_TO_EVENT="user_added_to_event",n.LIVE_STREAM_STARTED="live_stream_started",n.USER_INVITED_TO_JOIN_COURSE="user_invited_to_join_course",n.USER_REQUESTED_TO_JOIN_COURSE="user_requested_to_join_course",n.USER_ACCEPTED_TO_JOIN_COURSE="user_accepted_to_join_course",n.USER_COMMENTED_A_COURSE_LESSON="user_commented_a_course_lesson",n.USER_ADDED_TO_COURSE="user_added_to_course",n.MANAGER_ADDED_TO_COURSE="manager_added_to_course",(r=t.SCNotificationTopicType||(t.SCNotificationTopicType={})).INTERACTION="interaction",r.NEWS="news"},1447:(e,t)=>{var r,n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.SCOnBoardingStepStatusType=t.SCOnBoardingStepIdType=t.SCOnBoardingStepType=void 0,(o=t.SCOnBoardingStepType||(t.SCOnBoardingStepType={})).CONTENTS="contents",o.CATEGORIES="categories",o.APPEARANCE="appearance",o.PROFILE="profile",o.INVITE="invite",o.APP="app",(n=t.SCOnBoardingStepIdType||(t.SCOnBoardingStepIdType={}))[n.CONTENTS=1]="CONTENTS",n[n.CATEGORIES=2]="CATEGORIES",n[n.APPEARANCE=3]="APPEARANCE",n[n.PROFILE=4]="PROFILE",n[n.INVITE=5]="INVITE",n[n.APP=6]="APP",(r=t.SCOnBoardingStepStatusType||(t.SCOnBoardingStepStatusType={})).IN_PROGRESS="in_progress",r.COMPLETED="completed",r.NOT_STARTED="not_started",r.FAILED="failed"},6217:(e,t)=>{var r,n,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.SCCheckoutSessionUIMode=t.SCCheckoutSessionStatus=t.SCContentType=t.SCPaymentPriceCurrencyType=t.SCPaymentRecurringInterval=t.SCPaymentProductTemplateType=void 0,(t.SCPaymentProductTemplateType||(t.SCPaymentProductTemplateType={})).DETAIL="detail",(i=t.SCPaymentRecurringInterval||(t.SCPaymentRecurringInterval={})).WEEK="week",i.MONTH="month",i.YEAR="year",(t.SCPaymentPriceCurrencyType||(t.SCPaymentPriceCurrencyType={})).EUR="EUR",(o=t.SCContentType||(t.SCContentType={})).ALL="all",o.EVENT="event",o.COURSE="course",o.CATEGORY="category",o.GROUP="group",o.COMMUNITY="community",(n=t.SCCheckoutSessionStatus||(t.SCCheckoutSessionStatus={})).COMPLETE="complete",n.OPEN="open",(r=t.SCCheckoutSessionUIMode||(t.SCCheckoutSessionUIMode={})).HOSTED="hosted",r.EMBEDDED="embedded"},4609:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCPreferenceName=t.SCPreferenceSection=void 0,(n=t.SCPreferenceSection||(t.SCPreferenceSection={})).TEXT="text",n.STYLE="style",n.LOGO="logo",n.COLORS="colors",n.COVERS="covers",n.IMAGES="images",n.STAFF="staff",n.LOYALTY="loyalty",n.ADDONS="addons",n.ADVERTISING="advertising",n.CONFIGURATIONS="configurations",n.PROVIDERS="providers",n.WEBMASTER="webmaster",n.STATIC="static",(r=t.SCPreferenceName||(t.SCPreferenceName={})).APPLICATION_NAME="application_name",r.APPLICATION_SLOGAN1="application_slogan1",r.APPLICATION_SLOGAN2="application_slogan2",r.APPLICATION_COPYRIGHT="application_copyright",r.FONT_FAMILY="font_family",r.NAVBAR_LOGO="navbar_logo",r.NAVBAR_LOGO_MOBILE="navbar_logo_mobile",r.COLORBACK="colorback",r.COLORPRIMARY="colorprimary",r.COLORSECONDARY="colorsecondary",r.NAVBARBACK="navbarback",r.COLORFONT="font_color",r.COLORFONTSECONDARY="font_color_secondary",r.COVER_1_HP_M1920="cover_1_hp_m1920",r.COVER_2_HP_M1920="cover_2_hp_m1920",r.COVER_3_HP_M1920="cover_3_hp_m1920",r.COVER_4_HP_M1920="cover_4_hp_m1920",r.COVERS_VISIBILITY="covers_visibility",r.APP_ICON="app_icon",r.USER_DEFAULT_COVER="user_default_cover",r.ERROR_404="error_404",r.ERROR_503="error_503",r.ERRORPAGES_IMAGE="errorpages_image",r.ERRORPAGES_TITLE="errorpages_title",r.ERRORPAGES_SUBTITLE="errorpages_subtitle",r.STAFF_BADGE_ICON="staff_badge_icon",r.STAFF_BADGE_LABEL="staff_badge_label",r.PRIZE_A_IMAGE="prize_a_image",r.PRIZE_B_IMAGE="prize_b_image",r.PRIZE_C_IMAGE="prize_c_image",r.POINTS_MAKE_DISCUSSION="points_make_discussion",r.POINTS_MAKE_POST="points_make_post",r.POINTS_MAKE_COMMENT="points_make_comment",r.POINTS_RECEIVE_VOTE="points_receive_vote",r.POINTS_CONNECTION_OR_FOLLOWER="points_connection_or_follower",r.POINTS_SOCIAL_SHARE="points_social_share",r.POINTS_APP_USED="points_app_used",r.POINTS_DAILY_VISIT="points_daily_visit",r.AFFINITY_ENABLED="affinity_enabled",r.CLOSED_COMMUNITY="closed_community",r.INCUBATOR_ENABLED="incubator_enabled",r.INCUBATOR_SUBSCRIBERS="incubator_subscribers",r.LOYALTY_POINTS_COLLECTION="loyalty_points_collection",r.POLLS_ENABLED="polls_enabled",r.REGISTRATION_WIZARD="registration_wizard",r.POST_GEOLOCATION_ENABLED="post_geolocation_enabled",r.SHARE_POST_ON_FACEBOOK_ENABLED="share_post_on_facebook_enabled",r.SHARE_POST_ON_TWITTER_ENABLED="share_post_on_twitter_enabled",r.SHARE_POST_ON_LINKEDIN_ENABLED="share_post_on_linkedin_enabled",r.CUSTOM_ADV_ENABLED="custom_adv_enabled",r.CUSTOM_ADV_ONLY_FOR_ANONYMOUS_USERS_ENABLED="custom_adv_only_for_anonymous_users_enabled",r.CUSTOM_NAVBAR_ITEM_ENABLED="custom_navbar_item_enabled",r.CUSTOM_NAVBAR_ITEM_TEXT="custom_navbar_item_text",r.CUSTOM_NAVBAR_ITEM_URL="custom_navbar_item_url",r.CUSTOM_NAVBAR_ITEM_IMAGE="custom_navbar_item_image",r.CONNECTION_ENABLED="connection_enabled",r.FOLLOW_ENABLED="follow_enabled",r.EXPLORE_STREAM_ENABLED="explore_stream_enabled",r.EXPLORE_STREAM_ORDER_BY="explore_stream_order_by",r.HOME_STREAM_ORDER_BY="home_stream_order_by",r.MANUAL_CATEGORIES_ORDER_ENABLED="manual_categories_order_enabled",r.PEOPLE_SEARCH_ENABLED="people_search_enabled",r.POST_ONLY_STAFF_ENABLED="post_only_staff_enabled",r.STREAM_QUALITY="stream_quality",r.CONTENT_AVAILABILITY="content_availability",r.USERS_APPROVAL_ENABLED="users_approval_enabled",r.POST_TYPE_ENABLED="post_type_enabled",r.DISCUSSION_TYPE_ENABLED="discussion_type_enabled",r.STATUS_TYPE_ENABLED="status_type_enabled",r.URL_TEMPLATE_EMAIL_SETTINGS="url_template_email_settings",r.URL_TEMPLATE_EMAIL_UNSUBSCRIBE="url_template_email_unsubscribe",r.URL_TEMPLATE_PASSWORD_RECOVER="url_template_password_recover",r.URL_TEMPLATE_VERIFY_EMAIL="url_template_verify_email",r.URL_TEMPLATE_POST="url_template_post",r.URL_TEMPLATE_DISCUSSION="url_template_discussion",r.URL_TEMPLATE_STATUS="url_template_status",r.URL_TEMPLATE_COMMENT="url_template_comment",r.URL_TEMPLATE_CATEGORY="url_template_category",r.URL_TEMPLATE_CATEGORIES_LIST="url_template_categories_list",r.URL_TEMPLATE_USER_PROFILE="url_template_profile",r.URL_TEMPLATE_USER_PROFILE_SETTINGS="url_template_profile_settings",r.URL_TEMPLATE_NOTIFICATIONS="url_template_notifications",r.URL_TEMPLATE_USER_PRIVATE_MESSAGES="url_template_private_message",r.URL_TEMPLATE_INCUBATOR="url_template_incubator",r.URL_TEMPLATE_LIVE_STREAM="url_template_live_stream",r.APP_URL="app_url",r.USER_METADATA_DEFINITIONS="user_metadata_definition",r.TAG_MANAGER_CONTAINER_ID="tag_manager_container_id",r.GDPR_COOKIE_CONSENT_EXTERNAL_HTML="gdpr_cookie_consent_external_html",r.GDPR_SIGNUP_ACCEPT_HTML="gdpr_signup_accept_html",r.APP_URL_ON_APP_STORE="app_url_on_app_store",r.APP_URL_ON_GOOGLE_PLAY="app_url_on_google_play",r.FACEBOOK_SIGNIN_ENABLED="facebook_signin_enabled",r.FACEBOOK_APP_KEY="facebook_app_key",r.FACEBOOK_APP_SECRET="facebook_app_secret",r.LINKEDIN_SIGNIN_ENABLED="linkedin_signin_enabled",r.LINKEDIN_APP_KEY="linkedin_app_key",r.LINKEDIN_APP_SECRET="linkedin_app_secret",r.TWITTER_SIGNIN_ENABLED="twitter_signin_enabled",r.TWITTER_APP_KEY="twitter_app_key",r.TWITTER_APP_SECRET="twitter_app_secret",r.GOOGLE_GEOCODING_API_KEY="google_geocoding_api_key",r.GOOGLE_SIGNIN_ENABLED="google_signin_enabled",r.GOOGLE_APP_KEY="google_app_key",r.GOOGLE_APP_SECRET="google_app_secret",r.WEB_PUSH_PUBLIC_KEY="web_push_public_key",r.WEB_PUSH_ENABLED="web_push_enabled",r.META_ROBOTS="meta_robots",r.META_TITLE_HOME_NOT_LOGGED="meta_title_home_not_logged",r.META_DESCRIPTION="meta_description",r.GROUPS_ENABLED="groups_enabled",r.GROUPS_VISIBILITY_ENABLED="groups_visibility_enabled",r.GROUPS_PRIVATE_ENABLED="groups_private_enabled",r.GROUPS_ONLY_STAFF_ENABLED="groups_only_staff_enabled",r.EVENTS_ENABLED="events_enabled",r.EVENTS_VISIBILITY_ENABLED="events_visibility_enabled",r.EVENTS_PRIVATE_ENABLED="events_private_enabled",r.EVENTS_ONLY_STAFF_ENABLED="events_only_staff_enabled",r.COURSES_ENABLED="courses_enabled",r.COURSES_VISIBILITY_ENABLED="courses_visibility_enabled",r.COURSES_PRIVATE_ENABLED="courses_private_enabled",r.COURSES_ONLY_STAFF_ENABLED="courses_only_staff_enabled",r.COURSES_ADVANCED_ENABLED="courses_advanced_enabled",r.LIVE_STREAM_ENABLED="live_stream_enabled",r.LIVE_STREAM_ONLY_STAFF_ENABLED="live_stream_only_staff_enabled",r.LIVE_STREAM_VIDEO_CONFERENCE_ENABLED="live_stream_video_conference_enabled",r.ONBOARDING_ENABLED="onboarding_enabled",r.ONBOARDING_HIDDEN="onboarding_hidden",r.SUBSCRIPTION_TIER="subscription_tier",r.PAYMENTS_ENABLED="payments_enabled",r.STRIPE_CONNECTED_ACCOUNT_ID="stripe_connected_account_id",r.ENVIRONMENT="env",r.STACK_ID="stackid",r.STRIPE_PUBLIC_KEY="stripe_public_key",r.PRIVATE_MESSAGES_ENABLED="private_messages_enabled",r.CONTEXT_MENU_ENABLED="context_menu_enabled"},9937:(e,t)=>{var r,n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.SCMessageFileType=t.SCPrivateMessageType=t.SCPrivateMessageStatusType=void 0,(o=t.SCPrivateMessageStatusType||(t.SCPrivateMessageStatusType={})).CREATED="created",o.DELETED="deleted",o.HIDDEN="hidden",o.NEW="new",(n=t.SCPrivateMessageType||(t.SCPrivateMessageType={})).GROUP="group",n.USER="user",n.NEW="new",(r=t.SCMessageFileType||(t.SCMessageFileType={})).DOCUMENT="application/",r.IMAGE="image/",r.VIDEO="video/",r.PDF="application/pdf",r.AUDIO="audio/"},689:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCPrizeUserStatusType=void 0,(r=t.SCPrizeUserStatusType||(t.SCPrizeUserStatusType={}))[r.PENDING=0]="PENDING",r[r.REFUSED=1]="REFUSED",r[r.SENT=2]="SENT"},6405:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SuggestionType=void 0,(r=t.SuggestionType||(t.SuggestionType={})).USER="user",r.CATEGORY="category",r.GROUP="group"},6140:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SCCommunitySubscriptionTier=void 0,(r=t.SCCommunitySubscriptionTier||(t.SCCommunitySubscriptionTier={})).FREE_TRIAL="FREE_TRIAL",r.GO="GO",r.PROFESSIONAL="PROFESSIONAL",r.ENTERPRISE="ENTERPRISE"},8099:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.SCUserReputationType=t.SCUserStatus=void 0,(n=t.SCUserStatus||(t.SCUserStatus={})).APPROVED="a",n.BLOCKED="b",n.DELETED="d",n.UNREGISTERED="u",(r=t.SCUserReputationType||(t.SCUserReputationType={}))[r.GAIN_BY_UPVOTED=1]="GAIN_BY_UPVOTED",r[r.ASSIGNED_BY_MODERATOR=10]="ASSIGNED_BY_MODERATOR",r[r.GAIN_BY_CANCELLING_CONTRIBUTE_MODERATION=11]="GAIN_BY_CANCELLING_CONTRIBUTE_MODERATION",r[r.GAIN_BY_MAKE_POST=12]="GAIN_BY_MAKE_POST",r[r.GAIN_BY_MAKE_FIRST_LEVEL_COMMENT=13]="GAIN_BY_MAKE_FIRST_LEVEL_COMMENT",r[r.GAIN_BY_MAKE_SECOND_LEVEL_COMMENT=14]="GAIN_BY_MAKE_SECOND_LEVEL_COMMENT",r[r.GAIN_BY_CONNECTION=15]="GAIN_BY_CONNECTION",r[r.GAIN_BY_APP_USED=17]="GAIN_BY_APP_USED",r[r.GAIN_BY_DAILY_VISIT=18]="GAIN_BY_DAILY_VISIT",r[r.GAIN_BY_FOLLOWER=19]="GAIN_BY_FOLLOWER",r[r.GAIN_BY_UNBLOCK_ACCOUNT=20]="GAIN_BY_UNBLOCK_ACCOUNT",r[r.LOSE_BY_UPVOTE_CANCELED=-1]="LOSE_BY_UPVOTE_CANCELED",r[r.LOSE_BY_CONTRIBUTE_MODERATION=-11]="LOSE_BY_CONTRIBUTE_MODERATION",r[r.LOSE_BY_DELETE_POST=-12]="LOSE_BY_DELETE_POST",r[r.LOSE_BY_DELETE_FIRST_LEVEL_COMMENT=-13]="LOSE_BY_DELETE_FIRST_LEVEL_COMMENT",r[r.LOSE_BY_DELETE_SECOND_LEVEL_COMMENT=-14]="LOSE_BY_DELETE_SECOND_LEVEL_COMMENT",r[r.LOSE_BY_CONNECTION=-15]="LOSE_BY_CONNECTION",r[r.LOSE_BY_FOLLOWER=-19]="LOSE_BY_FOLLOWER",r[r.LOSE_BY_BLOCK_ACCOUNT=-20]="LOSE_BY_BLOCK_ACCOUNT"},2137:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resizeImage=t.CacheStrategies=t.LruCache=t.LRUCache=t.LocalStorageDB=t.iOS=t.loadVersionBrowser=t.WSClient=t.sortByAttr=t.groupBy=t.arraysEqual=t.isInteger=t.isFunc=t.objectWithoutProperties=t.isObject=t.mergeDeep=t.Logger=t.handleOpenWindow=t.isClientSideRendering=t.getWindowHeight=t.getWindowWidth=t.getHighestSafeWindowContext=t.updateQueryStringParameter=t.getQueryStringParameter=t.urlB64ToUint8Array=t.appendURLSearchParams=t.getDomain=t.urlReplacer=t.isValidUrls=t.isValidUrl=t.slugify=t.random=t.fallbackCopyTextToClipboard=t.copyTextToClipboard=t.camelCase=t.stripHtml=t.isString=t.capitalize=void 0;var n=r(2970),o=r(5025);Object.defineProperty(t,"capitalize",{enumerable:!0,get:function(){return o.capitalize}}),Object.defineProperty(t,"isString",{enumerable:!0,get:function(){return o.isString}}),Object.defineProperty(t,"stripHtml",{enumerable:!0,get:function(){return o.stripHtml}}),Object.defineProperty(t,"camelCase",{enumerable:!0,get:function(){return o.camelCase}}),Object.defineProperty(t,"copyTextToClipboard",{enumerable:!0,get:function(){return o.copyTextToClipboard}}),Object.defineProperty(t,"fallbackCopyTextToClipboard",{enumerable:!0,get:function(){return o.fallbackCopyTextToClipboard}}),Object.defineProperty(t,"random",{enumerable:!0,get:function(){return o.random}}),Object.defineProperty(t,"slugify",{enumerable:!0,get:function(){return o.slugify}});var i=r(7016);Object.defineProperty(t,"isValidUrl",{enumerable:!0,get:function(){return i.isValidUrl}}),Object.defineProperty(t,"isValidUrls",{enumerable:!0,get:function(){return i.isValidUrls}}),Object.defineProperty(t,"urlReplacer",{enumerable:!0,get:function(){return i.urlReplacer}}),Object.defineProperty(t,"getDomain",{enumerable:!0,get:function(){return i.getDomain}}),Object.defineProperty(t,"appendURLSearchParams",{enumerable:!0,get:function(){return i.appendURLSearchParams}}),Object.defineProperty(t,"urlB64ToUint8Array",{enumerable:!0,get:function(){return i.urlB64ToUint8Array}}),Object.defineProperty(t,"getQueryStringParameter",{enumerable:!0,get:function(){return i.getQueryStringParameter}}),Object.defineProperty(t,"updateQueryStringParameter",{enumerable:!0,get:function(){return i.updateQueryStringParameter}});var a=r(5558);Object.defineProperty(t,"getHighestSafeWindowContext",{enumerable:!0,get:function(){return a.getHighestSafeWindowContext}}),Object.defineProperty(t,"getWindowWidth",{enumerable:!0,get:function(){return a.getWindowWidth}}),Object.defineProperty(t,"getWindowHeight",{enumerable:!0,get:function(){return a.getWindowHeight}}),Object.defineProperty(t,"isClientSideRendering",{enumerable:!0,get:function(){return a.isClientSideRendering}}),Object.defineProperty(t,"handleOpenWindow",{enumerable:!0,get:function(){return a.handleOpenWindow}});var u=r(1196);Object.defineProperty(t,"mergeDeep",{enumerable:!0,get:function(){return u.mergeDeep}}),Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return u.isObject}}),Object.defineProperty(t,"objectWithoutProperties",{enumerable:!0,get:function(){return u.objectWithoutProperties}}),Object.defineProperty(t,"isFunc",{enumerable:!0,get:function(){return u.isFunc}});var c=r(9622);Object.defineProperty(t,"isInteger",{enumerable:!0,get:function(){return c.isInteger}});var s=r(7091);Object.defineProperty(t,"arraysEqual",{enumerable:!0,get:function(){return s.arraysEqual}}),Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return s.groupBy}}),Object.defineProperty(t,"sortByAttr",{enumerable:!0,get:function(){return s.sortByAttr}});var l=r(173);Object.defineProperty(t,"loadVersionBrowser",{enumerable:!0,get:function(){return l.loadVersionBrowser}}),Object.defineProperty(t,"iOS",{enumerable:!0,get:function(){return l.iOS}});var f=r(7125);Object.defineProperty(t,"LocalStorageDB",{enumerable:!0,get:function(){return f.LocalStorageDB}});var d=n.__importStar(r(4769));t.LRUCache=d.default,Object.defineProperty(t,"LruCache",{enumerable:!0,get:function(){return d.LruCache}}),Object.defineProperty(t,"CacheStrategies",{enumerable:!0,get:function(){return d.CacheStrategies}});var p=r(4750);Object.defineProperty(t,"Logger",{enumerable:!0,get:function(){return p.Logger}});var h=n.__importDefault(r(2934));t.WSClient=h.default;var v=r(5978);Object.defineProperty(t,"resizeImage",{enumerable:!0,get:function(){return v.resizeImage}})},7091:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sortByAttr=t.groupBy=t.arraysEqual=void 0,t.arraysEqual=function(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0},t.groupBy=function(e,t){return e.reduce((function(e,r){var n="function"==typeof t?t(r):r[t];return e.hasOwnProperty(n)||(e[n]=[]),e[n].push(r),e}),{})},t.sortByAttr=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!Array.isArray(e))return e;var n=r?function(e,r){return e[t]-r[t]}:function(e,r){return r[t]-e[t]};return e.sort(n)}},173:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.iOS=t.loadVersionBrowser=void 0,t.loadVersionBrowser=function(){if("userAgentData"in navigator){for(var e,t=navigator.userAgentData,r=null,n=0;n<t.brands.length;n++){var o=t.brands[n].brand;if(e=t.brands[n].version,null!==o.match(/opera|chrome|edge|safari|firefox|msie|trident/i)){if(null===o.match(/chrome/i))return{name:o.substr(o.indexOf(" ")+1),version:e};r=e}}if(null!==r)return{name:"chrome",version:r}}var i,a=navigator.userAgent,u=a.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(u[1])?{name:"IE",version:(i=/\brv[ :]+(\d+)/g.exec(a)||[])[1]||""}:"Chrome"===u[1]&&null!=(i=a.match(/\bOPR\/(\d+)/))?{name:"Opera",version:i[1]}:(u=u[2]?[u[1],u[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(i=a.match(/version\/(\d+)/i))&&u.splice(1,1,i[1]),{name:u[0],version:u[1]})},t.iOS=function(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}},4769:(e,t)=>{function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.CacheStrategies=t.LruCache=void 0;var o,i=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;r(this,e),this.values=new Map,this.maxEntries=t,this.ssr="undefined"==typeof window,this.ssr||(window.__viewSCCache=this.values)},t=[{key:"get",value:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{noSsr:!0},o=this.values.has(e);return o?(r=this.values.get(e),this.values.delete(e),this.values.set(e,r)):t&&(r=t,(!this.ssr||!n.noSsr)&&this.values.set(e,r)),r}},{key:"set",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{noSsr:!0};if(!this.ssr||!r.noSsr){if(this.values.size>=this.maxEntries){var n=this.values.keys().next().value;this.values.delete(n)}this.values.set(e,t)}}},{key:"hasKey",value:function(e){return this.values.has(e)}},{key:"delete",value:function(e){this.values.has(e)&&this.values.delete(e)}},{key:"deleteKeys",value:function(e){var t=this;e.forEach((function(e){t.values.has(e)&&t.values.delete(e)}))}},{key:"deleteKeysWithPrefix",value:function(e){var t=this;this.values.forEach((function(r,n){n.startsWith(e)&&t.values.delete(n)}))}},{key:"clean",value:function(){this.values=new Map}},{key:"evaluate",value:function(){console.log(this.values)}}],t&&n(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.LruCache=i,(o=t.CacheStrategies||(t.CacheStrategies={})).CACHE_FIRST="Cache-first",o.NETWORK_ONLY="Network-only",o.STALE_WHILE_REVALIDATE="Stale-While-Revalidate";var a=new i;t.default=a},5978:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resizeImage=void 0,t.resizeImage=function(e){return new Promise((function(t,r){var n=new FileReader;n.onload=function(e){var r=new Image;r.onload=function(e){var n=document.createElement("canvas"),o=1920,i=r.width,a=r.height;i>a?i>o&&(a*=o/i,i=o):a>o&&(i*=o/a,a=o),n.width=i,n.height=a,n.getContext("2d").drawImage(r,0,0,i,a),t(function(e){var t;t=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):unescape(e.split(",")[1]);for(var r=e.split(",")[0].split(":")[1].split(";")[0],n=new Uint8Array(t.length),o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return new Blob([n],{type:r})}(n.toDataURL("image/jpeg")))},r.src=e.target.result},n.onerror=r,n.readAsDataURL(e)}))}},7125:(e,t)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStorageDB=void 0;var o=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"set",value:function(e,t){if(this.checkifSupport())try{window.localStorage.setItem(e,t)}catch(e){console.error(e)}else console.error("No support. Use a fallback such as browser cookies or store on the server.")}},{key:"get",value:function(e){try{var t=window.localStorage.getItem(e);return t&&"object"===r(t)?JSON.parse(t):t}catch(e){return null}}},{key:"getAll",value:function(){for(var e=[],t=0;t<window.localStorage.length;t++){var r=localStorage.key(t);e.push(this.get(r))}return e}},{key:"remove",value:function(e){try{window.localStorage.removeItem(e),0==window.localStorage.length&&this.clearAll()}catch(e){console.error(e)}finally{this.get(e)&&(delete window.localStorage[e],0==window.localStorage.length&&this.clearAll())}}},{key:"clearAll",value:function(){try{window.localStorage.clear()}catch(e){console.error(e)}}},{key:"checkifSupport",value:function(){try{return"localStorage"in window&&null!==window.localStorage}catch(e){return!1}}}],null&&n(e.prototype,null),t&&n(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.LocalStorageDB=o},4750:(e,t)=>{function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;var n=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"info",value:function(e,t){console.info("%c[".concat(e,"]"),"color:#008080"," ".concat(t))}},{key:"warn",value:function(e,t){console.warn("%c[".concat(e,"]"),"color:#008080"," ".concat(t))}},{key:"error",value:function(e,t){console.error("%c[".concat(e,"]"),"color:#008080"," ".concat(t))}},{key:"log",value:function(e,t){console.log("%c[".concat(e,"]"),"color:#008080"," ".concat(t))}},{key:"debug",value:function(e,t){console.debug("%c[".concat(e,"]"),"color:#008080"," ".concat(t))}}],null&&r(e.prototype,null),t&&r(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.Logger=n},9622:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isInteger=void 0,t.isInteger=function(e){return!isNaN(e)&&parseInt(String(Number(e)))==e&&!isNaN(parseInt(String(e),10))}},1196:(e,t)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e){return"object"===r(e)&&!Array.isArray(e)&&null!==e}Object.defineProperty(t,"__esModule",{value:!0}),t.isFunc=t.objectWithoutProperties=t.mergeDeep=t.isObject=void 0,t.isObject=n,t.mergeDeep=function e(t,r){var o=Object.assign({},t);return n(t)&&n(r)&&Object.keys(r).forEach((function(i){n(r[i])&&i in t?o[i]=e(t[i],r[i]):Object.assign(o,function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},i,r[i]))})),o},t.objectWithoutProperties=function(e,t){var r=e?Object.assign({},e):null;return t.forEach((function(e){r&&e in r&&delete r[e]})),r},t.isFunc=function(e){return"function"==typeof e}},5025:(e,t)=>{function r(e){var t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{return document.execCommand("copy"),document.body.removeChild(t),Promise.resolve()}catch(e){return document.body.removeChild(t),Promise.reject(e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.slugify=t.copyTextToClipboard=t.fallbackCopyTextToClipboard=t.random=t.stripHtml=t.camelCase=t.capitalize=t.isString=void 0,t.isString=function(e){return"string"==typeof e||e instanceof String},t.capitalize=function(e){for(var t="",r=e.split(" "),n=0;n<r.length;n++)t+=r[n].substring(0,1).toUpperCase()+r[n].substring(1,r[n].length);return t},t.camelCase=function(e){return e.toLowerCase().replace(/[-_]+/g," ").replace(/[^\w\s]/g,"").replace(/ (.)/g,(function(e){return e.toUpperCase()})).replace(/ /g,"")},t.stripHtml=function(e){return e.replace(/<[^>]*>?/gm,"").trim()},t.random=function(){return(Math.random()+1).toString(36).substring(7)},t.fallbackCopyTextToClipboard=r,t.copyTextToClipboard=function(e){return navigator.clipboard?navigator.clipboard.writeText(e):r(e)},t.slugify=function(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}},7016:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateQueryStringParameter=t.getQueryStringParameter=t.urlB64ToUint8Array=t.appendURLSearchParams=t.isValidUrls=t.isValidUrl=t.getDomain=t.urlReplacer=void 0,t.urlReplacer=function(e){return function(t){return function(e,t){for(var r=/\$\(([^)]+)?\)/g,n=r.exec(e);n;)e=e.replace(n[0],t[n[1]]),r.lastIndex=0,n=r.exec(e);return e}(e,t)}},t.getDomain=function(e){var t=e.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);return t&&t[1]?t[1]:""},t.isValidUrl=function(e){return/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-/]))?/.test(e)},t.isValidUrls=function(e,r){return e.trim().split(r).every(t.isValidUrl)},t.appendURLSearchParams=function(e,t){var r=e;if(t.length&&r){var n=Object.keys(t[0])[0];r+=(r.split("?")[1]?"&":"?")+"".concat(n,"=").concat(t[0][n]),t.slice(1).map((function(e){var t=Object.keys(e)[0];r+="&".concat(t,"=").concat(e[t])}))}return r},t.urlB64ToUint8Array=function(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(t),n=new Uint8Array(r.length),o=0;o<r.length;++o)n[o]=r.charCodeAt(o);return n},t.getQueryStringParameter=function(e,t){return e&&t?new URL(e).searchParams.get(t):null},t.updateQueryStringParameter=function(e,t,r){if(e&&t&&r){var n=new RegExp("([?&])"+t+"=.*?(&|$)","i"),o=-1!==e.indexOf("?")?"&":"?";return e.match(n)?e.replace(n,"$1"+t+"="+r+"$2"):e+o+t+"="+r}return e}},2934:(e,t)=>{function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._attempts=1,this._heartbeatInterval=null,this._missedHeartbeats=0,this.isValidOptions(t)&&(this._cfg=Object.assign({},{heartbeatMsg:null,debug:!1,mustReconnect:!0},t),this.connect())}return t=e,o=[{key:"getInstance",value:function(t){return this._instance=this._instance||new e(t),this._instance}}],(n=[{key:"connect",value:function(){try{if(this._ws&&(this.isConnecting()||this.isConnected()))return void(this._cfg.debug&&console.info("Websocket is connecting or already connected."));"function"==typeof this._cfg.connecting&&this._cfg.connecting(),this._cfg.debug&&console.info("Connecting to ".concat(this._cfg.uri," ...")),this._ws=new WebSocket(this._cfg.uri,this._cfg.protocols),this._ws.onopen=this.onOpen.bind(this),this._ws.onmessage=this.onMessage.bind(this),this._ws.onerror=this.onError.bind(this),this._ws.onclose=this.onClose.bind(this),this._timer=null}catch(e){console.error(e),this.tryToReconnect()}}},{key:"isValidOptions",value:function(e){var t=!1;return e?(e.uri||(console.error("Invalid WSClient Uri options."),t=!0),e&&e.connecting&&"function"!=typeof e.connecting&&(console.error("Invalid WSClient connecting options."),t=!0),e&&e.connected&&"function"!=typeof e.connected&&(console.error("Invalid WSClient connected options."),t=!0),e&&e.receiveMessage&&"function"!=typeof e.receiveMessage&&(console.error("Invalid WSClient receiveMessage options."),t=!0),e&&e.disconnected&&"function"!=typeof e.disconnected&&(console.error("Invalid WSClient connecting options."),t=!0),e&&e.heartbeatMsg&&"string"!=typeof e.heartbeatMsg&&(console.error("Invalid WSClient heartbeatMsg options."),t=!0),e&&e.debug&&"boolean"!=typeof e.debug&&(console.error("Invalid WSClient debug options."),t=!0),!t):(console.error("Invalid WSClient options."),t)}},{key:"tryToReconnect",value:function(){if(this._cfg.mustReconnect&&!this._timer){this._cfg.debug&&console.info("Reconnecting...");var e=this.generateInterval(this._attempts);this._timer=setTimeout(this.reconnect.bind(this),e)}}},{key:"reconnect",value:function(){this._attempts++,this.connect()}},{key:"sendHeartbeat",value:function(){try{if(this._missedHeartbeats++,this._missedHeartbeats>3)throw new Error("Too many missed heartbeats.");this._ws.send(this._cfg.heartbeatMsg)}catch(e){clearInterval(this._heartbeatInterval),this._heartbeatInterval=null,this._cfg.debug&&console.warn("Closing connection. Reason: ".concat(e.message)),this.isClosing()||this.isClosed()||this.close()}}},{key:"onOpen",value:function(){this._cfg.debug&&console.info("Connected!"),this._attempts=1,this._cfg.heartbeatMsg&&null===this._heartbeatInterval&&(this._missedHeartbeats=0,this._heartbeatInterval=setInterval(this.sendHeartbeat.bind(this),5e3)),"function"==typeof this._cfg.connected&&this._cfg.connected()}},{key:"onClose",value:function(e){this._cfg.debug&&console.info("Connection closed!"),"function"==typeof this._cfg.disconnected&&this._cfg.disconnected(e),this.tryToReconnect()}},{key:"onError",value:function(e){this._cfg.debug&&console.error("Websocket connection is broken!"),this._cfg.debug&&console.error(e)}},{key:"onMessage",value:function(e){if(this._cfg.heartbeatMsg&&e.data===this._cfg.heartbeatMsg)this._missedHeartbeats=0;else if("function"==typeof this._cfg.receiveMessage)return this._cfg.receiveMessage(e.data)}},{key:"generateInterval",value:function(e){var t=1e3*(Math.pow(2,e)-1);return t>3e4&&(t=3e4),Math.random()*t}},{key:"sendMessage",value:function(e){this._ws&&this._ws.send(e)}},{key:"getState",value:function(){return this._ws&&this._ws.readyState}},{key:"isConnecting",value:function(){return this._ws&&0===this._ws.readyState}},{key:"isConnected",value:function(){return this._ws&&1===this._ws.readyState}},{key:"isClosing",value:function(){return this._ws&&2===this._ws.readyState}},{key:"isClosed",value:function(){return this._ws&&3===this._ws.readyState}},{key:"close",value:function(){clearInterval(this._heartbeatInterval),this._cfg.mustReconnect=!1,this.isClosing()&&this.isClosed()||(this._ws.close(),this._cfg.debug&&console.error("Websocket closed."))}}])&&r(t.prototype,n),o&&r(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o}();t.default=n},5558:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.handleOpenWindow=t.isClientSideRendering=t.getHighestSafeWindowContext=t.getWindowHeight=t.getWindowWidth=void 0,t.getWindowWidth=function(){return void 0!==r.g.window?r.g.window.innerWidth:0},t.getWindowHeight=function(){return void 0!==r.g.window?r.g.window.innerHeight:0};var n=function(){try{return r.g.window.location.hostname!==r.g.window.parent.location.hostname}catch(e){return!0}};t.getHighestSafeWindowContext=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.g.window.self;return t===r.g.window.top||n()?t:e(t.parent)},t.isClientSideRendering=function(){return"undefined"!=typeof window},t.handleOpenWindow=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank";if(e){var r=window.open(e,t);return r&&r.focus(),r}return null}},901:e=>{e.exports=t},4584:e=>{e.exports=r},8156:t=>{t.exports=e},7111:e=>{e.exports=i},9767:e=>{e.exports=n},5276:e=>{e.exports=o}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={id:e,loaded:!1,exports:{}};return u[e].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}s.m=u,a=[],s.O=(e,t,r,n)=>{if(!t){var o=1/0;for(l=0;l<a.length;l++){for(var[t,r,n]=a[l],i=!0,u=0;u<t.length;u++)(!1&n||o>=n)&&Object.keys(s.O).every((e=>s.O[e](t[u])))?t.splice(u--,1):(i=!1,n<o&&(o=n));if(i){a.splice(l--,1);var c=r();void 0!==c&&(e=c)}}return e}n=n||0;for(var l=a.length;l>0&&a[l-1][2]>n;l--)a[l]=a[l-1];a[l]=[t,r,n]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={984:0};s.O.j=t=>0===e[t];var t=(t,r)=>{var n,o,[i,a,u]=r,c=0;if(i.some((t=>0!==e[t]))){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);if(u)var l=u(s)}for(t&&t(r);c<i.length;c++)o=i[c],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return s.O(l)},r=self.webpackChunkSelfCommunityReactCore=self.webpackChunkSelfCommunityReactCore||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var l=s.O(void 0,[595],(()=>s(7721)));return s.O(l)})()));
|