jamespot-user-api 1.0.195 → 1.0.197

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.
Files changed (72) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminLicenseApi.html +14 -14
  3. package/documentation/classes/AdminStoreApi.html +1 -1
  4. package/documentation/classes/AdminUtilsApi.html +1 -1
  5. package/documentation/classes/JApplicationApi.html +8 -8
  6. package/documentation/classes/JArticleApi.html +1 -1
  7. package/documentation/classes/JAssetReservation.html +1 -1
  8. package/documentation/classes/JAudienceApi.html +1 -1
  9. package/documentation/classes/JBaseApi.html +1 -1
  10. package/documentation/classes/JBbbApi.html +1 -1
  11. package/documentation/classes/JBookmarkApi.html +1 -1
  12. package/documentation/classes/JBusinessNetworkingApi.html +1 -1
  13. package/documentation/classes/JCommunityApi.html +1 -1
  14. package/documentation/classes/JDatasourceApi.html +1 -1
  15. package/documentation/classes/JDiapazoneApi.html +1 -1
  16. package/documentation/classes/JFaqApi.html +1 -1
  17. package/documentation/classes/JFileApi.html +5 -5
  18. package/documentation/classes/JFilebankApi.html +1 -1
  19. package/documentation/classes/JGlobalApi.html +1 -1
  20. package/documentation/classes/JGroupApi.html +12 -12
  21. package/documentation/classes/JIAApi.html +1 -1
  22. package/documentation/classes/JLandApi.html +1 -1
  23. package/documentation/classes/JMessengerApi.html +1 -1
  24. package/documentation/classes/JObjectApi.html +1 -1
  25. package/documentation/classes/JSearchApi.html +6 -6
  26. package/documentation/classes/JShareApi.html +1 -1
  27. package/documentation/classes/JSocialActionApi.html +1 -1
  28. package/documentation/classes/JTaxonomyApi.html +2 -2
  29. package/documentation/classes/JUserApi.html +7 -7
  30. package/documentation/classes/JWedocApi.html +1 -1
  31. package/documentation/classes/JWidgetApi.html +1 -1
  32. package/documentation/classes/JamespotUserApi.html +1 -1
  33. package/documentation/classes/Network.html +1 -1
  34. package/documentation/classes/TVDisplayApi.html +1 -1
  35. package/documentation/classes/WindowBrowser.html +1 -1
  36. package/documentation/enums/BookmarkType.html +1 -1
  37. package/documentation/enums/Format.html +1 -1
  38. package/documentation/enums/GroupModerateStatus.html +1 -1
  39. package/documentation/enums/StudioApplicationStatus.html +1 -1
  40. package/documentation/enums/WidgetsName.html +1 -1
  41. package/documentation/interfaces/AccessRightObject.html +1 -1
  42. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  43. package/documentation/interfaces/ApiWrapper.html +1 -1
  44. package/documentation/interfaces/BaseMessage.html +1 -1
  45. package/documentation/interfaces/FileBankProps.html +1 -1
  46. package/documentation/interfaces/FolderProps.html +1 -1
  47. package/documentation/interfaces/ListFilterSpec.html +1 -1
  48. package/documentation/interfaces/OF.html +1 -1
  49. package/documentation/interfaces/PagingResults.html +1 -1
  50. package/documentation/interfaces/RootFolderProps.html +1 -1
  51. package/documentation/interfaces/SpotProps.html +1 -1
  52. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  53. package/documentation/interfaces/WidgetType.html +1 -1
  54. package/documentation/interfaces/WindowInterface.html +1 -1
  55. package/documentation/modules.html +11 -11
  56. package/lib/jamespot-user-api.js +1 -1
  57. package/lib/jamespot-user-api.js.map +1 -1
  58. package/lib/src/apis/application/types.d.ts +1 -0
  59. package/lib/src/apis/jamespotUserApi.d.ts +2 -0
  60. package/lib/src/apis/visioConnect/visioConnect.d.ts +7 -0
  61. package/lib/src/apis/visioConnect/visioConnect.mock.d.ts +2 -0
  62. package/lib/src/apis/visioConnect/visioConnect.test.d.ts +1 -0
  63. package/lib/src/types/article.d.ts +3 -0
  64. package/lib/src/types/visioConnect.d.ts +18 -0
  65. package/package.json +1 -1
  66. package/phpunitMock/studioGet-install-V2.json +1 -0
  67. package/phpunitMock/studioInstall-V2.json +1 -0
  68. package/phpunitMock/studioList-install-V2.json +1 -0
  69. package/phpunitMock/studioList-testUserApiList.json +1 -0
  70. package/phpunitMock/studioRestart-V2.json +1 -0
  71. package/phpunitMock/studioSuspend-V2.json +1 -0
  72. package/phpunitMock/visioConnectVideoRecordingDelete-default.json +1 -0
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ACCESS_REQUEST_ACCEPT:()=>vc,ACCESS_REQUEST_DENY:()=>wc,AdminLicenseApi:()=>r,AdminStoreApi:()=>a,AdminUtilsApi:()=>s,BookmarkType:()=>Xa,DateFormatSchema:()=>Tr,Format:()=>An,GroupModerateStatus:()=>ca,JApplicationApi:()=>o,JArticleApi:()=>tu,JAssetReservation:()=>iu,JAudienceApi:()=>ru,JBaseApi:()=>n,JBbbApi:()=>au,JBookmarkApi:()=>su,JBusinessNetworkingApi:()=>ou,JCommunityApi:()=>lu,JDatasourceApi:()=>cu,JDiapazoneApi:()=>uu,JFaqApi:()=>mu,JFileApi:()=>pu,JFilebankApi:()=>gu,JGlobalApi:()=>hu,JGroupApi:()=>fu,JIAApi:()=>Iu,JLandApi:()=>wu,JLandMapCreationSchema:()=>el,JMessengerApi:()=>ku,JObjectApi:()=>Fu,JSearchApi:()=>_u,JShareApi:()=>Au,JSocialActionApi:()=>Pu,JTaxonomyApi:()=>ju,JUserApi:()=>xu,JWedocApi:()=>Cu,JWidgetApi:()=>Mu,JamespotUserApi:()=>Zu,JamespotUserApiInstance:()=>Wu,Network:()=>pn,NumberFormatSchema:()=>Ar,StudioApplicationStatus:()=>i,TVDisplayApi:()=>Tu,UserLevel:()=>vi,WidgetsName:()=>zi,WindowBrowser:()=>Uu,accessRequestStatusValuesSchema:()=>kc,actionVerbSchema:()=>Us,addCommentParamsSchema:()=>Wa,addFaqEntrySchema:()=>Oo,addRemoveActionParamsSchema:()=>Vl,adminAppSchema:()=>ms,adminAppTabSchema:()=>ps,adminAppsSchema:()=>gs,adminLicenseStatsSchema:()=>is,adminLicenseUserSchema:()=>cs,adminLicensesAssignedSchema:()=>ss,adminLicensesNotAssignedSchema:()=>as,animationConfigurationTypeSchema:()=>fs,animationStatsRowSchema:()=>bs,animationStatsSchema:()=>ys,animationVariantSchema:()=>hs,api:()=>$u,articleCreationSchema:()=>Za,articleDisplayModeSchema:()=>nr,articleGetConfigSchema:()=>Na,articleListConfigSchema:()=>Da,aseiGroupsSchema:()=>_s,aseiInstitutionSchema:()=>ks,aseiRightsSchema:()=>Ss,aseiTicketSchema:()=>ws,aseiTicketStatusSchema:()=>vs,assetReservationConfigurationSchema:()=>js,audienceAutocompleteSchema:()=>Fs,audienceSchema:()=>La,baseArticleSchema:()=>Ua,baseAutocompleteSchema:()=>As,baseEntitySchema:()=>zs,bookableAssetListSchema:()=>xs,bookableAssetViewSchema:()=>Cs,bookmarkCustomSchema:()=>ns,bookmarkLinkSchema:()=>es,bookmarkTypesSchema:()=>ts,businessContactSchema:()=>Ei,categorySchema:()=>wa,checkProperties:()=>un,combineFormat:()=>yn,combinedWidgetContentSchema:()=>ea,combinedWidgetTypeSchema:()=>Yr,communitySchema:()=>Es,createFaqCategorySchema:()=>wo,createFaqEntrySchema:()=>Ao,createFaqThemeSchema:()=>xo,createGroupSchema:()=>ra,cssBackgroundPositionSchema:()=>Hi,cssBackgroundSizeSchema:()=>Qi,cssTextAlignTypeSchema:()=>Ki,deepEqual:()=>fn,default:()=>Bu,deleteFaqThemeSchema:()=>Co,documentEntitySchema:()=>Hs,driveAccountSchema:()=>eo,driveGetAccountParamsSchema:()=>oo,driveGetAccountSchema:()=>lo,driveGetDocumentParamsSchema:()=>ao,driveGetGroupsParamsSchema:()=>go,driveGetTenantsParamsSchema:()=>uo,driveItemTypeSchema:()=>to,driveLogoutParamsSchema:()=>so,driveSetDefaultAccountParamsSchema:()=>co,driveTmpFileSchema:()=>ro,dropboxDocumentEntitySchema:()=>Ys,dropboxDocumentParamsSchema:()=>io,dropboxGetDocumentsParamsSchema:()=>mo,editFaqCategorySchema:()=>ko,editFaqEntrySchema:()=>Lo,editFaqThemeSchema:()=>To,ensureIsViewEvent:()=>Ja,ensureTVGetConfigureDynamicChannelResponse:()=>dc,ensureTVGetConfigureSlideshowChannelResponse:()=>mc,ensureWidgetArticleAttachmentType:()=>Vc,ensureWidgetArticleButtonType:()=>zc,ensureWidgetArticleGalleryType:()=>Gc,ensureWidgetArticleImageType:()=>Jc,ensureWidgetArticleSliderType:()=>Kc,ensureWidgetArticleTextType:()=>Hc,ensureWidgetArticleTitleType:()=>Qc,ensureWidgetCheckListType:()=>Yc,ensureWidgetContent:()=>rr,ensureWidgetDatasourceTableType:()=>Xc,ensureWidgetDefinitionProps:()=>Lc,ensureWidgetExcelDatasourceTableType:()=>eu,ensureWidgetObjectHasMinimumProperties:()=>Rc,ensureWidgetPresenceContent:()=>Vr,ensureWidgetPresenceResponse:()=>Qr,ensureWidgetPresenceResponsePayload:()=>Kr,ensureWidgetPresenceType:()=>Gr,ensureWidgetType:()=>ir,ensureWidgetWrapperProps:()=>$c,extensions:()=>$t,extractTaxonomiesFromObject:()=>sn,extractTaxonomiesFromObjectAndMapProperty:()=>on,extractTaxonomiesFromObjectAndMapUri:()=>ln,facetModeSchema:()=>jl,faqAccessSchema:()=>jo,faqHookPropertiesSchema:()=>So,faqItemListSchema:()=>yo,faqItemViewSchema:()=>vo,faqListSchema:()=>ho,faqTaxonomySchema:()=>_o,faqViewSchema:()=>fo,fileCropConfigSchema:()=>Ui,filterSchema:()=>jn,filterValueSchema:()=>kn,filtersSchema:()=>Cn,formatExtensionSchema:()=>Rn,formatImgUrl:()=>Wt,formatListSchema:()=>Ln,getActionUsersParamsSchema:()=>$l,getArgs:()=>Nt,getCommentsParamsSchema:()=>qa,getExtensionFromName:()=>Jt,getFileExtensionFromMimetype:()=>Gt,getFileFamily:()=>en,getFileFamilyFromName:()=>Yt,getFormat:()=>Ut,getFrom:()=>Mt,getLicenseKindUsersParamsSchema:()=>al,getMimetypeFromExtension:()=>zt,getMimetypeFromName:()=>Kt,getSize:()=>Zt,getTimestamp:()=>Dt,getUnclassifiedFilesParamsSchema:()=>cl,getUri:()=>It,getUrl:()=>qt,groupCustomWidgetSchema:()=>ga,groupListConfigSchema:()=>xa,groupMemberLevelSchema:()=>oa,groupMemberSchema:()=>da,groupModerateStatusSchema:()=>ua,groupPropertiesOptionsSchema:()=>ha,groupPropertiesSchema:()=>ba,groupUserLevelSchema:()=>sa,groupWidgetLittleSchema:()=>ma,groupWidgetSchema:()=>va,hookListTypeSchema:()=>zo,imageSizeSchema:()=>Zi,inferBookmarkListSchema:()=>Ya,inferBookmarkRawListSchema:()=>Qa,inferExtendedFaqCategory:()=>bo,inferJInternalDraftView:()=>Ma,inferJLinkListSchema:()=>Ha,inferMaybeWithToken:()=>Tn,inferSearchQueryResultSchema:()=>Ml,inferTVChannelCustomSchema:()=>Ql,inferUserLicenseSchema:()=>sl,jAdminLicenseUserListSchema:()=>ls,jArticleExtendViewSchema:()=>Ia,jArticleListSchema:()=>Ea,jArticleListShapeTmp:()=>Fa,jArticleLittleSchema:()=>Ra,jArticleViewSchema:()=>Pa,jArticleWidgetLittle:()=>Fc,jArticleWidgetViewSchema:()=>Bc,jBusinessContactListSchema:()=>Zs,jBusinessContactLittleSchema:()=>Ns,jCommentListSchema:()=>Bs,jCommentLittleSchema:()=>Ws,jDiapazoneListSchema:()=>$s,jEnsure:()=>u,jFileLittleCropSchema:()=>Bi,jFileLittleSchema:()=>qi,jFileRenditionSchema:()=>$i,jFolderListSchema:()=>Va,jFolderLittleSchema:()=>Oa,jGroupListSchema:()=>_a,jGroupLittleSchema:()=>ka,jGroupViewSchema:()=>Sa,jHrefSchema:()=>vn,jIACapabilitiesSchema:()=>Go,jLandAdditionalPropsSchema:()=>tl,jLandLogSchema:()=>Ko,jLandMapFlavorSchema:()=>Qo,jLandMapKindSchema:()=>Yo,jLandMapListSchema:()=>il,jLandMapLittleSchema:()=>nl,jLandMapSchema:()=>Xo,jLandMapViewSchema:()=>rl,jLandStatSchema:()=>Ho,jLinkLittleSchema:()=>Ka,jMeetingListSchema:()=>gl,jMeetingViewSchema:()=>hl,jObjectAutocompleteSchema:()=>Os,jObjectBaseSchema:()=>Pn,jObjectListSchema:()=>Ta,jObjectLittleSchema:()=>In,jPollSurveyListSchema:()=>bl,jPollSurveyViewSchema:()=>yl,jQuizzListSchema:()=>kl,jQuizzViewSchema:()=>_l,jSocialEventListSchema:()=>za,jSocialEventViewSchema:()=>Ga,jSpotAutocompleteSchema:()=>Rs,jSupportListSchema:()=>zl,jSupportViewSchema:()=>Gl,jSurveyDateListSchema:()=>Jl,jSurveyDateViewSchema:()=>Kl,jUserAutocompleteSchema:()=>Ls,jUserListSchema:()=>ki,jUserLittleSchema:()=>wi,jUserValuesSchema:()=>Ai,jUserViewSchema:()=>Si,licenseSchema:()=>os,mediaLibraryFilesStatsSchema:()=>ul,mediaLibraryFolderSchema:()=>ol,mediaLibraryFolderStatsSchema:()=>dl,mediaLibraryListSchema:()=>ll,mediaLibraryStatsSchema:()=>pl,mimetypeToExt:()=>Vt,mimetypes:()=>Bt,moveFaqEntrySchema:()=>Ro,moveFaqThemeSchema:()=>Fo,moveMediaLibraryFileParamsSchema:()=>ml,msDocumentEntitySchema:()=>Qs,msDocumentParamsSchema:()=>no,msGetDocumentsParamsSchema:()=>po,msGroupEntitySchema:()=>Ks,msSiteEntitySchema:()=>Js,msTenantEntitySchema:()=>Gs,msTenantsSchema:()=>Vs,msUnifiedEntitySchema:()=>Xs,network:()=>qu,networkTypeSchema:()=>fl,objectListPropsSchema:()=>Fn,objectTimestamp:()=>Ht,objectWithoutLicenseFilterSchema:()=>rs,onlyOfficeTemplateSchema:()=>No,openingTypeAnchorSchema:()=>sr,openingTypeLinkSchema:()=>ar,openingTypePopupSchema:()=>or,openingTypeSchema:()=>er,orderSchema:()=>wn,ordersSchema:()=>xn,padStartTwoDigits:()=>m,prepareGroupForUpdate:()=>cn,publicWebinarData:()=>Ds,publicWebinarFullnameRequestSchema:()=>Ps,publicWebinarGetDateRequestSchema:()=>Ms,publicWebinarUrlSchema:()=>Is,questionAnswerSelectResponseParamsSchema:()=>vl,questionAnswerUnselectResponseParamsSchema:()=>wl,removeIfStartsWith:()=>p,replacePropertiesWithTypes:()=>bn,reservationListSchema:()=>Ts,resetNotificationConfigurationSchema:()=>ja,resolveFileFamily:()=>rn,resolveFileMimetype:()=>nn,resolveFilePath:()=>Qt,resolveFileUrl:()=>tn,rightsSchema:()=>Mi,rssTypeSchema:()=>fa,searchCategoryModelSchema:()=>Cl,searchCategoryValueSchema:()=>Sl,searchConfigSchema:()=>Fl,searchFacetModelSchema:()=>xl,searchFacetValueModelSchema:()=>Al,searchFacetValuesSchema:()=>Tl,searchLastQuerySchema:()=>Dl,searchQueryFilterModelSchema:()=>Ol,searchQueryOptionSchema:()=>Rl,searchQuerySchema:()=>Il,searchQuerySortModelSchema:()=>Ll,searchResultCatPropsSchema:()=>Zl,searchResultPropsAppSchema:()=>El,searchResultPropsObjectSchema:()=>Pl,searchResultPropsSchema:()=>Nl,shareAccessObjectSchema:()=>Bl,shareAccessPropsSchema:()=>Wl,shareGeneralAccessRulesSchema:()=>Ul,shareOptionObjectSchema:()=>ql,socialActionSchema:()=>qs,spotBannerImageSchema:()=>aa,storeFinalizeSchema:()=>ds,storeItemSchema:()=>us,suffixIfDoesNotExist:()=>d,textEnhanceResponseSchema:()=>Jo,tinyMCECommonOptionsSchema:()=>bc,tinyMCEDynamicOptionsSchema:()=>fc,tinymceExtendedOptionsSchema:()=>yc,tvChannelCreatePayloadSchema:()=>sc,tvChannelCreationSchema:()=>ac,tvChannelCustomListDynamicSchema:()=>Yl,tvChannelCustomListSchema:()=>ic,tvChannelCustomListSlideshowSchema:()=>Xl,tvChannelDynamicArticleSchema:()=>lc,tvChannelDynamicCommentSchema:()=>oc,tvChannelDynamicListSchema:()=>tc,tvChannelListSchema:()=>rc,tvChannelLittleSchema:()=>ec,tvChannelSlideshowFileSchema:()=>cc,tvChannelSlideshowListSchema:()=>nc,tvChannelTypeSchema:()=>Hl,tvGetChannelResponseSchema:()=>hc,tvGetConfigureChannelResponseSchema:()=>gc,tvGetConfigureDynamicChannelResponse:()=>uc,tvGetConfigureSlideshowChannelResponse:()=>pc,updateCommentParamsSchema:()=>Ba,updateGroupSchema:()=>ya,uploadConfigSchema:()=>Ni,userDefaultFieldsTypeSchema:()=>Ti,userDirectoryConfigurationSchema:()=>Pi,userDownloadSchema:()=>Vi,userFieldSchema:()=>Li,userFieldsConfigurationTypeSchema:()=>Oi,userFieldsSchema:()=>Ri,userLevelSpotSchema:()=>la,userMapModelSchema:()=>xi,userReadSchema:()=>$a,userValuesSchema:()=>Fi,validateIsFormatFileLittle:()=>Wi,validateIsFormatObjectList:()=>Aa,validateIsFormatObjectLittle:()=>Mn,validateIsFormatRights:()=>Di,validateIsFormatUserDirectoryConfiguration:()=>Ii,validateIsFormatUserLevelSpot:()=>Ca,validateIsFormatUserList:()=>_i,validateIsFormatUserMapModel:()=>Ci,validateIsFormatUserView:()=>ji,valueLabelSchema:()=>pa,variantSizeTypeSchema:()=>Yi,variantTypeSchema:()=>Xi,wedocEmptyTypeSchema:()=>Ac,wedocFileAudienceTypeSchema:()=>jc,wedocFileInfoSchema:()=>_c,wedocFileTypeSchema:()=>Sc,wedocQueryResultsSchema:()=>Cc,wedocQueryTypeSchema:()=>Tc,wedocTemplateSchema:()=>xc,widgetActiveValueSchema:()=>Hn,widgetArticleAttachmentContentSchema:()=>vr,widgetArticleAttachmentTypeSchema:()=>wr,widgetArticleButtonContentSchema:()=>cr,widgetArticleButtonTypeSchema:()=>ur,widgetArticleCheckListTypeForFrontSchema:()=>Nc,widgetArticleGalleryContentSchema:()=>dr,widgetArticleGalleryTypeSchema:()=>pr,widgetArticleImageContentSchema:()=>br,widgetArticleImageTypeSchema:()=>yr,widgetArticleSliderContentSchema:()=>_r,widgetArticleSliderTypeSchema:()=>Sr,widgetArticleTextContentSchema:()=>hr,widgetArticleTextTypeSchema:()=>fr,widgetArticleTitleContentSchema:()=>mr,widgetArticleTitleTypeSchema:()=>gr,widgetAudienceSchema:()=>Qn,widgetBaseSchema:()=>Ji,widgetButtonPropsSchema:()=>lr,widgetCheckListContentArrForFrontSchema:()=>Mc,widgetCheckListContentArrSchema:()=>jr,widgetCheckListContentForFrontSchema:()=>Dc,widgetCheckListContentSchema:()=>xr,widgetCheckListTypeSchema:()=>Cr,widgetCheckboxSchema:()=>di,widgetColorSchema:()=>Bn,widgetContentKeysSchema:()=>na,widgetDatasourceTableContentSchema:()=>Ur,widgetDatasourceTableTypeSchema:()=>qr,widgetDatePickerSchema:()=>Jn,widgetDatePickerValueSchema:()=>Kn,widgetDateSchema:()=>$n,widgetDateValueSchema:()=>Vn,widgetDatetimeSchema:()=>zn,widgetDatetimeValueSchema:()=>Gn,widgetDefaultProps:()=>Ic,widgetDefinitionPropsSchema:()=>Oc,widgetDisplayModeSchema:()=>Pc,widgetEmailSchema:()=>ii,widgetEmailValueSchema:()=>ri,widgetEmbedSchema:()=>ni,widgetExcelDatasourceTableContentSchema:()=>Wr,widgetExcelDatasourceTableTypeSchema:()=>Br,widgetFileSchema:()=>ei,widgetKeysSchema:()=>Gi,widgetLayerSchema:()=>Ec,widgetLinkSchema:()=>Yn,widgetModalPropsSchema:()=>Zc,widgetMultiattributeSchema:()=>Xn,widgetNumberSchema:()=>qn,widgetNumberValueSchema:()=>Wn,widgetOrientedlinksSchema:()=>hi,widgetPlaceSchema:()=>oi,widgetPresenceContentSchema:()=>$r,widgetPresenceRespondPayloadSchema:()=>Jr,widgetPresenceResponseSchema:()=>Hr,widgetPresenceTypeSchema:()=>zr,widgetRadioSchema:()=>ui,widgetRefUserSchema:()=>li,widgetRtObjectSchema:()=>Uc,widgetSchema:()=>bi,widgetSelectSchema:()=>ti,widgetSlideSchema:()=>kr,widgetStatePropsSchema:()=>ia,widgetTableColumnDataSchema:()=>Ir,widgetTableColumnSchema:()=>Nr,widgetTableColumnTypesSchema:()=>Dr,widgetTableColumnWidgetDateSchema:()=>Er,widgetTableColumnWidgetDefaulSchema:()=>Or,widgetTableColumnWidgetSelectOptionSchema:()=>Rr,widgetTableColumnWidgetSelectSchema:()=>Fr,widgetTableColumnWidgetTextSchema:()=>Lr,widgetTableColumnWidgetsSchema:()=>Pr,widgetTableColumnsData:()=>Mr,widgetTableContentSchema:()=>Zr,widgetTaxonomySchema:()=>pi,widgetTelSchema:()=>mi,widgetTextSchema:()=>Dn,widgetTextValueSchema:()=>Nn,widgetTextareaSchema:()=>Zn,widgetTextareaValueSchema:()=>Un,widgetToggleSchema:()=>gi,widgetTransientSchema:()=>ci,widgetTypeKeysSchema:()=>ta,widgetUriSchema:()=>fi,widgetUrlSchema:()=>ai,widgetUrlValueSchema:()=>si,widgetVectorSchema:()=>tr,widgetWrapperPropsSchema:()=>Xr,widgetsRootStateSchema:()=>Wc,widgetsStateSchema:()=>qc,widgetsValueSchema:()=>yi});class n{constructor(e){this.jApi=e,this.network=e.network}}var i;class r extends n{getLicenseUserStatistics(e){return this.network.post({o:"licenseManager",f:"userStatistics"},e)}getLicenseStatistics(e,t){return this.network.post({o:"licenseManager",f:"statistics",kind:e},t)}assignLicense(e){return this.network.postCSRF({o:"licenseManager",f:"assignLicense",uri:e})}assignKindLicense(e,t){return this.network.postCSRF({o:"licenseManager",f:"assignLicenseKind",uri:e,kind:t})}unAssignLicense(e){return this.network.postCSRF({o:"licenseManager",f:"unassignLicense",uri:e})}unAssignKindLicense(e,t){return this.network.postCSRF({o:"licenseManager",f:"unassignLicenseKind",uri:e,kind:t})}getAssignmentMode(e,t){return this.network.post({o:"licenseManager",f:"getAssignmentMode",type:e},t)}setAssignmentMode(e,t){return this.network.postCSRF({o:"licenseManager",f:"setAssignmentMode",value:t,type:e})}assignPossiblesLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"assignPossiblesLicenses",type:e,kind:t})}unAssignUnusedLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"unassignUnusedLicenses",type:e,kind:t})}optimizeLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"optimizeLicenses",type:e,kind:t})}getObjectsWithoutLicense(e,t){return this.network.post({o:"licenseManager",f:"countObjectsWithoutLicense",type:e,filter:t})}getLicensesNotAssigned(e){return this.network.post({o:"licenseManager",f:"countLicensesNotAssigned",type:e})}getLicensesAssigned(e){return this.network.post({o:"licenseManager",f:"getLicensesAssigned",type:e})}getLicenseUsersByKind(e,t,n){var i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,[]);return this.network.post(Object.assign(Object.assign({o:"licenseManager",f:"getUsers"},i),{format:t}),n)}}class a extends n{getItem(e){return this.network.post({o:"adminStore",f:"getItem",uri:e})}checkoutBilling(e){return this.network.postCSRF({o:"adminStore",f:"checkoutBilling",uri:e})}checkoutFinalize(e){return this.network.postCSRF({o:"adminStore",f:"checkoutFinalize",uri:e})}}class s extends n{getApps(e){return this.network.post({o:"admin",f:"apps"},e)}}!function(e){e.local="local",e.installed="installed",e.autosaved="autosaved",e.saved="saved"}(i||(i={}));class o extends n{list(){return this.network.post({o:"studio",f:"list"})}get(e,t){return this.network.post({o:"studio",f:"get",idApp:e,status:t})}install(e){return this.network.postCSRF({o:"studio",f:"install",value:e})}suspend(e){return this.network.postCSRF({o:"studio",f:"suspend",idApp:e})}restart(e){return this.network.postCSRF({o:"studio",f:"restart",idApp:e})}save(e,t,n){return this.network.postCSRF({o:"studio",f:"save",idApp:e,value:t,status:n})}delete(e,t){return n=this,i=void 0,a=function*(){return this.network.postCSRF({o:"studio",f:"delete",idApp:e,status:t}).then((e=>{if(0===e.error)return e.messages;throw e.messages}))},new((r=void 0)||(r=Promise))((function(e,t){function s(e){try{l(a.next(e))}catch(e){t(e)}}function o(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,o)}l((a=a.apply(n,i||[])).next())}));var n,i,r,a}cssClassList(){return this.network.post({o:"studio",f:"icons"})}}function l(e){const t=e;return t&&"number"==typeof t.id&&"number"==typeof t.targetId}const c={bookmarkLink:l},u={isBookmarkLink:function(e){return"targetId"in e&&!!e.targetId},isBookmarkCustom:function(e){const t=e;return void 0!==t.bookmarkLabel||void 0!==t.bookmarkMeta||void 0!==t.bookmarkUrl},isBookmarkRawList:l,isTVChannelType:function(e,t){return"tvChannelType"in e&&e.tvChannelType===t},objectIsType:function(e,t){return null!=t&&c[e](t)},isStandardApiError:e=>"object"==typeof e&&null!==e&&"error"in e&&"errorMsg"in e&&"messages"in e&&"number"==typeof e.error&&"string"==typeof e.errorMsg&&Array.isArray(e.messages),isAbortApiError:e=>null!==e&&"object"==typeof e&&"error"in e&&"aborted"in e&&-1===e.error&&!0===e.aborted};function d(e,t){return e&&!e.endsWith(t)?`${e}${t}`:e}function p(e,t){return e&&e.startsWith(t)?e.split("").slice(t.length).join(""):e}function m(e){return e.toString().padStart(2,"0")}var g,h;!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),i={};for(const e of n)i[e]=t[e];return e.objectValues(i)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(g||(g={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(h||(h={}));const f=g.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),b=e=>{switch(typeof e){case"undefined":return f.undefined;case"string":return f.string;case"number":return isNaN(e)?f.nan:f.number;case"boolean":return f.boolean;case"function":return f.function;case"bigint":return f.bigint;case"symbol":return f.symbol;case"object":return Array.isArray(e)?f.array:null===e?f.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?f.promise:"undefined"!=typeof Map&&e instanceof Map?f.map:"undefined"!=typeof Set&&e instanceof Set?f.set:"undefined"!=typeof Date&&e instanceof Date?f.date:f.object;default:return f.unknown}},y=g.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class v extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},i=e=>{for(const r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(i);else if("invalid_return_type"===r.code)i(r.returnTypeError);else if("invalid_arguments"===r.code)i(r.argumentsError);else if(0===r.path.length)n._errors.push(t(r));else{let e=n,i=0;for(;i<r.path.length;){const n=r.path[i];i===r.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(r))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(this),n}static assert(e){if(!(e instanceof v))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,g.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const i of this.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}v.create=e=>new v(e);const w=(e,t)=>{let n;switch(e.code){case y.invalid_type:n=e.received===f.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case y.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,g.jsonStringifyReplacer)}`;break;case y.unrecognized_keys:n=`Unrecognized key(s) in object: ${g.joinValues(e.keys,", ")}`;break;case y.invalid_union:n="Invalid input";break;case y.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${g.joinValues(e.options)}`;break;case y.invalid_enum_value:n=`Invalid enum value. Expected ${g.joinValues(e.options)}, received '${e.received}'`;break;case y.invalid_arguments:n="Invalid function arguments";break;case y.invalid_return_type:n="Invalid function return type";break;case y.invalid_date:n="Invalid date";break;case y.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:g.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case y.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case y.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case y.custom:n="Invalid input";break;case y.invalid_intersection_types:n="Intersection results could not be merged";break;case y.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case y.not_finite:n="Number must be finite";break;default:n=t.defaultError,g.assertNever(e)}return{message:n}};let k=w;function _(){return k}const S=e=>{const{data:t,path:n,errorMaps:i,issueData:r}=e,a=[...n,...r.path||[]],s={...r,path:a};if(void 0!==r.message)return{...r,path:a,message:r.message};let o="";const l=i.filter((e=>!!e)).slice().reverse();for(const e of l)o=e(s,{data:t,defaultError:o}).message;return{...r,path:a,message:o}};function j(e,t){const n=_(),i=S({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===w?void 0:w].filter((e=>!!e))});e.common.issues.push(i)}class x{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const i of t){if("aborted"===i.status)return C;"dirty"===i.status&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t){const t=await e.key,i=await e.value;n.push({key:t,value:i})}return x.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const i of t){const{key:t,value:r}=i;if("aborted"===t.status)return C;if("aborted"===r.status)return C;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"===t.value||void 0===r.value&&!i.alwaysSet||(n[t.value]=r.value)}return{status:e.value,value:n}}}const C=Object.freeze({status:"aborted"}),T=e=>({status:"dirty",value:e}),A=e=>({status:"valid",value:e}),O=e=>"aborted"===e.status,L=e=>"dirty"===e.status,R=e=>"valid"===e.status,F=e=>"undefined"!=typeof Promise&&e instanceof Promise;function E(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function P(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n}var I,M,D;"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(I||(I={}));class N{constructor(e,t,n,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Z=(e,t)=>{if(R(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new v(e.common.issues);return this._error=t,this._error}}};function U(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&&(n||i))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(t,r)=>{var a,s;const{message:o}=e;return"invalid_enum_value"===t.code?{message:null!=o?o:r.defaultError}:void 0===r.data?{message:null!==(a=null!=o?o:i)&&void 0!==a?a:r.defaultError}:"invalid_type"!==t.code?{message:r.defaultError}:{message:null!==(s=null!=o?o:n)&&void 0!==s?s:r.defaultError}},description:r}}class q{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return b(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:b(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new x,ctx:{common:e.parent.common,data:e.data,parsedType:b(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(F(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const i={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:b(e)},r=this._parseSync({data:e,path:i.path,parent:i});return Z(i,r)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:b(e)},i=this._parse({data:e,path:n.path,parent:n}),r=await(F(i)?i:Promise.resolve(i));return Z(n,r)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,i)=>{const r=e(t),a=()=>i.addIssue({code:y.custom,...n(t)});return"undefined"!=typeof Promise&&r instanceof Promise?r.then((e=>!!e||(a(),!1))):!!r||(a(),!1)}))}refinement(e,t){return this._refinement(((n,i)=>!!e(n)||(i.addIssue("function"==typeof t?t(n,i):t),!1)))}_refinement(e){return new Ie({schema:this,typeName:Ge.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Me.create(this,this._def)}nullable(){return De.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return fe.create(this,this._def)}promise(){return Pe.create(this,this._def)}or(e){return ve.create([this,e],this._def)}and(e){return Se.create(this,e,this._def)}transform(e){return new Ie({...U(this._def),schema:this,typeName:Ge.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Ne({...U(this._def),innerType:this,defaultValue:t,typeName:Ge.ZodDefault})}brand(){return new We({typeName:Ge.ZodBranded,type:this,...U(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Ze({...U(this._def),innerType:this,catchValue:t,typeName:Ge.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Be.create(this,e)}readonly(){return $e.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const W=/^c[^\s-]{8,}$/i,B=/^[0-9a-z]+$/,$=/^[0-9A-HJKMNP-TV-Z]{26}$/,V=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,z=/^[a-z0-9_-]{21}$/i,G=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,J=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let K;const H=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Q=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Y=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,X="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ee=new RegExp(`^${X}$`);function te(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function ne(e){let t=`${X}T${te(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}class ie extends q{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==f.string){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.string,received:t.parsedType}),C}const t=new x;let n;for(const a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(n=this._getOrReturnCtx(e,n),j(n,{code:y.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("max"===a.kind)e.data.length>a.value&&(n=this._getOrReturnCtx(e,n),j(n,{code:y.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("length"===a.kind){const i=e.data.length>a.value,r=e.data.length<a.value;(i||r)&&(n=this._getOrReturnCtx(e,n),i?j(n,{code:y.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):r&&j(n,{code:y.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),t.dirty())}else if("email"===a.kind)J.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"email",code:y.invalid_string,message:a.message}),t.dirty());else if("emoji"===a.kind)K||(K=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),K.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"emoji",code:y.invalid_string,message:a.message}),t.dirty());else if("uuid"===a.kind)V.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"uuid",code:y.invalid_string,message:a.message}),t.dirty());else if("nanoid"===a.kind)z.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"nanoid",code:y.invalid_string,message:a.message}),t.dirty());else if("cuid"===a.kind)W.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"cuid",code:y.invalid_string,message:a.message}),t.dirty());else if("cuid2"===a.kind)B.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"cuid2",code:y.invalid_string,message:a.message}),t.dirty());else if("ulid"===a.kind)$.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"ulid",code:y.invalid_string,message:a.message}),t.dirty());else if("url"===a.kind)try{new URL(e.data)}catch(i){n=this._getOrReturnCtx(e,n),j(n,{validation:"url",code:y.invalid_string,message:a.message}),t.dirty()}else"regex"===a.kind?(a.regex.lastIndex=0,a.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"regex",code:y.invalid_string,message:a.message}),t.dirty())):"trim"===a.kind?e.data=e.data.trim():"includes"===a.kind?e.data.includes(a.value,a.position)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),t.dirty()):"toLowerCase"===a.kind?e.data=e.data.toLowerCase():"toUpperCase"===a.kind?e.data=e.data.toUpperCase():"startsWith"===a.kind?e.data.startsWith(a.value)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty()):"endsWith"===a.kind?e.data.endsWith(a.value)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty()):"datetime"===a.kind?ne(a).test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:"datetime",message:a.message}),t.dirty()):"date"===a.kind?ee.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:"date",message:a.message}),t.dirty()):"time"===a.kind?new RegExp(`^${te(a)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:"time",message:a.message}),t.dirty()):"duration"===a.kind?G.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"duration",code:y.invalid_string,message:a.message}),t.dirty()):"ip"===a.kind?(i=e.data,("v4"!==(r=a.version)&&r||!H.test(i))&&("v6"!==r&&r||!Q.test(i))&&(n=this._getOrReturnCtx(e,n),j(n,{validation:"ip",code:y.invalid_string,message:a.message}),t.dirty())):"base64"===a.kind?Y.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"base64",code:y.invalid_string,message:a.message}),t.dirty()):g.assertNever(a);var i,r;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:y.invalid_string,...I.errToObj(n)})}_addCheck(e){return new ie({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...I.errToObj(e)})}url(e){return this._addCheck({kind:"url",...I.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...I.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...I.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...I.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...I.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...I.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...I.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...I.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...I.errToObj(e)})}datetime(e){var t,n;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null==e?void 0:e.local)&&void 0!==n&&n,...I.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...I.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...I.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...I.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...I.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...I.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...I.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...I.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...I.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...I.errToObj(t)})}nonempty(e){return this.min(1,I.errToObj(e))}trim(){return new ie({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ie({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ie({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function re(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i;return parseInt(e.toFixed(r).replace(".",""))%parseInt(t.toFixed(r).replace(".",""))/Math.pow(10,r)}ie.create=e=>{var t;return new ie({checks:[],typeName:Ge.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...U(e)})};class ae extends q{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==f.number){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.number,received:t.parsedType}),C}let t;const n=new x;for(const i of this._def.checks)"int"===i.kind?g.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),j(t,{code:y.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"multipleOf"===i.kind?0!==re(e.data,i.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_finite,message:i.message}),n.dirty()):g.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,I.toString(t))}gt(e,t){return this.setLimit("min",e,!1,I.toString(t))}lte(e,t){return this.setLimit("max",e,!0,I.toString(t))}lt(e,t){return this.setLimit("max",e,!1,I.toString(t))}setLimit(e,t,n,i){return new ae({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:I.toString(i)}]})}_addCheck(e){return new ae({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:I.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:I.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:I.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:I.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:I.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:I.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:I.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:I.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:I.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&g.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ae.create=e=>new ae({checks:[],typeName:Ge.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...U(e)});class se extends q{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==f.bigint){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.bigint,received:t.parsedType}),C}let t;const n=new x;for(const i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):g.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,I.toString(t))}gt(e,t){return this.setLimit("min",e,!1,I.toString(t))}lte(e,t){return this.setLimit("max",e,!0,I.toString(t))}lt(e,t){return this.setLimit("max",e,!1,I.toString(t))}setLimit(e,t,n,i){return new se({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:I.toString(i)}]})}_addCheck(e){return new se({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:I.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:I.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:I.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:I.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:I.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}se.create=e=>{var t;return new se({checks:[],typeName:Ge.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...U(e)})};class oe extends q{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==f.boolean){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.boolean,received:t.parsedType}),C}return A(e.data)}}oe.create=e=>new oe({typeName:Ge.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...U(e)});class le extends q{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==f.date){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.date,received:t.parsedType}),C}if(isNaN(e.data.getTime()))return j(this._getOrReturnCtx(e),{code:y.invalid_date}),C;const t=new x;let n;for(const i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(n=this._getOrReturnCtx(e,n),j(n,{code:y.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),t.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(n=this._getOrReturnCtx(e,n),j(n,{code:y.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),t.dirty()):g.assertNever(i);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new le({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:I.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:I.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}le.create=e=>new le({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:Ge.ZodDate,...U(e)});class ce extends q{_parse(e){if(this._getType(e)!==f.symbol){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.symbol,received:t.parsedType}),C}return A(e.data)}}ce.create=e=>new ce({typeName:Ge.ZodSymbol,...U(e)});class ue extends q{_parse(e){if(this._getType(e)!==f.undefined){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.undefined,received:t.parsedType}),C}return A(e.data)}}ue.create=e=>new ue({typeName:Ge.ZodUndefined,...U(e)});class de extends q{_parse(e){if(this._getType(e)!==f.null){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.null,received:t.parsedType}),C}return A(e.data)}}de.create=e=>new de({typeName:Ge.ZodNull,...U(e)});class pe extends q{constructor(){super(...arguments),this._any=!0}_parse(e){return A(e.data)}}pe.create=e=>new pe({typeName:Ge.ZodAny,...U(e)});class me extends q{constructor(){super(...arguments),this._unknown=!0}_parse(e){return A(e.data)}}me.create=e=>new me({typeName:Ge.ZodUnknown,...U(e)});class ge extends q{_parse(e){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.never,received:t.parsedType}),C}}ge.create=e=>new ge({typeName:Ge.ZodNever,...U(e)});class he extends q{_parse(e){if(this._getType(e)!==f.undefined){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.void,received:t.parsedType}),C}return A(e.data)}}he.create=e=>new he({typeName:Ge.ZodVoid,...U(e)});class fe extends q{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),i=this._def;if(t.parsedType!==f.array)return j(t,{code:y.invalid_type,expected:f.array,received:t.parsedType}),C;if(null!==i.exactLength){const e=t.data.length>i.exactLength.value,r=t.data.length<i.exactLength.value;(e||r)&&(j(t,{code:e?y.too_big:y.too_small,minimum:r?i.exactLength.value:void 0,maximum:e?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(j(t,{code:y.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(j(t,{code:y.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>i.type._parseAsync(new N(t,e,t.path,n))))).then((e=>x.mergeArray(n,e)));const r=[...t.data].map(((e,n)=>i.type._parseSync(new N(t,e,t.path,n))));return x.mergeArray(n,r)}get element(){return this._def.type}min(e,t){return new fe({...this._def,minLength:{value:e,message:I.toString(t)}})}max(e,t){return new fe({...this._def,maxLength:{value:e,message:I.toString(t)}})}length(e,t){return new fe({...this._def,exactLength:{value:e,message:I.toString(t)}})}nonempty(e){return this.min(1,e)}}function be(e){if(e instanceof ye){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=Me.create(be(i))}return new ye({...e._def,shape:()=>t})}return e instanceof fe?new fe({...e._def,type:be(e.element)}):e instanceof Me?Me.create(be(e.unwrap())):e instanceof De?De.create(be(e.unwrap())):e instanceof je?je.create(e.items.map((e=>be(e)))):e}fe.create=(e,t)=>new fe({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ge.ZodArray,...U(t)});class ye extends q{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=g.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==f.object){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.object,received:t.parsedType}),C}const{status:t,ctx:n}=this._processInputParams(e),{shape:i,keys:r}=this._getCached(),a=[];if(!(this._def.catchall instanceof ge&&"strip"===this._def.unknownKeys))for(const e in n.data)r.includes(e)||a.push(e);const s=[];for(const e of r){const t=i[e],r=n.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new N(n,r,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof ge){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)a.length>0&&(j(n,{code:y.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const i=n.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new N(n,i,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of s){const n=await t.key,i=await t.value;e.push({key:n,value:i,alwaysSet:t.alwaysSet})}return e})).then((e=>x.mergeObjectSync(t,e))):x.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return I.errToObj,new ye({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var i,r,a,s;const o=null!==(a=null===(r=(i=this._def).errorMap)||void 0===r?void 0:r.call(i,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=I.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new ye({...this._def,unknownKeys:"strip"})}passthrough(){return new ye({...this._def,unknownKeys:"passthrough"})}extend(e){return new ye({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ye({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Ge.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ye({...this._def,catchall:e})}pick(e){const t={};return g.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new ye({...this._def,shape:()=>t})}omit(e){const t={};return g.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new ye({...this._def,shape:()=>t})}deepPartial(){return be(this)}partial(e){const t={};return g.objectKeys(this.shape).forEach((n=>{const i=this.shape[n];e&&!e[n]?t[n]=i:t[n]=i.optional()})),new ye({...this._def,shape:()=>t})}required(e){const t={};return g.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Me;)e=e._def.innerType;t[n]=e}})),new ye({...this._def,shape:()=>t})}keyof(){return Re(g.objectKeys(this.shape))}}ye.create=(e,t)=>new ye({shape:()=>e,unknownKeys:"strip",catchall:ge.create(),typeName:Ge.ZodObject,...U(t)}),ye.strictCreate=(e,t)=>new ye({shape:()=>e,unknownKeys:"strict",catchall:ge.create(),typeName:Ge.ZodObject,...U(t)}),ye.lazycreate=(e,t)=>new ye({shape:e,unknownKeys:"strip",catchall:ge.create(),typeName:Ge.ZodObject,...U(t)});class ve extends q{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map((e=>new v(e.ctx.common.issues)));return j(t,{code:y.invalid_union,unionErrors:n}),C}));{let e;const i=[];for(const r of n){const n={...t,common:{...t.common,issues:[]},parent:null},a=r._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&i.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const r=i.map((e=>new v(e)));return j(t,{code:y.invalid_union,unionErrors:r}),C}}get options(){return this._def.options}}ve.create=(e,t)=>new ve({options:e,typeName:Ge.ZodUnion,...U(t)});const we=e=>e instanceof Oe?we(e.schema):e instanceof Ie?we(e.innerType()):e instanceof Le?[e.value]:e instanceof Fe?e.options:e instanceof Ee?g.objectValues(e.enum):e instanceof Ne?we(e._def.innerType):e instanceof ue?[void 0]:e instanceof de?[null]:e instanceof Me?[void 0,...we(e.unwrap())]:e instanceof De?[null,...we(e.unwrap())]:e instanceof We||e instanceof $e?we(e.unwrap()):e instanceof Ze?we(e._def.innerType):[];class ke extends q{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.object)return j(t,{code:y.invalid_type,expected:f.object,received:t.parsedType}),C;const n=this.discriminator,i=t.data[n],r=this.optionsMap.get(i);return r?t.common.async?r._parseAsync({data:t.data,path:t.path,parent:t}):r._parseSync({data:t.data,path:t.path,parent:t}):(j(t,{code:y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),C)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const i=new Map;for(const n of t){const t=we(n.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const r of t){if(i.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);i.set(r,n)}}return new ke({typeName:Ge.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...U(n)})}}function _e(e,t){const n=b(e),i=b(t);if(e===t)return{valid:!0,data:e};if(n===f.object&&i===f.object){const n=g.objectKeys(t),i=g.objectKeys(e).filter((e=>-1!==n.indexOf(e))),r={...e,...t};for(const n of i){const i=_e(e[n],t[n]);if(!i.valid)return{valid:!1};r[n]=i.data}return{valid:!0,data:r}}if(n===f.array&&i===f.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let i=0;i<e.length;i++){const r=_e(e[i],t[i]);if(!r.valid)return{valid:!1};n.push(r.data)}return{valid:!0,data:n}}return n===f.date&&i===f.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Se extends q{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=(e,i)=>{if(O(e)||O(i))return C;const r=_e(e.value,i.value);return r.valid?((L(e)||L(i))&&t.dirty(),{status:t.value,value:r.data}):(j(n,{code:y.invalid_intersection_types}),C)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>i(e,t))):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Se.create=(e,t,n)=>new Se({left:e,right:t,typeName:Ge.ZodIntersection,...U(n)});class je extends q{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.array)return j(n,{code:y.invalid_type,expected:f.array,received:n.parsedType}),C;if(n.data.length<this._def.items.length)return j(n,{code:y.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),C;!this._def.rest&&n.data.length>this._def.items.length&&(j(n,{code:y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const i=[...n.data].map(((e,t)=>{const i=this._def.items[t]||this._def.rest;return i?i._parse(new N(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(i).then((e=>x.mergeArray(t,e))):x.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new je({...this._def,rest:e})}}je.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new je({items:e,typeName:Ge.ZodTuple,rest:null,...U(t)})};class xe extends q{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.object)return j(n,{code:y.invalid_type,expected:f.object,received:n.parsedType}),C;const i=[],r=this._def.keyType,a=this._def.valueType;for(const e in n.data)i.push({key:r._parse(new N(n,e,n.path,e)),value:a._parse(new N(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?x.mergeObjectAsync(t,i):x.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,n){return new xe(t instanceof q?{keyType:e,valueType:t,typeName:Ge.ZodRecord,...U(n)}:{keyType:ie.create(),valueType:e,typeName:Ge.ZodRecord,...U(t)})}}class Ce extends q{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.map)return j(n,{code:y.invalid_type,expected:f.map,received:n.parsedType}),C;const i=this._def.keyType,r=this._def.valueType,a=[...n.data.entries()].map((([e,t],a)=>({key:i._parse(new N(n,e,n.path,[a,"key"])),value:r._parse(new N(n,t,n.path,[a,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const i=await n.key,r=await n.value;if("aborted"===i.status||"aborted"===r.status)return C;"dirty"!==i.status&&"dirty"!==r.status||t.dirty(),e.set(i.value,r.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const i=n.key,r=n.value;if("aborted"===i.status||"aborted"===r.status)return C;"dirty"!==i.status&&"dirty"!==r.status||t.dirty(),e.set(i.value,r.value)}return{status:t.value,value:e}}}}Ce.create=(e,t,n)=>new Ce({valueType:t,keyType:e,typeName:Ge.ZodMap,...U(n)});class Te extends q{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.set)return j(n,{code:y.invalid_type,expected:f.set,received:n.parsedType}),C;const i=this._def;null!==i.minSize&&n.data.size<i.minSize.value&&(j(n,{code:y.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&n.data.size>i.maxSize.value&&(j(n,{code:y.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());const r=this._def.valueType;function a(e){const n=new Set;for(const i of e){if("aborted"===i.status)return C;"dirty"===i.status&&t.dirty(),n.add(i.value)}return{status:t.value,value:n}}const s=[...n.data.values()].map(((e,t)=>r._parse(new N(n,e,n.path,t))));return n.common.async?Promise.all(s).then((e=>a(e))):a(s)}min(e,t){return new Te({...this._def,minSize:{value:e,message:I.toString(t)}})}max(e,t){return new Te({...this._def,maxSize:{value:e,message:I.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Te.create=(e,t)=>new Te({valueType:e,minSize:null,maxSize:null,typeName:Ge.ZodSet,...U(t)});class Ae extends q{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.function)return j(t,{code:y.invalid_type,expected:f.function,received:t.parsedType}),C;function n(e,n){return S({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_(),w].filter((e=>!!e)),issueData:{code:y.invalid_arguments,argumentsError:n}})}function i(e,n){return S({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_(),w].filter((e=>!!e)),issueData:{code:y.invalid_return_type,returnTypeError:n}})}const r={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Pe){const e=this;return A((async function(...t){const s=new v([]),o=await e._def.args.parseAsync(t,r).catch((e=>{throw s.addIssue(n(t,e)),s})),l=await Reflect.apply(a,this,o);return await e._def.returns._def.type.parseAsync(l,r).catch((e=>{throw s.addIssue(i(l,e)),s}))}))}{const e=this;return A((function(...t){const s=e._def.args.safeParse(t,r);if(!s.success)throw new v([n(t,s.error)]);const o=Reflect.apply(a,this,s.data),l=e._def.returns.safeParse(o,r);if(!l.success)throw new v([i(o,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ae({...this._def,args:je.create(e).rest(me.create())})}returns(e){return new Ae({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Ae({args:e||je.create([]).rest(me.create()),returns:t||me.create(),typeName:Ge.ZodFunction,...U(n)})}}class Oe extends q{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Oe.create=(e,t)=>new Oe({getter:e,typeName:Ge.ZodLazy,...U(t)});class Le extends q{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return j(t,{received:t.data,code:y.invalid_literal,expected:this._def.value}),C}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Re(e,t){return new Fe({values:e,typeName:Ge.ZodEnum,...U(t)})}Le.create=(e,t)=>new Le({value:e,typeName:Ge.ZodLiteral,...U(t)});class Fe extends q{constructor(){super(...arguments),M.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return j(t,{expected:g.joinValues(n),received:t.parsedType,code:y.invalid_type}),C}if(E(this,M,"f")||P(this,M,new Set(this._def.values),"f"),!E(this,M,"f").has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return j(t,{received:t.data,code:y.invalid_enum_value,options:n}),C}return A(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Fe.create(e,{...this._def,...t})}exclude(e,t=this._def){return Fe.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}M=new WeakMap,Fe.create=Re;class Ee extends q{constructor(){super(...arguments),D.set(this,void 0)}_parse(e){const t=g.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==f.string&&n.parsedType!==f.number){const e=g.objectValues(t);return j(n,{expected:g.joinValues(e),received:n.parsedType,code:y.invalid_type}),C}if(E(this,D,"f")||P(this,D,new Set(g.getValidEnumValues(this._def.values)),"f"),!E(this,D,"f").has(e.data)){const e=g.objectValues(t);return j(n,{received:n.data,code:y.invalid_enum_value,options:e}),C}return A(e.data)}get enum(){return this._def.values}}D=new WeakMap,Ee.create=(e,t)=>new Ee({values:e,typeName:Ge.ZodNativeEnum,...U(t)});class Pe extends q{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.promise&&!1===t.common.async)return j(t,{code:y.invalid_type,expected:f.promise,received:t.parsedType}),C;const n=t.parsedType===f.promise?t.data:Promise.resolve(t.data);return A(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Pe.create=(e,t)=>new Pe({type:e,typeName:Ge.ZodPromise,...U(t)});class Ie extends q{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ge.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=this._def.effect||null,r={addIssue:e=>{j(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===i.type){const e=i.transform(n.data,r);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return C;const i=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===i.status?C:"dirty"===i.status||"dirty"===t.value?T(i.value):i}));{if("aborted"===t.value)return C;const i=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===i.status?C:"dirty"===i.status||"dirty"===t.value?T(i.value):i}}if("refinement"===i.type){const e=e=>{const t=i.refinement(e,r);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===i.status?C:("dirty"===i.status&&t.dirty(),e(i.value),{status:t.value,value:i.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?C:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===i.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!R(e))return e;const a=i.transform(e.value,r);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>R(e)?Promise.resolve(i.transform(e.value,r)).then((e=>({status:t.value,value:e}))):e))}g.assertNever(i)}}Ie.create=(e,t,n)=>new Ie({schema:e,typeName:Ge.ZodEffects,effect:t,...U(n)}),Ie.createWithPreprocess=(e,t,n)=>new Ie({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...U(n)});class Me extends q{_parse(e){return this._getType(e)===f.undefined?A(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Me.create=(e,t)=>new Me({innerType:e,typeName:Ge.ZodOptional,...U(t)});class De extends q{_parse(e){return this._getType(e)===f.null?A(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}De.create=(e,t)=>new De({innerType:e,typeName:Ge.ZodNullable,...U(t)});class Ne extends q{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===f.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Ne.create=(e,t)=>new Ne({innerType:e,typeName:Ge.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...U(t)});class Ze extends q{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return F(i)?i.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new v(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new v(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Ze.create=(e,t)=>new Ze({innerType:e,typeName:Ge.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...U(t)});class Ue extends q{_parse(e){if(this._getType(e)!==f.nan){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.nan,received:t.parsedType}),C}return{status:"valid",value:e.data}}}Ue.create=e=>new Ue({typeName:Ge.ZodNaN,...U(e)});const qe=Symbol("zod_brand");class We extends q{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Be extends q{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),T(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new Be({in:e,out:t,typeName:Ge.ZodPipeline})}}class $e extends q{_parse(e){const t=this._def.innerType._parse(e),n=e=>(R(e)&&(e.value=Object.freeze(e.value)),e);return F(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function Ve(e,t={},n){return e?pe.create().superRefine(((i,r)=>{var a,s;if(!e(i)){const e="function"==typeof t?t(i):"string"==typeof t?{message:t}:t,o=null===(s=null!==(a=e.fatal)&&void 0!==a?a:n)||void 0===s||s,l="string"==typeof e?{message:e}:e;r.addIssue({code:"custom",...l,fatal:o})}})):pe.create()}$e.create=(e,t)=>new $e({innerType:e,typeName:Ge.ZodReadonly,...U(t)});const ze={object:ye.lazycreate};var Ge;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(Ge||(Ge={}));const Je=ie.create,Ke=ae.create,He=Ue.create,Qe=se.create,Ye=oe.create,Xe=le.create,et=ce.create,tt=ue.create,nt=de.create,it=pe.create,rt=me.create,at=ge.create,st=he.create,ot=fe.create,lt=ye.create,ct=ye.strictCreate,ut=ve.create,dt=ke.create,pt=Se.create,mt=je.create,gt=xe.create,ht=Ce.create,ft=Te.create,bt=Ae.create,yt=Oe.create,vt=Le.create,wt=Fe.create,kt=Ee.create,_t=Pe.create,St=Ie.create,jt=Me.create,xt=De.create,Ct=Ie.createWithPreprocess,Tt=Be.create,At={string:e=>ie.create({...e,coerce:!0}),number:e=>ae.create({...e,coerce:!0}),boolean:e=>oe.create({...e,coerce:!0}),bigint:e=>se.create({...e,coerce:!0}),date:e=>le.create({...e,coerce:!0})},Ot=C;var Lt=Object.freeze({__proto__:null,defaultErrorMap:w,setErrorMap:function(e){k=e},getErrorMap:_,makeIssue:S,EMPTY_PATH:[],addIssueToContext:j,ParseStatus:x,INVALID:C,DIRTY:T,OK:A,isAborted:O,isDirty:L,isValid:R,isAsync:F,get util(){return g},get objectUtil(){return h},ZodParsedType:f,getParsedType:b,ZodType:q,datetimeRegex:ne,ZodString:ie,ZodNumber:ae,ZodBigInt:se,ZodBoolean:oe,ZodDate:le,ZodSymbol:ce,ZodUndefined:ue,ZodNull:de,ZodAny:pe,ZodUnknown:me,ZodNever:ge,ZodVoid:he,ZodArray:fe,ZodObject:ye,ZodUnion:ve,ZodDiscriminatedUnion:ke,ZodIntersection:Se,ZodTuple:je,ZodRecord:xe,ZodMap:Ce,ZodSet:Te,ZodFunction:Ae,ZodLazy:Oe,ZodLiteral:Le,ZodEnum:Fe,ZodNativeEnum:Ee,ZodPromise:Pe,ZodEffects:Ie,ZodTransformer:Ie,ZodOptional:Me,ZodNullable:De,ZodDefault:Ne,ZodCatch:Ze,ZodNaN:Ue,BRAND:qe,ZodBranded:We,ZodPipeline:Be,ZodReadonly:$e,custom:Ve,Schema:q,ZodSchema:q,late:ze,get ZodFirstPartyTypeKind(){return Ge},coerce:At,any:it,array:ot,bigint:Qe,boolean:Ye,date:Xe,discriminatedUnion:dt,effect:St,enum:wt,function:bt,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Ve((t=>t instanceof e),t),intersection:pt,lazy:yt,literal:vt,map:ht,nan:He,nativeEnum:kt,never:at,null:nt,nullable:xt,number:Ke,object:lt,oboolean:()=>Ye().optional(),onumber:()=>Ke().optional(),optional:jt,ostring:()=>Je().optional(),pipeline:Tt,preprocess:Ct,promise:_t,record:gt,set:ft,strictObject:ct,string:Je,symbol:et,transformer:St,tuple:mt,undefined:tt,union:ut,unknown:rt,void:st,NEVER:Ot,ZodIssueCode:y,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:v});const Rt=Lt.object({type:Lt.string(),recordId:Lt.union([Lt.string().regex(new RegExp("[0-9]+")),Lt.number()])}),Ft=(e,t)=>(t?Rt.passthrough():Rt).safeParse(e).success,Et=Lt.object({uri:Lt.string().regex(new RegExp("[a-zA-Z]+/[0-9]+"))}),Pt=(e,t)=>(t?Et.passthrough():Et).safeParse(e).success;function It(e){if(Pt(e,!0))return e.uri;if(Ft(e,!0))return`${e.type}/${e.recordId}`;throw new Error("Invalid uri or typeId "+("uri"in e?e.uri:"type"in e&&"recordId"in e?e.type+"/"+e.recordId:"undefined"))}function Mt(e){return p(d(e.from,"/"),"/")||""}function Dt(e){return e.timestamp?`?_=${e.timestamp}`:""}function Nt(e){const t=[];return"timestamp"in e&&e.timestamp&&t.push(`_=${e.timestamp}`),"iconColor"in e&&e.iconColor&&t.push(`color=${e.iconColor}`),t.length?"?"+t.join("&"):""}function Zt(e,t=2){return"size"in e&&e.size?e.size:"width"in e&&e.width&&"height"in e&&e.height?`${e.width*t}x${e.height*t}`:""}function Ut(e){return e.format||"png"}function qt(e){try{return new URL(e)}catch(e){}try{return new URL(window.location.origin+"/"+p(e,"/"))}catch(e){}}function Wt(e,t=2){var n;if("url"in e&&e.url){const t=qt(e.url);if(t)return"timestamp"in e&&e.timestamp&&!t.searchParams.has("_")&&t.searchParams.append("_",e.timestamp.toString()),t.toString()}const i=0===(null===(n=e.uri)||void 0===n?void 0:n.indexOf("icons/"))?e.uri:"icons"===e.type?e.type+"/"+e.recordId:It(e);return`/${Mt(e)}${Zt(e,t)}/`+i+`.${Ut(e)}${Nt(e)}`}Rt.partial().or(Et.partial());const Bt=["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pdf","application/zip","application/illustrator","application/postscript","application/vnd.ms-opentype","application/x-font-ttf","application/octet-stream","audio/mp3","audio/mpeg","font/ttf","font/otf","image/jpeg","image/jpg","image/png","image/gif","image/vnd.adobe.photoshop","image/svg+xml","text/plain","text/csv","video/mp4","video/webm"],$t=["docx","xlsx","csv","pptx","pdf","zip","ai","mp3","mpeg","ttf","otf","jpg","jpeg","png","gif","psd","svg","txt","mp4","odt","webm"],Vt={"application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/vnd.oasis.opendocument.text":"odt","application/pdf":"pdf","application/zip":"zip","application/x-zip-compressed":"zip","application/illustrator":"ai","application/postscript":"ai","audio/mp3":"mp3","audio/mpeg":"mpeg","font/ttf":"ttf","font/otf":"otf","image/jpeg":"jpeg","image/jpg":"jpg","image/png":"png","image/gif":"gif","application/x-font-ttf":"ttf","application/vnd.ms-opentype":"otf","image/vnd.adobe.photoshop":"psd","image/svg+xml":"svg","text/plain":"txt","text/csv":"xlsx","video/mp4":"mp4","video/webm":"mp4"},zt=e=>Object.keys(Vt).find((t=>Vt[t]===e)),Gt=e=>{var t;return null!==(t=Vt[e])&&void 0!==t?t:void 0};function Jt(e){const t=String(e).split(".").pop();return $t.find((e=>e===t))}const Kt=e=>{var t;const n=Jt(e);return null!==(t=zt(n))&&void 0!==t?t:"application/octet-stream"},Ht=e=>e?(new Date(e).getTime()/1e3).toFixed(0):void 0,Qt=(e,t="fitx80")=>{const n=rn(e),i=Ht(e.dateModified);switch(n){default:return;case"video":return`/media/${e.id}.mp4?stream=true`+(i?`&_=${i}`:"");case"audio":return`/media/${e.id}.mp3`+(i?`?_=${i}`:"");case"gif":return Wt({timestamp:i,size:t,from:"imagecache",uri:e.uri,format:"gif"});case"image":return Wt({timestamp:i,size:t,from:"imagecache",uri:e.uri})}},Yt=e=>{const t=Jt(e);return void 0!==t?en(zt(t)):"application"},Xt=e=>-1!==["image/vnd","image/svg","image/heic"].findIndex((t=>e.startsWith(t)));function en(e){return e&&e.startsWith("folder/")?"folder":null==e||Xt(e)?"application":e.startsWith("image/gif")?"gif":e.startsWith("image/")?"image":e.startsWith("video/")?"video":e.startsWith("audio/")?"audio":e.startsWith("font/")||e.startsWith("application/x-font-ttf")||e.startsWith("application/vnd.ms-opentype")?"font":e.startsWith("text/")?"text":"application"}const tn=(e,t,n="rr")=>"ng"===n?`/ng/file/${e}/${t}`:`/ng/rr/file/${e}/${t}`,nn=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?Kt(e.title):e.mimetype,rn=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?Yt(e.title):en(e.mimetype);function an(e){return e.startsWith("tag_")||"tags"===e}function sn(e){return Object.fromEntries(Object.entries(e).filter((([e])=>an(e))))}function on(e,t,n){return Object.fromEntries(Object.entries(e).filter((([e])=>an(e))).map((([e,i])=>{const r=Array.isArray(i)?i.map((e=>"object"==typeof e&&e&&t in e?e[t]:e)):i;return[e,n&&Array.isArray(r)?n(r):r]})))}function ln(e){return on(e,"uri")}const cn=e=>{var t;let n={};"_errors"in e&&(n._errors=e._errors),"_options"in e&&(n._options=e._options),"title"in e&&(n.title=e.title),"description"in e&&(n.description=e.description),"activity"in e&&(n.activity=e.activity),"image"in e&&(n.image=e.image),"uri"in e&&(n.uri=e.uri),"type"in e&&(n.type=e.type),"edito"in e&&(n.edito=e.edito),"category"in e&&(n.category=e.category.toString()),"commentLevel"in e&&(n.commentLevel=e.commentLevel),"_options"in e&&(null===(t=e._options)||void 0===t?void 0:t.custom_widgets)&&(n.custom_widgets=Array.isArray(e._options.custom_widgets)?{}:e._options.custom_widgets),"displayType"in e&&(n.displayType=e.displayType),"language"in e&&(n.language=e.language),"edit_access"in e&&(n.edit_access=e.edit_access),"lock_mail"in e&&(n.lock_mail=e.lock_mail),"fileSyncEnabled"in e&&(n.fileSyncEnabled=e.fileSyncEnabled),"fileSyncVersioningType"in e&&(n.fileSyncVersioningType=e.fileSyncVersioningType),"fileBankQuota"in e&&(n.fileBankQuota=e.fileBankQuota),"idCommunity"in e&&(n.idCommunity=e.idCommunity),"lastRssExecution"in e&&(n.lastRssExecution=e.lastRssExecution),"mail_comment"in e&&(n.mail_comment=e.mail_comment),"mail_frequency"in e&&(n.mail_frequency=e.mail_frequency),"mail_spotit"in e&&(n.mail_spotit=e.mail_spotit),"mail_subscriber"in e&&(n.mail_subscriber=e.mail_subscriber),"notifyFolder"in e&&(n.notifyFolder=e.notifyFolder),"nounsubscribe"in e&&(n.nounsubscribe=e.nounsubscribe),"privacy"in e&&(n.privacy=e.privacy),"publishFolder"in e&&(n.publishFolder=e.publishFolder),"rss_access"in e&&(n.rss_access=e.rss_access),"rss_feed"in e&&(n.rss_feed=e.rss_feed&&Array.isArray(e.rss_feed)?JSON.stringify(e.rss_feed.map((e=>{var{_user:t}=e,n=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["_user"]);return Object.assign(Object.assign({},n),{idUser:null==t?void 0:t.id})}))):"[]"),"rss_key"in e&&(n.rss_key=e.rss_key),"spot_right_user"in e&&(n.spot_right_user=e.spot_right_user),"spotBanner"in e&&(n.spotBanner=e.spotBanner),"spotDefaultPublishType"in e&&(n.spotDefaultPublishType=e.spotDefaultPublishType),"user_level_signup"in e&&(n.user_level_signup=e.user_level_signup),"useTeaser"in e&&(n.useTeaser=e.useTeaser),"widgets"in e&&(n.widgets=e.widgets);const i=sn(e);if(n=Object.assign(Object.assign({},n),i),un(e,n))return n;throw new Error},un=(e,t)=>{const n=["id","mainType","dateCreation","dateModified","_url","o2apLinksSources"],i=["custom_widgets"],r=Object.keys(e),a=Object.keys(t),s=r.filter((e=>!a.includes(e)&&!n.includes(e))),o=a.filter((e=>!r.includes(e)&&!i.includes(e))),l=[...s.map((e=>"- "+e)),...o.map((e=>"+ "+e))];if(s.length>0||o.length>0)throw new Error(`prepareGroupForUpdate :: Wrong group mapping | Diff : ${JSON.stringify(l)}`);return!0};var dn=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class pn{constructor(e,t="api-front"){this.window=e,this.action=t}static _formatPostOptions(e){const t=e?{body:JSON.stringify(e)}:void 0;return Object.assign({method:"POST",credentials:"same-origin"},t)}getUrl(e,t){return dn(this,void 0,void 0,(function*(){const n=yield this.window.getBackendUrl();let i;try{i=new URL(`/${this.action}/${e}/${t}`,n).href}catch(r){i=`${n}/${this.action}/${e}/${t}`}return i}))}getHostname(){return dn(this,void 0,void 0,(function*(){const e=(yield this.window.getBackendUrl()).split("//");return e.length>1?e[1]:e[0]}))}fetch(e,t){var{o:n,f:i}=e,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["o","f"]);return dn(this,void 0,void 0,(function*(){void 0===t&&(t=null);const e=yield this.getUrl(n,i);return this.window.fetch(e,Object.assign(Object.assign({},pn._formatPostOptions(r)),{signal:t}))}))}post(e,t){return this.fetch(e,t).then((e=>e.json())).then((e=>{if(0===e.error)return e;throw{error:e.error,errorMsg:e.errorMsg,messages:e.messages}})).catch((e=>{if(t&&t.aborted)throw{error:-1,aborted:!0};throw e}))}postFile(e){return dn(this,void 0,void 0,(function*(){const t=yield this.getUrl("file","create");if(e.append("format","raw-little"),!e.has("token")){const{result:t}=yield this.token();e.append("token",t)}const n=e.get("token");return n&&"string"==typeof n?this.window.fetch(t,{method:"POST",credentials:"same-origin",body:e}).then((e=>e.json())).then((e=>({response:e,token:n}))):Promise.reject("Missing token")}))}postCSRF(e){return this.tokenCSRF().then((t=>this.post(Object.assign(e,{tokenCSRF:t.result}))))}postToken(e){return this.token().then((t=>this.post(Object.assign(e,{token:t.result}))))}maybePostToken(e){return"token"in e&&e.token?this.post(e):this.postToken(e)}token(e){return this.post({o:"misc",f:"token"},e)}tokenCSRF(){return this.post({o:"misc",f:"tokenCSRF"})}}const mn=Array.isArray,gn=Object.keys,hn=Object.prototype.hasOwnProperty;function fn(e,t,n){const i=null==n?void 0:n.map((e=>e.split(".")));if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const r=mn(e),a=mn(t);let s,o,l;if(r&&a){if(o=e.length,o!==t.length)return!1;for(s=o;0!=s--;)if(!fn(e[s],t[s],n))return!1;return!0}if(r!==a)return!1;const c=e instanceof Date,u=t instanceof Date;if(c!==u)return!1;if(c&&u)return e.getTime()===t.getTime();const d=e instanceof RegExp,p=t instanceof RegExp;if(d!==p)return!1;if(d&&p)return e.toString()===t.toString();const m=gn(e).filter((e=>!(null==i?void 0:i.some((t=>1===t.length&&t[0]===e)))));if(o=m.length,o!==gn(t).filter((e=>!(null==i?void 0:i.some((t=>1===t.length&&t[0]===e))))).length)return!1;for(s=o;0!=s--;)if(!hn.call(t,m[s]))return!1;for(s=o;0!=s--;)if(l=m[s],!("_owner"===l&&e.$$typeof||fn(e[l],t[l],null==i?void 0:i.filter((e=>e.length>1&&e[0]===l)).map((e=>e.splice(1).join("."))))))return!1;return!0}return e!=e&&t!=t}function bn(e,t){if(Array.isArray(e))return e.map((e=>bn(e,t)));if("object"==typeof e&&null!==e){let n={};return Object.keys(e).forEach((i=>{n=Object.assign(Object.assign({},n),{[i]:i&&t.includes(i)?typeof e[i]:bn(e[i],t)})})),n}return e}const yn=(e,t)=>Array.isArray(t)&&t.length?[e,...t].join(","):e,vn=Lt.object({href:Lt.string(),target:Lt.string()}),wn=Lt.object({name:Lt.string(),sort:Lt.union([Lt.literal("ASC"),Lt.literal("DESC")])}),kn=Lt.union([Lt.boolean(),Lt.string(),Lt.number(),Lt.array(Lt.string()),Lt.object({srcId:Lt.union([Lt.number(),Lt.string()]),srcType:Lt.string()}),Lt.object({targetId:Lt.union([Lt.number(),Lt.string()]),targetType:Lt.string()}),Lt.object({start:Lt.string(),end:Lt.string()})]),_n=Lt.union([Lt.literal("<"),Lt.literal(">"),Lt.literal("<="),Lt.literal(">="),Lt.literal("!="),Lt.literal("<>"),Lt.literal("like"),Lt.literal("between"),Lt.literal("is"),Lt.literal("is not"),Lt.literal("in"),Lt.literal("link"),Lt.literal("match"),Lt.literal("equal")]),Sn=Lt.union([Lt.literal("<"),Lt.literal(">"),Lt.literal("<="),Lt.literal(">="),Lt.literal("!="),Lt.literal("<>"),Lt.literal("+"),Lt.literal("-"),Lt.literal("like"),Lt.literal("between"),Lt.literal("is"),Lt.literal("is not"),Lt.literal("in"),Lt.literal("link"),Lt.literal("match"),Lt.literal("equal")]),jn=Lt.object({name:Lt.string(),value:kn,operator:_n.optional(),method:Sn.optional(),or:Lt.boolean().optional(),isNull:Lt.boolean().optional(),isNotNull:Lt.boolean().optional()}),xn=wn.array(),Cn=Lt.array(jn),Tn=e=>e.and(Lt.object({token:Lt.string().or(Lt.undefined()).optional()}));var An;!function(e){e.LITTLE="raw-little",e.LIST="raw-list",e.VIEW="raw-view",e.USER_API="user-api",e.MOBILE="mobile"}(An||(An={}));const On=Lt.nativeEnum(An).transform((e=>`${e}`)),Ln=Lt.union([On,Lt.undefined()]),Rn=Lt.array(Lt.union([Lt.literal("bookmark"),Lt.literal("contact"),Lt.literal("licenses"),Lt.literal("quizFieldDefinitions"),Lt.literal("quizResponseRecord"),Lt.literal("search"),Lt.literal("socialEventRecord"),Lt.literal("surveyDateRecord")])),Fn=Lt.object({additionalFilter:Lt.object({}).optional(),facets:Lt.array(Lt.object({})).optional(),filters:Cn.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:xn.optional(),format:Ln.optional()}),En=e=>Lt.object(e),Pn=En({id:Lt.number(),mainType:Lt.string(),type:Lt.string(),uri:Lt.string(),dateCreation:Lt.string().optional(),dateModified:Lt.string().nullable().optional()}),In=Pn.extend({title:Lt.string(),_url:Lt.string()}),Mn=e=>In.safeParse(e).success,Dn=Lt.object({type:Lt.literal("text")}),Nn=Lt.string(),Zn=Lt.object({type:Lt.literal("textarea"),params:Lt.object({class:Lt.literal("mceEditor"),mention:Lt.literal("1")}).optional()}),Un=Lt.string().nullable(),qn=Lt.object({type:Lt.literal("number")}),Wn=Lt.number(),Bn=Lt.object({type:Lt.literal("color"),options:Lt.object({colors:Lt.string(),defaultColor:Lt.string()})}),$n=Lt.object({type:Lt.literal("date"),format:Lt.string()}),Vn=Lt.string().nullable(),zn=Lt.object({type:Lt.literal("datetime")}),Gn=Lt.string().nullable(),Jn=Lt.object({type:Lt.literal("datePicker")}),Kn=Lt.string().nullable(),Hn=Lt.number(),Qn=Lt.object({type:Lt.literal("audience"),options:Lt.object({disableEveryoneAudience:Lt.boolean().optional()}).optional()}),Yn=Lt.object({type:Lt.literal("link")}),Xn=Lt.object({type:Lt.literal("multiattribute")}),ei=Lt.object({type:Lt.literal("file")}),ti=Lt.object({type:Lt.literal("select"),options:Lt.record(Lt.string()),params:Lt.object({data:Lt.string().optional(),defaultValue:Lt.string().optional(),explain:Lt.literal(1).optional()}).optional()}),ni=Lt.object({type:Lt.literal("embed")}),ii=Lt.object({type:Lt.literal("email")}),ri=Lt.string(),ai=Lt.object({type:Lt.literal("url"),params:Lt.object({target:Lt.literal("_blank").optional()})}),si=Lt.string(),oi=Lt.object({type:Lt.literal("place"),options:Lt.record(Lt.string())}),li=Lt.object({type:Lt.literal("refUser")}),ci=Lt.object({type:Lt.literal("transient")}),ui=Lt.object({type:Lt.literal("radio"),options:Lt.record(Lt.string())}),di=Lt.object({type:Lt.literal("checkbox"),options:Lt.record(Lt.string())}),pi=Lt.object({type:Lt.literal("taxonomy"),params:Lt.object({idTaxonomy:Lt.string(),type:Lt.string().optional(),limit:Lt.number().optional()})}),mi=Lt.object({type:Lt.literal("tel")}),gi=Lt.object({type:Lt.literal("toggle")}),hi=Lt.object({type:Lt.literal("orientedlinks"),params:Lt.object({"jcomplete-multiple":Lt.union([Lt.literal("0"),Lt.literal("1")]),showAdd:Lt.union([Lt.literal("0"),Lt.literal("1")]),supportedTypes:Lt.array(Lt.string())})}),fi=Lt.object({type:Lt.literal("uri"),params:Lt.object({class:Lt.string(),"jcomplete-url":Lt.string(),type:Lt.string()})}),bi=Lt.union([Dn,Zn,qn,$n,zn,Jn,ti,ni,ii,ai,li,ui,di,hi,pi,fi,ci,Xn,mi,gi,oi,Bn,Yn,ei,Qn]),yi=Lt.union([Hn,Kn,Gn,Vn,ri,Wn,Un,Nn,si]),vi={ADMIN:9,USER:5,EXTERNAL:3,GUEST:0},wi=Pn.extend({title:Lt.string(),_url:Lt.string(),level:Lt.nativeEnum(vi),dateCreation:Lt.string(),dateModified:Lt.string()}).catchall(yi),ki=wi.extend({active:Lt.number()}),_i=e=>ki.safeParse(e).success,Si=ki,ji=e=>Si.safeParse(e).success,xi=Lt.object({idInType:Lt.number(),lat:Lt.number(),lng:Lt.number()}),Ci=e=>xi.safeParse(e).success,Ti=Lt.object({title:Lt.string(),firstname:Lt.string(),lastname:Lt.string(),mail:Lt.union([Lt.string(),Lt.undefined()]).optional(),description:Lt.string().optional(),dateOfBirth:Lt.string().optional(),phoneNumber:Lt.string().optional(),language:Lt.string().optional(),timeZone:Lt.string().optional(),mobileNumber:Lt.string().optional(),company:Lt.string().optional(),country:Lt.string().optional(),department:Lt.string().optional(),function:Lt.string().optional(),webSite:Lt.string().optional(),image:Lt.union([Lt.string(),Lt.undefined()]).optional(),userBanner:Lt.union([Lt.string(),Lt.undefined()]).optional(),field1:Lt.string().optional(),field2:Lt.string().optional(),field3:Lt.string().optional(),field4:Lt.string().optional(),field5:Lt.string().optional()}),Ai=Ti.required().extend({level:Lt.string(),image:Lt.string().optional(),businessManagementManager:wi.array().optional(),businessNetworkingUserToCompanySrc:wi.array().optional()}),Oi=Lt.object({user_field_edit_profil:Lt.record(Ti.keyof(),Lt.number()),user_field_editable:Lt.record(Ti.keyof(),Lt.number()),user_field_my_page:Lt.record(Ti.keyof(),Lt.number()),user_page_mandatory_fields:Lt.object({firstname:Lt.enum(["0","1"]),lastname:Lt.enum(["0","1"]),pseudo:Lt.enum(["0","1"])})}),Li=Lt.object({name:Lt.string(),value:Lt.union([Lt.string(),Lt.record(Lt.string(),Lt.any())])}),Ri=Lt.enum(["popover"]),Fi=Lt.object({values:Ai,mobileEditableFields:Ai.keyof().array()}),Ei=Lt.object({mail:Lt.union([Lt.string(),Lt.undefined()]),title:Lt.string(),firstname:Lt.string(),lastname:Lt.string(),phoneNumber:Lt.union([Lt.string(),Lt.undefined()]).optional(),company:Lt.union([Lt.string(),Lt.undefined()]).optional(),function:Lt.union([Lt.string(),Lt.undefined()]).optional(),uri:Lt.union([Lt.string(),Lt.undefined()]).optional(),field1:Lt.union([Lt.string(),Lt.undefined()]).optional(),field2:Lt.union([Lt.string(),Lt.undefined()]).optional(),field3:Lt.union([Lt.string(),Lt.undefined()]).optional(),field4:Lt.union([Lt.string(),Lt.undefined()]).optional(),field5:Lt.union([Lt.string(),Lt.undefined()]).optional()}),Pi=Lt.object({userDirectoryShow:Lt.union([Lt.literal(""),Lt.literal("1")]),contactDirectoryShow:Lt.union([Lt.literal("0"),Lt.literal("1")]),businessContactShow:Lt.boolean(),menu:Lt.union([Lt.literal("0"),Lt.literal("1")]),cardFields:Lt.string().array(),tableFields:Lt.string().array(),viewFields:Lt.string().array(),userGeoloc:Lt.boolean().optional(),sort:Lt.string(),cnt:Lt.number().optional(),filters:Lt.object({name:Lt.string(),type:Lt.string()}).array()}),Ii=e=>Pi.safeParse(e).success,Mi=En({create:Lt.boolean(),read:Lt.boolean(),publish:Lt.boolean(),administrate:Lt.boolean(),update:Lt.boolean(),delete:Lt.boolean(),comment:Lt.boolean(),member:Lt.boolean()}),Di=e=>Mi.safeParse(e).success,Ni=Lt.object({attrName:Lt.string(),token:Lt.string(),file:Lt.instanceof(File).nullable().optional(),url:Lt.string().optional()}),Zi=Lt.object({width:Lt.number(),height:Lt.number()}),Ui=Lt.object({x:Lt.number(),y:Lt.number(),w:Lt.number(),h:Lt.number(),rotation:Lt.number(),killSize:Lt.boolean().optional()}),qi=In.extend({dateCreation:Lt.string(),dateModified:Lt.string().nullable(),mimetype:Lt.string(),path:Lt.string().optional(),size:Lt.number()}),Wi=e=>qi.parse(e),Bi=qi.extend({_extend:Lt.object({crop:Ui})}),$i=Lt.object({name:Lt.string(),filename:Lt.string(),dateModified:Lt.string(),mimetype:Lt.string()}),Vi=Lt.object({idUser:Lt.string(),dateDownload:Lt.string(),Pseudo:Lt.string(),type:Lt.string()});var zi;Lt.object({id:Lt.number(),token:Lt.string().optional(),attrName:Lt.string()}),function(e){e.ArticleButton="widget-article-button",e.ArticleGallery="widget-article-gallery",e.ArticleTitle="widget-article-title",e.ArticleText="widget-article-text",e.ArticleImage="widget-article-image",e.ArticleAttachment="widget-article-attachment",e.ArticleSlider="widget-article-slider",e.CheckList="widget-check-list",e.DatasourceTable="widget-datasource-table",e.ExcelDatasourceTable="widget-excel-datasource-table",e.Presence="widget-presence"}(zi||(zi={}));const Gi=Lt.nativeEnum(zi),Ji=Lt.object({title:Lt.string(),widget:Lt.object({name:Gi,uniqid:Lt.string(),content:Lt.unknown()})}).catchall(Lt.unknown()),Ki=Lt.enum(["left","right","center","justify"]),Hi=Lt.enum(["top","bottom","center","left","right"]),Qi=Lt.enum(["auto","contain","cover"]),Yi=Lt.enum(["sm","md","lg"]),Xi=Lt.enum(["contained","outlined"]),er=Lt.enum(["link","anchor","popup"]),tr=Lt.object({x:Lt.number(),y:Lt.number()}),nr=Lt.enum(["default","vertical"]),ir=(e,t)=>t.safeParse(e).success,rr=(e,t)=>t.safeParse(e).success,ar=Lt.object({url:Lt.string(),target:Lt.string()}),sr=Lt.object({uniqid:Lt.string()}),or=Lt.object({title:Lt.string(),widgets:Ji.array()}),lr=En({text:Lt.string().optional(),color:Lt.string().optional(),backgroundColor:Lt.string().optional(),borderRadius:Lt.string().optional(),fontSize:Lt.string().optional(),buttonSize:Yi.optional(),variant:Xi.optional(),url:Lt.string().optional(),target:Lt.string().optional()}),cr=lr.extend({openingType:er.optional(),openingTypeLink:ar.optional(),openingTypeAnchor:sr.optional(),openingTypePopup:or.optional()}),ur=En({name:Lt.literal(zi.ArticleButton),uniqid:Lt.string(),content:cr}),dr=En({gap:Lt.string().optional(),column:Lt.string().optional(),files:qi.array().optional()}),pr=En({name:Lt.literal(zi.ArticleGallery),uniqid:Lt.string(),content:dr}),mr=En({text:Lt.string().optional(),textAlign:Ki.optional(),heading:Lt.string().optional(),color:Lt.string().optional(),backgroundColor:Lt.string().optional()}),gr=En({name:Lt.literal(zi.ArticleTitle),uniqid:Lt.string(),content:mr}),hr=En({text:Lt.string().optional(),color:Lt.string().optional(),fontSize:Lt.string().optional(),lineHeight:Lt.string().optional(),linkColor:Lt.string().optional()}),fr=En({name:Lt.literal(zi.ArticleText),uniqid:Lt.string(),content:hr}),br=En({file:qi.optional(),useFilter:Lt.boolean().optional()}),yr=En({name:Lt.literal(zi.ArticleImage),uniqid:Lt.string(),content:br}),vr=En({files:qi.array().optional(),fileDisplay:Lt.enum(["list","gallery"]).optional()}),wr=En({name:Lt.literal(zi.ArticleAttachment),uniqid:Lt.string(),content:vr}),kr=En({title:Lt.string(),text:Lt.string(),titleHeading:Lt.enum(["h1","h2","h3","h4","h5","h6","p","span"]).optional(),textColor:Lt.string().optional(),opacityFilter:Lt.number().optional(),opacityColor:Lt.string().optional(),file:qi.optional()}),_r=En({slides:kr.array().optional(),maxWidth:Lt.number().optional(),loop:Lt.boolean().optional(),useDots:Lt.boolean().optional(),startAt:Lt.number().optional()}),Sr=En({name:Lt.literal(zi.ArticleSlider),uniqid:Lt.string(),content:_r}),jr=En({title:Lt.string(),value:Lt.boolean().optional(),links:vn.array().optional(),id:Lt.number().optional(),user:Lt.object({id:Lt.number(),type:Lt.literal("user"),mainType:Lt.literal("user")}).optional()}),xr=Lt.object({arr:jr.array().optional(),css:Lt.record(Lt.string(),Lt.string()).optional(),widgets:Ji.array().optional(),edit:Lt.boolean().optional()}),Cr=En({name:Lt.literal(zi.CheckList),uniqid:Lt.string(),content:xr}),Tr=Lt.enum(["date","date-time","date-time-sec","time","time-sec"]),Ar=Lt.enum(["fr-FR","en-EN","filesize"]),Or=Lt.object({}),Lr=Lt.object({type:Lt.literal("text")}),Rr=Lt.object({label:Lt.string(),value:Lt.string()}),Fr=Lt.object({type:Lt.literal("select"),options:Rr.array()}),Er=Lt.object({type:Lt.literal("date")}),Pr=Lt.union([Lr,Fr,Er,Or]),Ir=Lt.object({name:Lt.string().optional(),isVisible:Lt.boolean().optional(),textEllipsis:Lt.boolean().optional(),label:Lt.string().optional(),dateFormat:Tr.optional(),numberFormat:Ar.optional()}),Mr=Ir.array(),Dr=Lt.enum(["text","uri","file","select","url","transient","date","datetime","email","number","title"]),Nr=Lt.object({name:Lt.string(),label:Lt.string(),sortable:Lt.boolean().optional(),type:Dr,widget:Pr}),Zr=Lt.object({limit:Lt.number().or(Lt.boolean()).optional(),tableColumnsData:Ir.array().optional(),tableHeadColor:Lt.string().optional(),tableHeadTextColor:Lt.string().optional(),tableHeadIconColor:Lt.string().optional(),tableRowColor:Lt.string().optional(),tableRowTextColor:Lt.string().optional(),tableBorderRadius:Lt.number().optional(),tableSizedColumns:Lt.boolean().optional(),tableSizedColumnsWidth:Lt.number().optional()}),Ur=Zr.extend({uri:Lt.string().optional()}),qr=En({name:Lt.literal(zi.DatasourceTable),uniqid:Lt.string(),content:Ur}),Wr=Ur.extend({uri:Lt.string().optional()}),Br=Lt.object({name:Lt.literal(zi.ExcelDatasourceTable),uniqid:Lt.string(),content:Wr}),$r=Lt.object({limit:Lt.boolean().or(Lt.number()).optional(),limitValue:Lt.number().optional(),closing:Lt.boolean().optional(),isClosed:Lt.boolean().optional()}),Vr=e=>rr(e,$r),zr=En({name:Lt.literal(zi.Presence),uniqid:Lt.string(),content:$r}),Gr=e=>ir(e,zr),Jr=Lt.object({id:Lt.number(),type:Lt.string(),uniqid:Lt.string(),value:Lt.number()}),Kr=e=>ir(e,Jr),Hr=Lt.object({userValue:Lt.number(),userAvailableList:wi.array(),userUnavailableList:wi.array(),userAvailableTotal:Lt.number(),userUnavailableTotal:Lt.number()}),Qr=e=>ir(e,Hr),Yr=Lt.union([Lt.object({layers:Lt.string().array().optional()}).and(wr),Lt.object({layers:Lt.string().array().optional()}).and(ur),Lt.object({layers:Lt.string().array().optional()}).and(pr),Lt.object({layers:Lt.string().array().optional()}).and(yr),Lt.object({layers:Lt.string().array().optional()}).and(gr),Lt.object({layers:Lt.string().array().optional()}).and(fr),Lt.object({layers:Lt.string().array().optional()}).and(Sr),Lt.object({layers:Lt.string().array().optional()}).and(Cr),Lt.object({layers:Lt.string().array().optional()}).and(qr),Lt.object({layers:Lt.string().array().optional()}).and(Br),Lt.object({layers:Lt.string().array().optional()}).and(zr)]),Xr=En({title:Lt.string(),widget:Yr}),ea=Lt.object({widgets:Xr.array().optional()}).and(Lt.union([vr,cr,dr,br,hr,mr,_r,xr,Ur,Wr,$r])),ta=Lt.object({[zi.ArticleButton]:ur,[zi.ArticleGallery]:pr,[zi.ArticleTitle]:gr,[zi.ArticleText]:fr,[zi.ArticleImage]:yr,[zi.ArticleAttachment]:wr,[zi.ArticleSlider]:Sr,[zi.CheckList]:Cr,[zi.DatasourceTable]:qr,[zi.ExcelDatasourceTable]:Br,[zi.Presence]:zr}),na=Lt.object({[zi.ArticleButton]:cr,[zi.ArticleGallery]:dr,[zi.ArticleTitle]:mr,[zi.ArticleText]:hr,[zi.ArticleImage]:br,[zi.ArticleAttachment]:vr,[zi.ArticleSlider]:_r,[zi.CheckList]:xr,[zi.DatasourceTable]:Ur,[zi.ExcelDatasourceTable]:Wr,[zi.Presence]:$r}),ia=Lt.object({busy:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),loading:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),initialized:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),mounted:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),hover:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),empty:Lt.boolean().optional(),locked:Lt.boolean().optional()}),ra=Lt.object({type:Lt.string(),title:Lt.string(),description:Lt.string(),privacy:Lt.union([Lt.string(),Lt.number()]),edito:Lt.string().nullable(),language:Lt.string(),category:Lt.string(),idCommunity:Lt.string().optional()}),aa=Lt.object({id:Lt.string(),name:Lt.string(),size:Lt.string()}),sa=Lt.union([Lt.literal(0),Lt.literal(1),Lt.literal(2),Lt.literal(3)]),oa=Lt.object({level:sa,user:wi}),la=Lt.object({RF_Constant_levelName:Lt.string(),RF_delete:Lt.boolean(),RF_editing:Lt.boolean(),RF_level:Lt.number(),RF_levelName:Lt.string(),RF_levelName_Trad:Lt.string(),RF_parameters:Lt.boolean(),RF_setAdmin:Lt.boolean(),RF_spotit:Lt.boolean(),RF_spotit_own:Lt.boolean()});var ca;!function(e){e[e.SPOT_MODERATE_IGNORE=0]="SPOT_MODERATE_IGNORE",e[e.SPOT_MODERATE_ACCEPT=1]="SPOT_MODERATE_ACCEPT",e[e.SPOT_MODERATE_PENDING=2]="SPOT_MODERATE_PENDING"}(ca||(ca={}));const ua=Lt.nativeEnum(ca),da=Lt.object({userLevelSpot:la,spotMinLevelToInvit:Lt.number(),userRights:Mi,accessRequestStatus:ua.optional()}),pa=Lt.object({value:Lt.union([Lt.string(),Lt.number()]),label:Lt.string()}),ma=Lt.object({id:Lt.string(),title:Lt.string()}),ga=Lt.object({idSpot:Lt.string(),idOrder:Lt.string(),idWidget:Lt.string(),type:Lt.string(),title:Lt.string(),url:Lt.string(),visible:Lt.string()}),ha=Lt.object({edit_access:Lt.array(pa.and(Lt.object({description:Lt.string()}))),commentLevel:Lt.array(pa.and(Lt.object({selected:Lt.boolean().optional()}))),displayType:Lt.array(pa),user_level_signup:Lt.array(pa.and(Lt.object({selected:Lt.boolean().optional()}))),spot_right_user:Lt.array(pa.and(Lt.object({selected:Lt.boolean().optional()}))),useTeaser:Lt.array(pa),spotDefaultPublishType:Lt.array(Lt.string()),mail_frequency:Lt.array(pa),widgets:Lt.array(ma),custom_widgets:Lt.record(ga).or(Lt.array(Lt.never())),isArchive:Lt.number(),fileSyncVersioningType:Lt.array(pa)}),fa=Lt.object({url:Lt.string(),idUser:Lt.number(),send:Lt.boolean().optional(),_user:wi.optional(),date:Lt.string().optional(),error:Lt.string().optional()}),ba=Lt.object({edit_access:Lt.union([Lt.literal(""),Lt.literal("author")]),commentLevel:Lt.union([Lt.literal("-1"),Lt.literal("1"),Lt.literal("2"),Lt.literal("3")]),user_level_signup:Lt.union([Lt.literal(""),Lt.literal("1"),Lt.literal("2"),Lt.literal("3")]),nounsubscribe:Lt.union([Lt.literal("0"),Lt.literal("1")]),useTeaser:Lt.union([Lt.literal(""),Lt.literal("0"),Lt.literal("1")]).nullable(),displayType:Lt.string(),spot_right_user:Lt.string(),rss_feed:Lt.array(fa).nullable(),spotDefaultPublishType:Lt.string(),mail_frequency:Lt.string(),mail_comment:Lt.union([Lt.literal("1"),Lt.literal("")]),mail_spotit:Lt.union([Lt.literal("1"),Lt.literal("")]),mail_subscriber:Lt.union([Lt.literal("1"),Lt.literal("")]),lock_mail:Lt.union([Lt.literal("1"),Lt.literal("")]),activity:Lt.union([Lt.literal("1"),Lt.literal("0")]),publishFolder:Lt.union([Lt.literal("1"),Lt.literal("0")]),notifyFolder:Lt.union([Lt.literal("1"),Lt.literal("0")]),widgets:Lt.array(Lt.string()),rss_access:Lt.union([Lt.literal("1"),Lt.literal("0")]),rss_key:Lt.string(),fileSyncEnabled:Lt.union([Lt.literal("1"),Lt.literal("0")]),fileBankQuota:Lt.string(),fileSyncVersioningType:Lt.union([Lt.literal("overwrite"),Lt.literal("author-change")]),_options:ha,_errors:Lt.tuple([]),lastRssExecution:Lt.record(Lt.string()).optional()}),ya=ra.and(ba.omit({rss_feed:!0}).partial()).and(Lt.object({uri:Lt.string(),image:Lt.string().nullable().optional(),spotBanner:Lt.record(aa).or(Lt.array(Lt.never())).optional(),token:Lt.string().optional(),uriCommunity:Lt.string().optional(),custom_widgets:Lt.record(ga).optional(),rss_feed:Lt.string()})),va=Lt.object({idWidget:Lt.string(),title:Lt.string(),url:Lt.string(),type:Lt.string(),icon:Lt.string(),description:Lt.string()}),wa=Lt.object({id:Lt.string(),idorder:Lt.number(),label:Lt.string()}),ka=In.extend({dateCreation:Lt.string(),dateModified:Lt.string(),category:Lt.number(),privacy:Lt.number()}),_a=ka.extend({description:Lt.string(),edito:Lt.string().nullable(),language:Lt.string()}),Sa=_a.extend({image:Lt.string().nullable().optional(),spotBanner:Lt.record(aa).or(Lt.array(Lt.never())).optional(),idCommunity:Lt.string().optional(),useTeaser:Lt.union([Lt.literal(""),Lt.literal("0"),Lt.literal("1")]).nullable().optional()}),ja=Lt.object({idSpot:Lt.union([Lt.string(),Lt.number()]),mailFrequency:Lt.union([Lt.string(),Lt.number()]),mailSpotit:Lt.boolean(),mailComment:Lt.boolean(),mailSubscriber:Lt.boolean()}),xa=Lt.object({type:Lt.string().optional(),format:Ln.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:xn.optional(),filters:Cn.or(Lt.undefined()).optional()}),Ca=e=>la.safeParse(e).success,Ta=In.extend({description:Lt.string().optional().nullable(),_user:wi,_right:Mi}),Aa=e=>Ta.safeParse(e).success,Oa=In.extend({type:Lt.enum(["folder","rootFolder"]),folderColor:Lt.string().optional()}),La=Lt.union([wi,ka,Oa]),Ra=In.extend({dateCreation:Lt.string(),dateModified:Lt.string()}),Fa=Ra.extend({description:Lt.string().nullable().optional(),_user:wi,_right:Mi,_audience:La.array(),image:Zi.optional(),articleWidgets:Xr.array().optional()}),Ea=Fa,Pa=Ea.extend({_attachedFiles:qi.array()}),Ia=Pa.extend({processContext:Lt.null(),uiObjectLink:In.array().optional()}),Ma=e=>Pa.extend({idDraft:Lt.number(),form:e}),Da=Lt.object({type:Lt.string().optional(),format:Ln.optional(),formatExtend:Rn.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:xn.optional(),filters:Cn.optional()}),Na=Lt.object({uri:Lt.string().optional(),idArticle:Lt.number().optional(),format:Ln.optional()}),Za=Lt.object({title:Lt.string().optional(),description:Lt.string().optional().nullable(),type:Lt.string().optional(),publishTo:Lt.string().optional(),idSpot:Lt.array(Lt.string()).optional()}),Ua=Lt.object({id:Lt.number(),type:Lt.string(),dateCreation:Lt.string(),dateModified:Lt.string(),title:Lt.string(),uri:Lt.string()}),qa=Lt.object({attachment:Lt.boolean().optional(),idArticle:Lt.number(),limits:Lt.object({max:Lt.number(),start:Lt.number()}).optional()}),Wa=Lt.object({token:Lt.string(),content:Lt.string(),idArticle:Lt.number(),sendAlert:Lt.boolean(),alertAuthor:Lt.boolean(),widgets:Xr.array().optional(),type:Lt.union([Lt.literal("comment"),Lt.literal("commentResponse")]).optional()}),Ba=Lt.object({token:Lt.string().optional(),description:Lt.string().optional(),idComment:Lt.number(),widgets:Xr.array().optional()}),$a=Lt.object({idUser:Lt.string(),dateRead:Lt.string(),Pseudo:Lt.string(),type:Lt.string()}),Va=Oa.merge(Ea).extend({_nbItems:Lt.number(),parentURI:Lt.string().optional()}),za=Ea.extend({place:Lt.string(),address:Lt.string(),dateStart:Lt.string(),dateEnd:Lt.string(),noGestion:Lt.boolean()}),Ga=Pa.and(za).and(Lt.object({allDay:Lt.null(),useQrcode:Lt.null(),textColor:Lt.string(),bgColor:Lt.string(),socialEventUseCeiling:Lt.null(),socialEventCeiling:Lt.null(),hideFromCalendar:Lt.null(),urlGestion:Lt.string().optional().nullable()})),Ja=e=>Ga.safeParse(e).success,Ka=Pn.extend({srcId:Lt.number(),srcType:Lt.string(),targetId:Lt.number(),targetType:Lt.string().nullable()}),Ha=e=>Ka.extend({value:Lt.string().nullable(),_src:e.optional(),_target:e.optional().or(Lt.undefined())}),Qa=e=>Ha(null!=e?e:In.or(wi)).extend({bookmarkUrl:Lt.string().optional().nullable(),bookmarkOrder:Lt.number().optional(),bookmarkLabel:Lt.string().optional(),bookmarkMeta:Lt.string().optional().nullable(),url:Lt.string().optional().nullable(),type:Lt.literal("bookmarkLink")}),Ya=e=>Lt.object({id:Lt.number(),mainType:Lt.string(),type:Lt.string(),uri:Lt.string(),_values:Lt.object({dateCreation:Lt.string(),dateModified:Lt.string()}).optional(),srcId:Lt.number(),srcType:Lt.string(),targetId:Lt.number(),targetType:Lt.string().nullable(),value:Lt.string().nullable(),_cssColor:Lt.string(),_cssClass:Lt.string(),_src:(null!=e?e:In).optional(),_target:(null!=e?e:In).optional(),bookmarkUrl:Lt.string().optional().nullable(),bookmarkOrder:Lt.string().optional(),bookmarkLabel:Lt.string().optional(),bookmarkMeta:Lt.string().optional().nullable(),url:Lt.string().optional().nullable()});var Xa;!function(e){e.RAW_LIST="raw-list",e.LIST="list"}(Xa||(Xa={}));const es=Lt.object({targetId:Lt.number(),targetType:Lt.string(),format:Lt.nativeEnum(Xa).transform((e=>`${e}`)).optional()}),ts=Lt.object({[Xa.RAW_LIST]:Qa(),[Xa.LIST]:Ya()}),ns=Lt.object({bookmarkLabel:Qa(In).shape.bookmarkLabel,bookmarkMeta:Qa(In).shape.bookmarkMeta,bookmarkUrl:Qa(In).shape.bookmarkUrl}),is=Lt.object({countActiveUsersWithoutLicense:Lt.number().optional(),countLicensesAssigned:Lt.number(),countLicensesNotAssigned:Lt.number()}),rs=Lt.object({name:Lt.string(),operator:Lt.string(),value:Lt.number()}),as=Lt.record(Lt.number()),ss=Lt.object({id:Lt.number(),kind:Lt.string(),dateCreation:Lt.string(),idFeature:Lt.number(),uri:Lt.string(),contentId:Lt.number(),contentType:Lt.string(),status:Lt.number()}),os=Lt.object({id:Lt.number(),kind:Lt.string(),dateCreation:Lt.string(),idFeature:Lt.number(),uri:Lt.string(),contentId:Lt.number(),contentType:Lt.string(),status:Lt.number()}),ls=ki.extend({_extend:Lt.object({licenses:Lt.array(os)})}),cs=Fn.extend({data:ls.array()}),us=Lt.object({uri:Lt.string(),title:Lt.string(),price:Lt.number(),image:Lt.string(),license:Lt.boolean()}),ds=Lt.object({url:Lt.string()}),ps=Lt.object({sref:Lt.string().optional(),href:Lt.string().optional(),idDiv:Lt.string(),label:Lt.string(),icon:Lt.string(),licenseMode:Lt.literal("classic").optional(),hook:Lt.string().optional()}),ms=Lt.object({name:Lt.string(),label:Lt.string(),icon:Lt.string(),color:Lt.tuple([Lt.string(),Lt.string(),Lt.string()]),state:Lt.string().optional(),access:Lt.boolean(),url:Lt.string().optional(),tabs:Lt.array(ps).optional()}),gs=Lt.array(ms),hs=Lt.union([Lt.literal("Halloween"),Lt.literal("Celebration"),Lt.literal("Olympics"),Lt.literal("Maythefourth"),Lt.literal("Spring"),Lt.literal("MusicFestival"),Lt.literal("EasterEggs"),Lt.literal("CustomAnimation")]),fs=Lt.object({name:hs,activeClickEffect:Lt.number(),activeDecor:Lt.number(),auto:Lt.boolean(),audience:Lt.array(Lt.string())}),bs=Lt.object({date:Lt.string(),number:Lt.number()}),ys=Lt.object({id:Lt.number(),mainType:Lt.string(),type:Lt.string(),uri:Lt.string(),dateCreation:Lt.string().nullable(),dateModified:Lt.string().nullable(),animationName:Lt.string(),dateStart:Lt.string(),dateEnd:Lt.string().nullable(),auto:Lt.boolean(),stats:Lt.array(bs),animAudience:Lt.array(Lt.string())}),vs=Lt.union([Lt.literal("created"),Lt.literal("validated"),Lt.literal("handled")]),ws=Pa.extend({aseiClearanceTicketValidator:wi.array(),aseiClearanceTicketHandler:In.array(),aseiClearanceTicketApplicationManagers:In.array(),aseiClearanceTicketInstitution:In.array(),processContext:Lt.null(),aseiClearanceTicketNatureOfDemand:Lt.string(),aseiClearanceTicketInternetAccess:Lt.string(),aseiClearanceTicketInternetAccessSpecify:Lt.string(),aseiClearanceTicketMicrosoftTeams:Lt.string().nullable(),aseiClearanceTicketVariousNetworks:Lt.string().nullable(),aseiClearanceTicketFreeText:Lt.string(),aseiClearanceTicketOfficeAccess:Lt.string().nullable(),aseiClearanceTicketSharedDirectoriesSpecify:Lt.string(),aseiClearanceTicketBlueKanGo:Lt.string().nullable(),aseiClearanceTicketAccounting:Lt.string(),aseiClearanceTicketAccountingBudget:Lt.string(),aseiClearanceTicketTransfers:Lt.string().nullable(),aseiClearanceTicketBilling:Lt.string(),aseiClearanceTicketPayroll:Lt.string(),aseiClearanceTicketPayrollBudget:Lt.string(),aseiClearanceTicketAccommodationCosts:Lt.string(),aseiClearanceTicketCommercialManagement:Lt.string(),aseiClearanceTicketInventoryManagement:Lt.string(),aseiClearanceTicketTimeManagement:Lt.string(),aseiClearanceTicketBdes:Lt.string(),aseiClearanceTicketMandateStart:Lt.string().nullable(),aseiClearanceTicketMandateEnd:Lt.string().nullable(),aseiClearanceTicketIndicatorsPlatform:Lt.string().nullable(),aseiClearanceTicketBudgetLetters:Lt.string(),aseiClearanceTicketComputerisedFile:Lt.string().nullable(),aseiClearanceTicketRecruiterAccess:Lt.string().nullable(),aseiClearanceTicketTypeOfWorkContractFrom:Lt.null(),aseiClearanceTicketTypeOfWorkContractTo:Lt.null(),aseiClearanceTicketLastName:Lt.string(),aseiClearanceTicketFirstName:Lt.string(),aseiClearanceTicketUser:wi.array(),aseiClearanceTicketTypeOfWorkContract:Lt.string(),aseiClearanceTicketTypeOfWorkContractSpecify:Lt.string(),aseiClearanceTicketPosition:Lt.string(),aseiClearanceTicketStatus:vs}),ks=Ra.extend({_right:Mi,_user:wi,aseiInstitutionValidator:In.array(),processContext:Lt.null()}),_s=Lt.object({dsi:Lt.string(),gestionnaireApplicatif:Lt.string(),createurDemande:Lt.string()}),Ss=Lt.object({accessWriter:Lt.boolean(),accessApp:Lt.boolean()}),js=Lt.object({description:Lt.string(),right:Lt.object({manage:Lt.boolean()}),daysOff:Lt.array(Lt.string()).optional(),weekEnd:Lt.union([Lt.literal("0"),Lt.literal("1")]),bookingOpeningTime:Lt.string(),bookingClosingTime:Lt.string(),lastBookingSchedule:Lt.string()}),xs=Ea.extend({_isColorDark:Lt.boolean().nullable(),assetPlannerBackgroundColor:Lt.string().nullable()}),Cs=xs.extend({assetBanner:Lt.record(Lt.object({id:Lt.string(),name:Lt.string(),size:Lt.string()}))}),Ts=Ea.extend({dateStart:Lt.string(),dateEnd:Lt.string(),reservationCancelled:Lt.boolean(),_asset:xs}),As=Lt.object({id:Lt.string(),uri:Lt.string(),shortUri:Lt.string(),title:Lt.string(),name:Lt.string(),mainType:Lt.string(),type:Lt.string(),label:Lt.string(),cssClass:Lt.string(),cssColor:Lt.string(),class:Lt.string()}),Os=As.extend({title:Lt.string()}),Ls=Os.extend({Pseudo:Lt.string()}),Rs=Os.extend({idspot:Lt.string()}),Fs=Lt.union([Os,Ls,Rs]),Es=In.extend({isTechnical:Lt.number(),status:Lt.number(),image:Lt.string(),isMember:Lt.boolean(),stats:Lt.object({moderators:Lt.number(),members:Lt.string()}),_members:Lt.array(In)}),Ps=Lt.object({token:Lt.string(),fullname:Lt.string()}),Is=Lt.object({redirectUrl:Lt.string()}),Ms=Lt.object({token:Lt.string()}),Ds=Lt.object({dateStart:Lt.string(),title:Lt.string()}),Ns=Ra.extend({type:Lt.literal("businessContactCard")}),Zs=Ea.and(Ns.and(Lt.object({mail:Lt.string().nullable(),pseudo:Lt.string().nullable(),firstName:Lt.string().nullable(),lastName:Lt.string().nullable(),phoneNumber:Lt.string().nullable(),company:Lt.string().nullable(),function:Lt.string().nullable(),champ1:Lt.string().nullable().optional(),champ2:Lt.string().nullable().optional(),champ3:Lt.string().nullable().optional(),champ4:Lt.string().nullable().optional(),champ5:Lt.string().nullable().optional()}))),Us=Lt.literal("read"),qs=Lt.object({type:Lt.string(),class:Lt.string(),isActive:Lt.boolean(),label:Lt.string(),cssClass:Lt.string(),cssColor:Lt.string(),struct:Lt.object({action:Lt.string(),do:Lt.string(),type:Lt.string(),targetId:Lt.number(),targetType:Lt.string()}),stats:Lt.object({total:Lt.number()})}),Ws=Pn.omit({dateModified:!0}).extend({dateCreation:Lt.string(),dateModified:Lt.string().nullable(),description:Lt.string().nullable(),_user:wi}),Bs=Ws.extend({_right:Mi,_attachedFiles:Lt.array(qi).optional(),_actions:Lt.record(qs).optional(),_widgets:Lt.array(Xr).optional()}),$s=Ta.extend({dateStart:Lt.string(),animatedMeetingContent:Lt.record(Lt.unknown()),_extend:Lt.object({status:Lt.string(),statusValue:Lt.literal(1).or(Lt.literal(2)).or(Lt.literal(3)),date:Lt.string()}),_audience:La.array(),_audienceLeft:Lt.number()}),Vs=Lt.union([Lt.literal("groups"),Lt.literal("sites"),Lt.literal("onedrive"),Lt.literal("group"),Lt.literal("documents"),Lt.literal("me")]),zs=En({title:Lt.string(),id:Lt.string(),type:Lt.string()}),Gs=zs.omit({id:!0}).extend({name:Vs.optional()}),Js=zs.and(Lt.object({})),Ks=zs.extend({visibility:Lt.union([Lt.literal("public"),Lt.literal("private")]).optional()}),Hs=zs.extend({mimetype:Lt.string().optional(),webUrl:Lt.string().optional(),size:Lt.number().optional()}),Qs=Hs,Ys=Hs.extend({_extend:Lt.object({path:Lt.string()})}),Xs=Ks.and(Hs),eo=Lt.object({id:Lt.string(),title:Lt.string(),mail:Lt.string(),default:Lt.boolean().optional()}),to=Lt.object({title:Lt.string(),id:Lt.string(),type:Lt.string(),mimetype:Lt.string().optional(),webUrl:Lt.string().optional()}),no=Lt.object({msTenant:Lt.union([Vs,Lt.undefined()]),msId:Lt.union([Lt.string(),Lt.undefined()]),idFolder:Lt.union([Lt.string(),Lt.undefined()]),page:Lt.number(),limit:Lt.number(),query:Lt.string().optional().nullable()}),io=Lt.object({path_lower:Lt.string(),query:Lt.string().optional().nullable()}),ro=Lt.object({id:Lt.number(),name:Lt.string(),type:Lt.string(),token:Lt.string(),size:Lt.number(),mediaKey:Lt.string()}),ao=Lt.object({token:Lt.string().optional(),attrName:Lt.string(),file:Lt.object({service:Lt.string(),account:Lt.string(),title:Lt.string(),mimetype:Lt.string().optional(),_document:Hs})}),so=Lt.object({id:Lt.string(),service:Lt.string()}),oo=Lt.object({service:Lt.string(),id:Lt.string()}),lo=Lt.object({account:eo}),co=Lt.object({service:Lt.string(),account:Lt.string()}),uo=Lt.object({allow:Lt.union([Lt.literal("groups"),Lt.literal("me")]).array().optional(),id:Lt.string()}),po=Lt.object({id:Lt.string(),documentParams:no}),mo=Lt.object({id:Lt.string(),documentParams:io}),go=Lt.object({query:Lt.string().optional(),filter:Lt.string().optional(),id:Lt.string()}),ho=Ea.extend({faqColor:Lt.string().optional(),image:Zi.optional(),type:Lt.literal("faq")}),fo=Pa.and(ho).and(Lt.object({_audience:Fs.array(),tags:Os.array().optional(),isWeb:Lt.boolean(),faqContent:Lt.array(Lt.object({title:Lt.string(),id:Lt.string().optional(),items:Lt.array(Lt.string())})).optional()})),bo=e=>e.and(Lt.object({_extend:Lt.object({itemsCount:Lt.number()})})),yo=Ea.extend({type:Lt.literal("faqItem"),hierarchy:Lt.object({category:Lt.string().optional(),theme:Lt.string().optional()})}),vo=yo.omit({hierarchy:!0}).extend({faqResponse:Lt.string(),tags:Os.array().optional(),uriCategory:Ra.array(),themeId:Lt.string(),_nbAttachedFiles:Lt.number().optional(),_attachedFiles:qi.array(),uiObjectLink:Lt.unknown()}),wo=Tn(Za.omit({idSpot:!0})).and(Lt.object({image:Zi.nullable().optional(),tags:Lt.string().optional(),faqColor:Lt.string().optional(),isWeb:Lt.boolean().optional(),type:Lt.literal("faq")})),ko=wo.and(Lt.object({uri:Lt.string(),format:Ln.optional()})),_o=Lt.object({title:Lt.string(),id:Lt.string()}),So=Lt.object({_web:Lt.union([Lt.literal("0"),Lt.literal("1"),Lt.literal("")]).optional(),appImageText:Lt.string().optional(),appImage:Lt.union([Lt.string(),Lt.object({image:Lt.object({id:Lt.string(),type:Lt.string()})})]).optional(),_displayComment:Lt.union([Lt.literal("0"),Lt.literal("1"),Lt.literal("")]).optional()}),jo=Lt.object({createCategory:Lt.boolean()}),xo=Lt.object({idCategory:Lt.number(),title:Lt.string()}),Co=Lt.object({idCategory:Lt.number(),indexTheme:Lt.number(),deleteEntries:Lt.boolean().optional()}),To=Lt.object({idCategory:Lt.number(),indexTheme:Lt.number(),title:Lt.string()}),Ao=Tn(Za).and(Lt.object({tags:Lt.string().optional(),faqResponse:Lt.string().optional(),type:Lt.literal("faqItem")})),Oo=Lt.object({idEntry:Lt.number(),idCategory:Lt.number(),theme:Lt.number()}),Lo=Ao.and(Lt.object({uri:Lt.string()})),Ro=Lt.object({entryURI:Lt.string(),sourceURI:Lt.string().optional(),targetURI:Lt.string(),theme:Lt.number()}),Fo=Lt.object({sourceUri:Lt.string(),targetUri:Lt.string(),themeIndex:Lt.number()}),Eo=e=>Lt.object({isActive:Lt.boolean()}).and(e),Po=Lt.enum(["drive_microsoft_graph","drive_dropbox","drive_google"]),Io=Eo(Lt.object({drives:Lt.record(Po,Lt.boolean())})),Mo=Eo(Lt.object({label:Lt.string()})),Do=Eo(Lt.object({orderBy:Lt.string(),order:Lt.enum(["ASC","DESC"])})),No=Lt.object({label:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),color:Lt.string()}),Zo=Eo(Lt.object({hasLicense:Lt.boolean(),label:Lt.string(),description:Lt.string(),color:Lt.string(),templates:No.array()})),Uo=Eo(Lt.object({hasLicense:Lt.boolean()})),qo=Eo(Lt.object({sendAlert:Lt.boolean()})),Wo=Eo(Lt.object({})),Bo=Eo(Lt.object({create:Lt.boolean(),autorize:Lt.array(Lt.enum(["message","comment","board","article"]).optional())})),$o=Eo(Lt.object({label:Lt.string(),hasLicense:Lt.boolean()})),Vo=Lt.object({MagicPadHook:$o}).partial(),zo=Lt.object({DriveHook:Io,calendarHook:Mo,FileBankHook:Do,StudioHook:Uo,OnlyOfficeHook:Zo,spotRssFeed:Wo,WidgetHook:Bo,AdminAdvancedHook:qo}).partial().and(Vo),Go=Lt.union([Lt.literal("summarize"),Lt.literal("develop"),Lt.literal("reformulate"),Lt.literal("tldr"),Lt.literal("en"),Lt.literal("es"),Lt.literal("formal"),Lt.literal("funny")]),Jo=Lt.object({text:Lt.string()}),Ko=Lt.object({idLog:Lt.number(),slug:Lt.string(),dateCreation:Lt.string(),map:Lt.string(),mail:Lt.string(),action:Lt.string(),mode:Lt.string()}),Ho=Lt.object({mail:Lt.string(),cnt:Lt.string()}),Qo=Lt.string(),Yo=Lt.string(),Xo=Ra.extend({jlandMapFlavor:Qo,jlandMapKind:Yo,waMapUrl:Lt.string().optional(),limit:Lt.number().optional(),_extend:Lt.object({licenses:Lt.array(os)})}),el=Za.extend({jlandMapAggregated:Lt.string(),type:Lt.literal("jlandmap")}),tl=Lt.object({jlandMapKind:Lt.string(),jlandMapFlavor:Lt.string(),limit:Lt.number().nullable(),waMapUrl:Lt.string().nullable()}),nl=Ra.and(tl),il=Ea.and(tl),rl=Pa.and(tl),al=Lt.object({kind:Lt.string(),page:Lt.number(),limit:Lt.number(),filters:jn.array().optional(),orders:wn.array().optional()}),sl=e=>Lt.object({license:Lt.union([Lt.literal("1"),Lt.literal("0")]),user:e}),ol=Ra.extend({attachment:qi,description:Lt.string()}),ll=Ea.extend({description:Lt.string(),attachment:qi,_audience:Fs.array()}),cl=Lt.object({format:Ln,page:Lt.number().optional(),limit:Lt.number().optional(),nolimit:Lt.boolean().optional()}),ul=Lt.object({id:Lt.number(),idFolder:Lt.number().optional(),fileName:Lt.string(),nbViews:Lt.number(),nbDistinctViews:Lt.number(),nbDownloads:Lt.number()}),dl=Lt.object({id:Lt.number(),folderName:Lt.string(),nb:Lt.number(),nbDistinct:Lt.number()}),pl=Lt.object({nbFolders:Lt.number(),nbFiles:Lt.number()}),ml=Lt.object({uriFile:Lt.string(),uriFolder:Lt.string()}),gl=za.extend({}),hl=Pa.and(gl).and(Lt.object({allDay:Lt.null(),agenda:Lt.string(),useQrcode:Lt.null(),textColor:Lt.string(),bgColor:Lt.string(),report:Lt.string(),reportFile:Lt.array(Lt.never()),urlGestion:Lt.string().nullable().optional()})),fl=Lt.object({uri:Lt.string(),title:Lt.string(),type:Lt.string(),mainType:Lt.string()}),bl=Ea.extend({anonymousResponse:Lt.null(),multipleResponse:Lt.number(),publicResults:Lt.null(),pollProgression:Lt.object({colors:Lt.record(Lt.string()),maxRespondentsValue:Lt.number(),countRespondentsValue:Lt.number()}),pollResponseShowProgression:Lt.number(),dateEnd:Lt.string(),status:Lt.object({name:Lt.string(),value:Lt.number()})}),yl=Pa.and(bl).and(Lt.object({pollContent:Lt.null(),pollLinks:Lt.null(),pollForceClose:Lt.null(),pollResponseUserVisibility:Lt.null(),pollResponseAuthorVisibility:Lt.null(),pollResponseShowRespondent:Lt.null(),pollBanner:Lt.tuple([]),pollMessage:Lt.string()})),vl=Lt.object({idQuestion:Lt.number(),idResponse:Lt.number()}),wl=Lt.object({idQuestion:Lt.number()}),kl=Ea.extend({quizzDescription:Lt.string().nullable(),quizzClosingDate:Lt.string().nullable(),dateStart:Lt.string().nullable(),dateEnd:Lt.string().nullable()}),_l=Pa.and(kl).and(Lt.object({quizzInvitation:Lt.null(),quizzFormSpec:Lt.string(),quizzRandom:Lt.null(),quizzHideResponses:Lt.null(),quizzStatus:Lt.null(),quizzPublicationDate:Lt.string().nullable()})),Sl=Lt.object({count:Lt.number(),id:Lt.string()}),jl=Lt.union([Lt.literal("AND"),Lt.literal("OR")]),xl=Lt.object({facetType:Lt.string(),facetOptions:Lt.union([Lt.record(Lt.union([Lt.object({}).passthrough(),Lt.number(),Lt.string()])),Lt.array(Lt.never())]),facetMode:jl.optional(),field:Lt.string(),title:Lt.string(),description:Lt.string().optional(),category:Lt.string().optional()}),Cl=Lt.object({id:Lt.string(),mainType:Lt.string(),type:Lt.string().optional(),title:Lt.string(),cssclass:Lt.string().optional(),active:Lt.boolean().optional(),count:Lt.number().optional(),typesExcluded:Lt.array(Lt.string()),facets:xl.array()}),Tl=Lt.object({count:Lt.number(),value:Lt.string(),title:Lt.string()}),Al=Lt.object({name:Lt.string(),count:Lt.number(),values:Tl.array(),title:Lt.string()}),Ol=Lt.object({field:Lt.string(),value:Lt.union([Lt.string(),Lt.array(Lt.string())]),exclude:Lt.boolean().optional(),or:Lt.boolean().optional()}),Ll=Lt.object({field:Lt.string(),order:Lt.union([Lt.literal("desc"),Lt.literal("asc")])}),Rl=Lt.object({facetLimit:Lt.number(),skipEmptyFacets:Lt.boolean()}),Fl=Lt.object({home:Lt.object({mode:Lt.union([Lt.literal("result"),Lt.literal("category")]),facets:xl.array()}),categories:Cl.array(),viewcard:Lt.record(Lt.array(Lt.object({name:Lt.string(),title:Lt.string()}))),facetMode:Lt.boolean()}),El=Lt.object({name:Lt.string(),title:Lt.string(),icon:Lt.string(),_url:Lt.string()}),Pl=Lt.object({id:Lt.number().optional(),title:Lt.string(),picture:Lt.string(),uri:Lt.string(),type:Lt.string().optional(),icon:Lt.string().optional(),_cssColor:Lt.string().optional(),_url:Lt.string().optional(),idArticle:Lt.number().optional(),_user:Lt.object({title:Lt.string()}).optional(),_values:Lt.object({dateModified:Lt.string()}).optional()}),Il=Lt.object({keywords:Lt.string().optional(),category:Lt.string().optional(),facetCategories:Lt.boolean().optional(),filters:Ol.array().optional(),facets:xl.array().optional(),page:Lt.number().optional(),limit:Lt.number().optional(),sort:Ll.optional(),options:Rl.optional(),format:Ln.optional()}),Ml=e=>Lt.object({start:Lt.number(),count:Lt.number(),results:Lt.array(null!=e?e:In),facets:Al.array(),categories:Sl.array()}),Dl=Lt.object({keywords:Lt.string()}),Nl=Lt.union([El,Pl]),Zl=Lt.object({title:Lt.string(),id:Lt.string(),showAll:Lt.boolean().optional(),results:Nl.array()}),Ul=Lt.union([Lt.literal("link"),Lt.literal("invitation")]),ql=Lt.object({id:Lt.number(),title:Lt.string(),uri:Lt.string(),idUser:Lt.number(),_right:Mi}),Wl=Lt.object({audience:Lt.array(La),read:Lt.array(Lt.string()),write:Lt.array(Lt.string())}),Bl=Lt.object({id:Lt.number(),type:Lt.string(),uri:Lt.string(),title:Lt.string(),generalAccessRule:Ul,generalAccessHash:Lt.string().nullable(),idUser:Lt.number(),_audience:Lt.array(La),_right:Mi}),$l=Lt.object({targetId:Lt.number(),targetType:Lt.string(),type:Lt.string()}),Vl=Lt.object({targetId:Lt.number(),targetType:Lt.string(),type:Lt.string()}),zl=Ea.extend({supportStatus:Lt.union([Lt.number(),Lt.string()]).nullable(),supportType:Lt.union([Lt.number(),Lt.string()]).nullable(),supportOwner:Lt.array(wi)}),Gl=Pa.and(zl).and(Lt.object({})),Jl=Ea.extend({dates:Lt.array(Lt.string()),dateStart:Lt.string().nullable(),dateEnd:Lt.string()}),Kl=Pa.and(Jl).and(Lt.object({surveyObjectLink:Lt.array(Ra)})),Hl=Lt.union([Lt.literal("DYNAMIC"),Lt.literal("SLIDESHOW")]),Ql=e=>Ta.extend({tvChannelType:e,tvChannelBackgroundColor:Lt.string().nullable(),tvChannelNumImages:Lt.number(),tvChannelGroupTarget:ka.optional(),tvChannelConfig:Lt.object({backgroundType:Lt.union([Lt.literal("color"),Lt.literal("image")]).optional(),globalShowComment:Lt.boolean().optional(),scaleImg:Lt.boolean().optional(),key:Lt.string(),contents:Lt.array(Lt.object({uri:Lt.string(),dateEnd:Lt.string().optional(),showComments:Lt.boolean().optional(),order:Lt.number().optional()})).optional()})}),Yl=Ql(Lt.literal("DYNAMIC")).extend({tvChannelNumImages:Lt.literal(0)}),Xl=Ql(Lt.literal("SLIDESHOW")),ec=Ra.readonly(),tc=Ea.and(Yl).readonly(),nc=Ea.and(Xl).readonly(),ic=Ea.and(Yl).readonly().or(Xl),rc=tc.or(nc),ac=Za.and(Yl.partial().or(Xl.partial())).and(Lt.object({tvChannelType:Hl})).readonly(),sc=Lt.object({tvChannelGroupTarget:Lt.array(Lt.string()).optional(),tvChannelNumImages:Lt.never().optional()}),oc=Bs.extend({_extend:Lt.object({userImageSecureUrl:Lt.string(),descriptionSecure:Lt.string()})}).readonly(),lc=Ea.extend({_extend:Lt.object({imageSecureUrl:Lt.string().optional(),descriptionSecure:Lt.string(),comments:Lt.array(oc)}).optional()}).readonly(),cc=qi.extend({_extend:Lt.object({imageSecureUrl:Lt.string().optional()})}),uc=tc.and(Lt.object({_extend:Lt.object({imageSecureUrl:Lt.string().optional(),articles:Lt.array(lc).optional()})})),dc=e=>uc.safeParse(e).success,pc=nc.and(Lt.object({_extend:Lt.object({attachments:Lt.array(cc).optional()})})),mc=e=>pc.safeParse(e).success,gc=uc.or(pc),hc=Lt.object({interval:Lt.number(),channel:gc}),fc=Lt.object({cache_suffix:Lt.string(),toolbar:Lt.string(),language:Lt.string(),content_css:Lt.string(),quickbars_selection_toolbar:Lt.string()}),bc=fc.extend({plugins:Lt.array(Lt.string()),text_patterns:Lt.array(Lt.object({start:Lt.string(),end:Lt.string().optional(),format:Lt.string().optional(),cmd:Lt.string().optional()})),height:Lt.number(),menubar:Lt.boolean(),branding:Lt.boolean(),skin:Lt.string(),convert_urls:Lt.boolean(),invalid_elements:Lt.string(),extended_valid_elements:Lt.string(),custom_elements:Lt.string(),inline_boundaries_selector:Lt.string(),toolbar_mode:Lt.union([Lt.literal("floating"),Lt.literal("sliding"),Lt.literal("scrolling"),Lt.literal("wrap")]),promotion:Lt.boolean(),font_size_formats:Lt.string(),contextmenu:Lt.union([Lt.string(),Lt.literal(!1)]),paste_data_images:Lt.boolean(),browser_spellcheck:Lt.boolean(),quickbars_insert_toolbar:Lt.boolean()}),yc=Lt.object({commentsToolbar:Lt.string()}),vc="accept",wc="deny",kc=Lt.union([Lt.literal(vc),Lt.literal(wc)]),_c=Lt.object({color:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),label:Lt.string()}),Sc=Pn.extend({title:Lt.string(),mimetype:Lt.string(),_extend:Lt.object({generalAccessRule:Lt.string(),generalAccessHash:Lt.union([Lt.string(),Lt.undefined()]),dateModified:Lt.string(),dateCreation:Lt.string(),fileInfo:_c,parentId:Lt.number(),parentType:Lt.string(),parentFiles:Lt.array(Lt.number()),_url:Lt.string()}),_audience:Lt.array(In),_right:Mi,_user:wi}),jc=In,xc=Lt.object({color:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),label:Lt.string()}),Cc=Lt.object({page:Lt.number(),cnt:Lt.number(),limit:Lt.number(),data:Lt.array(Sc)}),Tc=Lt.object({query:Lt.string(),filters:Cn,orders:xn,page:Lt.number(),limit:Lt.number()}),Ac=Lt.object({}),Oc=Lt.object({label:Lt.string(),description:Lt.string(),name:Gi,img:Lt.string(),available:Lt.boolean(),panel:Lt.object({useWrapper:Lt.boolean(),useEditor:Lt.boolean(),useWidgets:Lt.boolean()})}),Lc=e=>Oc.safeParse(e).success,Rc=e=>void 0!==e&&"type"in e,Fc=Ra.extend({articleWidgets:Xr.array(),articleWidgetDisplayMode:nr.nullable().or(Lt.undefined())}),Ec=Lt.object({uniqid:Lt.string(),title:Lt.string(),locked:Lt.boolean(),visible:Lt.boolean(),widgets:Xr.array(),position:tr.optional()}),Pc=Lt.enum(["edit","view","preview"]),Ic=Lt.object({width:Lt.number().or(Lt.undefined()).optional(),inplace:Lt.boolean(),isComponentVisible:Lt.boolean().optional(),mode:Pc,onClick:Lt.function().returns(Lt.void()).optional(),onChange:Lt.function().args(ea,Lt.boolean()).returns(Lt.void()),onStateChange:Lt.function().args(ia).returns(Lt.void())}),Mc=Lt.object({text:Lt.string(),value:Lt.boolean().optional(),links:vn.array().optional(),uri:Lt.string().optional(),mimetype:Lt.string().optional(),id:Lt.number().optional(),user:wi.optional()}),Dc=Lt.object({arr:Mc.array().optional(),edit:Lt.boolean().optional()}),Nc=Lt.object({name:Lt.literal("widget-check-list"),uniqid:Lt.string(),content:Dc,title:Lt.string()}),Zc=Lt.object({title:Lt.string().optional(),view:Lt.any().optional()}),Uc=Lt.object({uniqid:Lt.string(),object:In}),qc=Lt.object({token:Lt.string().or(Lt.undefined()).optional(),ids:Lt.record(Lt.string(),Xr),layers:Lt.record(Lt.string(),Ec),states:Lt.record(Lt.string(),ia),modal:Zc.or(Lt.undefined()),editableMap:Lt.record(Lt.string(),Lt.object({index:Lt.number(),uniqid:Lt.string()})),currentEditableIndex:Lt.number(),currentEditableWidgetId:Lt.string().or(Lt.undefined()),widgetObject:Lt.record(Lt.string(),In.partial()),widgetObjectRights:Lt.record(Lt.string(),Mi),widgetAuthor:Lt.record(Lt.string(),wi.partial()),flushedWidgets:Lt.string().array(),rtObjectStack:Uc.array()}),Wc=Lt.object({widgets:qc}),Bc=Ea.extend({articleWidgets:Xr.array(),articleWidgetDisplayMode:nr.nullable().or(Lt.undefined()),articleWidgetsCover:Lt.number().or(Lt.undefined()),_audience:Fs.array()}),$c=e=>Xr.safeParse(e).success,Vc=e=>ir(e,wr),zc=e=>ir(e,ur),Gc=e=>ir(e,pr),Jc=e=>ir(e,yr),Kc=e=>ir(e,Sr),Hc=e=>ir(e,fr),Qc=e=>ir(e,gr),Yc=e=>ir(e,Cr),Xc=e=>ir(e,qr),eu=e=>ir(e,Br);class tu extends n{list(e){var t,n;return this.network.post(Object.assign(Object.assign({o:"objectList",f:"jamespotArticleQueryList"},e),{format:yn(null!==(t=e.format)&&void 0!==t?t:"raw-list",null!==(n=e.formatExtend)&&void 0!==n?n:[])}))}get(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"article",f:"get"},e),{format:yn(null!==(n=e.format)&&void 0!==n?n:"raw-view",null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}create(e,t){return this.network.maybePostToken(Object.assign({o:"article",f:"create",format:null!=t?t:"raw-list"},e))}update(e,t){var n;return this.network.post(Object.assign(Object.assign({format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-list"},e),{o:"article",f:"update"}))}delete(e){return this.network.postCSRF({o:"article",f:"delete",idArticle:e})}count(e){return this.network.post({o:"article",f:"count",type:e})}getAttachments(e,t,n){return this.network.post({o:"article",f:"getAttachment",idArticle:e,type:t,format:n})}permalink(e){return this.network.post({o:"article",f:"permalink",permalinkId:e})}saveAsDraft(e,t,n){return this.network.post({o:"article",f:"saveAsDraft",form:e,contentType:t,idDraft:n})}getComments(e,t){var n,i;return this.network.post(Object.assign(Object.assign({o:"article",f:"getComments"},e),{attachments:null!==(n=e.attachment)&&void 0!==n&&n,limits:null!==(i=e.limits)&&void 0!==i?i:{start:0,max:1e4},format:null!=t?t:"raw-little"}))}addComment(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"article",f:"addComment"},e),{alertAuthor:Number(e.alertAuthor),sendAlert:Number(e.sendAlert),type:null!==(n=e.type)&&void 0!==n?n:"comment",format:null!=t?t:"raw-little"}))}updateComment(e,t){return this.network.post(Object.assign(Object.assign({o:"article",f:"updateComment"},e),{format:null!=t?t:"raw-little"}))}deleteComment(e){return this.network.postCSRF({o:"comment",f:"delete",idComment:e})}getRead(e){return this.network.post({o:"article",f:"getRead",uri:e})}}var nu=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};class iu extends n{configuration(){return this.network.post({o:"assetReservation",f:"configuration"})}createReservation(e){return this.network.postCSRF(Object.assign({o:"assetReservation",f:"createReservation",format:"raw-list"},e))}getReservations(e){var{format:t="raw-list"}=e,n=nu(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"getReservations",format:t},n))}cancelReservation(e){return this.network.post({o:"assetReservation",f:"cancelReservation",format:"raw-list",idArticle:e})}bookByDate(e){var{format:t="raw-list"}=e,n=nu(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"BookByDate",format:t},n))}getList(e){var{format:t="raw-list"}=e,n=nu(e,["format"]);return this.network.post(Object.assign({o:"objectList",f:"assetReservationList",format:t},n))}}class ru extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"audience",q:e}).then((e=>{if(Array.isArray(e.result))return e.result;throw"Bad response from backend"}))}}class au extends n{publicWebinarFullname(e){return this.network.post(Object.assign({o:"bigBlueButton",f:"publicWebinarFullname"},e))}getPublicWebinarData(e){return this.network.post(Object.assign({o:"bigBlueButton",f:"getPublicWebinarData"},e))}}class su extends n{getFormattedList(e,t){return this.network.post(Object.assign({o:"objectList",f:"bookmarksList",format:t},e))}addFormattedLink(e,t,n){const i=null!=n?n:"list";return this.network.post({o:"custom",f:"actionAdd",type:"bookmarkLink",targetId:e,targetType:t,format:i})}addBookmark(e,t){return this.network.postCSRF(Object.assign({o:"bookmarks",f:"add"},e))}delete(e){return this.network.postCSRF({o:"bookmarks",f:"delete",bookmarkID:e})}rename(e,t,n){return this.network.postCSRF({o:"bookmarks",f:"rename",bookmarkID:e,bookmarkLabel:t,bookmarkUrl:n})}move(e,t,n){return this.network.postCSRF({o:"bookmarks",f:"move",bookmarkID:e,bookmarkReference:t,bookmarkPosition:n})}}class ou extends n{getInfos(e,t){return this.network.post({o:"BusinessNetworking",f:"MarkerInfo",id:e,format:null!=t?t:"raw-little"})}}class lu extends n{get(e,t){return this.network.post({o:"community",f:"getCommunity",idCommunity:e,format:t||"raw-little"})}sendRequest(e,t){return this.network.post({o:"community",f:"sendRequest",message:e,idUserTo:t})}autocomplete(e){return this.network.post({o:"autocomplete",f:"community",q:e}).then((e=>e.result))}}class cu extends n{get(e,t){return this.network.post({o:"widget",f:"datasourceGet",uri:e,format:t})}getModel(e){return this.network.post({o:"widget",f:"datasourceGetModel",uri:e})}cancel(e){return this.network.post({o:"widget",f:"datasourceCancel",uri:e})}getObject(e){return this.network.post({o:"widget",f:"datasourceGetObject",uri:e})}updateModel(e,t){return this.network.post({o:"widget",f:"datasourceUpdateModel",uri:e,model:t})}getExcelDatasource(e){return this.network.post({o:"widget",f:"datasourceGetExcelDatasource",uri:e})}getExcelDatasourceHeaders(e,t){return this.network.post({o:"widget",f:"datasourceGetExcelDatasourceHeaders",uri:e,spreadsheet:t})}setExcelDatasource(e,t){return this.network.post({o:"widget",f:"datasourceSetExcelDatasource",uri:e,spreadsheet:t})}create({title:e,datasourceType:t,datasourceIdentifier:n,token:i}){return this.network.postCSRF({o:"widget",f:"datasourceCreate",title:e,datasourceType:t,datasourceIdentifier:n,token:i})}}class uu extends n{create(e,t,n,i,r){return this.network.post({o:"article",f:"create",type:e,token:t,title:n,dateStart:i,publishTo:r})}getList(e="",t=[],n=[],i=1,r="raw-list"){return this.network.post({o:"objectList",f:"diapazoneQueryList",query:e,filters:t,orders:n,page:i,format:r})}}var du=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class pu extends n{upload(e){const t=new FormData;return t.append("attrName",e.attrName),e.file?t.append(e.attrName,e.file):e.url&&t.append("url",e.url),t.append("token",e.token),this.network.postFile(t)}uploadMany(e){return du(this,void 0,void 0,(function*(){return Promise.all(e.map((e=>this.upload(e))))}))}get(e,t,n){return du(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"get",idFile:e,format:t},null==n?void 0:n.signal)}))}getParent(e,t,n){return du(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getParent",idFile:e,format:t},null==n?void 0:n.signal)}))}getWithHash(e,t,n,i){return du(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getWithHash",idFile:e,hash:t,format:n},null==i?void 0:i.signal)}))}duplicate(e,t,n){return du(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"duplicateFile",idFile:e,title:t,publishTo:n})}))}updateFile(e,t){return du(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"updateFile",idFile:e,title:t})}))}update(e,t,n,i){return du(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"update",idFile:e,type:t,cropDatas:Object.assign(Object.assign({},n),{rotateBeforeCrop:!0}),killSize:n.killSize,format:"raw-little"},null==i?void 0:i.signal)}))}deleteFile(e,t,n,i){return du(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"delete",idFile:e,attrName:t,token:n},i)}))}deleteImage(e,t,n){return du(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"deleteImage",id:e,type:t},null==n?void 0:n.signal)}))}getDownload(e,t){return this.network.post({o:"file",f:"getDownload",id:e},null==t?void 0:t.signal)}generatePreview(e,t){return this.network.post({o:"file",f:"generatePreview",id:e},null==t?void 0:t.signal)}copy(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"file",f:"copy"},e),{format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"}),null==t?void 0:t.signal)}}class mu extends n{getCategoriesList(e,t){return this.network.post({o:"objectList",f:"faqQueryList",format:null!=e?e:"raw-list",orders:null!=t?t:[{name:"dateCreation",sort:"ASC"}]})}createCategory(e,t){return this.jApi.article.create(Object.assign(Object.assign({},e),{type:"faq"}),null!=t?t:"raw-view")}updateCategory(e,t){return this.jApi.article.update(Object.assign(Object.assign({},e),{type:"faq",format:null!=t?t:"raw-view"}))}getCategory(e,t){return this.jApi.article.get({idArticle:e,format:null!=t?t:"raw-view"})}deleteCategory(e){return this.jApi.article.delete(e)}checkItem(e,t,n){return this.network.post({o:"faq",f:"checkItem",query:e,page:null!=t?t:1,format:null!=n?n:"raw-list"})}getTaxonomy(){return this.network.post({o:"faq",f:"getFaqTaxonomy"})}getHookProperties(e){return this.network.post({o:"faq",f:"getHookProperties",properties:null!=e?e:["_web"]})}getAccess(){return this.network.post({o:"faq",f:"access"})}createTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-theme"},e),{format:null!=t?t:"raw-view"}))}deleteTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"delete-theme"},e),{format:null!=t?t:"raw-view"}))}updateTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"set-theme"},e),{format:null!=t?t:"raw-view"}))}getEntry(e,t){return this.network.post({o:"faq",f:"get-entry",uri:e,format:null!=t?t:"raw-view"})}deleteEntry(e){return this.jApi.article.delete(e)}createEntry(e,t){return this.jApi.article.create(Object.assign(Object.assign({},e),{idSpot:["content"],type:"faqItem"}),null!=t?t:"raw-view")}addEntry(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-entry"},e),{format:null!=t?t:"raw-view"}))}updateEntry(e,t){return this.jApi.article.update(Object.assign(Object.assign({},e),{type:"faqItem",format:null!=t?t:"raw-view"}))}moveEntry(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-entry"},e),{format:null!=t?t:"raw-view"}))}moveTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-theme"},e),{format:null!=t?t:"raw-view"}))}}class gu extends n{getBanks(){return this.network.post({o:"fileBank",f:"getBanks",format:"raw-list"}).then((e=>e.result))}getFolders(e){return this.network.post({o:"fileBank",f:"getFolders",parentURI:e,format:"raw-list"})}getDocuments(e){return this.network.post({o:"fileBank",f:"getDocuments",parentURI:e,format:"raw-view"})}getPath(e,t){var n,i;return this.network.post({o:"fileBank",f:"getPath",uri:e.uri,mode:null!==(n=e.mode)&&void 0!==n?n:"browse",format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little"},null==t?void 0:t.signal)}searchContent(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"fileBank",f:"searchContent"},e),{format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"}),null==t?void 0:t.signal)}getParents(e,t){var n;return this.network.post({o:"fileBank",f:"getParents",id:e.id,format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"},null==t?void 0:t.signal)}}class hu extends n{countAction(e,t){return this.network.post({o:"activityLog",f:"log",count:!0,verb:e,uri:t})}useWebVersion(){return this.network.post({o:"global",f:"useWebVersion"})}}class fu extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"spot",q:e,idToUri:!1}).then((e=>e.result))}create(e,t){return this.network.post(Object.assign(Object.assign({o:"spot",f:"create"},e),{format:t}))}update(e,t){const{spotBanner:n}=e,i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["spotBanner"]);return this.network.postCSRF(Object.assign(Object.assign({o:"spot",f:"update"},i),{format:t}))}getSpot(e,t){return this.network.post({o:"spot",f:"getSpot",idSpot:e,format:t})}getProperties(e){return this.network.post({o:"spot",f:"getProperties",idSpot:e})}getApplications(){return this.network.post({o:"spot",f:"get-available-widget"})}getCategories(){return this.network.post({o:"spot",f:"get-categories"})}getObjectListJamespotSpotMembers(e,t,n,i=1){return this.network.post({o:"objectListJamespot",f:"SpotMembers",idSpot:e,limit:n,page:i,format:"raw-little",query:t})}list(e){return this.network.post(Object.assign({o:"objectList",f:"jamespotSpotQueryList"},e))}resetNotifications(e){return this.network.post(Object.assign({o:"spot",f:"resetNotifications"},e))}getUserLevelAndRight(e){return this.network.post({o:"spot",f:"getUserLevelAndRight",idSpot:e})}groupRequest(e){return this.network.postCSRF({o:"spot",f:"request",idSpot:e})}groupAddToFavorite(e){return this.network.postCSRF({o:"spot",f:"addToFavorite",idSpot:e})}objectListSpotArticles(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"objectList",f:"spotArticles"},e),{format:yn(null!==(n=e.format)&&void 0!==n?n:"raw-little",null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}}class bu extends n{list(e,t,n,i=[{name:"dateCreation",sort:"DESC"}]){return this.jApi.article.list({type:"aseiClearanceTicket",format:"raw-view",limit:t,page:e,orders:i,filters:n})}requestStatus(e,t,n){return this.network.post({o:"asei",f:"setStatus",uri:e,requestedStatus:t,audience:n})}getDedicatedGroups(){return this.network.post({o:"asei",f:"getDedicatedGroups"})}getConfiguration(){return this.network.post({o:"asei",f:"configuration"})}}class yu extends n{tenants(e,t){return this.network.post(Object.assign({o:"drive",f:"getTenants"},null!=e?e:{}),null==t?void 0:t.signal)}groups(e,t){return this.network.post(Object.assign({o:"drive",f:"getGroups"},e),null==t?void 0:t.signal)}sites(e){return this.network.post({o:"drive",f:"getSites"},null==e?void 0:e.signal)}listAccount(e,t){return this.network.post({o:"drive",f:"listAccount",service:e},null==t?void 0:t.signal)}isAccountLogged(e,t,n){return this.network.post({o:"drive",f:"isAccountLogged",service:e,id:t},null==n?void 0:n.signal)}checkAccountToken(e,t){return this.network.post({o:"drive",f:"checkAccountToken",service:e},null==t?void 0:t.signal)}msDocuments(e,t){return this.network.post(Object.assign({o:"drive",f:"getDocuments",service:"onedrive"},e),null==t?void 0:t.signal)}dropboxDocuments(e,t){return this.network.post(Object.assign({o:"drive",f:"getDocuments",service:"dropbox"},e),null==t?void 0:t.signal)}getDocument(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"drive",f:"getDocument"},e),{format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"}),null==t?void 0:t.signal)}logout(e,t){return this.network.post(Object.assign({o:"drive",f:"logout"},e),null==t?void 0:t.signal)}getAccount(e,t){return this.network.post(Object.assign({o:"drive",f:"get-user-data"},e),null==t?void 0:t.signal)}setDefaultAccount(e,t){return this.network.post(Object.assign({o:"drive",f:"set-has-default"},e),null==t?void 0:t.signal)}}class vu extends n{GetUnclassifiedFiles(e){var t;return this.network.post({o:"objectListMediaLibrary",f:"GetUnclassifiedFiles",format:e.format,page:null!==(t=e.page)&&void 0!==t?t:1,limit:e.limit,nolimit:e.nolimit})}getAccess(){return this.network.post({o:"mediaLibrary",f:"access"})}getFoldersStatsList(e=[],t=[],n=1){return this.network.post({o:"objectListMediaLibrary",f:"FoldersStatsList",filters:e,orders:t,page:n})}getFilesStatsList(e=[],t=[],n=1){return this.network.post({o:"objectListMediaLibrary",f:"FilesStatsList",filters:e,orders:t,page:n})}getStats(){return this.network.post({o:"mediaLibrary",f:"moderatorStats"})}readFolder(e){return this.network.post({o:"mediaLibrary",f:"readFolder",uri:e})}readFile(e){return this.network.post({o:"mediaLibrary",f:"readFile",uri:e})}moveFile(e){return this.network.post({format:"raw-list",uri:e.uriFile,mediaLibraryFolderOrientedLinks:e.uriFolder,o:"article",f:"update"})}}class wu extends n{getLogs({dateEnd:e,idLogMax:t}){return this.network.post({o:"jLand",f:"adminLogs",dateEnd:e,idLogMax:t})}getStats({map:e,dateStart:t,dateEnd:n}){return this.network.post({o:"jLand",f:"adminStats",map:e,dateStart:t,dateEnd:n})}getAllMapsAsAdmin(e="raw-list,licenses"){return this.network.post({o:"objectListJLand",f:"jLandList",format:e})}createMap(e,t="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},e),{o:"article",f:"create",format:t,type:"jlandmap"}))}}class ku extends n{sendMessage(e,t){return this.network.post({o:"messenger",f:"newMessage",idDiscussion:t,msg:{description:e}})}getOrCreateDiscussion(e,t){const n=e<t?`${e}.${t}`:`${t}.${e}`;return this.network.post({o:"messenger",f:"getDiscussion",idDiscussion:n,type:"messengerUser",idUserTo:t})}}class _u extends n{getConfig(){return this.network.post({o:"search",f:"getConfig"})}proposition({query:e,format:t},n){return this.network.post({o:"search",f:"proposition",query:e,format:t||"little"},n)}searchQuery(e,t){const{keywords:n,category:i,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:u}=e;return this.network.post({o:"search",f:"query",keywords:n,category:i,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:yn(u,null==t?void 0:t.formatExtension)},null==t?void 0:t.signal)}getLastQueries(){return this.network.post({o:"search",f:"getLastQueries"})}getAdminConfig(){return this.network.post({o:"search",f:"getAdminConfig"})}setAdminConfig(e){return this.network.post({o:"search",f:"setAdminConfig",config:e})}}var Su=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};class ju extends n{list(){return this.network.post({o:"taxonomy",f:"list",format:"raw-little"}).then((e=>{if(Array.isArray(e.result))return e.result;throw"Bad response from backend"}))}create(e){var{format:t="raw-little"}=e,n=Su(e,["format"]);return this.network.post(Object.assign({o:"taxonomy",f:"create",format:t},n))}autocomplete(e,t){return this.network.post({o:"autocomplete",f:"taxonomy",q:t,idTaxonomy:e,idToUri:!1})}autocompleteList(e){var{format:t="autocomplete"}=e,n=Su(e,["format"]);return this.network.post(Object.assign({o:"objectListTaxonomy",f:"concept",format:t},n))}autocompleteHierarchy(e){return this.network.post(Object.assign({o:"objectListTaxonomyHierarchy",f:"concept"},e))}}class xu extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"user",q:e,idToUri:!1}).then((e=>e.result))}get(e,t="little",n){return this.network.post({o:"user",f:"get",uri:e,format:t},n)}updateImage(e,t="raw-little"){return this.network.postCSRF({o:"user",f:"updateImage",idFile:e,format:t})}updateBanner(e,t="raw-little"){return this.network.postCSRF({o:"user",f:"updateBanner",idFile:e,format:t})}updateMail(e,t){return this.network.postCSRF({o:"user",f:"editMail",mail:e,password:t})}userUpdateProfile(e){return this.network.postCSRF(Object.assign({o:"user",f:"updateProfile"},e))}configuration(){return this.network.post({o:"userDirectory",f:"configuration"})}fieldsConfiguration(){return this.network.post({o:"user",f:"fieldsConfiguration"})}userList(e,t){return this.network.post(Object.assign(Object.assign({o:"objectList",f:"JamespotUserList"},e),{format:yn(e.format,null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}userQueryList(e,t){return this.network.post(Object.assign(Object.assign({o:"objectList",f:"JamespotUserQueryList"},e),{format:yn(e.format,null==t?void 0:t.formatExtension)}))}userMap(e){return this.network.post(Object.assign({o:"objectListJamespot",f:"userMap"},e))}userBusinessContactQueryList(e){return this.network.post(Object.assign({o:"businessContact",f:"queryList"},e))}userCreateBusinessContact(e,t){var n;const i=Object.assign(Object.assign({},e),{pseudo:e.title,firstName:e.firstname,lastName:e.lastname,champ1:e.field1,champ2:e.field2,champ3:e.field3,champ4:e.field4,champ5:e.field5}),r=Object.assign(Object.assign({},i),{type:"businessContactCard",publishTo:"networkPublic/1"});return this.jApi.article.create(r,null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little")}userUpdateBusinessContact(e,t){var n;const i=Object.assign(Object.assign({},e),{pseudo:e.title,firstName:e.firstname,lastName:e.lastname,champ1:e.field1,champ2:e.field2,champ3:e.field3,champ4:e.field4,champ5:e.field5}),r=Object.assign(Object.assign({},i),{uri:e.uri,publishTo:"networkPublic/1"});return this.jApi.article.update(r,{format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-list"})}userDeleteBusinessContact(e){return this.jApi.article.delete(e)}userAddContact(e){return this.network.post({o:"user",f:"addContact",idUser:e})}userRemoveContact(e){return this.network.post({o:"user",f:"removeContact",idUser:e})}signIn(e,t,n){return this.network.post({o:"user",f:"signIn",mail:e,password:t,format:null!=n?n:"raw-view"})}getFields(e,t){return this.network.post({o:"user",f:"getFields",idUser:e,fieldsType:t})}}class Cu extends n{getFiles(e){return this.network.post(Object.assign({o:"onlyOffice",f:"getFiles"},e))}getFile(e,t){return this.network.post({o:"onlyOffice",f:"getFile",idFile:e,hash:t})}getTemplates(e){return this.network.post({o:"onlyOffice",f:"getTemplates"},e)}deleteFile(e,t){return this.network.postCSRF({o:"onlyOffice",f:"deleteFile",idFile:e,withParent:t})}createFile(e,t,n){return this.network.postCSRF({o:"onlyOffice",f:"createFile",title:e,type:t,publishTo:n})}updateFile(e,t){return this.network.postCSRF({o:"onlyOffice",f:"updateFile",idFile:e,title:t})}createVersion(e){return this.network.post({o:"onlyOffice",f:"createVersion",idFile:e})}setAccessRequest(e,t,n,i){return this.network.postCSRF({o:"onlyOffice",f:"setAccessRequest",uri:e,idUser:t,requestAccessValue:n,requestResponseMessage:i})}getAccessRequest(e,t){return this.network.post({o:"onlyOffice",f:"getAccessRequest",format:"raw-little",uri:e,idUser:t})}askAccess(e,t,n){return this.network.postCSRF({o:"onlyOffice",f:"askAccess",uri:e,askAccess:t,askMessage:n})}}class Tu extends n{createChannel(e,t="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},e),{o:"article",f:"create",format:t,type:"tvDisplayChannel"}))}getChannel(e){return this.network.post(Object.assign(Object.assign({},e),{o:"tvDisplay",f:"getChannel"}))}getConfigureChannel(e){return this.network.post(Object.assign(Object.assign({},e),{o:"tvDisplay",f:"getConfigureChannel"}))}}class Au extends n{contentObjectLinks(e){return this.network.post({o:"shared",f:"contentObjectLinks",format:"raw-little",uri:e})}contentSetObjectAccessRule(e,t,n){return this.network.postCSRF({o:"shared",f:"contentSetObjectAccessRule",format:"raw-little",uri:e,rule:t,hash:n})}}var Ou=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class Lu extends n{SaveAnimationConfiguration(e){return Ou(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"saveConfiguration",animation:e})}))}DeleteAnimation(){return Ou(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"deleteAnimation"})}))}GetCurrentAnimation(e){return Ou(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfiguration"},null==e?void 0:e.signal)}))}GetCurrentAnimationApp(){return Ou(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfigurationApp"})}))}ToggleAnimationActive(){return Ou(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"toggleAnimationActive"})}))}GetAnimationActive(e){return Ou(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getAnimationActive"},null==e?void 0:e.signal)}))}GetAnimationStats(e){return Ou(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStats",name:e})}))}GetAnimationStatsCurrent(e){return Ou(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStatsCurrent",uri:e})}))}}class Ru extends n{GetStatus(){return e=this,t=void 0,i=function*(){return this.network.post({o:"accessibility",f:"getStatus"})},new((n=void 0)||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}));var e,t,n,i}}class Fu extends n{getObject(e){return this.network.post({o:"object",f:"getObject",uri:e})}setAccess(e,t,n,i){return this.network.post({o:"object",f:"setAccess",uri:e,access:t,message:n,generalAccessRule:i})}getAccess(e){return this.network.post({o:"object",f:"getAccess",uri:e})}getAccessHash(e){return this.network.post({o:"object",f:"getAccessHash",uri:e})}}class Eu extends n{getFileBanks(e){return this.network.post({o:"file-sync",f:"getFileBanks"},e)}saveFileBanks(e){return this.network.post({o:"file-sync",f:"saveFileBanks",fileBanks:e})}getUserQuota(e){return this.network.post({o:"file-sync",f:"getUserQuota"},e)}getAdminSpots(e,t){return this.network.post(Object.assign({o:"objectList",f:"fileSyncAdminSpots"},e),t)}}class Pu extends n{getUsers(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"getUsers"},e),{format:null!=t?t:"raw-list"}))}add(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"add"},e),{format:null!=t?t:"raw-little"}))}remove(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"remove"},e),{format:null!=t?t:"raw-little"}))}}class Iu extends n{textEnhancement({text:e,capacity:t}){return this.network.post({o:"jia",f:"textEnhancement",text:e,capacity:t})}}class Mu extends n{responseUserList(e,t,n){return this.network.post({o:"widget",f:"responseUserList",uri:e,uniqid:t,page:n})}removeWidget({id:e,type:t,uniqid:n}){return this.network.post({o:"widget",f:"removeWidget",id:e,type:t,uniqid:n})}checkListRespond({id:e,type:t,idUser:n,uniqid:i,index:r}){return this.network.post({o:"widget",f:"checkListRespond",id:e,type:t,uniqid:i,idUser:n,index:r})}presenceRespond({id:e,type:t,value:n,uniqid:i},r){return this.network.post({o:"widget",f:"presenceRespond",id:e,type:t,value:n,uniqid:i},r)}presenceCancel({id:e,type:t,uniqid:n},i){return this.network.post({o:"widget",f:"presenceCancel",id:e,type:t,uniqid:n},i)}presenceGetResponse({id:e,type:t,uniqid:n},i){return this.network.post({o:"widget",f:"presenceGetResponse",id:e,type:t,uniqid:n},i)}updateWidget({id:e,uniqid:t,content:n,title:i,type:r,v2:a=!1}){return this.network.post({o:"widget",f:"updateWidget",id:e,uniqid:t,content:n,title:i,type:r,v2:a})}}class Du extends n{getThumbnailUrl(e){return this.network.post({o:"magicPad",f:"getThumbnailUrl",uri:e})}}class Nu extends n{selectResponse(e,t){return this.network.post(Object.assign({o:"socialQuestion",f:"selectResponse"},e),null==t?void 0:t.signal)}unselectResponse(e,t){return this.network.post(Object.assign({o:"socialQuestion",f:"unselectResponse"},e),null==t?void 0:t.signal)}}class Zu{constructor(e){this.version="1.0",this.network=e,this.admin={license:new r(this),store:new a(this),utils:new s(this)},this.accessibility=new Ru(this),this.application=new o(this),this.article=new tu(this),this.asei=new bu(this),this.assetReservation=new iu(this),this.audience=new ru(this),this.bbb=new au(this),this.bookmark=new su(this),this.businessNetworking=new ou(this),this.community=new lu(this),this.datasource=new cu(this),this.diapazone=new uu(this),this.drive=new yu(this),this.faq=new mu(this),this.file=new pu(this),this.filebank=new gu(this),this.fileSync=new Eu(this),this.global=new hu(this),this.group=new fu(this),this.jia=new Iu(this),this.jland=new wu(this),this.magicPad=new Du(this),this.mediaLibrary=new vu(this),this.messenger=new ku(this),this.object=new Fu(this),this.questionAnswer=new Nu(this),this.search=new _u(this),this.share=new Au(this),this.socialAction=new Pu(this),this.taxonomy=new ju(this),this.tvDisplay=new Tu(this),this.user=new xu(this),this.wedoc=new Cu(this),this.widget=new Mu(this),this.animations=new Lu(this)}}class Uu{getBackendUrl(){return e=this,t=void 0,i=function*(){const e=window.location;return`${e.protocol}//${e.host}`},new((n=void 0)||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}));var e,t,n,i}fetch(e,t){return window.fetch(e,t)}}const qu=new pn(new Uu),Wu=new Zu(qu);window.JamespotUserApi=Wu;const Bu=Wu,$u=Zu;module.exports=t})();
1
+ (()=>{"use strict";var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ACCESS_REQUEST_ACCEPT:()=>vc,ACCESS_REQUEST_DENY:()=>wc,AdminLicenseApi:()=>r,AdminStoreApi:()=>a,AdminUtilsApi:()=>s,BookmarkType:()=>Xa,DateFormatSchema:()=>Tr,Format:()=>An,GroupModerateStatus:()=>ca,JApplicationApi:()=>o,JArticleApi:()=>tu,JAssetReservation:()=>iu,JAudienceApi:()=>ru,JBaseApi:()=>n,JBbbApi:()=>au,JBookmarkApi:()=>su,JBusinessNetworkingApi:()=>ou,JCommunityApi:()=>lu,JDatasourceApi:()=>cu,JDiapazoneApi:()=>uu,JFaqApi:()=>mu,JFileApi:()=>pu,JFilebankApi:()=>gu,JGlobalApi:()=>hu,JGroupApi:()=>fu,JIAApi:()=>Iu,JLandApi:()=>wu,JLandMapCreationSchema:()=>el,JMessengerApi:()=>ku,JObjectApi:()=>Fu,JSearchApi:()=>_u,JShareApi:()=>Au,JSocialActionApi:()=>Pu,JTaxonomyApi:()=>ju,JUserApi:()=>xu,JWedocApi:()=>Cu,JWidgetApi:()=>Mu,JamespotUserApi:()=>Uu,JamespotUserApiInstance:()=>Bu,Network:()=>pn,NumberFormatSchema:()=>Ar,StudioApplicationStatus:()=>i,TVDisplayApi:()=>Tu,UserLevel:()=>vi,WidgetsName:()=>zi,WindowBrowser:()=>qu,accessRequestStatusValuesSchema:()=>kc,actionVerbSchema:()=>Us,addCommentParamsSchema:()=>Wa,addFaqEntrySchema:()=>Oo,addRemoveActionParamsSchema:()=>Vl,adminAppSchema:()=>ms,adminAppTabSchema:()=>ps,adminAppsSchema:()=>gs,adminLicenseStatsSchema:()=>is,adminLicenseUserSchema:()=>cs,adminLicensesAssignedSchema:()=>ss,adminLicensesNotAssignedSchema:()=>as,animationConfigurationTypeSchema:()=>fs,animationStatsRowSchema:()=>bs,animationStatsSchema:()=>ys,animationVariantSchema:()=>hs,api:()=>Vu,articleCreationSchema:()=>Za,articleDisplayModeSchema:()=>nr,articleGetConfigSchema:()=>Na,articleListConfigSchema:()=>Da,aseiGroupsSchema:()=>_s,aseiInstitutionSchema:()=>ks,aseiRightsSchema:()=>Ss,aseiTicketSchema:()=>ws,aseiTicketStatusSchema:()=>vs,assetReservationConfigurationSchema:()=>js,audienceAutocompleteSchema:()=>Fs,audienceSchema:()=>La,baseArticleSchema:()=>Ua,baseAutocompleteSchema:()=>As,baseEntitySchema:()=>zs,bookableAssetListSchema:()=>xs,bookableAssetViewSchema:()=>Cs,bookmarkCustomSchema:()=>ns,bookmarkLinkSchema:()=>es,bookmarkTypesSchema:()=>ts,businessContactSchema:()=>Ei,categorySchema:()=>wa,checkProperties:()=>un,combineFormat:()=>yn,combinedWidgetContentSchema:()=>ea,combinedWidgetTypeSchema:()=>Yr,communitySchema:()=>Es,createFaqCategorySchema:()=>wo,createFaqEntrySchema:()=>Ao,createFaqThemeSchema:()=>xo,createGroupSchema:()=>ra,cssBackgroundPositionSchema:()=>Hi,cssBackgroundSizeSchema:()=>Qi,cssTextAlignTypeSchema:()=>Ki,deepEqual:()=>fn,default:()=>$u,deleteFaqThemeSchema:()=>Co,documentEntitySchema:()=>Hs,driveAccountSchema:()=>eo,driveGetAccountParamsSchema:()=>oo,driveGetAccountSchema:()=>lo,driveGetDocumentParamsSchema:()=>ao,driveGetGroupsParamsSchema:()=>go,driveGetTenantsParamsSchema:()=>uo,driveItemTypeSchema:()=>to,driveLogoutParamsSchema:()=>so,driveSetDefaultAccountParamsSchema:()=>co,driveTmpFileSchema:()=>ro,dropboxDocumentEntitySchema:()=>Ys,dropboxDocumentParamsSchema:()=>io,dropboxGetDocumentsParamsSchema:()=>mo,editFaqCategorySchema:()=>ko,editFaqEntrySchema:()=>Lo,editFaqThemeSchema:()=>To,ensureIsViewEvent:()=>Ja,ensureTVGetConfigureDynamicChannelResponse:()=>dc,ensureTVGetConfigureSlideshowChannelResponse:()=>mc,ensureWidgetArticleAttachmentType:()=>Vc,ensureWidgetArticleButtonType:()=>zc,ensureWidgetArticleGalleryType:()=>Gc,ensureWidgetArticleImageType:()=>Jc,ensureWidgetArticleSliderType:()=>Kc,ensureWidgetArticleTextType:()=>Hc,ensureWidgetArticleTitleType:()=>Qc,ensureWidgetCheckListType:()=>Yc,ensureWidgetContent:()=>rr,ensureWidgetDatasourceTableType:()=>Xc,ensureWidgetDefinitionProps:()=>Lc,ensureWidgetExcelDatasourceTableType:()=>eu,ensureWidgetObjectHasMinimumProperties:()=>Rc,ensureWidgetPresenceContent:()=>Vr,ensureWidgetPresenceResponse:()=>Qr,ensureWidgetPresenceResponsePayload:()=>Kr,ensureWidgetPresenceType:()=>Gr,ensureWidgetType:()=>ir,ensureWidgetWrapperProps:()=>$c,extensions:()=>$t,extractTaxonomiesFromObject:()=>sn,extractTaxonomiesFromObjectAndMapProperty:()=>on,extractTaxonomiesFromObjectAndMapUri:()=>ln,facetModeSchema:()=>jl,faqAccessSchema:()=>jo,faqHookPropertiesSchema:()=>So,faqItemListSchema:()=>yo,faqItemViewSchema:()=>vo,faqListSchema:()=>ho,faqTaxonomySchema:()=>_o,faqViewSchema:()=>fo,fileCropConfigSchema:()=>Ui,filterSchema:()=>jn,filterValueSchema:()=>kn,filtersSchema:()=>Cn,formatExtensionSchema:()=>Rn,formatImgUrl:()=>Wt,formatListSchema:()=>Ln,getActionUsersParamsSchema:()=>$l,getArgs:()=>Nt,getCommentsParamsSchema:()=>qa,getExtensionFromName:()=>Jt,getFileExtensionFromMimetype:()=>Gt,getFileFamily:()=>en,getFileFamilyFromName:()=>Yt,getFormat:()=>Ut,getFrom:()=>Mt,getLicenseKindUsersParamsSchema:()=>al,getMimetypeFromExtension:()=>zt,getMimetypeFromName:()=>Kt,getSize:()=>Zt,getTimestamp:()=>Dt,getUnclassifiedFilesParamsSchema:()=>cl,getUri:()=>It,getUrl:()=>qt,groupCustomWidgetSchema:()=>ga,groupListConfigSchema:()=>xa,groupMemberLevelSchema:()=>oa,groupMemberSchema:()=>da,groupModerateStatusSchema:()=>ua,groupPropertiesOptionsSchema:()=>ha,groupPropertiesSchema:()=>ba,groupUserLevelSchema:()=>sa,groupWidgetLittleSchema:()=>ma,groupWidgetSchema:()=>va,hookListTypeSchema:()=>zo,imageSizeSchema:()=>Zi,inferBookmarkListSchema:()=>Ya,inferBookmarkRawListSchema:()=>Qa,inferExtendedFaqCategory:()=>bo,inferJInternalDraftView:()=>Ma,inferJLinkListSchema:()=>Ha,inferMaybeWithToken:()=>Tn,inferSearchQueryResultSchema:()=>Ml,inferTVChannelCustomSchema:()=>Ql,inferUserLicenseSchema:()=>sl,jAdminLicenseUserListSchema:()=>ls,jArticleExtendViewSchema:()=>Ia,jArticleListSchema:()=>Ea,jArticleListShapeTmp:()=>Fa,jArticleLittleSchema:()=>Ra,jArticleViewSchema:()=>Pa,jArticleWidgetLittle:()=>Fc,jArticleWidgetViewSchema:()=>Bc,jBusinessContactListSchema:()=>Zs,jBusinessContactLittleSchema:()=>Ns,jCommentListSchema:()=>Bs,jCommentLittleSchema:()=>Ws,jDiapazoneListSchema:()=>$s,jEnsure:()=>u,jFileLittleCropSchema:()=>Bi,jFileLittleSchema:()=>qi,jFileRenditionSchema:()=>$i,jFolderListSchema:()=>Va,jFolderLittleSchema:()=>Oa,jGroupListSchema:()=>_a,jGroupLittleSchema:()=>ka,jGroupViewSchema:()=>Sa,jHrefSchema:()=>vn,jIACapabilitiesSchema:()=>Go,jLandAdditionalPropsSchema:()=>tl,jLandLogSchema:()=>Ko,jLandMapFlavorSchema:()=>Qo,jLandMapKindSchema:()=>Yo,jLandMapListSchema:()=>il,jLandMapLittleSchema:()=>nl,jLandMapSchema:()=>Xo,jLandMapViewSchema:()=>rl,jLandStatSchema:()=>Ho,jLinkLittleSchema:()=>Ka,jMeetingListSchema:()=>gl,jMeetingViewSchema:()=>hl,jObjectAutocompleteSchema:()=>Os,jObjectBaseSchema:()=>Pn,jObjectListSchema:()=>Ta,jObjectLittleSchema:()=>In,jPollSurveyListSchema:()=>bl,jPollSurveyViewSchema:()=>yl,jQuizzListSchema:()=>kl,jQuizzViewSchema:()=>_l,jSocialEventListSchema:()=>za,jSocialEventViewSchema:()=>Ga,jSpotAutocompleteSchema:()=>Rs,jSupportListSchema:()=>zl,jSupportViewSchema:()=>Gl,jSurveyDateListSchema:()=>Jl,jSurveyDateViewSchema:()=>Kl,jUserAutocompleteSchema:()=>Ls,jUserListSchema:()=>ki,jUserLittleSchema:()=>wi,jUserValuesSchema:()=>Ai,jUserViewSchema:()=>Si,licenseSchema:()=>os,mediaLibraryFilesStatsSchema:()=>ul,mediaLibraryFolderSchema:()=>ol,mediaLibraryFolderStatsSchema:()=>dl,mediaLibraryListSchema:()=>ll,mediaLibraryStatsSchema:()=>pl,mimetypeToExt:()=>Vt,mimetypes:()=>Bt,moveFaqEntrySchema:()=>Ro,moveFaqThemeSchema:()=>Fo,moveMediaLibraryFileParamsSchema:()=>ml,msDocumentEntitySchema:()=>Qs,msDocumentParamsSchema:()=>no,msGetDocumentsParamsSchema:()=>po,msGroupEntitySchema:()=>Ks,msSiteEntitySchema:()=>Js,msTenantEntitySchema:()=>Gs,msTenantsSchema:()=>Vs,msUnifiedEntitySchema:()=>Xs,network:()=>Wu,networkTypeSchema:()=>fl,objectListPropsSchema:()=>Fn,objectTimestamp:()=>Ht,objectWithoutLicenseFilterSchema:()=>rs,onlyOfficeTemplateSchema:()=>No,openingTypeAnchorSchema:()=>sr,openingTypeLinkSchema:()=>ar,openingTypePopupSchema:()=>or,openingTypeSchema:()=>er,orderSchema:()=>wn,ordersSchema:()=>xn,padStartTwoDigits:()=>m,prepareGroupForUpdate:()=>cn,publicWebinarData:()=>Ds,publicWebinarFullnameRequestSchema:()=>Ps,publicWebinarGetDateRequestSchema:()=>Ms,publicWebinarUrlSchema:()=>Is,questionAnswerSelectResponseParamsSchema:()=>vl,questionAnswerUnselectResponseParamsSchema:()=>wl,removeIfStartsWith:()=>p,replacePropertiesWithTypes:()=>bn,reservationListSchema:()=>Ts,resetNotificationConfigurationSchema:()=>ja,resolveFileFamily:()=>rn,resolveFileMimetype:()=>nn,resolveFilePath:()=>Qt,resolveFileUrl:()=>tn,rightsSchema:()=>Mi,rssTypeSchema:()=>fa,searchCategoryModelSchema:()=>Cl,searchCategoryValueSchema:()=>Sl,searchConfigSchema:()=>Fl,searchFacetModelSchema:()=>xl,searchFacetValueModelSchema:()=>Al,searchFacetValuesSchema:()=>Tl,searchLastQuerySchema:()=>Dl,searchQueryFilterModelSchema:()=>Ol,searchQueryOptionSchema:()=>Rl,searchQuerySchema:()=>Il,searchQuerySortModelSchema:()=>Ll,searchResultCatPropsSchema:()=>Zl,searchResultPropsAppSchema:()=>El,searchResultPropsObjectSchema:()=>Pl,searchResultPropsSchema:()=>Nl,shareAccessObjectSchema:()=>Bl,shareAccessPropsSchema:()=>Wl,shareGeneralAccessRulesSchema:()=>Ul,shareOptionObjectSchema:()=>ql,socialActionSchema:()=>qs,spotBannerImageSchema:()=>aa,storeFinalizeSchema:()=>ds,storeItemSchema:()=>us,suffixIfDoesNotExist:()=>d,textEnhanceResponseSchema:()=>Jo,tinyMCECommonOptionsSchema:()=>bc,tinyMCEDynamicOptionsSchema:()=>fc,tinymceExtendedOptionsSchema:()=>yc,tvChannelCreatePayloadSchema:()=>sc,tvChannelCreationSchema:()=>ac,tvChannelCustomListDynamicSchema:()=>Yl,tvChannelCustomListSchema:()=>ic,tvChannelCustomListSlideshowSchema:()=>Xl,tvChannelDynamicArticleSchema:()=>lc,tvChannelDynamicCommentSchema:()=>oc,tvChannelDynamicListSchema:()=>tc,tvChannelListSchema:()=>rc,tvChannelLittleSchema:()=>ec,tvChannelSlideshowFileSchema:()=>cc,tvChannelSlideshowListSchema:()=>nc,tvChannelTypeSchema:()=>Hl,tvGetChannelResponseSchema:()=>hc,tvGetConfigureChannelResponseSchema:()=>gc,tvGetConfigureDynamicChannelResponse:()=>uc,tvGetConfigureSlideshowChannelResponse:()=>pc,updateCommentParamsSchema:()=>Ba,updateGroupSchema:()=>ya,uploadConfigSchema:()=>Ni,userDefaultFieldsTypeSchema:()=>Ti,userDirectoryConfigurationSchema:()=>Pi,userDownloadSchema:()=>Vi,userFieldSchema:()=>Li,userFieldsConfigurationTypeSchema:()=>Oi,userFieldsSchema:()=>Ri,userLevelSpotSchema:()=>la,userMapModelSchema:()=>xi,userReadSchema:()=>$a,userValuesSchema:()=>Fi,validateIsFormatFileLittle:()=>Wi,validateIsFormatObjectList:()=>Aa,validateIsFormatObjectLittle:()=>Mn,validateIsFormatRights:()=>Di,validateIsFormatUserDirectoryConfiguration:()=>Ii,validateIsFormatUserLevelSpot:()=>Ca,validateIsFormatUserList:()=>_i,validateIsFormatUserMapModel:()=>Ci,validateIsFormatUserView:()=>ji,valueLabelSchema:()=>pa,variantSizeTypeSchema:()=>Yi,variantTypeSchema:()=>Xi,wedocEmptyTypeSchema:()=>Ac,wedocFileAudienceTypeSchema:()=>jc,wedocFileInfoSchema:()=>_c,wedocFileTypeSchema:()=>Sc,wedocQueryResultsSchema:()=>Cc,wedocQueryTypeSchema:()=>Tc,wedocTemplateSchema:()=>xc,widgetActiveValueSchema:()=>Hn,widgetArticleAttachmentContentSchema:()=>vr,widgetArticleAttachmentTypeSchema:()=>wr,widgetArticleButtonContentSchema:()=>cr,widgetArticleButtonTypeSchema:()=>ur,widgetArticleCheckListTypeForFrontSchema:()=>Nc,widgetArticleGalleryContentSchema:()=>dr,widgetArticleGalleryTypeSchema:()=>pr,widgetArticleImageContentSchema:()=>br,widgetArticleImageTypeSchema:()=>yr,widgetArticleSliderContentSchema:()=>_r,widgetArticleSliderTypeSchema:()=>Sr,widgetArticleTextContentSchema:()=>hr,widgetArticleTextTypeSchema:()=>fr,widgetArticleTitleContentSchema:()=>mr,widgetArticleTitleTypeSchema:()=>gr,widgetAudienceSchema:()=>Qn,widgetBaseSchema:()=>Ji,widgetButtonPropsSchema:()=>lr,widgetCheckListContentArrForFrontSchema:()=>Mc,widgetCheckListContentArrSchema:()=>jr,widgetCheckListContentForFrontSchema:()=>Dc,widgetCheckListContentSchema:()=>xr,widgetCheckListTypeSchema:()=>Cr,widgetCheckboxSchema:()=>di,widgetColorSchema:()=>Bn,widgetContentKeysSchema:()=>na,widgetDatasourceTableContentSchema:()=>Ur,widgetDatasourceTableTypeSchema:()=>qr,widgetDatePickerSchema:()=>Jn,widgetDatePickerValueSchema:()=>Kn,widgetDateSchema:()=>$n,widgetDateValueSchema:()=>Vn,widgetDatetimeSchema:()=>zn,widgetDatetimeValueSchema:()=>Gn,widgetDefaultProps:()=>Ic,widgetDefinitionPropsSchema:()=>Oc,widgetDisplayModeSchema:()=>Pc,widgetEmailSchema:()=>ii,widgetEmailValueSchema:()=>ri,widgetEmbedSchema:()=>ni,widgetExcelDatasourceTableContentSchema:()=>Wr,widgetExcelDatasourceTableTypeSchema:()=>Br,widgetFileSchema:()=>ei,widgetKeysSchema:()=>Gi,widgetLayerSchema:()=>Ec,widgetLinkSchema:()=>Yn,widgetModalPropsSchema:()=>Zc,widgetMultiattributeSchema:()=>Xn,widgetNumberSchema:()=>qn,widgetNumberValueSchema:()=>Wn,widgetOrientedlinksSchema:()=>hi,widgetPlaceSchema:()=>oi,widgetPresenceContentSchema:()=>$r,widgetPresenceRespondPayloadSchema:()=>Jr,widgetPresenceResponseSchema:()=>Hr,widgetPresenceTypeSchema:()=>zr,widgetRadioSchema:()=>ui,widgetRefUserSchema:()=>li,widgetRtObjectSchema:()=>Uc,widgetSchema:()=>bi,widgetSelectSchema:()=>ti,widgetSlideSchema:()=>kr,widgetStatePropsSchema:()=>ia,widgetTableColumnDataSchema:()=>Ir,widgetTableColumnSchema:()=>Nr,widgetTableColumnTypesSchema:()=>Dr,widgetTableColumnWidgetDateSchema:()=>Er,widgetTableColumnWidgetDefaulSchema:()=>Or,widgetTableColumnWidgetSelectOptionSchema:()=>Rr,widgetTableColumnWidgetSelectSchema:()=>Fr,widgetTableColumnWidgetTextSchema:()=>Lr,widgetTableColumnWidgetsSchema:()=>Pr,widgetTableColumnsData:()=>Mr,widgetTableContentSchema:()=>Zr,widgetTaxonomySchema:()=>pi,widgetTelSchema:()=>mi,widgetTextSchema:()=>Dn,widgetTextValueSchema:()=>Nn,widgetTextareaSchema:()=>Zn,widgetTextareaValueSchema:()=>Un,widgetToggleSchema:()=>gi,widgetTransientSchema:()=>ci,widgetTypeKeysSchema:()=>ta,widgetUriSchema:()=>fi,widgetUrlSchema:()=>ai,widgetUrlValueSchema:()=>si,widgetVectorSchema:()=>tr,widgetWrapperPropsSchema:()=>Xr,widgetsRootStateSchema:()=>Wc,widgetsStateSchema:()=>qc,widgetsValueSchema:()=>yi});class n{constructor(e){this.jApi=e,this.network=e.network}}var i;class r extends n{getLicenseUserStatistics(e){return this.network.post({o:"licenseManager",f:"userStatistics"},e)}getLicenseStatistics(e,t){return this.network.post({o:"licenseManager",f:"statistics",kind:e},t)}assignLicense(e){return this.network.postCSRF({o:"licenseManager",f:"assignLicense",uri:e})}assignKindLicense(e,t){return this.network.postCSRF({o:"licenseManager",f:"assignLicenseKind",uri:e,kind:t})}unAssignLicense(e){return this.network.postCSRF({o:"licenseManager",f:"unassignLicense",uri:e})}unAssignKindLicense(e,t){return this.network.postCSRF({o:"licenseManager",f:"unassignLicenseKind",uri:e,kind:t})}getAssignmentMode(e,t){return this.network.post({o:"licenseManager",f:"getAssignmentMode",type:e},t)}setAssignmentMode(e,t){return this.network.postCSRF({o:"licenseManager",f:"setAssignmentMode",value:t,type:e})}assignPossiblesLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"assignPossiblesLicenses",type:e,kind:t})}unAssignUnusedLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"unassignUnusedLicenses",type:e,kind:t})}optimizeLicenses(e,t){return this.network.postCSRF({o:"licenseManager",f:"optimizeLicenses",type:e,kind:t})}getObjectsWithoutLicense(e,t){return this.network.post({o:"licenseManager",f:"countObjectsWithoutLicense",type:e,filter:t})}getLicensesNotAssigned(e){return this.network.post({o:"licenseManager",f:"countLicensesNotAssigned",type:e})}getLicensesAssigned(e){return this.network.post({o:"licenseManager",f:"getLicensesAssigned",type:e})}getLicenseUsersByKind(e,t,n){var i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,[]);return this.network.post(Object.assign(Object.assign({o:"licenseManager",f:"getUsers"},i),{format:t}),n)}}class a extends n{getItem(e){return this.network.post({o:"adminStore",f:"getItem",uri:e})}checkoutBilling(e){return this.network.postCSRF({o:"adminStore",f:"checkoutBilling",uri:e})}checkoutFinalize(e){return this.network.postCSRF({o:"adminStore",f:"checkoutFinalize",uri:e})}}class s extends n{getApps(e){return this.network.post({o:"admin",f:"apps"},e)}}!function(e){e.local="local",e.installed="installed",e.autosaved="autosaved",e.saved="saved"}(i||(i={}));class o extends n{list(){return this.network.post({o:"studio",f:"list"})}get(e,t){return this.network.post({o:"studio",f:"get",idApp:e,status:t})}install(e){return this.network.postCSRF({o:"studio",f:"install",value:e})}suspend(e){return this.network.postCSRF({o:"studio",f:"suspend",idApp:e})}restart(e){return this.network.postCSRF({o:"studio",f:"restart",idApp:e})}save(e,t,n){return this.network.postCSRF({o:"studio",f:"save",idApp:e,value:t,status:n})}delete(e,t){return n=this,i=void 0,a=function*(){return this.network.postCSRF({o:"studio",f:"delete",idApp:e,status:t}).then((e=>{if(0===e.error)return e.messages;throw e.messages}))},new((r=void 0)||(r=Promise))((function(e,t){function s(e){try{l(a.next(e))}catch(e){t(e)}}function o(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,o)}l((a=a.apply(n,i||[])).next())}));var n,i,r,a}cssClassList(){return this.network.post({o:"studio",f:"icons"})}}function l(e){const t=e;return t&&"number"==typeof t.id&&"number"==typeof t.targetId}const c={bookmarkLink:l},u={isBookmarkLink:function(e){return"targetId"in e&&!!e.targetId},isBookmarkCustom:function(e){const t=e;return void 0!==t.bookmarkLabel||void 0!==t.bookmarkMeta||void 0!==t.bookmarkUrl},isBookmarkRawList:l,isTVChannelType:function(e,t){return"tvChannelType"in e&&e.tvChannelType===t},objectIsType:function(e,t){return null!=t&&c[e](t)},isStandardApiError:e=>"object"==typeof e&&null!==e&&"error"in e&&"errorMsg"in e&&"messages"in e&&"number"==typeof e.error&&"string"==typeof e.errorMsg&&Array.isArray(e.messages),isAbortApiError:e=>null!==e&&"object"==typeof e&&"error"in e&&"aborted"in e&&-1===e.error&&!0===e.aborted};function d(e,t){return e&&!e.endsWith(t)?`${e}${t}`:e}function p(e,t){return e&&e.startsWith(t)?e.split("").slice(t.length).join(""):e}function m(e){return e.toString().padStart(2,"0")}var g,h;!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),i={};for(const e of n)i[e]=t[e];return e.objectValues(i)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(g||(g={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(h||(h={}));const f=g.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),b=e=>{switch(typeof e){case"undefined":return f.undefined;case"string":return f.string;case"number":return isNaN(e)?f.nan:f.number;case"boolean":return f.boolean;case"function":return f.function;case"bigint":return f.bigint;case"symbol":return f.symbol;case"object":return Array.isArray(e)?f.array:null===e?f.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?f.promise:"undefined"!=typeof Map&&e instanceof Map?f.map:"undefined"!=typeof Set&&e instanceof Set?f.set:"undefined"!=typeof Date&&e instanceof Date?f.date:f.object;default:return f.unknown}},y=g.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class v extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},i=e=>{for(const r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(i);else if("invalid_return_type"===r.code)i(r.returnTypeError);else if("invalid_arguments"===r.code)i(r.argumentsError);else if(0===r.path.length)n._errors.push(t(r));else{let e=n,i=0;for(;i<r.path.length;){const n=r.path[i];i===r.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(r))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(this),n}static assert(e){if(!(e instanceof v))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,g.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const i of this.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}v.create=e=>new v(e);const w=(e,t)=>{let n;switch(e.code){case y.invalid_type:n=e.received===f.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case y.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,g.jsonStringifyReplacer)}`;break;case y.unrecognized_keys:n=`Unrecognized key(s) in object: ${g.joinValues(e.keys,", ")}`;break;case y.invalid_union:n="Invalid input";break;case y.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${g.joinValues(e.options)}`;break;case y.invalid_enum_value:n=`Invalid enum value. Expected ${g.joinValues(e.options)}, received '${e.received}'`;break;case y.invalid_arguments:n="Invalid function arguments";break;case y.invalid_return_type:n="Invalid function return type";break;case y.invalid_date:n="Invalid date";break;case y.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:g.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case y.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case y.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case y.custom:n="Invalid input";break;case y.invalid_intersection_types:n="Intersection results could not be merged";break;case y.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case y.not_finite:n="Number must be finite";break;default:n=t.defaultError,g.assertNever(e)}return{message:n}};let k=w;function _(){return k}const S=e=>{const{data:t,path:n,errorMaps:i,issueData:r}=e,a=[...n,...r.path||[]],s={...r,path:a};if(void 0!==r.message)return{...r,path:a,message:r.message};let o="";const l=i.filter((e=>!!e)).slice().reverse();for(const e of l)o=e(s,{data:t,defaultError:o}).message;return{...r,path:a,message:o}};function j(e,t){const n=_(),i=S({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===w?void 0:w].filter((e=>!!e))});e.common.issues.push(i)}class x{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const i of t){if("aborted"===i.status)return C;"dirty"===i.status&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t){const t=await e.key,i=await e.value;n.push({key:t,value:i})}return x.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const i of t){const{key:t,value:r}=i;if("aborted"===t.status)return C;if("aborted"===r.status)return C;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"===t.value||void 0===r.value&&!i.alwaysSet||(n[t.value]=r.value)}return{status:e.value,value:n}}}const C=Object.freeze({status:"aborted"}),T=e=>({status:"dirty",value:e}),A=e=>({status:"valid",value:e}),O=e=>"aborted"===e.status,L=e=>"dirty"===e.status,R=e=>"valid"===e.status,F=e=>"undefined"!=typeof Promise&&e instanceof Promise;function E(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function P(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n}var I,M,D;"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(I||(I={}));class N{constructor(e,t,n,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Z=(e,t)=>{if(R(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new v(e.common.issues);return this._error=t,this._error}}};function U(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&&(n||i))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(t,r)=>{var a,s;const{message:o}=e;return"invalid_enum_value"===t.code?{message:null!=o?o:r.defaultError}:void 0===r.data?{message:null!==(a=null!=o?o:i)&&void 0!==a?a:r.defaultError}:"invalid_type"!==t.code?{message:r.defaultError}:{message:null!==(s=null!=o?o:n)&&void 0!==s?s:r.defaultError}},description:r}}class q{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return b(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:b(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new x,ctx:{common:e.parent.common,data:e.data,parsedType:b(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(F(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const i={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:b(e)},r=this._parseSync({data:e,path:i.path,parent:i});return Z(i,r)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:b(e)},i=this._parse({data:e,path:n.path,parent:n}),r=await(F(i)?i:Promise.resolve(i));return Z(n,r)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,i)=>{const r=e(t),a=()=>i.addIssue({code:y.custom,...n(t)});return"undefined"!=typeof Promise&&r instanceof Promise?r.then((e=>!!e||(a(),!1))):!!r||(a(),!1)}))}refinement(e,t){return this._refinement(((n,i)=>!!e(n)||(i.addIssue("function"==typeof t?t(n,i):t),!1)))}_refinement(e){return new Ie({schema:this,typeName:Ge.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Me.create(this,this._def)}nullable(){return De.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return fe.create(this,this._def)}promise(){return Pe.create(this,this._def)}or(e){return ve.create([this,e],this._def)}and(e){return Se.create(this,e,this._def)}transform(e){return new Ie({...U(this._def),schema:this,typeName:Ge.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Ne({...U(this._def),innerType:this,defaultValue:t,typeName:Ge.ZodDefault})}brand(){return new We({typeName:Ge.ZodBranded,type:this,...U(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Ze({...U(this._def),innerType:this,catchValue:t,typeName:Ge.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Be.create(this,e)}readonly(){return $e.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const W=/^c[^\s-]{8,}$/i,B=/^[0-9a-z]+$/,$=/^[0-9A-HJKMNP-TV-Z]{26}$/,V=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,z=/^[a-z0-9_-]{21}$/i,G=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,J=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let K;const H=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Q=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Y=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,X="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ee=new RegExp(`^${X}$`);function te(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function ne(e){let t=`${X}T${te(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}class ie extends q{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==f.string){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.string,received:t.parsedType}),C}const t=new x;let n;for(const a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(n=this._getOrReturnCtx(e,n),j(n,{code:y.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("max"===a.kind)e.data.length>a.value&&(n=this._getOrReturnCtx(e,n),j(n,{code:y.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("length"===a.kind){const i=e.data.length>a.value,r=e.data.length<a.value;(i||r)&&(n=this._getOrReturnCtx(e,n),i?j(n,{code:y.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):r&&j(n,{code:y.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),t.dirty())}else if("email"===a.kind)J.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"email",code:y.invalid_string,message:a.message}),t.dirty());else if("emoji"===a.kind)K||(K=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),K.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"emoji",code:y.invalid_string,message:a.message}),t.dirty());else if("uuid"===a.kind)V.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"uuid",code:y.invalid_string,message:a.message}),t.dirty());else if("nanoid"===a.kind)z.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"nanoid",code:y.invalid_string,message:a.message}),t.dirty());else if("cuid"===a.kind)W.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"cuid",code:y.invalid_string,message:a.message}),t.dirty());else if("cuid2"===a.kind)B.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"cuid2",code:y.invalid_string,message:a.message}),t.dirty());else if("ulid"===a.kind)$.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"ulid",code:y.invalid_string,message:a.message}),t.dirty());else if("url"===a.kind)try{new URL(e.data)}catch(i){n=this._getOrReturnCtx(e,n),j(n,{validation:"url",code:y.invalid_string,message:a.message}),t.dirty()}else"regex"===a.kind?(a.regex.lastIndex=0,a.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"regex",code:y.invalid_string,message:a.message}),t.dirty())):"trim"===a.kind?e.data=e.data.trim():"includes"===a.kind?e.data.includes(a.value,a.position)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),t.dirty()):"toLowerCase"===a.kind?e.data=e.data.toLowerCase():"toUpperCase"===a.kind?e.data=e.data.toUpperCase():"startsWith"===a.kind?e.data.startsWith(a.value)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty()):"endsWith"===a.kind?e.data.endsWith(a.value)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty()):"datetime"===a.kind?ne(a).test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:"datetime",message:a.message}),t.dirty()):"date"===a.kind?ee.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:"date",message:a.message}),t.dirty()):"time"===a.kind?new RegExp(`^${te(a)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{code:y.invalid_string,validation:"time",message:a.message}),t.dirty()):"duration"===a.kind?G.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"duration",code:y.invalid_string,message:a.message}),t.dirty()):"ip"===a.kind?(i=e.data,("v4"!==(r=a.version)&&r||!H.test(i))&&("v6"!==r&&r||!Q.test(i))&&(n=this._getOrReturnCtx(e,n),j(n,{validation:"ip",code:y.invalid_string,message:a.message}),t.dirty())):"base64"===a.kind?Y.test(e.data)||(n=this._getOrReturnCtx(e,n),j(n,{validation:"base64",code:y.invalid_string,message:a.message}),t.dirty()):g.assertNever(a);var i,r;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:y.invalid_string,...I.errToObj(n)})}_addCheck(e){return new ie({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...I.errToObj(e)})}url(e){return this._addCheck({kind:"url",...I.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...I.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...I.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...I.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...I.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...I.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...I.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...I.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...I.errToObj(e)})}datetime(e){var t,n;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null==e?void 0:e.local)&&void 0!==n&&n,...I.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...I.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...I.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...I.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...I.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...I.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...I.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...I.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...I.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...I.errToObj(t)})}nonempty(e){return this.min(1,I.errToObj(e))}trim(){return new ie({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ie({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ie({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function re(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i;return parseInt(e.toFixed(r).replace(".",""))%parseInt(t.toFixed(r).replace(".",""))/Math.pow(10,r)}ie.create=e=>{var t;return new ie({checks:[],typeName:Ge.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...U(e)})};class ae extends q{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==f.number){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.number,received:t.parsedType}),C}let t;const n=new x;for(const i of this._def.checks)"int"===i.kind?g.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),j(t,{code:y.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"multipleOf"===i.kind?0!==re(e.data,i.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_finite,message:i.message}),n.dirty()):g.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,I.toString(t))}gt(e,t){return this.setLimit("min",e,!1,I.toString(t))}lte(e,t){return this.setLimit("max",e,!0,I.toString(t))}lt(e,t){return this.setLimit("max",e,!1,I.toString(t))}setLimit(e,t,n,i){return new ae({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:I.toString(i)}]})}_addCheck(e){return new ae({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:I.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:I.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:I.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:I.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:I.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:I.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:I.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:I.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:I.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&g.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ae.create=e=>new ae({checks:[],typeName:Ge.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...U(e)});class se extends q{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==f.bigint){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.bigint,received:t.parsedType}),C}let t;const n=new x;for(const i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),j(t,{code:y.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):g.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,I.toString(t))}gt(e,t){return this.setLimit("min",e,!1,I.toString(t))}lte(e,t){return this.setLimit("max",e,!0,I.toString(t))}lt(e,t){return this.setLimit("max",e,!1,I.toString(t))}setLimit(e,t,n,i){return new se({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:I.toString(i)}]})}_addCheck(e){return new se({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:I.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:I.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:I.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:I.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:I.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}se.create=e=>{var t;return new se({checks:[],typeName:Ge.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...U(e)})};class oe extends q{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==f.boolean){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.boolean,received:t.parsedType}),C}return A(e.data)}}oe.create=e=>new oe({typeName:Ge.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...U(e)});class le extends q{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==f.date){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.date,received:t.parsedType}),C}if(isNaN(e.data.getTime()))return j(this._getOrReturnCtx(e),{code:y.invalid_date}),C;const t=new x;let n;for(const i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(n=this._getOrReturnCtx(e,n),j(n,{code:y.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),t.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(n=this._getOrReturnCtx(e,n),j(n,{code:y.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),t.dirty()):g.assertNever(i);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new le({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:I.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:I.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}le.create=e=>new le({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:Ge.ZodDate,...U(e)});class ce extends q{_parse(e){if(this._getType(e)!==f.symbol){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.symbol,received:t.parsedType}),C}return A(e.data)}}ce.create=e=>new ce({typeName:Ge.ZodSymbol,...U(e)});class ue extends q{_parse(e){if(this._getType(e)!==f.undefined){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.undefined,received:t.parsedType}),C}return A(e.data)}}ue.create=e=>new ue({typeName:Ge.ZodUndefined,...U(e)});class de extends q{_parse(e){if(this._getType(e)!==f.null){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.null,received:t.parsedType}),C}return A(e.data)}}de.create=e=>new de({typeName:Ge.ZodNull,...U(e)});class pe extends q{constructor(){super(...arguments),this._any=!0}_parse(e){return A(e.data)}}pe.create=e=>new pe({typeName:Ge.ZodAny,...U(e)});class me extends q{constructor(){super(...arguments),this._unknown=!0}_parse(e){return A(e.data)}}me.create=e=>new me({typeName:Ge.ZodUnknown,...U(e)});class ge extends q{_parse(e){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.never,received:t.parsedType}),C}}ge.create=e=>new ge({typeName:Ge.ZodNever,...U(e)});class he extends q{_parse(e){if(this._getType(e)!==f.undefined){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.void,received:t.parsedType}),C}return A(e.data)}}he.create=e=>new he({typeName:Ge.ZodVoid,...U(e)});class fe extends q{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),i=this._def;if(t.parsedType!==f.array)return j(t,{code:y.invalid_type,expected:f.array,received:t.parsedType}),C;if(null!==i.exactLength){const e=t.data.length>i.exactLength.value,r=t.data.length<i.exactLength.value;(e||r)&&(j(t,{code:e?y.too_big:y.too_small,minimum:r?i.exactLength.value:void 0,maximum:e?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(j(t,{code:y.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(j(t,{code:y.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>i.type._parseAsync(new N(t,e,t.path,n))))).then((e=>x.mergeArray(n,e)));const r=[...t.data].map(((e,n)=>i.type._parseSync(new N(t,e,t.path,n))));return x.mergeArray(n,r)}get element(){return this._def.type}min(e,t){return new fe({...this._def,minLength:{value:e,message:I.toString(t)}})}max(e,t){return new fe({...this._def,maxLength:{value:e,message:I.toString(t)}})}length(e,t){return new fe({...this._def,exactLength:{value:e,message:I.toString(t)}})}nonempty(e){return this.min(1,e)}}function be(e){if(e instanceof ye){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=Me.create(be(i))}return new ye({...e._def,shape:()=>t})}return e instanceof fe?new fe({...e._def,type:be(e.element)}):e instanceof Me?Me.create(be(e.unwrap())):e instanceof De?De.create(be(e.unwrap())):e instanceof je?je.create(e.items.map((e=>be(e)))):e}fe.create=(e,t)=>new fe({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ge.ZodArray,...U(t)});class ye extends q{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=g.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==f.object){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.object,received:t.parsedType}),C}const{status:t,ctx:n}=this._processInputParams(e),{shape:i,keys:r}=this._getCached(),a=[];if(!(this._def.catchall instanceof ge&&"strip"===this._def.unknownKeys))for(const e in n.data)r.includes(e)||a.push(e);const s=[];for(const e of r){const t=i[e],r=n.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new N(n,r,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof ge){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)a.length>0&&(j(n,{code:y.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const i=n.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new N(n,i,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of s){const n=await t.key,i=await t.value;e.push({key:n,value:i,alwaysSet:t.alwaysSet})}return e})).then((e=>x.mergeObjectSync(t,e))):x.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return I.errToObj,new ye({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var i,r,a,s;const o=null!==(a=null===(r=(i=this._def).errorMap)||void 0===r?void 0:r.call(i,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=I.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new ye({...this._def,unknownKeys:"strip"})}passthrough(){return new ye({...this._def,unknownKeys:"passthrough"})}extend(e){return new ye({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ye({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Ge.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ye({...this._def,catchall:e})}pick(e){const t={};return g.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new ye({...this._def,shape:()=>t})}omit(e){const t={};return g.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new ye({...this._def,shape:()=>t})}deepPartial(){return be(this)}partial(e){const t={};return g.objectKeys(this.shape).forEach((n=>{const i=this.shape[n];e&&!e[n]?t[n]=i:t[n]=i.optional()})),new ye({...this._def,shape:()=>t})}required(e){const t={};return g.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Me;)e=e._def.innerType;t[n]=e}})),new ye({...this._def,shape:()=>t})}keyof(){return Re(g.objectKeys(this.shape))}}ye.create=(e,t)=>new ye({shape:()=>e,unknownKeys:"strip",catchall:ge.create(),typeName:Ge.ZodObject,...U(t)}),ye.strictCreate=(e,t)=>new ye({shape:()=>e,unknownKeys:"strict",catchall:ge.create(),typeName:Ge.ZodObject,...U(t)}),ye.lazycreate=(e,t)=>new ye({shape:e,unknownKeys:"strip",catchall:ge.create(),typeName:Ge.ZodObject,...U(t)});class ve extends q{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map((e=>new v(e.ctx.common.issues)));return j(t,{code:y.invalid_union,unionErrors:n}),C}));{let e;const i=[];for(const r of n){const n={...t,common:{...t.common,issues:[]},parent:null},a=r._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&i.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const r=i.map((e=>new v(e)));return j(t,{code:y.invalid_union,unionErrors:r}),C}}get options(){return this._def.options}}ve.create=(e,t)=>new ve({options:e,typeName:Ge.ZodUnion,...U(t)});const we=e=>e instanceof Oe?we(e.schema):e instanceof Ie?we(e.innerType()):e instanceof Le?[e.value]:e instanceof Fe?e.options:e instanceof Ee?g.objectValues(e.enum):e instanceof Ne?we(e._def.innerType):e instanceof ue?[void 0]:e instanceof de?[null]:e instanceof Me?[void 0,...we(e.unwrap())]:e instanceof De?[null,...we(e.unwrap())]:e instanceof We||e instanceof $e?we(e.unwrap()):e instanceof Ze?we(e._def.innerType):[];class ke extends q{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.object)return j(t,{code:y.invalid_type,expected:f.object,received:t.parsedType}),C;const n=this.discriminator,i=t.data[n],r=this.optionsMap.get(i);return r?t.common.async?r._parseAsync({data:t.data,path:t.path,parent:t}):r._parseSync({data:t.data,path:t.path,parent:t}):(j(t,{code:y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),C)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const i=new Map;for(const n of t){const t=we(n.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const r of t){if(i.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);i.set(r,n)}}return new ke({typeName:Ge.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...U(n)})}}function _e(e,t){const n=b(e),i=b(t);if(e===t)return{valid:!0,data:e};if(n===f.object&&i===f.object){const n=g.objectKeys(t),i=g.objectKeys(e).filter((e=>-1!==n.indexOf(e))),r={...e,...t};for(const n of i){const i=_e(e[n],t[n]);if(!i.valid)return{valid:!1};r[n]=i.data}return{valid:!0,data:r}}if(n===f.array&&i===f.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let i=0;i<e.length;i++){const r=_e(e[i],t[i]);if(!r.valid)return{valid:!1};n.push(r.data)}return{valid:!0,data:n}}return n===f.date&&i===f.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Se extends q{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=(e,i)=>{if(O(e)||O(i))return C;const r=_e(e.value,i.value);return r.valid?((L(e)||L(i))&&t.dirty(),{status:t.value,value:r.data}):(j(n,{code:y.invalid_intersection_types}),C)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>i(e,t))):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Se.create=(e,t,n)=>new Se({left:e,right:t,typeName:Ge.ZodIntersection,...U(n)});class je extends q{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.array)return j(n,{code:y.invalid_type,expected:f.array,received:n.parsedType}),C;if(n.data.length<this._def.items.length)return j(n,{code:y.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),C;!this._def.rest&&n.data.length>this._def.items.length&&(j(n,{code:y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const i=[...n.data].map(((e,t)=>{const i=this._def.items[t]||this._def.rest;return i?i._parse(new N(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(i).then((e=>x.mergeArray(t,e))):x.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new je({...this._def,rest:e})}}je.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new je({items:e,typeName:Ge.ZodTuple,rest:null,...U(t)})};class xe extends q{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.object)return j(n,{code:y.invalid_type,expected:f.object,received:n.parsedType}),C;const i=[],r=this._def.keyType,a=this._def.valueType;for(const e in n.data)i.push({key:r._parse(new N(n,e,n.path,e)),value:a._parse(new N(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?x.mergeObjectAsync(t,i):x.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,n){return new xe(t instanceof q?{keyType:e,valueType:t,typeName:Ge.ZodRecord,...U(n)}:{keyType:ie.create(),valueType:e,typeName:Ge.ZodRecord,...U(t)})}}class Ce extends q{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.map)return j(n,{code:y.invalid_type,expected:f.map,received:n.parsedType}),C;const i=this._def.keyType,r=this._def.valueType,a=[...n.data.entries()].map((([e,t],a)=>({key:i._parse(new N(n,e,n.path,[a,"key"])),value:r._parse(new N(n,t,n.path,[a,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const i=await n.key,r=await n.value;if("aborted"===i.status||"aborted"===r.status)return C;"dirty"!==i.status&&"dirty"!==r.status||t.dirty(),e.set(i.value,r.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const i=n.key,r=n.value;if("aborted"===i.status||"aborted"===r.status)return C;"dirty"!==i.status&&"dirty"!==r.status||t.dirty(),e.set(i.value,r.value)}return{status:t.value,value:e}}}}Ce.create=(e,t,n)=>new Ce({valueType:t,keyType:e,typeName:Ge.ZodMap,...U(n)});class Te extends q{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==f.set)return j(n,{code:y.invalid_type,expected:f.set,received:n.parsedType}),C;const i=this._def;null!==i.minSize&&n.data.size<i.minSize.value&&(j(n,{code:y.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&n.data.size>i.maxSize.value&&(j(n,{code:y.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());const r=this._def.valueType;function a(e){const n=new Set;for(const i of e){if("aborted"===i.status)return C;"dirty"===i.status&&t.dirty(),n.add(i.value)}return{status:t.value,value:n}}const s=[...n.data.values()].map(((e,t)=>r._parse(new N(n,e,n.path,t))));return n.common.async?Promise.all(s).then((e=>a(e))):a(s)}min(e,t){return new Te({...this._def,minSize:{value:e,message:I.toString(t)}})}max(e,t){return new Te({...this._def,maxSize:{value:e,message:I.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Te.create=(e,t)=>new Te({valueType:e,minSize:null,maxSize:null,typeName:Ge.ZodSet,...U(t)});class Ae extends q{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.function)return j(t,{code:y.invalid_type,expected:f.function,received:t.parsedType}),C;function n(e,n){return S({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_(),w].filter((e=>!!e)),issueData:{code:y.invalid_arguments,argumentsError:n}})}function i(e,n){return S({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_(),w].filter((e=>!!e)),issueData:{code:y.invalid_return_type,returnTypeError:n}})}const r={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Pe){const e=this;return A((async function(...t){const s=new v([]),o=await e._def.args.parseAsync(t,r).catch((e=>{throw s.addIssue(n(t,e)),s})),l=await Reflect.apply(a,this,o);return await e._def.returns._def.type.parseAsync(l,r).catch((e=>{throw s.addIssue(i(l,e)),s}))}))}{const e=this;return A((function(...t){const s=e._def.args.safeParse(t,r);if(!s.success)throw new v([n(t,s.error)]);const o=Reflect.apply(a,this,s.data),l=e._def.returns.safeParse(o,r);if(!l.success)throw new v([i(o,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ae({...this._def,args:je.create(e).rest(me.create())})}returns(e){return new Ae({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Ae({args:e||je.create([]).rest(me.create()),returns:t||me.create(),typeName:Ge.ZodFunction,...U(n)})}}class Oe extends q{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Oe.create=(e,t)=>new Oe({getter:e,typeName:Ge.ZodLazy,...U(t)});class Le extends q{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return j(t,{received:t.data,code:y.invalid_literal,expected:this._def.value}),C}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Re(e,t){return new Fe({values:e,typeName:Ge.ZodEnum,...U(t)})}Le.create=(e,t)=>new Le({value:e,typeName:Ge.ZodLiteral,...U(t)});class Fe extends q{constructor(){super(...arguments),M.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return j(t,{expected:g.joinValues(n),received:t.parsedType,code:y.invalid_type}),C}if(E(this,M,"f")||P(this,M,new Set(this._def.values),"f"),!E(this,M,"f").has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return j(t,{received:t.data,code:y.invalid_enum_value,options:n}),C}return A(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Fe.create(e,{...this._def,...t})}exclude(e,t=this._def){return Fe.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}M=new WeakMap,Fe.create=Re;class Ee extends q{constructor(){super(...arguments),D.set(this,void 0)}_parse(e){const t=g.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==f.string&&n.parsedType!==f.number){const e=g.objectValues(t);return j(n,{expected:g.joinValues(e),received:n.parsedType,code:y.invalid_type}),C}if(E(this,D,"f")||P(this,D,new Set(g.getValidEnumValues(this._def.values)),"f"),!E(this,D,"f").has(e.data)){const e=g.objectValues(t);return j(n,{received:n.data,code:y.invalid_enum_value,options:e}),C}return A(e.data)}get enum(){return this._def.values}}D=new WeakMap,Ee.create=(e,t)=>new Ee({values:e,typeName:Ge.ZodNativeEnum,...U(t)});class Pe extends q{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.promise&&!1===t.common.async)return j(t,{code:y.invalid_type,expected:f.promise,received:t.parsedType}),C;const n=t.parsedType===f.promise?t.data:Promise.resolve(t.data);return A(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Pe.create=(e,t)=>new Pe({type:e,typeName:Ge.ZodPromise,...U(t)});class Ie extends q{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ge.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=this._def.effect||null,r={addIssue:e=>{j(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===i.type){const e=i.transform(n.data,r);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return C;const i=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===i.status?C:"dirty"===i.status||"dirty"===t.value?T(i.value):i}));{if("aborted"===t.value)return C;const i=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===i.status?C:"dirty"===i.status||"dirty"===t.value?T(i.value):i}}if("refinement"===i.type){const e=e=>{const t=i.refinement(e,r);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===i.status?C:("dirty"===i.status&&t.dirty(),e(i.value),{status:t.value,value:i.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?C:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===i.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!R(e))return e;const a=i.transform(e.value,r);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>R(e)?Promise.resolve(i.transform(e.value,r)).then((e=>({status:t.value,value:e}))):e))}g.assertNever(i)}}Ie.create=(e,t,n)=>new Ie({schema:e,typeName:Ge.ZodEffects,effect:t,...U(n)}),Ie.createWithPreprocess=(e,t,n)=>new Ie({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...U(n)});class Me extends q{_parse(e){return this._getType(e)===f.undefined?A(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Me.create=(e,t)=>new Me({innerType:e,typeName:Ge.ZodOptional,...U(t)});class De extends q{_parse(e){return this._getType(e)===f.null?A(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}De.create=(e,t)=>new De({innerType:e,typeName:Ge.ZodNullable,...U(t)});class Ne extends q{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===f.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Ne.create=(e,t)=>new Ne({innerType:e,typeName:Ge.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...U(t)});class Ze extends q{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return F(i)?i.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new v(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new v(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Ze.create=(e,t)=>new Ze({innerType:e,typeName:Ge.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...U(t)});class Ue extends q{_parse(e){if(this._getType(e)!==f.nan){const t=this._getOrReturnCtx(e);return j(t,{code:y.invalid_type,expected:f.nan,received:t.parsedType}),C}return{status:"valid",value:e.data}}}Ue.create=e=>new Ue({typeName:Ge.ZodNaN,...U(e)});const qe=Symbol("zod_brand");class We extends q{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Be extends q{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),T(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new Be({in:e,out:t,typeName:Ge.ZodPipeline})}}class $e extends q{_parse(e){const t=this._def.innerType._parse(e),n=e=>(R(e)&&(e.value=Object.freeze(e.value)),e);return F(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function Ve(e,t={},n){return e?pe.create().superRefine(((i,r)=>{var a,s;if(!e(i)){const e="function"==typeof t?t(i):"string"==typeof t?{message:t}:t,o=null===(s=null!==(a=e.fatal)&&void 0!==a?a:n)||void 0===s||s,l="string"==typeof e?{message:e}:e;r.addIssue({code:"custom",...l,fatal:o})}})):pe.create()}$e.create=(e,t)=>new $e({innerType:e,typeName:Ge.ZodReadonly,...U(t)});const ze={object:ye.lazycreate};var Ge;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(Ge||(Ge={}));const Je=ie.create,Ke=ae.create,He=Ue.create,Qe=se.create,Ye=oe.create,Xe=le.create,et=ce.create,tt=ue.create,nt=de.create,it=pe.create,rt=me.create,at=ge.create,st=he.create,ot=fe.create,lt=ye.create,ct=ye.strictCreate,ut=ve.create,dt=ke.create,pt=Se.create,mt=je.create,gt=xe.create,ht=Ce.create,ft=Te.create,bt=Ae.create,yt=Oe.create,vt=Le.create,wt=Fe.create,kt=Ee.create,_t=Pe.create,St=Ie.create,jt=Me.create,xt=De.create,Ct=Ie.createWithPreprocess,Tt=Be.create,At={string:e=>ie.create({...e,coerce:!0}),number:e=>ae.create({...e,coerce:!0}),boolean:e=>oe.create({...e,coerce:!0}),bigint:e=>se.create({...e,coerce:!0}),date:e=>le.create({...e,coerce:!0})},Ot=C;var Lt=Object.freeze({__proto__:null,defaultErrorMap:w,setErrorMap:function(e){k=e},getErrorMap:_,makeIssue:S,EMPTY_PATH:[],addIssueToContext:j,ParseStatus:x,INVALID:C,DIRTY:T,OK:A,isAborted:O,isDirty:L,isValid:R,isAsync:F,get util(){return g},get objectUtil(){return h},ZodParsedType:f,getParsedType:b,ZodType:q,datetimeRegex:ne,ZodString:ie,ZodNumber:ae,ZodBigInt:se,ZodBoolean:oe,ZodDate:le,ZodSymbol:ce,ZodUndefined:ue,ZodNull:de,ZodAny:pe,ZodUnknown:me,ZodNever:ge,ZodVoid:he,ZodArray:fe,ZodObject:ye,ZodUnion:ve,ZodDiscriminatedUnion:ke,ZodIntersection:Se,ZodTuple:je,ZodRecord:xe,ZodMap:Ce,ZodSet:Te,ZodFunction:Ae,ZodLazy:Oe,ZodLiteral:Le,ZodEnum:Fe,ZodNativeEnum:Ee,ZodPromise:Pe,ZodEffects:Ie,ZodTransformer:Ie,ZodOptional:Me,ZodNullable:De,ZodDefault:Ne,ZodCatch:Ze,ZodNaN:Ue,BRAND:qe,ZodBranded:We,ZodPipeline:Be,ZodReadonly:$e,custom:Ve,Schema:q,ZodSchema:q,late:ze,get ZodFirstPartyTypeKind(){return Ge},coerce:At,any:it,array:ot,bigint:Qe,boolean:Ye,date:Xe,discriminatedUnion:dt,effect:St,enum:wt,function:bt,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Ve((t=>t instanceof e),t),intersection:pt,lazy:yt,literal:vt,map:ht,nan:He,nativeEnum:kt,never:at,null:nt,nullable:xt,number:Ke,object:lt,oboolean:()=>Ye().optional(),onumber:()=>Ke().optional(),optional:jt,ostring:()=>Je().optional(),pipeline:Tt,preprocess:Ct,promise:_t,record:gt,set:ft,strictObject:ct,string:Je,symbol:et,transformer:St,tuple:mt,undefined:tt,union:ut,unknown:rt,void:st,NEVER:Ot,ZodIssueCode:y,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:v});const Rt=Lt.object({type:Lt.string(),recordId:Lt.union([Lt.string().regex(new RegExp("[0-9]+")),Lt.number()])}),Ft=(e,t)=>(t?Rt.passthrough():Rt).safeParse(e).success,Et=Lt.object({uri:Lt.string().regex(new RegExp("[a-zA-Z]+/[0-9]+"))}),Pt=(e,t)=>(t?Et.passthrough():Et).safeParse(e).success;function It(e){if(Pt(e,!0))return e.uri;if(Ft(e,!0))return`${e.type}/${e.recordId}`;throw new Error("Invalid uri or typeId "+("uri"in e?e.uri:"type"in e&&"recordId"in e?e.type+"/"+e.recordId:"undefined"))}function Mt(e){return p(d(e.from,"/"),"/")||""}function Dt(e){return e.timestamp?`?_=${e.timestamp}`:""}function Nt(e){const t=[];return"timestamp"in e&&e.timestamp&&t.push(`_=${e.timestamp}`),"iconColor"in e&&e.iconColor&&t.push(`color=${e.iconColor}`),t.length?"?"+t.join("&"):""}function Zt(e,t=2){return"size"in e&&e.size?e.size:"width"in e&&e.width&&"height"in e&&e.height?`${e.width*t}x${e.height*t}`:""}function Ut(e){return e.format||"png"}function qt(e){try{return new URL(e)}catch(e){}try{return new URL(window.location.origin+"/"+p(e,"/"))}catch(e){}}function Wt(e,t=2){var n;if("url"in e&&e.url){const t=qt(e.url);if(t)return"timestamp"in e&&e.timestamp&&!t.searchParams.has("_")&&t.searchParams.append("_",e.timestamp.toString()),t.toString()}const i=0===(null===(n=e.uri)||void 0===n?void 0:n.indexOf("icons/"))?e.uri:"icons"===e.type?e.type+"/"+e.recordId:It(e);return`/${Mt(e)}${Zt(e,t)}/`+i+`.${Ut(e)}${Nt(e)}`}Rt.partial().or(Et.partial());const Bt=["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pdf","application/zip","application/illustrator","application/postscript","application/vnd.ms-opentype","application/x-font-ttf","application/octet-stream","audio/mp3","audio/mpeg","font/ttf","font/otf","image/jpeg","image/jpg","image/png","image/gif","image/vnd.adobe.photoshop","image/svg+xml","text/plain","text/csv","video/mp4","video/webm"],$t=["docx","xlsx","csv","pptx","pdf","zip","ai","mp3","mpeg","ttf","otf","jpg","jpeg","png","gif","psd","svg","txt","mp4","odt","webm"],Vt={"application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/vnd.oasis.opendocument.text":"odt","application/pdf":"pdf","application/zip":"zip","application/x-zip-compressed":"zip","application/illustrator":"ai","application/postscript":"ai","audio/mp3":"mp3","audio/mpeg":"mpeg","font/ttf":"ttf","font/otf":"otf","image/jpeg":"jpeg","image/jpg":"jpg","image/png":"png","image/gif":"gif","application/x-font-ttf":"ttf","application/vnd.ms-opentype":"otf","image/vnd.adobe.photoshop":"psd","image/svg+xml":"svg","text/plain":"txt","text/csv":"xlsx","video/mp4":"mp4","video/webm":"mp4"},zt=e=>Object.keys(Vt).find((t=>Vt[t]===e)),Gt=e=>{var t;return null!==(t=Vt[e])&&void 0!==t?t:void 0};function Jt(e){const t=String(e).split(".").pop();return $t.find((e=>e===t))}const Kt=e=>{var t;const n=Jt(e);return null!==(t=zt(n))&&void 0!==t?t:"application/octet-stream"},Ht=e=>e?(new Date(e).getTime()/1e3).toFixed(0):void 0,Qt=(e,t="fitx80")=>{const n=rn(e),i=Ht(e.dateModified);switch(n){default:return;case"video":return`/media/${e.id}.mp4?stream=true`+(i?`&_=${i}`:"");case"audio":return`/media/${e.id}.mp3`+(i?`?_=${i}`:"");case"gif":return Wt({timestamp:i,size:t,from:"imagecache",uri:e.uri,format:"gif"});case"image":return Wt({timestamp:i,size:t,from:"imagecache",uri:e.uri})}},Yt=e=>{const t=Jt(e);return void 0!==t?en(zt(t)):"application"},Xt=e=>-1!==["image/vnd","image/svg","image/heic"].findIndex((t=>e.startsWith(t)));function en(e){return e&&e.startsWith("folder/")?"folder":null==e||Xt(e)?"application":e.startsWith("image/gif")?"gif":e.startsWith("image/")?"image":e.startsWith("video/")?"video":e.startsWith("audio/")?"audio":e.startsWith("font/")||e.startsWith("application/x-font-ttf")||e.startsWith("application/vnd.ms-opentype")?"font":e.startsWith("text/")?"text":"application"}const tn=(e,t,n="rr")=>"ng"===n?`/ng/file/${e}/${t}`:`/ng/rr/file/${e}/${t}`,nn=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?Kt(e.title):e.mimetype,rn=e=>void 0===e.mimetype||"application/octet-stream"===e.mimetype?Yt(e.title):en(e.mimetype);function an(e){return e.startsWith("tag_")||"tags"===e}function sn(e){return Object.fromEntries(Object.entries(e).filter((([e])=>an(e))))}function on(e,t,n){return Object.fromEntries(Object.entries(e).filter((([e])=>an(e))).map((([e,i])=>{const r=Array.isArray(i)?i.map((e=>"object"==typeof e&&e&&t in e?e[t]:e)):i;return[e,n&&Array.isArray(r)?n(r):r]})))}function ln(e){return on(e,"uri")}const cn=e=>{var t;let n={};"_errors"in e&&(n._errors=e._errors),"_options"in e&&(n._options=e._options),"title"in e&&(n.title=e.title),"description"in e&&(n.description=e.description),"activity"in e&&(n.activity=e.activity),"image"in e&&(n.image=e.image),"uri"in e&&(n.uri=e.uri),"type"in e&&(n.type=e.type),"edito"in e&&(n.edito=e.edito),"category"in e&&(n.category=e.category.toString()),"commentLevel"in e&&(n.commentLevel=e.commentLevel),"_options"in e&&(null===(t=e._options)||void 0===t?void 0:t.custom_widgets)&&(n.custom_widgets=Array.isArray(e._options.custom_widgets)?{}:e._options.custom_widgets),"displayType"in e&&(n.displayType=e.displayType),"language"in e&&(n.language=e.language),"edit_access"in e&&(n.edit_access=e.edit_access),"lock_mail"in e&&(n.lock_mail=e.lock_mail),"fileSyncEnabled"in e&&(n.fileSyncEnabled=e.fileSyncEnabled),"fileSyncVersioningType"in e&&(n.fileSyncVersioningType=e.fileSyncVersioningType),"fileBankQuota"in e&&(n.fileBankQuota=e.fileBankQuota),"idCommunity"in e&&(n.idCommunity=e.idCommunity),"lastRssExecution"in e&&(n.lastRssExecution=e.lastRssExecution),"mail_comment"in e&&(n.mail_comment=e.mail_comment),"mail_frequency"in e&&(n.mail_frequency=e.mail_frequency),"mail_spotit"in e&&(n.mail_spotit=e.mail_spotit),"mail_subscriber"in e&&(n.mail_subscriber=e.mail_subscriber),"notifyFolder"in e&&(n.notifyFolder=e.notifyFolder),"nounsubscribe"in e&&(n.nounsubscribe=e.nounsubscribe),"privacy"in e&&(n.privacy=e.privacy),"publishFolder"in e&&(n.publishFolder=e.publishFolder),"rss_access"in e&&(n.rss_access=e.rss_access),"rss_feed"in e&&(n.rss_feed=e.rss_feed&&Array.isArray(e.rss_feed)?JSON.stringify(e.rss_feed.map((e=>{var{_user:t}=e,n=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["_user"]);return Object.assign(Object.assign({},n),{idUser:null==t?void 0:t.id})}))):"[]"),"rss_key"in e&&(n.rss_key=e.rss_key),"spot_right_user"in e&&(n.spot_right_user=e.spot_right_user),"spotBanner"in e&&(n.spotBanner=e.spotBanner),"spotDefaultPublishType"in e&&(n.spotDefaultPublishType=e.spotDefaultPublishType),"user_level_signup"in e&&(n.user_level_signup=e.user_level_signup),"useTeaser"in e&&(n.useTeaser=e.useTeaser),"widgets"in e&&(n.widgets=e.widgets);const i=sn(e);if(n=Object.assign(Object.assign({},n),i),un(e,n))return n;throw new Error},un=(e,t)=>{const n=["id","mainType","dateCreation","dateModified","_url","o2apLinksSources"],i=["custom_widgets"],r=Object.keys(e),a=Object.keys(t),s=r.filter((e=>!a.includes(e)&&!n.includes(e))),o=a.filter((e=>!r.includes(e)&&!i.includes(e))),l=[...s.map((e=>"- "+e)),...o.map((e=>"+ "+e))];if(s.length>0||o.length>0)throw new Error(`prepareGroupForUpdate :: Wrong group mapping | Diff : ${JSON.stringify(l)}`);return!0};var dn=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class pn{constructor(e,t="api-front"){this.window=e,this.action=t}static _formatPostOptions(e){const t=e?{body:JSON.stringify(e)}:void 0;return Object.assign({method:"POST",credentials:"same-origin"},t)}getUrl(e,t){return dn(this,void 0,void 0,(function*(){const n=yield this.window.getBackendUrl();let i;try{i=new URL(`/${this.action}/${e}/${t}`,n).href}catch(r){i=`${n}/${this.action}/${e}/${t}`}return i}))}getHostname(){return dn(this,void 0,void 0,(function*(){const e=(yield this.window.getBackendUrl()).split("//");return e.length>1?e[1]:e[0]}))}fetch(e,t){var{o:n,f:i}=e,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["o","f"]);return dn(this,void 0,void 0,(function*(){void 0===t&&(t=null);const e=yield this.getUrl(n,i);return this.window.fetch(e,Object.assign(Object.assign({},pn._formatPostOptions(r)),{signal:t}))}))}post(e,t){return this.fetch(e,t).then((e=>e.json())).then((e=>{if(0===e.error)return e;throw{error:e.error,errorMsg:e.errorMsg,messages:e.messages}})).catch((e=>{if(t&&t.aborted)throw{error:-1,aborted:!0};throw e}))}postFile(e){return dn(this,void 0,void 0,(function*(){const t=yield this.getUrl("file","create");if(e.append("format","raw-little"),!e.has("token")){const{result:t}=yield this.token();e.append("token",t)}const n=e.get("token");return n&&"string"==typeof n?this.window.fetch(t,{method:"POST",credentials:"same-origin",body:e}).then((e=>e.json())).then((e=>({response:e,token:n}))):Promise.reject("Missing token")}))}postCSRF(e){return this.tokenCSRF().then((t=>this.post(Object.assign(e,{tokenCSRF:t.result}))))}postToken(e){return this.token().then((t=>this.post(Object.assign(e,{token:t.result}))))}maybePostToken(e){return"token"in e&&e.token?this.post(e):this.postToken(e)}token(e){return this.post({o:"misc",f:"token"},e)}tokenCSRF(){return this.post({o:"misc",f:"tokenCSRF"})}}const mn=Array.isArray,gn=Object.keys,hn=Object.prototype.hasOwnProperty;function fn(e,t,n){const i=null==n?void 0:n.map((e=>e.split(".")));if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const r=mn(e),a=mn(t);let s,o,l;if(r&&a){if(o=e.length,o!==t.length)return!1;for(s=o;0!=s--;)if(!fn(e[s],t[s],n))return!1;return!0}if(r!==a)return!1;const c=e instanceof Date,u=t instanceof Date;if(c!==u)return!1;if(c&&u)return e.getTime()===t.getTime();const d=e instanceof RegExp,p=t instanceof RegExp;if(d!==p)return!1;if(d&&p)return e.toString()===t.toString();const m=gn(e).filter((e=>!(null==i?void 0:i.some((t=>1===t.length&&t[0]===e)))));if(o=m.length,o!==gn(t).filter((e=>!(null==i?void 0:i.some((t=>1===t.length&&t[0]===e))))).length)return!1;for(s=o;0!=s--;)if(!hn.call(t,m[s]))return!1;for(s=o;0!=s--;)if(l=m[s],!("_owner"===l&&e.$$typeof||fn(e[l],t[l],null==i?void 0:i.filter((e=>e.length>1&&e[0]===l)).map((e=>e.splice(1).join("."))))))return!1;return!0}return e!=e&&t!=t}function bn(e,t){if(Array.isArray(e))return e.map((e=>bn(e,t)));if("object"==typeof e&&null!==e){let n={};return Object.keys(e).forEach((i=>{n=Object.assign(Object.assign({},n),{[i]:i&&t.includes(i)?typeof e[i]:bn(e[i],t)})})),n}return e}const yn=(e,t)=>Array.isArray(t)&&t.length?[e,...t].join(","):e,vn=Lt.object({href:Lt.string(),target:Lt.string()}),wn=Lt.object({name:Lt.string(),sort:Lt.union([Lt.literal("ASC"),Lt.literal("DESC")])}),kn=Lt.union([Lt.boolean(),Lt.string(),Lt.number(),Lt.array(Lt.string()),Lt.object({srcId:Lt.union([Lt.number(),Lt.string()]),srcType:Lt.string()}),Lt.object({targetId:Lt.union([Lt.number(),Lt.string()]),targetType:Lt.string()}),Lt.object({start:Lt.string(),end:Lt.string()})]),_n=Lt.union([Lt.literal("<"),Lt.literal(">"),Lt.literal("<="),Lt.literal(">="),Lt.literal("!="),Lt.literal("<>"),Lt.literal("like"),Lt.literal("between"),Lt.literal("is"),Lt.literal("is not"),Lt.literal("in"),Lt.literal("link"),Lt.literal("match"),Lt.literal("equal")]),Sn=Lt.union([Lt.literal("<"),Lt.literal(">"),Lt.literal("<="),Lt.literal(">="),Lt.literal("!="),Lt.literal("<>"),Lt.literal("+"),Lt.literal("-"),Lt.literal("like"),Lt.literal("between"),Lt.literal("is"),Lt.literal("is not"),Lt.literal("in"),Lt.literal("link"),Lt.literal("match"),Lt.literal("equal")]),jn=Lt.object({name:Lt.string(),value:kn,operator:_n.optional(),method:Sn.optional(),or:Lt.boolean().optional(),isNull:Lt.boolean().optional(),isNotNull:Lt.boolean().optional()}),xn=wn.array(),Cn=Lt.array(jn),Tn=e=>e.and(Lt.object({token:Lt.string().or(Lt.undefined()).optional()}));var An;!function(e){e.LITTLE="raw-little",e.LIST="raw-list",e.VIEW="raw-view",e.USER_API="user-api",e.MOBILE="mobile"}(An||(An={}));const On=Lt.nativeEnum(An).transform((e=>`${e}`)),Ln=Lt.union([On,Lt.undefined()]),Rn=Lt.array(Lt.union([Lt.literal("bookmark"),Lt.literal("contact"),Lt.literal("licenses"),Lt.literal("quizFieldDefinitions"),Lt.literal("quizResponseRecord"),Lt.literal("search"),Lt.literal("socialEventRecord"),Lt.literal("surveyDateRecord")])),Fn=Lt.object({additionalFilter:Lt.object({}).optional(),facets:Lt.array(Lt.object({})).optional(),filters:Cn.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:xn.optional(),format:Ln.optional()}),En=e=>Lt.object(e),Pn=En({id:Lt.number(),mainType:Lt.string(),type:Lt.string(),uri:Lt.string(),dateCreation:Lt.string().optional(),dateModified:Lt.string().nullable().optional()}),In=Pn.extend({title:Lt.string(),_url:Lt.string()}),Mn=e=>In.safeParse(e).success,Dn=Lt.object({type:Lt.literal("text")}),Nn=Lt.string(),Zn=Lt.object({type:Lt.literal("textarea"),params:Lt.object({class:Lt.literal("mceEditor"),mention:Lt.literal("1")}).optional()}),Un=Lt.string().nullable(),qn=Lt.object({type:Lt.literal("number")}),Wn=Lt.number(),Bn=Lt.object({type:Lt.literal("color"),options:Lt.object({colors:Lt.string(),defaultColor:Lt.string()})}),$n=Lt.object({type:Lt.literal("date"),format:Lt.string()}),Vn=Lt.string().nullable(),zn=Lt.object({type:Lt.literal("datetime")}),Gn=Lt.string().nullable(),Jn=Lt.object({type:Lt.literal("datePicker")}),Kn=Lt.string().nullable(),Hn=Lt.number(),Qn=Lt.object({type:Lt.literal("audience"),options:Lt.object({disableEveryoneAudience:Lt.boolean().optional()}).optional()}),Yn=Lt.object({type:Lt.literal("link")}),Xn=Lt.object({type:Lt.literal("multiattribute")}),ei=Lt.object({type:Lt.literal("file")}),ti=Lt.object({type:Lt.literal("select"),options:Lt.record(Lt.string()),params:Lt.object({data:Lt.string().optional(),defaultValue:Lt.string().optional(),explain:Lt.literal(1).optional()}).optional()}),ni=Lt.object({type:Lt.literal("embed")}),ii=Lt.object({type:Lt.literal("email")}),ri=Lt.string(),ai=Lt.object({type:Lt.literal("url"),params:Lt.object({target:Lt.literal("_blank").optional()})}),si=Lt.string(),oi=Lt.object({type:Lt.literal("place"),options:Lt.record(Lt.string())}),li=Lt.object({type:Lt.literal("refUser")}),ci=Lt.object({type:Lt.literal("transient")}),ui=Lt.object({type:Lt.literal("radio"),options:Lt.record(Lt.string())}),di=Lt.object({type:Lt.literal("checkbox"),options:Lt.record(Lt.string())}),pi=Lt.object({type:Lt.literal("taxonomy"),params:Lt.object({idTaxonomy:Lt.string(),type:Lt.string().optional(),limit:Lt.number().optional()})}),mi=Lt.object({type:Lt.literal("tel")}),gi=Lt.object({type:Lt.literal("toggle")}),hi=Lt.object({type:Lt.literal("orientedlinks"),params:Lt.object({"jcomplete-multiple":Lt.union([Lt.literal("0"),Lt.literal("1")]),showAdd:Lt.union([Lt.literal("0"),Lt.literal("1")]),supportedTypes:Lt.array(Lt.string())})}),fi=Lt.object({type:Lt.literal("uri"),params:Lt.object({class:Lt.string(),"jcomplete-url":Lt.string(),type:Lt.string()})}),bi=Lt.union([Dn,Zn,qn,$n,zn,Jn,ti,ni,ii,ai,li,ui,di,hi,pi,fi,ci,Xn,mi,gi,oi,Bn,Yn,ei,Qn]),yi=Lt.union([Hn,Kn,Gn,Vn,ri,Wn,Un,Nn,si]),vi={ADMIN:9,USER:5,EXTERNAL:3,GUEST:0},wi=Pn.extend({title:Lt.string(),_url:Lt.string(),level:Lt.nativeEnum(vi),dateCreation:Lt.string(),dateModified:Lt.string()}).catchall(yi),ki=wi.extend({active:Lt.number()}),_i=e=>ki.safeParse(e).success,Si=ki,ji=e=>Si.safeParse(e).success,xi=Lt.object({idInType:Lt.number(),lat:Lt.number(),lng:Lt.number()}),Ci=e=>xi.safeParse(e).success,Ti=Lt.object({title:Lt.string(),firstname:Lt.string(),lastname:Lt.string(),mail:Lt.union([Lt.string(),Lt.undefined()]).optional(),description:Lt.string().optional(),dateOfBirth:Lt.string().optional(),phoneNumber:Lt.string().optional(),language:Lt.string().optional(),timeZone:Lt.string().optional(),mobileNumber:Lt.string().optional(),company:Lt.string().optional(),country:Lt.string().optional(),department:Lt.string().optional(),function:Lt.string().optional(),webSite:Lt.string().optional(),image:Lt.union([Lt.string(),Lt.undefined()]).optional(),userBanner:Lt.union([Lt.string(),Lt.undefined()]).optional(),field1:Lt.string().optional(),field2:Lt.string().optional(),field3:Lt.string().optional(),field4:Lt.string().optional(),field5:Lt.string().optional()}),Ai=Ti.required().extend({level:Lt.string(),image:Lt.string().optional(),businessManagementManager:wi.array().optional(),businessNetworkingUserToCompanySrc:wi.array().optional()}),Oi=Lt.object({user_field_edit_profil:Lt.record(Ti.keyof(),Lt.number()),user_field_editable:Lt.record(Ti.keyof(),Lt.number()),user_field_my_page:Lt.record(Ti.keyof(),Lt.number()),user_page_mandatory_fields:Lt.object({firstname:Lt.enum(["0","1"]),lastname:Lt.enum(["0","1"]),pseudo:Lt.enum(["0","1"])})}),Li=Lt.object({name:Lt.string(),value:Lt.union([Lt.string(),Lt.record(Lt.string(),Lt.any())])}),Ri=Lt.enum(["popover"]),Fi=Lt.object({values:Ai,mobileEditableFields:Ai.keyof().array()}),Ei=Lt.object({mail:Lt.union([Lt.string(),Lt.undefined()]),title:Lt.string(),firstname:Lt.string(),lastname:Lt.string(),phoneNumber:Lt.union([Lt.string(),Lt.undefined()]).optional(),company:Lt.union([Lt.string(),Lt.undefined()]).optional(),function:Lt.union([Lt.string(),Lt.undefined()]).optional(),uri:Lt.union([Lt.string(),Lt.undefined()]).optional(),field1:Lt.union([Lt.string(),Lt.undefined()]).optional(),field2:Lt.union([Lt.string(),Lt.undefined()]).optional(),field3:Lt.union([Lt.string(),Lt.undefined()]).optional(),field4:Lt.union([Lt.string(),Lt.undefined()]).optional(),field5:Lt.union([Lt.string(),Lt.undefined()]).optional()}),Pi=Lt.object({userDirectoryShow:Lt.union([Lt.literal(""),Lt.literal("1")]),contactDirectoryShow:Lt.union([Lt.literal("0"),Lt.literal("1")]),businessContactShow:Lt.boolean(),menu:Lt.union([Lt.literal("0"),Lt.literal("1")]),cardFields:Lt.string().array(),tableFields:Lt.string().array(),viewFields:Lt.string().array(),userGeoloc:Lt.boolean().optional(),sort:Lt.string(),cnt:Lt.number().optional(),filters:Lt.object({name:Lt.string(),type:Lt.string()}).array()}),Ii=e=>Pi.safeParse(e).success,Mi=En({create:Lt.boolean(),read:Lt.boolean(),publish:Lt.boolean(),administrate:Lt.boolean(),update:Lt.boolean(),delete:Lt.boolean(),comment:Lt.boolean(),member:Lt.boolean()}),Di=e=>Mi.safeParse(e).success,Ni=Lt.object({attrName:Lt.string(),token:Lt.string(),file:Lt.instanceof(File).nullable().optional(),url:Lt.string().optional()}),Zi=Lt.object({width:Lt.number(),height:Lt.number()}),Ui=Lt.object({x:Lt.number(),y:Lt.number(),w:Lt.number(),h:Lt.number(),rotation:Lt.number(),killSize:Lt.boolean().optional()}),qi=In.extend({dateCreation:Lt.string(),dateModified:Lt.string().nullable(),mimetype:Lt.string(),path:Lt.string().optional(),size:Lt.number()}),Wi=e=>qi.parse(e),Bi=qi.extend({_extend:Lt.object({crop:Ui})}),$i=Lt.object({name:Lt.string(),filename:Lt.string(),dateModified:Lt.string(),mimetype:Lt.string()}),Vi=Lt.object({idUser:Lt.string(),dateDownload:Lt.string(),Pseudo:Lt.string(),type:Lt.string()});var zi;Lt.object({id:Lt.number(),token:Lt.string().optional(),attrName:Lt.string()}),function(e){e.ArticleButton="widget-article-button",e.ArticleGallery="widget-article-gallery",e.ArticleTitle="widget-article-title",e.ArticleText="widget-article-text",e.ArticleImage="widget-article-image",e.ArticleAttachment="widget-article-attachment",e.ArticleSlider="widget-article-slider",e.CheckList="widget-check-list",e.DatasourceTable="widget-datasource-table",e.ExcelDatasourceTable="widget-excel-datasource-table",e.Presence="widget-presence"}(zi||(zi={}));const Gi=Lt.nativeEnum(zi),Ji=Lt.object({title:Lt.string(),widget:Lt.object({name:Gi,uniqid:Lt.string(),content:Lt.unknown()})}).catchall(Lt.unknown()),Ki=Lt.enum(["left","right","center","justify"]),Hi=Lt.enum(["top","bottom","center","left","right"]),Qi=Lt.enum(["auto","contain","cover"]),Yi=Lt.enum(["sm","md","lg"]),Xi=Lt.enum(["contained","outlined"]),er=Lt.enum(["link","anchor","popup"]),tr=Lt.object({x:Lt.number(),y:Lt.number()}),nr=Lt.enum(["default","vertical"]),ir=(e,t)=>t.safeParse(e).success,rr=(e,t)=>t.safeParse(e).success,ar=Lt.object({url:Lt.string(),target:Lt.string()}),sr=Lt.object({uniqid:Lt.string()}),or=Lt.object({title:Lt.string(),widgets:Ji.array()}),lr=En({text:Lt.string().optional(),color:Lt.string().optional(),backgroundColor:Lt.string().optional(),borderRadius:Lt.string().optional(),fontSize:Lt.string().optional(),buttonSize:Yi.optional(),variant:Xi.optional(),url:Lt.string().optional(),target:Lt.string().optional()}),cr=lr.extend({openingType:er.optional(),openingTypeLink:ar.optional(),openingTypeAnchor:sr.optional(),openingTypePopup:or.optional()}),ur=En({name:Lt.literal(zi.ArticleButton),uniqid:Lt.string(),content:cr}),dr=En({gap:Lt.string().optional(),column:Lt.string().optional(),files:qi.array().optional()}),pr=En({name:Lt.literal(zi.ArticleGallery),uniqid:Lt.string(),content:dr}),mr=En({text:Lt.string().optional(),textAlign:Ki.optional(),heading:Lt.string().optional(),color:Lt.string().optional(),backgroundColor:Lt.string().optional()}),gr=En({name:Lt.literal(zi.ArticleTitle),uniqid:Lt.string(),content:mr}),hr=En({text:Lt.string().optional(),color:Lt.string().optional(),fontSize:Lt.string().optional(),lineHeight:Lt.string().optional(),linkColor:Lt.string().optional()}),fr=En({name:Lt.literal(zi.ArticleText),uniqid:Lt.string(),content:hr}),br=En({file:qi.optional(),useFilter:Lt.boolean().optional()}),yr=En({name:Lt.literal(zi.ArticleImage),uniqid:Lt.string(),content:br}),vr=En({files:qi.array().optional(),fileDisplay:Lt.enum(["list","gallery"]).optional()}),wr=En({name:Lt.literal(zi.ArticleAttachment),uniqid:Lt.string(),content:vr}),kr=En({title:Lt.string(),text:Lt.string(),titleHeading:Lt.enum(["h1","h2","h3","h4","h5","h6","p","span"]).optional(),textColor:Lt.string().optional(),opacityFilter:Lt.number().optional(),opacityColor:Lt.string().optional(),file:qi.optional()}),_r=En({slides:kr.array().optional(),maxWidth:Lt.number().optional(),loop:Lt.boolean().optional(),useDots:Lt.boolean().optional(),startAt:Lt.number().optional()}),Sr=En({name:Lt.literal(zi.ArticleSlider),uniqid:Lt.string(),content:_r}),jr=En({title:Lt.string(),value:Lt.boolean().optional(),links:vn.array().optional(),id:Lt.number().optional(),user:Lt.object({id:Lt.number(),type:Lt.literal("user"),mainType:Lt.literal("user")}).optional()}),xr=Lt.object({arr:jr.array().optional(),css:Lt.record(Lt.string(),Lt.string()).optional(),widgets:Ji.array().optional(),edit:Lt.boolean().optional()}),Cr=En({name:Lt.literal(zi.CheckList),uniqid:Lt.string(),content:xr}),Tr=Lt.enum(["date","date-time","date-time-sec","time","time-sec"]),Ar=Lt.enum(["fr-FR","en-EN","filesize"]),Or=Lt.object({}),Lr=Lt.object({type:Lt.literal("text")}),Rr=Lt.object({label:Lt.string(),value:Lt.string()}),Fr=Lt.object({type:Lt.literal("select"),options:Rr.array()}),Er=Lt.object({type:Lt.literal("date")}),Pr=Lt.union([Lr,Fr,Er,Or]),Ir=Lt.object({name:Lt.string().optional(),isVisible:Lt.boolean().optional(),textEllipsis:Lt.boolean().optional(),label:Lt.string().optional(),dateFormat:Tr.optional(),numberFormat:Ar.optional()}),Mr=Ir.array(),Dr=Lt.enum(["text","uri","file","select","url","transient","date","datetime","email","number","title"]),Nr=Lt.object({name:Lt.string(),label:Lt.string(),sortable:Lt.boolean().optional(),type:Dr,widget:Pr}),Zr=Lt.object({limit:Lt.number().or(Lt.boolean()).optional(),tableColumnsData:Ir.array().optional(),tableHeadColor:Lt.string().optional(),tableHeadTextColor:Lt.string().optional(),tableHeadIconColor:Lt.string().optional(),tableRowColor:Lt.string().optional(),tableRowTextColor:Lt.string().optional(),tableBorderRadius:Lt.number().optional(),tableSizedColumns:Lt.boolean().optional(),tableSizedColumnsWidth:Lt.number().optional()}),Ur=Zr.extend({uri:Lt.string().optional()}),qr=En({name:Lt.literal(zi.DatasourceTable),uniqid:Lt.string(),content:Ur}),Wr=Ur.extend({uri:Lt.string().optional()}),Br=Lt.object({name:Lt.literal(zi.ExcelDatasourceTable),uniqid:Lt.string(),content:Wr}),$r=Lt.object({limit:Lt.boolean().or(Lt.number()).optional(),limitValue:Lt.number().optional(),closing:Lt.boolean().optional(),isClosed:Lt.boolean().optional()}),Vr=e=>rr(e,$r),zr=En({name:Lt.literal(zi.Presence),uniqid:Lt.string(),content:$r}),Gr=e=>ir(e,zr),Jr=Lt.object({id:Lt.number(),type:Lt.string(),uniqid:Lt.string(),value:Lt.number()}),Kr=e=>ir(e,Jr),Hr=Lt.object({userValue:Lt.number(),userAvailableList:wi.array(),userUnavailableList:wi.array(),userAvailableTotal:Lt.number(),userUnavailableTotal:Lt.number()}),Qr=e=>ir(e,Hr),Yr=Lt.union([Lt.object({layers:Lt.string().array().optional()}).and(wr),Lt.object({layers:Lt.string().array().optional()}).and(ur),Lt.object({layers:Lt.string().array().optional()}).and(pr),Lt.object({layers:Lt.string().array().optional()}).and(yr),Lt.object({layers:Lt.string().array().optional()}).and(gr),Lt.object({layers:Lt.string().array().optional()}).and(fr),Lt.object({layers:Lt.string().array().optional()}).and(Sr),Lt.object({layers:Lt.string().array().optional()}).and(Cr),Lt.object({layers:Lt.string().array().optional()}).and(qr),Lt.object({layers:Lt.string().array().optional()}).and(Br),Lt.object({layers:Lt.string().array().optional()}).and(zr)]),Xr=En({title:Lt.string(),widget:Yr}),ea=Lt.object({widgets:Xr.array().optional()}).and(Lt.union([vr,cr,dr,br,hr,mr,_r,xr,Ur,Wr,$r])),ta=Lt.object({[zi.ArticleButton]:ur,[zi.ArticleGallery]:pr,[zi.ArticleTitle]:gr,[zi.ArticleText]:fr,[zi.ArticleImage]:yr,[zi.ArticleAttachment]:wr,[zi.ArticleSlider]:Sr,[zi.CheckList]:Cr,[zi.DatasourceTable]:qr,[zi.ExcelDatasourceTable]:Br,[zi.Presence]:zr}),na=Lt.object({[zi.ArticleButton]:cr,[zi.ArticleGallery]:dr,[zi.ArticleTitle]:mr,[zi.ArticleText]:hr,[zi.ArticleImage]:br,[zi.ArticleAttachment]:vr,[zi.ArticleSlider]:_r,[zi.CheckList]:xr,[zi.DatasourceTable]:Ur,[zi.ExcelDatasourceTable]:Wr,[zi.Presence]:$r}),ia=Lt.object({busy:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),loading:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),initialized:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),mounted:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),hover:Lt.union([Lt.boolean(),Lt.undefined()]).optional(),empty:Lt.boolean().optional(),locked:Lt.boolean().optional()}),ra=Lt.object({type:Lt.string(),title:Lt.string(),description:Lt.string(),privacy:Lt.union([Lt.string(),Lt.number()]),edito:Lt.string().nullable(),language:Lt.string(),category:Lt.string(),idCommunity:Lt.string().optional()}),aa=Lt.object({id:Lt.string(),name:Lt.string(),size:Lt.string()}),sa=Lt.union([Lt.literal(0),Lt.literal(1),Lt.literal(2),Lt.literal(3)]),oa=Lt.object({level:sa,user:wi}),la=Lt.object({RF_Constant_levelName:Lt.string(),RF_delete:Lt.boolean(),RF_editing:Lt.boolean(),RF_level:Lt.number(),RF_levelName:Lt.string(),RF_levelName_Trad:Lt.string(),RF_parameters:Lt.boolean(),RF_setAdmin:Lt.boolean(),RF_spotit:Lt.boolean(),RF_spotit_own:Lt.boolean()});var ca;!function(e){e[e.SPOT_MODERATE_IGNORE=0]="SPOT_MODERATE_IGNORE",e[e.SPOT_MODERATE_ACCEPT=1]="SPOT_MODERATE_ACCEPT",e[e.SPOT_MODERATE_PENDING=2]="SPOT_MODERATE_PENDING"}(ca||(ca={}));const ua=Lt.nativeEnum(ca),da=Lt.object({userLevelSpot:la,spotMinLevelToInvit:Lt.number(),userRights:Mi,accessRequestStatus:ua.optional()}),pa=Lt.object({value:Lt.union([Lt.string(),Lt.number()]),label:Lt.string()}),ma=Lt.object({id:Lt.string(),title:Lt.string()}),ga=Lt.object({idSpot:Lt.string(),idOrder:Lt.string(),idWidget:Lt.string(),type:Lt.string(),title:Lt.string(),url:Lt.string(),visible:Lt.string()}),ha=Lt.object({edit_access:Lt.array(pa.and(Lt.object({description:Lt.string()}))),commentLevel:Lt.array(pa.and(Lt.object({selected:Lt.boolean().optional()}))),displayType:Lt.array(pa),user_level_signup:Lt.array(pa.and(Lt.object({selected:Lt.boolean().optional()}))),spot_right_user:Lt.array(pa.and(Lt.object({selected:Lt.boolean().optional()}))),useTeaser:Lt.array(pa),spotDefaultPublishType:Lt.array(Lt.string()),mail_frequency:Lt.array(pa),widgets:Lt.array(ma),custom_widgets:Lt.record(ga).or(Lt.array(Lt.never())),isArchive:Lt.number(),fileSyncVersioningType:Lt.array(pa)}),fa=Lt.object({url:Lt.string(),idUser:Lt.number(),send:Lt.boolean().optional(),_user:wi.optional(),date:Lt.string().optional(),error:Lt.string().optional()}),ba=Lt.object({edit_access:Lt.union([Lt.literal(""),Lt.literal("author")]),commentLevel:Lt.union([Lt.literal("-1"),Lt.literal("1"),Lt.literal("2"),Lt.literal("3")]),user_level_signup:Lt.union([Lt.literal(""),Lt.literal("1"),Lt.literal("2"),Lt.literal("3")]),nounsubscribe:Lt.union([Lt.literal("0"),Lt.literal("1")]),useTeaser:Lt.union([Lt.literal(""),Lt.literal("0"),Lt.literal("1")]).nullable(),displayType:Lt.string(),spot_right_user:Lt.string(),rss_feed:Lt.array(fa).nullable(),spotDefaultPublishType:Lt.string(),mail_frequency:Lt.string(),mail_comment:Lt.union([Lt.literal("1"),Lt.literal("")]),mail_spotit:Lt.union([Lt.literal("1"),Lt.literal("")]),mail_subscriber:Lt.union([Lt.literal("1"),Lt.literal("")]),lock_mail:Lt.union([Lt.literal("1"),Lt.literal("")]),activity:Lt.union([Lt.literal("1"),Lt.literal("0")]),publishFolder:Lt.union([Lt.literal("1"),Lt.literal("0")]),notifyFolder:Lt.union([Lt.literal("1"),Lt.literal("0")]),widgets:Lt.array(Lt.string()),rss_access:Lt.union([Lt.literal("1"),Lt.literal("0")]),rss_key:Lt.string(),fileSyncEnabled:Lt.union([Lt.literal("1"),Lt.literal("0")]),fileBankQuota:Lt.string(),fileSyncVersioningType:Lt.union([Lt.literal("overwrite"),Lt.literal("author-change")]),_options:ha,_errors:Lt.tuple([]),lastRssExecution:Lt.record(Lt.string()).optional()}),ya=ra.and(ba.omit({rss_feed:!0}).partial()).and(Lt.object({uri:Lt.string(),image:Lt.string().nullable().optional(),spotBanner:Lt.record(aa).or(Lt.array(Lt.never())).optional(),token:Lt.string().optional(),uriCommunity:Lt.string().optional(),custom_widgets:Lt.record(ga).optional(),rss_feed:Lt.string()})),va=Lt.object({idWidget:Lt.string(),title:Lt.string(),url:Lt.string(),type:Lt.string(),icon:Lt.string(),description:Lt.string()}),wa=Lt.object({id:Lt.string(),idorder:Lt.number(),label:Lt.string()}),ka=In.extend({dateCreation:Lt.string(),dateModified:Lt.string(),category:Lt.number(),privacy:Lt.number()}),_a=ka.extend({description:Lt.string(),edito:Lt.string().nullable(),language:Lt.string()}),Sa=_a.extend({image:Lt.string().nullable().optional(),spotBanner:Lt.record(aa).or(Lt.array(Lt.never())).optional(),idCommunity:Lt.string().optional(),useTeaser:Lt.union([Lt.literal(""),Lt.literal("0"),Lt.literal("1")]).nullable().optional()}),ja=Lt.object({idSpot:Lt.union([Lt.string(),Lt.number()]),mailFrequency:Lt.union([Lt.string(),Lt.number()]),mailSpotit:Lt.boolean(),mailComment:Lt.boolean(),mailSubscriber:Lt.boolean()}),xa=Lt.object({type:Lt.string().optional(),format:Ln.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:xn.optional(),filters:Cn.or(Lt.undefined()).optional()}),Ca=e=>la.safeParse(e).success,Ta=In.extend({description:Lt.string().optional().nullable(),_user:wi,_right:Mi}),Aa=e=>Ta.safeParse(e).success,Oa=In.extend({type:Lt.enum(["folder","rootFolder"]),folderColor:Lt.string().optional()}),La=Lt.union([wi,ka,Oa]),Ra=In.extend({dateCreation:Lt.string(),dateModified:Lt.string()}),Fa=Ra.extend({description:Lt.string().nullable().optional(),_user:wi,_right:Mi,_audience:La.array(),image:Zi.optional(),articleWidgets:Xr.array().optional()}),Ea=Fa,Pa=Ea.extend({_attachedFiles:qi.array()}),Ia=Pa.extend({processContext:Lt.null(),uiObjectLink:In.array().optional()}),Ma=e=>Pa.extend({idDraft:Lt.number(),form:e}),Da=Lt.object({type:Lt.string().optional(),format:Ln.optional(),formatExtend:Rn.optional(),query:Lt.string().optional(),limit:Lt.number().optional(),page:Lt.number().optional(),orders:xn.optional(),filters:Cn.optional(),public:Lt.boolean().optional()}),Na=Lt.object({uri:Lt.string().optional(),idArticle:Lt.number().optional(),format:Ln.optional()}),Za=Lt.object({title:Lt.string().optional(),description:Lt.string().optional().nullable(),type:Lt.string().optional(),publishTo:Lt.string().optional(),idSpot:Lt.array(Lt.string()).optional()}),Ua=Lt.object({id:Lt.number(),type:Lt.string(),dateCreation:Lt.string(),dateModified:Lt.string(),title:Lt.string(),uri:Lt.string()}),qa=Lt.object({attachment:Lt.boolean().optional(),idArticle:Lt.number(),limits:Lt.object({max:Lt.number(),start:Lt.number()}).optional()}),Wa=Lt.object({token:Lt.string(),content:Lt.string(),idArticle:Lt.number(),sendAlert:Lt.boolean(),alertAuthor:Lt.boolean(),widgets:Xr.array().optional(),type:Lt.union([Lt.literal("comment"),Lt.literal("commentResponse")]).optional()}),Ba=Lt.object({token:Lt.string().optional(),description:Lt.string().optional(),idComment:Lt.number(),widgets:Xr.array().optional()}),$a=Lt.object({idUser:Lt.string(),dateRead:Lt.string(),Pseudo:Lt.string(),type:Lt.string()}),Va=Oa.merge(Ea).extend({_nbItems:Lt.number(),parentURI:Lt.string().optional()}),za=Ea.extend({place:Lt.string(),address:Lt.string(),dateStart:Lt.string(),dateEnd:Lt.string(),noGestion:Lt.boolean()}),Ga=Pa.and(za).and(Lt.object({allDay:Lt.null(),useQrcode:Lt.null(),textColor:Lt.string(),bgColor:Lt.string(),socialEventUseCeiling:Lt.null(),socialEventCeiling:Lt.null(),hideFromCalendar:Lt.null(),urlGestion:Lt.string().optional().nullable()})),Ja=e=>Ga.safeParse(e).success,Ka=Pn.extend({srcId:Lt.number(),srcType:Lt.string(),targetId:Lt.number(),targetType:Lt.string().nullable()}),Ha=e=>Ka.extend({value:Lt.string().nullable(),_src:e.optional(),_target:e.optional().or(Lt.undefined())}),Qa=e=>Ha(null!=e?e:In.or(wi)).extend({bookmarkUrl:Lt.string().optional().nullable(),bookmarkOrder:Lt.number().optional(),bookmarkLabel:Lt.string().optional(),bookmarkMeta:Lt.string().optional().nullable(),url:Lt.string().optional().nullable(),type:Lt.literal("bookmarkLink")}),Ya=e=>Lt.object({id:Lt.number(),mainType:Lt.string(),type:Lt.string(),uri:Lt.string(),_values:Lt.object({dateCreation:Lt.string(),dateModified:Lt.string()}).optional(),srcId:Lt.number(),srcType:Lt.string(),targetId:Lt.number(),targetType:Lt.string().nullable(),value:Lt.string().nullable(),_cssColor:Lt.string(),_cssClass:Lt.string(),_src:(null!=e?e:In).optional(),_target:(null!=e?e:In).optional(),bookmarkUrl:Lt.string().optional().nullable(),bookmarkOrder:Lt.string().optional(),bookmarkLabel:Lt.string().optional(),bookmarkMeta:Lt.string().optional().nullable(),url:Lt.string().optional().nullable()});var Xa;!function(e){e.RAW_LIST="raw-list",e.LIST="list"}(Xa||(Xa={}));const es=Lt.object({targetId:Lt.number(),targetType:Lt.string(),format:Lt.nativeEnum(Xa).transform((e=>`${e}`)).optional()}),ts=Lt.object({[Xa.RAW_LIST]:Qa(),[Xa.LIST]:Ya()}),ns=Lt.object({bookmarkLabel:Qa(In).shape.bookmarkLabel,bookmarkMeta:Qa(In).shape.bookmarkMeta,bookmarkUrl:Qa(In).shape.bookmarkUrl}),is=Lt.object({countActiveUsersWithoutLicense:Lt.number().optional(),countLicensesAssigned:Lt.number(),countLicensesNotAssigned:Lt.number()}),rs=Lt.object({name:Lt.string(),operator:Lt.string(),value:Lt.number()}),as=Lt.record(Lt.number()),ss=Lt.object({id:Lt.number(),kind:Lt.string(),dateCreation:Lt.string(),idFeature:Lt.number(),uri:Lt.string(),contentId:Lt.number(),contentType:Lt.string(),status:Lt.number()}),os=Lt.object({id:Lt.number(),kind:Lt.string(),dateCreation:Lt.string(),idFeature:Lt.number(),uri:Lt.string(),contentId:Lt.number(),contentType:Lt.string(),status:Lt.number()}),ls=ki.extend({_extend:Lt.object({licenses:Lt.array(os)})}),cs=Fn.extend({data:ls.array()}),us=Lt.object({uri:Lt.string(),title:Lt.string(),price:Lt.number(),image:Lt.string(),license:Lt.boolean()}),ds=Lt.object({url:Lt.string()}),ps=Lt.object({sref:Lt.string().optional(),href:Lt.string().optional(),idDiv:Lt.string(),label:Lt.string(),icon:Lt.string(),licenseMode:Lt.literal("classic").optional(),hook:Lt.string().optional()}),ms=Lt.object({name:Lt.string(),label:Lt.string(),icon:Lt.string(),color:Lt.tuple([Lt.string(),Lt.string(),Lt.string()]),state:Lt.string().optional(),access:Lt.boolean(),url:Lt.string().optional(),tabs:Lt.array(ps).optional()}),gs=Lt.array(ms),hs=Lt.union([Lt.literal("Halloween"),Lt.literal("Celebration"),Lt.literal("Olympics"),Lt.literal("Maythefourth"),Lt.literal("Spring"),Lt.literal("MusicFestival"),Lt.literal("EasterEggs"),Lt.literal("CustomAnimation")]),fs=Lt.object({name:hs,activeClickEffect:Lt.number(),activeDecor:Lt.number(),auto:Lt.boolean(),audience:Lt.array(Lt.string())}),bs=Lt.object({date:Lt.string(),number:Lt.number()}),ys=Lt.object({id:Lt.number(),mainType:Lt.string(),type:Lt.string(),uri:Lt.string(),dateCreation:Lt.string().nullable(),dateModified:Lt.string().nullable(),animationName:Lt.string(),dateStart:Lt.string(),dateEnd:Lt.string().nullable(),auto:Lt.boolean(),stats:Lt.array(bs),animAudience:Lt.array(Lt.string())}),vs=Lt.union([Lt.literal("created"),Lt.literal("validated"),Lt.literal("handled")]),ws=Pa.extend({aseiClearanceTicketValidator:wi.array(),aseiClearanceTicketHandler:In.array(),aseiClearanceTicketApplicationManagers:In.array(),aseiClearanceTicketInstitution:In.array(),processContext:Lt.null(),aseiClearanceTicketNatureOfDemand:Lt.string(),aseiClearanceTicketInternetAccess:Lt.string(),aseiClearanceTicketInternetAccessSpecify:Lt.string(),aseiClearanceTicketMicrosoftTeams:Lt.string().nullable(),aseiClearanceTicketVariousNetworks:Lt.string().nullable(),aseiClearanceTicketFreeText:Lt.string(),aseiClearanceTicketOfficeAccess:Lt.string().nullable(),aseiClearanceTicketSharedDirectoriesSpecify:Lt.string(),aseiClearanceTicketBlueKanGo:Lt.string().nullable(),aseiClearanceTicketAccounting:Lt.string(),aseiClearanceTicketAccountingBudget:Lt.string(),aseiClearanceTicketTransfers:Lt.string().nullable(),aseiClearanceTicketBilling:Lt.string(),aseiClearanceTicketPayroll:Lt.string(),aseiClearanceTicketPayrollBudget:Lt.string(),aseiClearanceTicketAccommodationCosts:Lt.string(),aseiClearanceTicketCommercialManagement:Lt.string(),aseiClearanceTicketInventoryManagement:Lt.string(),aseiClearanceTicketTimeManagement:Lt.string(),aseiClearanceTicketBdes:Lt.string(),aseiClearanceTicketMandateStart:Lt.string().nullable(),aseiClearanceTicketMandateEnd:Lt.string().nullable(),aseiClearanceTicketIndicatorsPlatform:Lt.string().nullable(),aseiClearanceTicketBudgetLetters:Lt.string(),aseiClearanceTicketComputerisedFile:Lt.string().nullable(),aseiClearanceTicketRecruiterAccess:Lt.string().nullable(),aseiClearanceTicketTypeOfWorkContractFrom:Lt.null(),aseiClearanceTicketTypeOfWorkContractTo:Lt.null(),aseiClearanceTicketLastName:Lt.string(),aseiClearanceTicketFirstName:Lt.string(),aseiClearanceTicketUser:wi.array(),aseiClearanceTicketTypeOfWorkContract:Lt.string(),aseiClearanceTicketTypeOfWorkContractSpecify:Lt.string(),aseiClearanceTicketPosition:Lt.string(),aseiClearanceTicketStatus:vs}),ks=Ra.extend({_right:Mi,_user:wi,aseiInstitutionValidator:In.array(),processContext:Lt.null()}),_s=Lt.object({dsi:Lt.string(),gestionnaireApplicatif:Lt.string(),createurDemande:Lt.string()}),Ss=Lt.object({accessWriter:Lt.boolean(),accessApp:Lt.boolean()}),js=Lt.object({description:Lt.string(),right:Lt.object({manage:Lt.boolean()}),daysOff:Lt.array(Lt.string()).optional(),weekEnd:Lt.union([Lt.literal("0"),Lt.literal("1")]),bookingOpeningTime:Lt.string(),bookingClosingTime:Lt.string(),lastBookingSchedule:Lt.string()}),xs=Ea.extend({_isColorDark:Lt.boolean().nullable(),assetPlannerBackgroundColor:Lt.string().nullable()}),Cs=xs.extend({assetBanner:Lt.record(Lt.object({id:Lt.string(),name:Lt.string(),size:Lt.string()}))}),Ts=Ea.extend({dateStart:Lt.string(),dateEnd:Lt.string(),reservationCancelled:Lt.boolean(),_asset:xs}),As=Lt.object({id:Lt.string(),uri:Lt.string(),shortUri:Lt.string(),title:Lt.string(),name:Lt.string(),mainType:Lt.string(),type:Lt.string(),label:Lt.string(),cssClass:Lt.string(),cssColor:Lt.string(),class:Lt.string()}),Os=As.extend({title:Lt.string()}),Ls=Os.extend({Pseudo:Lt.string()}),Rs=Os.extend({idspot:Lt.string()}),Fs=Lt.union([Os,Ls,Rs]),Es=In.extend({isTechnical:Lt.number(),status:Lt.number(),image:Lt.string(),isMember:Lt.boolean(),stats:Lt.object({moderators:Lt.number(),members:Lt.string()}),_members:Lt.array(In)}),Ps=Lt.object({token:Lt.string(),fullname:Lt.string()}),Is=Lt.object({redirectUrl:Lt.string()}),Ms=Lt.object({token:Lt.string()}),Ds=Lt.object({dateStart:Lt.string(),title:Lt.string()}),Ns=Ra.extend({type:Lt.literal("businessContactCard")}),Zs=Ea.and(Ns.and(Lt.object({mail:Lt.string().nullable(),pseudo:Lt.string().nullable(),firstName:Lt.string().nullable(),lastName:Lt.string().nullable(),phoneNumber:Lt.string().nullable(),company:Lt.string().nullable(),function:Lt.string().nullable(),champ1:Lt.string().nullable().optional(),champ2:Lt.string().nullable().optional(),champ3:Lt.string().nullable().optional(),champ4:Lt.string().nullable().optional(),champ5:Lt.string().nullable().optional()}))),Us=Lt.literal("read"),qs=Lt.object({type:Lt.string(),class:Lt.string(),isActive:Lt.boolean(),label:Lt.string(),cssClass:Lt.string(),cssColor:Lt.string(),struct:Lt.object({action:Lt.string(),do:Lt.string(),type:Lt.string(),targetId:Lt.number(),targetType:Lt.string()}),stats:Lt.object({total:Lt.number()})}),Ws=Pn.omit({dateModified:!0}).extend({dateCreation:Lt.string(),dateModified:Lt.string().nullable(),description:Lt.string().nullable(),_user:wi}),Bs=Ws.extend({_right:Mi,_attachedFiles:Lt.array(qi).optional(),_actions:Lt.record(qs).optional(),_widgets:Lt.array(Xr).optional()}),$s=Ta.extend({dateStart:Lt.string(),animatedMeetingContent:Lt.record(Lt.unknown()),_extend:Lt.object({status:Lt.string(),statusValue:Lt.literal(1).or(Lt.literal(2)).or(Lt.literal(3)),date:Lt.string()}),_audience:La.array(),_audienceLeft:Lt.number()}),Vs=Lt.union([Lt.literal("groups"),Lt.literal("sites"),Lt.literal("onedrive"),Lt.literal("group"),Lt.literal("documents"),Lt.literal("me")]),zs=En({title:Lt.string(),id:Lt.string(),type:Lt.string()}),Gs=zs.omit({id:!0}).extend({name:Vs.optional()}),Js=zs.and(Lt.object({})),Ks=zs.extend({visibility:Lt.union([Lt.literal("public"),Lt.literal("private")]).optional()}),Hs=zs.extend({mimetype:Lt.string().optional(),webUrl:Lt.string().optional(),size:Lt.number().optional()}),Qs=Hs,Ys=Hs.extend({_extend:Lt.object({path:Lt.string()})}),Xs=Ks.and(Hs),eo=Lt.object({id:Lt.string(),title:Lt.string(),mail:Lt.string(),default:Lt.boolean().optional()}),to=Lt.object({title:Lt.string(),id:Lt.string(),type:Lt.string(),mimetype:Lt.string().optional(),webUrl:Lt.string().optional()}),no=Lt.object({msTenant:Lt.union([Vs,Lt.undefined()]),msId:Lt.union([Lt.string(),Lt.undefined()]),idFolder:Lt.union([Lt.string(),Lt.undefined()]),page:Lt.number(),limit:Lt.number(),query:Lt.string().optional().nullable()}),io=Lt.object({path_lower:Lt.string(),query:Lt.string().optional().nullable()}),ro=Lt.object({id:Lt.number(),name:Lt.string(),type:Lt.string(),token:Lt.string(),size:Lt.number(),mediaKey:Lt.string()}),ao=Lt.object({token:Lt.string().optional(),attrName:Lt.string(),file:Lt.object({service:Lt.string(),account:Lt.string(),title:Lt.string(),mimetype:Lt.string().optional(),_document:Hs})}),so=Lt.object({id:Lt.string(),service:Lt.string()}),oo=Lt.object({service:Lt.string(),id:Lt.string()}),lo=Lt.object({account:eo}),co=Lt.object({service:Lt.string(),account:Lt.string()}),uo=Lt.object({allow:Lt.union([Lt.literal("groups"),Lt.literal("me")]).array().optional(),id:Lt.string()}),po=Lt.object({id:Lt.string(),documentParams:no}),mo=Lt.object({id:Lt.string(),documentParams:io}),go=Lt.object({query:Lt.string().optional(),filter:Lt.string().optional(),id:Lt.string()}),ho=Ea.extend({faqColor:Lt.string().optional(),image:Zi.optional(),type:Lt.literal("faq")}),fo=Pa.and(ho).and(Lt.object({_audience:Fs.array(),tags:Os.array().optional(),isWeb:Lt.boolean(),faqContent:Lt.array(Lt.object({title:Lt.string(),id:Lt.string().optional(),items:Lt.array(Lt.string())})).optional()})),bo=e=>e.and(Lt.object({_extend:Lt.object({itemsCount:Lt.number()})})),yo=Ea.extend({type:Lt.literal("faqItem"),hierarchy:Lt.object({category:Lt.string().optional(),theme:Lt.string().optional()})}),vo=yo.omit({hierarchy:!0}).extend({faqResponse:Lt.string(),tags:Os.array().optional(),uriCategory:Ra.array(),themeId:Lt.string(),_nbAttachedFiles:Lt.number().optional(),_attachedFiles:qi.array(),uiObjectLink:Lt.unknown()}),wo=Tn(Za.omit({idSpot:!0})).and(Lt.object({image:Zi.nullable().optional(),tags:Lt.string().optional(),faqColor:Lt.string().optional(),isWeb:Lt.boolean().optional(),type:Lt.literal("faq")})),ko=wo.and(Lt.object({uri:Lt.string(),format:Ln.optional()})),_o=Lt.object({title:Lt.string(),id:Lt.string()}),So=Lt.object({_web:Lt.union([Lt.literal("0"),Lt.literal("1"),Lt.literal("")]).optional(),appImageText:Lt.string().optional(),appImage:Lt.union([Lt.string(),Lt.object({image:Lt.object({id:Lt.string(),type:Lt.string()})})]).optional(),_displayComment:Lt.union([Lt.literal("0"),Lt.literal("1"),Lt.literal("")]).optional()}),jo=Lt.object({createCategory:Lt.boolean()}),xo=Lt.object({idCategory:Lt.number(),title:Lt.string()}),Co=Lt.object({idCategory:Lt.number(),indexTheme:Lt.number(),deleteEntries:Lt.boolean().optional()}),To=Lt.object({idCategory:Lt.number(),indexTheme:Lt.number(),title:Lt.string()}),Ao=Tn(Za).and(Lt.object({tags:Lt.string().optional(),faqResponse:Lt.string().optional(),type:Lt.literal("faqItem")})),Oo=Lt.object({idEntry:Lt.number(),idCategory:Lt.number(),theme:Lt.number()}),Lo=Ao.and(Lt.object({uri:Lt.string()})),Ro=Lt.object({entryURI:Lt.string(),sourceURI:Lt.string().optional(),targetURI:Lt.string(),theme:Lt.number()}),Fo=Lt.object({sourceUri:Lt.string(),targetUri:Lt.string(),themeIndex:Lt.number()}),Eo=e=>Lt.object({isActive:Lt.boolean()}).and(e),Po=Lt.enum(["drive_microsoft_graph","drive_dropbox","drive_google"]),Io=Eo(Lt.object({drives:Lt.record(Po,Lt.boolean())})),Mo=Eo(Lt.object({label:Lt.string()})),Do=Eo(Lt.object({orderBy:Lt.string(),order:Lt.enum(["ASC","DESC"])})),No=Lt.object({label:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),color:Lt.string()}),Zo=Eo(Lt.object({hasLicense:Lt.boolean(),label:Lt.string(),description:Lt.string(),color:Lt.string(),templates:No.array()})),Uo=Eo(Lt.object({hasLicense:Lt.boolean()})),qo=Eo(Lt.object({sendAlert:Lt.boolean()})),Wo=Eo(Lt.object({})),Bo=Eo(Lt.object({create:Lt.boolean(),autorize:Lt.array(Lt.enum(["message","comment","board","article"]).optional())})),$o=Eo(Lt.object({label:Lt.string(),hasLicense:Lt.boolean()})),Vo=Lt.object({MagicPadHook:$o}).partial(),zo=Lt.object({DriveHook:Io,calendarHook:Mo,FileBankHook:Do,StudioHook:Uo,OnlyOfficeHook:Zo,spotRssFeed:Wo,WidgetHook:Bo,AdminAdvancedHook:qo}).partial().and(Vo),Go=Lt.union([Lt.literal("summarize"),Lt.literal("develop"),Lt.literal("reformulate"),Lt.literal("tldr"),Lt.literal("en"),Lt.literal("es"),Lt.literal("formal"),Lt.literal("funny")]),Jo=Lt.object({text:Lt.string()}),Ko=Lt.object({idLog:Lt.number(),slug:Lt.string(),dateCreation:Lt.string(),map:Lt.string(),mail:Lt.string(),action:Lt.string(),mode:Lt.string()}),Ho=Lt.object({mail:Lt.string(),cnt:Lt.string()}),Qo=Lt.string(),Yo=Lt.string(),Xo=Ra.extend({jlandMapFlavor:Qo,jlandMapKind:Yo,waMapUrl:Lt.string().optional(),limit:Lt.number().optional(),_extend:Lt.object({licenses:Lt.array(os)})}),el=Za.extend({jlandMapAggregated:Lt.string(),type:Lt.literal("jlandmap")}),tl=Lt.object({jlandMapKind:Lt.string(),jlandMapFlavor:Lt.string(),limit:Lt.number().nullable(),waMapUrl:Lt.string().nullable()}),nl=Ra.and(tl),il=Ea.and(tl),rl=Pa.and(tl),al=Lt.object({kind:Lt.string(),page:Lt.number(),limit:Lt.number(),filters:jn.array().optional(),orders:wn.array().optional()}),sl=e=>Lt.object({license:Lt.union([Lt.literal("1"),Lt.literal("0")]),user:e}),ol=Ra.extend({attachment:qi,description:Lt.string()}),ll=Ea.extend({description:Lt.string(),attachment:qi,_audience:Fs.array()}),cl=Lt.object({format:Ln,page:Lt.number().optional(),limit:Lt.number().optional(),nolimit:Lt.boolean().optional()}),ul=Lt.object({id:Lt.number(),idFolder:Lt.number().optional(),fileName:Lt.string(),nbViews:Lt.number(),nbDistinctViews:Lt.number(),nbDownloads:Lt.number()}),dl=Lt.object({id:Lt.number(),folderName:Lt.string(),nb:Lt.number(),nbDistinct:Lt.number()}),pl=Lt.object({nbFolders:Lt.number(),nbFiles:Lt.number()}),ml=Lt.object({uriFile:Lt.string(),uriFolder:Lt.string()}),gl=za.extend({}),hl=Pa.and(gl).and(Lt.object({allDay:Lt.null(),agenda:Lt.string(),useQrcode:Lt.null(),textColor:Lt.string(),bgColor:Lt.string(),report:Lt.string(),reportFile:Lt.array(Lt.never()),urlGestion:Lt.string().nullable().optional()})),fl=Lt.object({uri:Lt.string(),title:Lt.string(),type:Lt.string(),mainType:Lt.string()}),bl=Ea.extend({anonymousResponse:Lt.null(),multipleResponse:Lt.number(),publicResults:Lt.null(),pollProgression:Lt.object({colors:Lt.record(Lt.string()),maxRespondentsValue:Lt.number(),countRespondentsValue:Lt.number()}),pollResponseShowProgression:Lt.number(),dateEnd:Lt.string(),status:Lt.object({name:Lt.string(),value:Lt.number()})}),yl=Pa.and(bl).and(Lt.object({pollContent:Lt.null(),pollLinks:Lt.null(),pollForceClose:Lt.null(),pollResponseUserVisibility:Lt.null(),pollResponseAuthorVisibility:Lt.null(),pollResponseShowRespondent:Lt.null(),pollBanner:Lt.tuple([]),pollMessage:Lt.string()})),vl=Lt.object({idQuestion:Lt.number(),idResponse:Lt.number()}),wl=Lt.object({idQuestion:Lt.number()}),kl=Ea.extend({quizzDescription:Lt.string().nullable(),quizzClosingDate:Lt.string().nullable(),dateStart:Lt.string().nullable(),dateEnd:Lt.string().nullable()}),_l=Pa.and(kl).and(Lt.object({quizzInvitation:Lt.null(),quizzFormSpec:Lt.string(),quizzRandom:Lt.null(),quizzHideResponses:Lt.null(),quizzStatus:Lt.null(),quizzPublicationDate:Lt.string().nullable()})),Sl=Lt.object({count:Lt.number(),id:Lt.string()}),jl=Lt.union([Lt.literal("AND"),Lt.literal("OR")]),xl=Lt.object({facetType:Lt.string(),facetOptions:Lt.union([Lt.record(Lt.union([Lt.object({}).passthrough(),Lt.number(),Lt.string()])),Lt.array(Lt.never())]),facetMode:jl.optional(),field:Lt.string(),title:Lt.string(),description:Lt.string().optional(),category:Lt.string().optional()}),Cl=Lt.object({id:Lt.string(),mainType:Lt.string(),type:Lt.string().optional(),title:Lt.string(),cssclass:Lt.string().optional(),active:Lt.boolean().optional(),count:Lt.number().optional(),typesExcluded:Lt.array(Lt.string()),facets:xl.array()}),Tl=Lt.object({count:Lt.number(),value:Lt.string(),title:Lt.string()}),Al=Lt.object({name:Lt.string(),count:Lt.number(),values:Tl.array(),title:Lt.string()}),Ol=Lt.object({field:Lt.string(),value:Lt.union([Lt.string(),Lt.array(Lt.string())]),exclude:Lt.boolean().optional(),or:Lt.boolean().optional()}),Ll=Lt.object({field:Lt.string(),order:Lt.union([Lt.literal("desc"),Lt.literal("asc")])}),Rl=Lt.object({facetLimit:Lt.number(),skipEmptyFacets:Lt.boolean()}),Fl=Lt.object({home:Lt.object({mode:Lt.union([Lt.literal("result"),Lt.literal("category")]),facets:xl.array()}),categories:Cl.array(),viewcard:Lt.record(Lt.array(Lt.object({name:Lt.string(),title:Lt.string()}))),facetMode:Lt.boolean()}),El=Lt.object({name:Lt.string(),title:Lt.string(),icon:Lt.string(),_url:Lt.string()}),Pl=Lt.object({id:Lt.number().optional(),title:Lt.string(),picture:Lt.string(),uri:Lt.string(),type:Lt.string().optional(),icon:Lt.string().optional(),_cssColor:Lt.string().optional(),_url:Lt.string().optional(),idArticle:Lt.number().optional(),_user:Lt.object({title:Lt.string()}).optional(),_values:Lt.object({dateModified:Lt.string()}).optional()}),Il=Lt.object({keywords:Lt.string().optional(),category:Lt.string().optional(),facetCategories:Lt.boolean().optional(),filters:Ol.array().optional(),facets:xl.array().optional(),page:Lt.number().optional(),limit:Lt.number().optional(),sort:Ll.optional(),options:Rl.optional(),format:Ln.optional()}),Ml=e=>Lt.object({start:Lt.number(),count:Lt.number(),results:Lt.array(null!=e?e:In),facets:Al.array(),categories:Sl.array()}),Dl=Lt.object({keywords:Lt.string()}),Nl=Lt.union([El,Pl]),Zl=Lt.object({title:Lt.string(),id:Lt.string(),showAll:Lt.boolean().optional(),results:Nl.array()}),Ul=Lt.union([Lt.literal("link"),Lt.literal("invitation")]),ql=Lt.object({id:Lt.number(),title:Lt.string(),uri:Lt.string(),idUser:Lt.number(),_right:Mi}),Wl=Lt.object({audience:Lt.array(La),read:Lt.array(Lt.string()),write:Lt.array(Lt.string())}),Bl=Lt.object({id:Lt.number(),type:Lt.string(),uri:Lt.string(),title:Lt.string(),generalAccessRule:Ul,generalAccessHash:Lt.string().nullable(),idUser:Lt.number(),_audience:Lt.array(La),_right:Mi}),$l=Lt.object({targetId:Lt.number(),targetType:Lt.string(),type:Lt.string()}),Vl=Lt.object({targetId:Lt.number(),targetType:Lt.string(),type:Lt.string()}),zl=Ea.extend({supportStatus:Lt.union([Lt.number(),Lt.string()]).nullable(),supportType:Lt.union([Lt.number(),Lt.string()]).nullable(),supportOwner:Lt.array(wi)}),Gl=Pa.and(zl).and(Lt.object({})),Jl=Ea.extend({dates:Lt.array(Lt.string()),dateStart:Lt.string().nullable(),dateEnd:Lt.string()}),Kl=Pa.and(Jl).and(Lt.object({surveyObjectLink:Lt.array(Ra)})),Hl=Lt.union([Lt.literal("DYNAMIC"),Lt.literal("SLIDESHOW")]),Ql=e=>Ta.extend({tvChannelType:e,tvChannelBackgroundColor:Lt.string().nullable(),tvChannelNumImages:Lt.number(),tvChannelGroupTarget:ka.optional(),tvChannelConfig:Lt.object({backgroundType:Lt.union([Lt.literal("color"),Lt.literal("image")]).optional(),globalShowComment:Lt.boolean().optional(),scaleImg:Lt.boolean().optional(),key:Lt.string(),contents:Lt.array(Lt.object({uri:Lt.string(),dateEnd:Lt.string().optional(),showComments:Lt.boolean().optional(),order:Lt.number().optional()})).optional()})}),Yl=Ql(Lt.literal("DYNAMIC")).extend({tvChannelNumImages:Lt.literal(0)}),Xl=Ql(Lt.literal("SLIDESHOW")),ec=Ra.readonly(),tc=Ea.and(Yl).readonly(),nc=Ea.and(Xl).readonly(),ic=Ea.and(Yl).readonly().or(Xl),rc=tc.or(nc),ac=Za.and(Yl.partial().or(Xl.partial())).and(Lt.object({tvChannelType:Hl})).readonly(),sc=Lt.object({tvChannelGroupTarget:Lt.array(Lt.string()).optional(),tvChannelNumImages:Lt.never().optional()}),oc=Bs.extend({_extend:Lt.object({userImageSecureUrl:Lt.string(),descriptionSecure:Lt.string()})}).readonly(),lc=Ea.extend({_extend:Lt.object({imageSecureUrl:Lt.string().optional(),descriptionSecure:Lt.string(),comments:Lt.array(oc)}).optional()}).readonly(),cc=qi.extend({_extend:Lt.object({imageSecureUrl:Lt.string().optional()})}),uc=tc.and(Lt.object({_extend:Lt.object({imageSecureUrl:Lt.string().optional(),articles:Lt.array(lc).optional()})})),dc=e=>uc.safeParse(e).success,pc=nc.and(Lt.object({_extend:Lt.object({attachments:Lt.array(cc).optional()})})),mc=e=>pc.safeParse(e).success,gc=uc.or(pc),hc=Lt.object({interval:Lt.number(),channel:gc}),fc=Lt.object({cache_suffix:Lt.string(),toolbar:Lt.string(),language:Lt.string(),content_css:Lt.string(),quickbars_selection_toolbar:Lt.string()}),bc=fc.extend({plugins:Lt.array(Lt.string()),text_patterns:Lt.array(Lt.object({start:Lt.string(),end:Lt.string().optional(),format:Lt.string().optional(),cmd:Lt.string().optional()})),height:Lt.number(),menubar:Lt.boolean(),branding:Lt.boolean(),skin:Lt.string(),convert_urls:Lt.boolean(),invalid_elements:Lt.string(),extended_valid_elements:Lt.string(),custom_elements:Lt.string(),inline_boundaries_selector:Lt.string(),toolbar_mode:Lt.union([Lt.literal("floating"),Lt.literal("sliding"),Lt.literal("scrolling"),Lt.literal("wrap")]),promotion:Lt.boolean(),font_size_formats:Lt.string(),contextmenu:Lt.union([Lt.string(),Lt.literal(!1)]),paste_data_images:Lt.boolean(),browser_spellcheck:Lt.boolean(),quickbars_insert_toolbar:Lt.boolean()}),yc=Lt.object({commentsToolbar:Lt.string()}),vc="accept",wc="deny",kc=Lt.union([Lt.literal(vc),Lt.literal(wc)]),_c=Lt.object({color:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),label:Lt.string()}),Sc=Pn.extend({title:Lt.string(),mimetype:Lt.string(),_extend:Lt.object({generalAccessRule:Lt.string(),generalAccessHash:Lt.union([Lt.string(),Lt.undefined()]),dateModified:Lt.string(),dateCreation:Lt.string(),fileInfo:_c,parentId:Lt.number(),parentType:Lt.string(),parentFiles:Lt.array(Lt.number()),_url:Lt.string()}),_audience:Lt.array(In),_right:Mi,_user:wi}),jc=In,xc=Lt.object({color:Lt.string(),description:Lt.string(),extension:Lt.string(),icon:Lt.string(),label:Lt.string()}),Cc=Lt.object({page:Lt.number(),cnt:Lt.number(),limit:Lt.number(),data:Lt.array(Sc)}),Tc=Lt.object({query:Lt.string(),filters:Cn,orders:xn,page:Lt.number(),limit:Lt.number()}),Ac=Lt.object({}),Oc=Lt.object({label:Lt.string(),description:Lt.string(),name:Gi,img:Lt.string(),available:Lt.boolean(),panel:Lt.object({useWrapper:Lt.boolean(),useEditor:Lt.boolean(),useWidgets:Lt.boolean()})}),Lc=e=>Oc.safeParse(e).success,Rc=e=>void 0!==e&&"type"in e,Fc=Ra.extend({articleWidgets:Xr.array(),articleWidgetDisplayMode:nr.nullable().or(Lt.undefined())}),Ec=Lt.object({uniqid:Lt.string(),title:Lt.string(),locked:Lt.boolean(),visible:Lt.boolean(),widgets:Xr.array(),position:tr.optional()}),Pc=Lt.enum(["edit","view","preview"]),Ic=Lt.object({width:Lt.number().or(Lt.undefined()).optional(),inplace:Lt.boolean(),isComponentVisible:Lt.boolean().optional(),mode:Pc,onClick:Lt.function().returns(Lt.void()).optional(),onChange:Lt.function().args(ea,Lt.boolean()).returns(Lt.void()),onStateChange:Lt.function().args(ia).returns(Lt.void())}),Mc=Lt.object({text:Lt.string(),value:Lt.boolean().optional(),links:vn.array().optional(),uri:Lt.string().optional(),mimetype:Lt.string().optional(),id:Lt.number().optional(),user:wi.optional()}),Dc=Lt.object({arr:Mc.array().optional(),edit:Lt.boolean().optional()}),Nc=Lt.object({name:Lt.literal("widget-check-list"),uniqid:Lt.string(),content:Dc,title:Lt.string()}),Zc=Lt.object({title:Lt.string().optional(),view:Lt.any().optional()}),Uc=Lt.object({uniqid:Lt.string(),object:In}),qc=Lt.object({token:Lt.string().or(Lt.undefined()).optional(),ids:Lt.record(Lt.string(),Xr),layers:Lt.record(Lt.string(),Ec),states:Lt.record(Lt.string(),ia),modal:Zc.or(Lt.undefined()),editableMap:Lt.record(Lt.string(),Lt.object({index:Lt.number(),uniqid:Lt.string()})),currentEditableIndex:Lt.number(),currentEditableWidgetId:Lt.string().or(Lt.undefined()),widgetObject:Lt.record(Lt.string(),In.partial()),widgetObjectRights:Lt.record(Lt.string(),Mi),widgetAuthor:Lt.record(Lt.string(),wi.partial()),flushedWidgets:Lt.string().array(),rtObjectStack:Uc.array()}),Wc=Lt.object({widgets:qc}),Bc=Ea.extend({articleWidgets:Xr.array(),articleWidgetDisplayMode:nr.nullable().or(Lt.undefined()),articleWidgetsCover:Lt.number().or(Lt.undefined()),_audience:Fs.array()}),$c=e=>Xr.safeParse(e).success,Vc=e=>ir(e,wr),zc=e=>ir(e,ur),Gc=e=>ir(e,pr),Jc=e=>ir(e,yr),Kc=e=>ir(e,Sr),Hc=e=>ir(e,fr),Qc=e=>ir(e,gr),Yc=e=>ir(e,Cr),Xc=e=>ir(e,qr),eu=e=>ir(e,Br);class tu extends n{list(e){var t,n;return this.network.post(Object.assign(Object.assign({o:"objectList",f:"jamespotArticleQueryList"},e),{format:yn(null!==(t=e.format)&&void 0!==t?t:"raw-list",null!==(n=e.formatExtend)&&void 0!==n?n:[])}))}get(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"article",f:"get"},e),{format:yn(null!==(n=e.format)&&void 0!==n?n:"raw-view",null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}create(e,t){return this.network.maybePostToken(Object.assign({o:"article",f:"create",format:null!=t?t:"raw-list"},e))}update(e,t){var n;return this.network.post(Object.assign(Object.assign({format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-list"},e),{o:"article",f:"update"}))}delete(e){return this.network.postCSRF({o:"article",f:"delete",idArticle:e})}count(e){return this.network.post({o:"article",f:"count",type:e})}getAttachments(e,t,n){return this.network.post({o:"article",f:"getAttachment",idArticle:e,type:t,format:n})}permalink(e){return this.network.post({o:"article",f:"permalink",permalinkId:e})}saveAsDraft(e,t,n){return this.network.post({o:"article",f:"saveAsDraft",form:e,contentType:t,idDraft:n})}getComments(e,t){var n,i;return this.network.post(Object.assign(Object.assign({o:"article",f:"getComments"},e),{attachments:null!==(n=e.attachment)&&void 0!==n&&n,limits:null!==(i=e.limits)&&void 0!==i?i:{start:0,max:1e4},format:null!=t?t:"raw-little"}))}addComment(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"article",f:"addComment"},e),{alertAuthor:Number(e.alertAuthor),sendAlert:Number(e.sendAlert),type:null!==(n=e.type)&&void 0!==n?n:"comment",format:null!=t?t:"raw-little"}))}updateComment(e,t){return this.network.post(Object.assign(Object.assign({o:"article",f:"updateComment"},e),{format:null!=t?t:"raw-little"}))}deleteComment(e){return this.network.postCSRF({o:"comment",f:"delete",idComment:e})}getRead(e){return this.network.post({o:"article",f:"getRead",uri:e})}}var nu=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};class iu extends n{configuration(){return this.network.post({o:"assetReservation",f:"configuration"})}createReservation(e){return this.network.postCSRF(Object.assign({o:"assetReservation",f:"createReservation",format:"raw-list"},e))}getReservations(e){var{format:t="raw-list"}=e,n=nu(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"getReservations",format:t},n))}cancelReservation(e){return this.network.post({o:"assetReservation",f:"cancelReservation",format:"raw-list",idArticle:e})}bookByDate(e){var{format:t="raw-list"}=e,n=nu(e,["format"]);return this.network.post(Object.assign({o:"assetReservation",f:"BookByDate",format:t},n))}getList(e){var{format:t="raw-list"}=e,n=nu(e,["format"]);return this.network.post(Object.assign({o:"objectList",f:"assetReservationList",format:t},n))}}class ru extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"audience",q:e}).then((e=>{if(Array.isArray(e.result))return e.result;throw"Bad response from backend"}))}}class au extends n{publicWebinarFullname(e){return this.network.post(Object.assign({o:"bigBlueButton",f:"publicWebinarFullname"},e))}getPublicWebinarData(e){return this.network.post(Object.assign({o:"bigBlueButton",f:"getPublicWebinarData"},e))}}class su extends n{getFormattedList(e,t){return this.network.post(Object.assign({o:"objectList",f:"bookmarksList",format:t},e))}addFormattedLink(e,t,n){const i=null!=n?n:"list";return this.network.post({o:"custom",f:"actionAdd",type:"bookmarkLink",targetId:e,targetType:t,format:i})}addBookmark(e,t){return this.network.postCSRF(Object.assign({o:"bookmarks",f:"add"},e))}delete(e){return this.network.postCSRF({o:"bookmarks",f:"delete",bookmarkID:e})}rename(e,t,n){return this.network.postCSRF({o:"bookmarks",f:"rename",bookmarkID:e,bookmarkLabel:t,bookmarkUrl:n})}move(e,t,n){return this.network.postCSRF({o:"bookmarks",f:"move",bookmarkID:e,bookmarkReference:t,bookmarkPosition:n})}}class ou extends n{getInfos(e,t){return this.network.post({o:"BusinessNetworking",f:"MarkerInfo",id:e,format:null!=t?t:"raw-little"})}}class lu extends n{get(e,t){return this.network.post({o:"community",f:"getCommunity",idCommunity:e,format:t||"raw-little"})}sendRequest(e,t){return this.network.post({o:"community",f:"sendRequest",message:e,idUserTo:t})}autocomplete(e){return this.network.post({o:"autocomplete",f:"community",q:e}).then((e=>e.result))}}class cu extends n{get(e,t){return this.network.post({o:"widget",f:"datasourceGet",uri:e,format:t})}getModel(e){return this.network.post({o:"widget",f:"datasourceGetModel",uri:e})}cancel(e){return this.network.post({o:"widget",f:"datasourceCancel",uri:e})}getObject(e){return this.network.post({o:"widget",f:"datasourceGetObject",uri:e})}updateModel(e,t){return this.network.post({o:"widget",f:"datasourceUpdateModel",uri:e,model:t})}getExcelDatasource(e){return this.network.post({o:"widget",f:"datasourceGetExcelDatasource",uri:e})}getExcelDatasourceHeaders(e,t){return this.network.post({o:"widget",f:"datasourceGetExcelDatasourceHeaders",uri:e,spreadsheet:t})}setExcelDatasource(e,t){return this.network.post({o:"widget",f:"datasourceSetExcelDatasource",uri:e,spreadsheet:t})}create({title:e,datasourceType:t,datasourceIdentifier:n,token:i}){return this.network.postCSRF({o:"widget",f:"datasourceCreate",title:e,datasourceType:t,datasourceIdentifier:n,token:i})}}class uu extends n{create(e,t,n,i,r){return this.network.post({o:"article",f:"create",type:e,token:t,title:n,dateStart:i,publishTo:r})}getList(e="",t=[],n=[],i=1,r="raw-list"){return this.network.post({o:"objectList",f:"diapazoneQueryList",query:e,filters:t,orders:n,page:i,format:r})}}var du=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class pu extends n{upload(e){const t=new FormData;return t.append("attrName",e.attrName),e.file?t.append(e.attrName,e.file):e.url&&t.append("url",e.url),t.append("token",e.token),this.network.postFile(t)}uploadMany(e){return du(this,void 0,void 0,(function*(){return Promise.all(e.map((e=>this.upload(e))))}))}get(e,t,n){return du(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"get",idFile:e,format:t},null==n?void 0:n.signal)}))}getParent(e,t,n){return du(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getParent",idFile:e,format:t},null==n?void 0:n.signal)}))}getWithHash(e,t,n,i){return du(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"getWithHash",idFile:e,hash:t,format:n},null==i?void 0:i.signal)}))}duplicate(e,t,n){return du(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"duplicateFile",idFile:e,title:t,publishTo:n})}))}updateFile(e,t){return du(this,void 0,void 0,(function*(){return this.network.postCSRF({o:"file",f:"updateFile",idFile:e,title:t})}))}update(e,t,n,i){return du(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"update",idFile:e,type:t,cropDatas:Object.assign(Object.assign({},n),{rotateBeforeCrop:!0}),killSize:n.killSize,format:"raw-little"},null==i?void 0:i.signal)}))}deleteFile(e,t,n,i){return du(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"delete",idFile:e,attrName:t,token:n},i)}))}deleteImage(e,t,n){return du(this,void 0,void 0,(function*(){return this.network.post({o:"file",f:"deleteImage",id:e,type:t},null==n?void 0:n.signal)}))}getDownload(e,t){return this.network.post({o:"file",f:"getDownload",id:e},null==t?void 0:t.signal)}generatePreview(e,t){return this.network.post({o:"file",f:"generatePreview",id:e},null==t?void 0:t.signal)}copy(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"file",f:"copy"},e),{format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"}),null==t?void 0:t.signal)}}class mu extends n{getCategoriesList(e,t){return this.network.post({o:"objectList",f:"faqQueryList",format:null!=e?e:"raw-list",orders:null!=t?t:[{name:"dateCreation",sort:"ASC"}]})}createCategory(e,t){return this.jApi.article.create(Object.assign(Object.assign({},e),{type:"faq"}),null!=t?t:"raw-view")}updateCategory(e,t){return this.jApi.article.update(Object.assign(Object.assign({},e),{type:"faq",format:null!=t?t:"raw-view"}))}getCategory(e,t){return this.jApi.article.get({idArticle:e,format:null!=t?t:"raw-view"})}deleteCategory(e){return this.jApi.article.delete(e)}checkItem(e,t,n){return this.network.post({o:"faq",f:"checkItem",query:e,page:null!=t?t:1,format:null!=n?n:"raw-list"})}getTaxonomy(){return this.network.post({o:"faq",f:"getFaqTaxonomy"})}getHookProperties(e){return this.network.post({o:"faq",f:"getHookProperties",properties:null!=e?e:["_web"]})}getAccess(){return this.network.post({o:"faq",f:"access"})}createTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-theme"},e),{format:null!=t?t:"raw-view"}))}deleteTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"delete-theme"},e),{format:null!=t?t:"raw-view"}))}updateTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"set-theme"},e),{format:null!=t?t:"raw-view"}))}getEntry(e,t){return this.network.post({o:"faq",f:"get-entry",uri:e,format:null!=t?t:"raw-view"})}deleteEntry(e){return this.jApi.article.delete(e)}createEntry(e,t){return this.jApi.article.create(Object.assign(Object.assign({},e),{idSpot:["content"],type:"faqItem"}),null!=t?t:"raw-view")}addEntry(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"add-entry"},e),{format:null!=t?t:"raw-view"}))}updateEntry(e,t){return this.jApi.article.update(Object.assign(Object.assign({},e),{type:"faqItem",format:null!=t?t:"raw-view"}))}moveEntry(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-entry"},e),{format:null!=t?t:"raw-view"}))}moveTheme(e,t){return this.network.postCSRF(Object.assign(Object.assign({o:"faq",f:"move-theme"},e),{format:null!=t?t:"raw-view"}))}}class gu extends n{getBanks(){return this.network.post({o:"fileBank",f:"getBanks",format:"raw-list"}).then((e=>e.result))}getFolders(e){return this.network.post({o:"fileBank",f:"getFolders",parentURI:e,format:"raw-list"})}getDocuments(e){return this.network.post({o:"fileBank",f:"getDocuments",parentURI:e,format:"raw-view"})}getPath(e,t){var n,i;return this.network.post({o:"fileBank",f:"getPath",uri:e.uri,mode:null!==(n=e.mode)&&void 0!==n?n:"browse",format:null!==(i=null==t?void 0:t.format)&&void 0!==i?i:"raw-little"},null==t?void 0:t.signal)}searchContent(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"fileBank",f:"searchContent"},e),{format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"}),null==t?void 0:t.signal)}getParents(e,t){var n;return this.network.post({o:"fileBank",f:"getParents",id:e.id,format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"},null==t?void 0:t.signal)}}class hu extends n{countAction(e,t){return this.network.post({o:"activityLog",f:"log",count:!0,verb:e,uri:t})}useWebVersion(){return this.network.post({o:"global",f:"useWebVersion"})}}class fu extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"spot",q:e,idToUri:!1}).then((e=>e.result))}create(e,t){return this.network.post(Object.assign(Object.assign({o:"spot",f:"create"},e),{format:t}))}update(e,t){const{spotBanner:n}=e,i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["spotBanner"]);return this.network.postCSRF(Object.assign(Object.assign({o:"spot",f:"update"},i),{format:t}))}getSpot(e,t){return this.network.post({o:"spot",f:"getSpot",idSpot:e,format:t})}getProperties(e){return this.network.post({o:"spot",f:"getProperties",idSpot:e})}getApplications(){return this.network.post({o:"spot",f:"get-available-widget"})}getCategories(){return this.network.post({o:"spot",f:"get-categories"})}getObjectListJamespotSpotMembers(e,t,n,i=1){return this.network.post({o:"objectListJamespot",f:"SpotMembers",idSpot:e,limit:n,page:i,format:"raw-little",query:t})}list(e){return this.network.post(Object.assign({o:"objectList",f:"jamespotSpotQueryList"},e))}resetNotifications(e){return this.network.post(Object.assign({o:"spot",f:"resetNotifications"},e))}getUserLevelAndRight(e){return this.network.post({o:"spot",f:"getUserLevelAndRight",idSpot:e})}groupRequest(e){return this.network.postCSRF({o:"spot",f:"request",idSpot:e})}groupAddToFavorite(e){return this.network.postCSRF({o:"spot",f:"addToFavorite",idSpot:e})}objectListSpotArticles(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"objectList",f:"spotArticles"},e),{format:yn(null!==(n=e.format)&&void 0!==n?n:"raw-little",null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}}class bu extends n{list(e,t,n,i=[{name:"dateCreation",sort:"DESC"}]){return this.jApi.article.list({type:"aseiClearanceTicket",format:"raw-view",limit:t,page:e,orders:i,filters:n})}requestStatus(e,t,n){return this.network.post({o:"asei",f:"setStatus",uri:e,requestedStatus:t,audience:n})}getDedicatedGroups(){return this.network.post({o:"asei",f:"getDedicatedGroups"})}getConfiguration(){return this.network.post({o:"asei",f:"configuration"})}}class yu extends n{tenants(e,t){return this.network.post(Object.assign({o:"drive",f:"getTenants"},null!=e?e:{}),null==t?void 0:t.signal)}groups(e,t){return this.network.post(Object.assign({o:"drive",f:"getGroups"},e),null==t?void 0:t.signal)}sites(e){return this.network.post({o:"drive",f:"getSites"},null==e?void 0:e.signal)}listAccount(e,t){return this.network.post({o:"drive",f:"listAccount",service:e},null==t?void 0:t.signal)}isAccountLogged(e,t,n){return this.network.post({o:"drive",f:"isAccountLogged",service:e,id:t},null==n?void 0:n.signal)}checkAccountToken(e,t){return this.network.post({o:"drive",f:"checkAccountToken",service:e},null==t?void 0:t.signal)}msDocuments(e,t){return this.network.post(Object.assign({o:"drive",f:"getDocuments",service:"onedrive"},e),null==t?void 0:t.signal)}dropboxDocuments(e,t){return this.network.post(Object.assign({o:"drive",f:"getDocuments",service:"dropbox"},e),null==t?void 0:t.signal)}getDocument(e,t){var n;return this.network.post(Object.assign(Object.assign({o:"drive",f:"getDocument"},e),{format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little"}),null==t?void 0:t.signal)}logout(e,t){return this.network.post(Object.assign({o:"drive",f:"logout"},e),null==t?void 0:t.signal)}getAccount(e,t){return this.network.post(Object.assign({o:"drive",f:"get-user-data"},e),null==t?void 0:t.signal)}setDefaultAccount(e,t){return this.network.post(Object.assign({o:"drive",f:"set-has-default"},e),null==t?void 0:t.signal)}}class vu extends n{GetUnclassifiedFiles(e){var t;return this.network.post({o:"objectListMediaLibrary",f:"GetUnclassifiedFiles",format:e.format,page:null!==(t=e.page)&&void 0!==t?t:1,limit:e.limit,nolimit:e.nolimit})}getAccess(){return this.network.post({o:"mediaLibrary",f:"access"})}getFoldersStatsList(e=[],t=[],n=1){return this.network.post({o:"objectListMediaLibrary",f:"FoldersStatsList",filters:e,orders:t,page:n})}getFilesStatsList(e=[],t=[],n=1){return this.network.post({o:"objectListMediaLibrary",f:"FilesStatsList",filters:e,orders:t,page:n})}getStats(){return this.network.post({o:"mediaLibrary",f:"moderatorStats"})}readFolder(e){return this.network.post({o:"mediaLibrary",f:"readFolder",uri:e})}readFile(e){return this.network.post({o:"mediaLibrary",f:"readFile",uri:e})}moveFile(e){return this.network.post({format:"raw-list",uri:e.uriFile,mediaLibraryFolderOrientedLinks:e.uriFolder,o:"article",f:"update"})}}class wu extends n{getLogs({dateEnd:e,idLogMax:t}){return this.network.post({o:"jLand",f:"adminLogs",dateEnd:e,idLogMax:t})}getStats({map:e,dateStart:t,dateEnd:n}){return this.network.post({o:"jLand",f:"adminStats",map:e,dateStart:t,dateEnd:n})}getAllMapsAsAdmin(e="raw-list,licenses"){return this.network.post({o:"objectListJLand",f:"jLandList",format:e})}createMap(e,t="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},e),{o:"article",f:"create",format:t,type:"jlandmap"}))}}class ku extends n{sendMessage(e,t){return this.network.post({o:"messenger",f:"newMessage",idDiscussion:t,msg:{description:e}})}getOrCreateDiscussion(e,t){const n=e<t?`${e}.${t}`:`${t}.${e}`;return this.network.post({o:"messenger",f:"getDiscussion",idDiscussion:n,type:"messengerUser",idUserTo:t})}}class _u extends n{getConfig(){return this.network.post({o:"search",f:"getConfig"})}proposition({query:e,format:t},n){return this.network.post({o:"search",f:"proposition",query:e,format:t||"little"},n)}searchQuery(e,t){const{keywords:n,category:i,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:u}=e;return this.network.post({o:"search",f:"query",keywords:n,category:i,facetCategories:r,filters:a,page:s,limit:o,sort:l,options:c,format:yn(u,null==t?void 0:t.formatExtension)},null==t?void 0:t.signal)}getLastQueries(){return this.network.post({o:"search",f:"getLastQueries"})}getAdminConfig(){return this.network.post({o:"search",f:"getAdminConfig"})}setAdminConfig(e){return this.network.post({o:"search",f:"setAdminConfig",config:e})}}var Su=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};class ju extends n{list(){return this.network.post({o:"taxonomy",f:"list",format:"raw-little"}).then((e=>{if(Array.isArray(e.result))return e.result;throw"Bad response from backend"}))}create(e){var{format:t="raw-little"}=e,n=Su(e,["format"]);return this.network.post(Object.assign({o:"taxonomy",f:"create",format:t},n))}autocomplete(e,t){return this.network.post({o:"autocomplete",f:"taxonomy",q:t,idTaxonomy:e,idToUri:!1})}autocompleteList(e){var{format:t="autocomplete"}=e,n=Su(e,["format"]);return this.network.post(Object.assign({o:"objectListTaxonomy",f:"concept",format:t},n))}autocompleteHierarchy(e){return this.network.post(Object.assign({o:"objectListTaxonomyHierarchy",f:"concept"},e))}}class xu extends n{autocomplete(e){return this.network.post({o:"autocomplete",f:"user",q:e,idToUri:!1}).then((e=>e.result))}get(e,t="little",n){return this.network.post({o:"user",f:"get",uri:e,format:t},n)}updateImage(e,t="raw-little"){return this.network.postCSRF({o:"user",f:"updateImage",idFile:e,format:t})}updateBanner(e,t="raw-little"){return this.network.postCSRF({o:"user",f:"updateBanner",idFile:e,format:t})}updateMail(e,t){return this.network.postCSRF({o:"user",f:"editMail",mail:e,password:t})}userUpdateProfile(e){return this.network.postCSRF(Object.assign({o:"user",f:"updateProfile"},e))}configuration(){return this.network.post({o:"userDirectory",f:"configuration"})}fieldsConfiguration(){return this.network.post({o:"user",f:"fieldsConfiguration"})}userList(e,t){return this.network.post(Object.assign(Object.assign({o:"objectList",f:"JamespotUserList"},e),{format:yn(e.format,null==t?void 0:t.formatExtension)}),null==t?void 0:t.signal)}userQueryList(e,t){return this.network.post(Object.assign(Object.assign({o:"objectList",f:"JamespotUserQueryList"},e),{format:yn(e.format,null==t?void 0:t.formatExtension)}))}userMap(e){return this.network.post(Object.assign({o:"objectListJamespot",f:"userMap"},e))}userBusinessContactQueryList(e){return this.network.post(Object.assign({o:"businessContact",f:"queryList"},e))}userCreateBusinessContact(e,t){var n;const i=Object.assign(Object.assign({},e),{pseudo:e.title,firstName:e.firstname,lastName:e.lastname,champ1:e.field1,champ2:e.field2,champ3:e.field3,champ4:e.field4,champ5:e.field5}),r=Object.assign(Object.assign({},i),{type:"businessContactCard",publishTo:"networkPublic/1"});return this.jApi.article.create(r,null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-little")}userUpdateBusinessContact(e,t){var n;const i=Object.assign(Object.assign({},e),{pseudo:e.title,firstName:e.firstname,lastName:e.lastname,champ1:e.field1,champ2:e.field2,champ3:e.field3,champ4:e.field4,champ5:e.field5}),r=Object.assign(Object.assign({},i),{uri:e.uri,publishTo:"networkPublic/1"});return this.jApi.article.update(r,{format:null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"raw-list"})}userDeleteBusinessContact(e){return this.jApi.article.delete(e)}userAddContact(e){return this.network.post({o:"user",f:"addContact",idUser:e})}userRemoveContact(e){return this.network.post({o:"user",f:"removeContact",idUser:e})}signIn(e,t,n){return this.network.post({o:"user",f:"signIn",mail:e,password:t,format:null!=n?n:"raw-view"})}getFields(e,t){return this.network.post({o:"user",f:"getFields",idUser:e,fieldsType:t})}}class Cu extends n{getFiles(e){return this.network.post(Object.assign({o:"onlyOffice",f:"getFiles"},e))}getFile(e,t){return this.network.post({o:"onlyOffice",f:"getFile",idFile:e,hash:t})}getTemplates(e){return this.network.post({o:"onlyOffice",f:"getTemplates"},e)}deleteFile(e,t){return this.network.postCSRF({o:"onlyOffice",f:"deleteFile",idFile:e,withParent:t})}createFile(e,t,n){return this.network.postCSRF({o:"onlyOffice",f:"createFile",title:e,type:t,publishTo:n})}updateFile(e,t){return this.network.postCSRF({o:"onlyOffice",f:"updateFile",idFile:e,title:t})}createVersion(e){return this.network.post({o:"onlyOffice",f:"createVersion",idFile:e})}setAccessRequest(e,t,n,i){return this.network.postCSRF({o:"onlyOffice",f:"setAccessRequest",uri:e,idUser:t,requestAccessValue:n,requestResponseMessage:i})}getAccessRequest(e,t){return this.network.post({o:"onlyOffice",f:"getAccessRequest",format:"raw-little",uri:e,idUser:t})}askAccess(e,t,n){return this.network.postCSRF({o:"onlyOffice",f:"askAccess",uri:e,askAccess:t,askMessage:n})}}class Tu extends n{createChannel(e,t="raw-list"){return this.network.maybePostToken(Object.assign(Object.assign({},e),{o:"article",f:"create",format:t,type:"tvDisplayChannel"}))}getChannel(e){return this.network.post(Object.assign(Object.assign({},e),{o:"tvDisplay",f:"getChannel"}))}getConfigureChannel(e){return this.network.post(Object.assign(Object.assign({},e),{o:"tvDisplay",f:"getConfigureChannel"}))}}class Au extends n{contentObjectLinks(e){return this.network.post({o:"shared",f:"contentObjectLinks",format:"raw-little",uri:e})}contentSetObjectAccessRule(e,t,n){return this.network.postCSRF({o:"shared",f:"contentSetObjectAccessRule",format:"raw-little",uri:e,rule:t,hash:n})}}var Ou=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};class Lu extends n{SaveAnimationConfiguration(e){return Ou(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"saveConfiguration",animation:e})}))}DeleteAnimation(){return Ou(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"deleteAnimation"})}))}GetCurrentAnimation(e){return Ou(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfiguration"},null==e?void 0:e.signal)}))}GetCurrentAnimationApp(){return Ou(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getConfigurationApp"})}))}ToggleAnimationActive(){return Ou(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"toggleAnimationActive"})}))}GetAnimationActive(e){return Ou(this,void 0,void 0,(function*(){return this.network.post({o:"animations",f:"getAnimationActive"},null==e?void 0:e.signal)}))}GetAnimationStats(e){return Ou(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStats",name:e})}))}GetAnimationStatsCurrent(e){return Ou(this,void 0,void 0,(function*(){return this.network.post({o:"objectList",f:"animationsStatsCurrent",uri:e})}))}}class Ru extends n{GetStatus(){return e=this,t=void 0,i=function*(){return this.network.post({o:"accessibility",f:"getStatus"})},new((n=void 0)||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}));var e,t,n,i}}class Fu extends n{getObject(e){return this.network.post({o:"object",f:"getObject",uri:e})}setAccess(e,t,n,i){return this.network.post({o:"object",f:"setAccess",uri:e,access:t,message:n,generalAccessRule:i})}getAccess(e){return this.network.post({o:"object",f:"getAccess",uri:e})}getAccessHash(e){return this.network.post({o:"object",f:"getAccessHash",uri:e})}}class Eu extends n{getFileBanks(e){return this.network.post({o:"file-sync",f:"getFileBanks"},e)}saveFileBanks(e){return this.network.post({o:"file-sync",f:"saveFileBanks",fileBanks:e})}getUserQuota(e){return this.network.post({o:"file-sync",f:"getUserQuota"},e)}getAdminSpots(e,t){return this.network.post(Object.assign({o:"objectList",f:"fileSyncAdminSpots"},e),t)}}class Pu extends n{getUsers(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"getUsers"},e),{format:null!=t?t:"raw-list"}))}add(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"add"},e),{format:null!=t?t:"raw-little"}))}remove(e,t){return this.network.post(Object.assign(Object.assign({o:"customAction",f:"remove"},e),{format:null!=t?t:"raw-little"}))}}class Iu extends n{textEnhancement({text:e,capacity:t}){return this.network.post({o:"jia",f:"textEnhancement",text:e,capacity:t})}}class Mu extends n{responseUserList(e,t,n){return this.network.post({o:"widget",f:"responseUserList",uri:e,uniqid:t,page:n})}removeWidget({id:e,type:t,uniqid:n}){return this.network.post({o:"widget",f:"removeWidget",id:e,type:t,uniqid:n})}checkListRespond({id:e,type:t,idUser:n,uniqid:i,index:r}){return this.network.post({o:"widget",f:"checkListRespond",id:e,type:t,uniqid:i,idUser:n,index:r})}presenceRespond({id:e,type:t,value:n,uniqid:i},r){return this.network.post({o:"widget",f:"presenceRespond",id:e,type:t,value:n,uniqid:i},r)}presenceCancel({id:e,type:t,uniqid:n},i){return this.network.post({o:"widget",f:"presenceCancel",id:e,type:t,uniqid:n},i)}presenceGetResponse({id:e,type:t,uniqid:n},i){return this.network.post({o:"widget",f:"presenceGetResponse",id:e,type:t,uniqid:n},i)}updateWidget({id:e,uniqid:t,content:n,title:i,type:r,v2:a=!1}){return this.network.post({o:"widget",f:"updateWidget",id:e,uniqid:t,content:n,title:i,type:r,v2:a})}}class Du extends n{getThumbnailUrl(e){return this.network.post({o:"magicPad",f:"getThumbnailUrl",uri:e})}}class Nu extends n{selectResponse(e,t){return this.network.post(Object.assign({o:"socialQuestion",f:"selectResponse"},e),null==t?void 0:t.signal)}unselectResponse(e,t){return this.network.post(Object.assign({o:"socialQuestion",f:"unselectResponse"},e),null==t?void 0:t.signal)}}class Zu extends n{recordingDelete(e,t,n){return this.network.post({o:"visioConnect",f:"videoRecordingDelete",id:e,filename:t},null==n?void 0:n.signal)}}class Uu{constructor(e){this.version="1.0",this.network=e,this.admin={license:new r(this),store:new a(this),utils:new s(this)},this.accessibility=new Ru(this),this.application=new o(this),this.article=new tu(this),this.asei=new bu(this),this.assetReservation=new iu(this),this.audience=new ru(this),this.bbb=new au(this),this.bookmark=new su(this),this.businessNetworking=new ou(this),this.community=new lu(this),this.datasource=new cu(this),this.diapazone=new uu(this),this.drive=new yu(this),this.faq=new mu(this),this.file=new pu(this),this.filebank=new gu(this),this.fileSync=new Eu(this),this.global=new hu(this),this.group=new fu(this),this.jia=new Iu(this),this.jland=new wu(this),this.magicPad=new Du(this),this.mediaLibrary=new vu(this),this.messenger=new ku(this),this.object=new Fu(this),this.questionAnswer=new Nu(this),this.search=new _u(this),this.share=new Au(this),this.socialAction=new Pu(this),this.taxonomy=new ju(this),this.tvDisplay=new Tu(this),this.user=new xu(this),this.visioConnect=new Zu(this),this.wedoc=new Cu(this),this.widget=new Mu(this),this.animations=new Lu(this)}}class qu{getBackendUrl(){return e=this,t=void 0,i=function*(){const e=window.location;return`${e.protocol}//${e.host}`},new((n=void 0)||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}));var e,t,n,i}fetch(e,t){return window.fetch(e,t)}}const Wu=new pn(new qu),Bu=new Uu(Wu);window.JamespotUserApi=Bu;const $u=Bu,Vu=Uu;module.exports=t})();
2
2
  //# sourceMappingURL=jamespot-user-api.js.map